From 61b599049223fb0407d3fe1fd1167f807c92fa53 Mon Sep 17 00:00:00 2001 From: azure-powershell-bot <65331932+azure-powershell-bot@users.noreply.github.com> Date: Fri, 18 Apr 2025 06:56:52 +0000 Subject: [PATCH] [skip ci] Archive fc01efa69ea60d5958444e723cc1a4b6bcb40123 --- .../DataBox.Autorest/Az.DataBox.csproj | 2 +- .../DataBox.Autorest/Az.DataBox.format.ps1xml | 654 +++++++++++------- .../Properties/AssemblyInfo.cs | 29 +- .../exports/Get-AzDataBoxJob.ps1 | 4 +- .../exports/Get-AzDataBoxJobCredential.ps1 | 4 +- .../New-AzDataBoxContactDetailsObject.ps1 | 6 +- ...-AzDataBoxCustomerDiskJobDetailsObject.ps1 | 22 +- .../New-AzDataBoxDiskJobDetailsObject.ps1 | 20 +- .../New-AzDataBoxHeavyJobDetailsObject.ps1 | 18 +- .../exports/New-AzDataBoxJob.ps1 | 19 +- .../exports/New-AzDataBoxJobDetailsObject.ps1 | 18 +- .../New-AzDataBoxKeyEncryptionKeyObject.ps1 | 6 +- .../New-AzDataBoxManagedDiskDetailsObject.ps1 | 4 +- .../New-AzDataBoxShippingAddressObject.ps1 | 4 +- ...w-AzDataBoxStorageAccountDetailsObject.ps1 | 4 +- ...w-AzDataBoxTransferConfigurationObject.ps1 | 8 +- .../exports/ProxyCmdletDefinitions.ps1 | 153 ++-- .../exports/Update-AzDataBoxJob.ps1 | 16 +- .../DataBox.Autorest/generate-info.json | 2 +- .../DataBox.Autorest/generated/api/DataBox.cs | 268 +++---- .../Api20221201/RegionConfigurationRequest.cs | 166 ----- .../AccountCredentialDetails.PowerShell.cs | 36 +- .../AccountCredentialDetails.TypeConverter.cs | 6 +- .../AccountCredentialDetails.cs | 24 +- .../AccountCredentialDetails.json.cs | 10 +- .../AdditionalErrorInfo.PowerShell.cs | 28 +- .../AdditionalErrorInfo.TypeConverter.cs | 6 +- .../AdditionalErrorInfo.cs | 6 +- .../AdditionalErrorInfo.json.cs | 8 +- .../AddressValidationOutput.PowerShell.cs | 60 +- .../AddressValidationOutput.TypeConverter.cs | 6 +- .../AddressValidationOutput.cs | 60 +- .../AddressValidationOutput.json.cs | 10 +- .../AddressValidationProperties.PowerShell.cs | 56 +- ...dressValidationProperties.TypeConverter.cs | 6 +- .../AddressValidationProperties.cs | 48 +- .../AddressValidationProperties.json.cs | 12 +- .../ApiError.PowerShell.cs | 40 +- .../ApiError.TypeConverter.cs | 6 +- .../{Api20221201 => Api20250201}/ApiError.cs | 28 +- .../ApiError.json.cs | 10 +- ...pplianceNetworkConfiguration.PowerShell.cs | 28 +- ...ianceNetworkConfiguration.TypeConverter.cs | 6 +- .../ApplianceNetworkConfiguration.cs | 10 +- .../ApplianceNetworkConfiguration.json.cs | 8 +- .../ArmBaseObject.PowerShell.cs | 32 +- .../ArmBaseObject.TypeConverter.cs | 6 +- .../ArmBaseObject.cs | 12 +- .../ArmBaseObject.json.cs | 8 +- .../AvailableSkuRequest.PowerShell.cs | 36 +- .../AvailableSkuRequest.TypeConverter.cs | 6 +- .../AvailableSkuRequest.cs | 6 +- .../AvailableSkuRequest.json.cs | 8 +- .../AvailableSkusResult.PowerShell.cs | 28 +- .../AvailableSkusResult.TypeConverter.cs | 6 +- .../AvailableSkusResult.cs | 18 +- .../AvailableSkusResult.json.cs | 10 +- .../AzureFileFilterDetails.PowerShell.cs | 32 +- .../AzureFileFilterDetails.TypeConverter.cs | 6 +- .../AzureFileFilterDetails.cs | 6 +- .../AzureFileFilterDetails.json.cs | 8 +- .../BlobFilterDetails.PowerShell.cs | 32 +- .../BlobFilterDetails.TypeConverter.cs | 6 +- .../BlobFilterDetails.cs | 6 +- .../BlobFilterDetails.json.cs | 8 +- .../CancellationReason.PowerShell.cs | 24 +- .../CancellationReason.TypeConverter.cs | 6 +- .../CancellationReason.cs | 6 +- .../CancellationReason.json.cs | 8 +- .../CloudError.PowerShell.cs | 40 +- .../CloudError.TypeConverter.cs | 6 +- .../CloudError.cs | 30 +- .../CloudError.json.cs | 12 +- .../ContactDetails.PowerShell.cs | 44 +- .../ContactDetails.TypeConverter.cs | 6 +- .../ContactDetails.cs | 16 +- .../ContactDetails.json.cs | 10 +- .../ContactInfo.PowerShell.cs | 36 +- .../ContactInfo.TypeConverter.cs | 6 +- .../ContactInfo.cs | 6 +- .../ContactInfo.json.cs | 8 +- .../CopyLogDetails.PowerShell.cs | 24 +- .../CopyLogDetails.TypeConverter.cs | 6 +- .../CopyLogDetails.cs | 6 +- .../CopyLogDetails.json.cs | 10 +- .../CopyProgress.PowerShell.cs | 108 +-- .../CopyProgress.TypeConverter.cs | 6 +- .../CopyProgress.cs | 72 +- .../CopyProgress.json.cs | 10 +- .../CreateJobValidations.PowerShell.cs | 28 +- .../CreateJobValidations.TypeConverter.cs | 6 +- .../CreateJobValidations.cs | 20 +- .../CreateJobValidations.json.cs | 10 +- ...ubscriptionValidationRequest.PowerShell.cs | 36 +- ...criptionValidationRequest.TypeConverter.cs | 6 +- ...erLimitForSubscriptionValidationRequest.cs | 42 +- ...itForSubscriptionValidationRequest.json.cs | 12 +- ...ValidationResponseProperties.PowerShell.cs | 52 +- ...idationResponseProperties.TypeConverter.cs | 6 +- ...ubscriptionValidationResponseProperties.cs | 36 +- ...iptionValidationResponseProperties.json.cs | 10 +- .../CustomerDiskJobSecrets.PowerShell.cs | 68 +- .../CustomerDiskJobSecrets.TypeConverter.cs | 6 +- .../CustomerDiskJobSecrets.cs | 56 +- .../CustomerDiskJobSecrets.json.cs | 12 +- .../DataAccountDetails.PowerShell.cs | 28 +- .../DataAccountDetails.TypeConverter.cs | 6 +- .../DataAccountDetails.cs | 6 +- .../DataAccountDetails.json.cs | 10 +- ...DataBoxAccountCopyLogDetails.PowerShell.cs | 36 +- ...aBoxAccountCopyLogDetails.TypeConverter.cs | 6 +- .../DataBoxAccountCopyLogDetails.cs | 22 +- .../DataBoxAccountCopyLogDetails.json.cs | 10 +- ...oxCustomerDiskCopyLogDetails.PowerShell.cs | 36 +- ...ustomerDiskCopyLogDetails.TypeConverter.cs | 6 +- .../DataBoxCustomerDiskCopyLogDetails.cs | 22 +- .../DataBoxCustomerDiskCopyLogDetails.json.cs | 10 +- ...aBoxCustomerDiskCopyProgress.PowerShell.cs | 116 ++-- ...xCustomerDiskCopyProgress.TypeConverter.cs | 6 +- .../DataBoxCustomerDiskCopyProgress.cs | 100 +-- .../DataBoxCustomerDiskCopyProgress.json.cs | 10 +- ...ataBoxCustomerDiskJobDetails.PowerShell.cs | 144 ++-- ...BoxCustomerDiskJobDetails.TypeConverter.cs | 6 +- .../DataBoxCustomerDiskJobDetails.cs | 136 ++-- .../DataBoxCustomerDiskJobDetails.json.cs | 20 +- ...sExportDiskDetailsCollection.PowerShell.cs | 20 +- ...portDiskDetailsCollection.TypeConverter.cs | 6 +- ...skJobDetailsExportDiskDetailsCollection.cs | 8 +- ...sExportDiskDetailsCollection.dictionary.cs | 26 +- ...DetailsExportDiskDetailsCollection.json.cs | 12 +- ...sImportDiskDetailsCollection.PowerShell.cs | 20 +- ...portDiskDetailsCollection.TypeConverter.cs | 6 +- ...skJobDetailsImportDiskDetailsCollection.cs | 8 +- ...sImportDiskDetailsCollection.dictionary.cs | 26 +- ...DetailsImportDiskDetailsCollection.json.cs | 12 +- .../DataBoxDiskCopyLogDetails.PowerShell.cs | 36 +- ...DataBoxDiskCopyLogDetails.TypeConverter.cs | 6 +- .../DataBoxDiskCopyLogDetails.cs | 22 +- .../DataBoxDiskCopyLogDetails.json.cs | 10 +- .../DataBoxDiskCopyProgress.PowerShell.cs | 64 +- .../DataBoxDiskCopyProgress.TypeConverter.cs | 6 +- .../DataBoxDiskCopyProgress.cs | 50 +- .../DataBoxDiskCopyProgress.json.cs | 10 +- ...oxDiskGranularCopyLogDetails.PowerShell.cs | 40 +- ...iskGranularCopyLogDetails.TypeConverter.cs | 6 +- .../DataBoxDiskGranularCopyLogDetails.cs | 24 +- .../DataBoxDiskGranularCopyLogDetails.json.cs | 10 +- ...aBoxDiskGranularCopyProgress.PowerShell.cs | 116 ++-- ...xDiskGranularCopyProgress.TypeConverter.cs | 6 +- .../DataBoxDiskGranularCopyProgress.cs | 100 +-- .../DataBoxDiskGranularCopyProgress.json.cs | 10 +- .../DataBoxDiskJobDetails.PowerShell.cs | 124 ++-- .../DataBoxDiskJobDetails.TypeConverter.cs | 6 +- .../DataBoxDiskJobDetails.cs | 134 ++-- .../DataBoxDiskJobDetails.json.cs | 20 +- ...obDetailsDisksAndSizeDetails.PowerShell.cs | 20 +- ...etailsDisksAndSizeDetails.TypeConverter.cs | 6 +- ...ataBoxDiskJobDetailsDisksAndSizeDetails.cs | 6 +- ...obDetailsDisksAndSizeDetails.dictionary.cs | 4 +- ...xDiskJobDetailsDisksAndSizeDetails.json.cs | 8 +- ...DiskJobDetailsPreferredDisks.PowerShell.cs | 20 +- ...kJobDetailsPreferredDisks.TypeConverter.cs | 6 +- .../DataBoxDiskJobDetailsPreferredDisks.cs | 6 +- ...DiskJobDetailsPreferredDisks.dictionary.cs | 4 +- ...ataBoxDiskJobDetailsPreferredDisks.json.cs | 8 +- .../DataBoxDiskJobSecrets.PowerShell.cs | 72 +- .../DataBoxDiskJobSecrets.TypeConverter.cs | 6 +- .../DataBoxDiskJobSecrets.cs | 58 +- .../DataBoxDiskJobSecrets.json.cs | 12 +- ...oxHeavyAccountCopyLogDetails.PowerShell.cs | 36 +- ...eavyAccountCopyLogDetails.TypeConverter.cs | 6 +- .../DataBoxHeavyAccountCopyLogDetails.cs | 22 +- .../DataBoxHeavyAccountCopyLogDetails.json.cs | 10 +- .../DataBoxHeavyJobDetails.PowerShell.cs | 108 +-- .../DataBoxHeavyJobDetails.TypeConverter.cs | 6 +- .../DataBoxHeavyJobDetails.cs | 88 +-- .../DataBoxHeavyJobDetails.json.cs | 12 +- .../DataBoxHeavyJobSecrets.PowerShell.cs | 64 +- .../DataBoxHeavyJobSecrets.TypeConverter.cs | 6 +- .../DataBoxHeavyJobSecrets.cs | 54 +- .../DataBoxHeavyJobSecrets.json.cs | 12 +- .../DataBoxHeavySecret.PowerShell.cs | 40 +- .../DataBoxHeavySecret.TypeConverter.cs | 6 +- .../DataBoxHeavySecret.cs | 36 +- .../DataBoxHeavySecret.json.cs | 12 +- .../DataBoxJobDetails.PowerShell.cs | 108 +-- .../DataBoxJobDetails.TypeConverter.cs | 6 +- .../DataBoxJobDetails.cs | 88 +-- .../DataBoxJobDetails.json.cs | 12 +- ...xScheduleAvailabilityRequest.PowerShell.cs | 40 +- ...heduleAvailabilityRequest.TypeConverter.cs | 6 +- .../DataBoxScheduleAvailabilityRequest.cs | 27 +- ...DataBoxScheduleAvailabilityRequest.json.cs | 10 +- .../DataBoxSecret.PowerShell.cs | 40 +- .../DataBoxSecret.TypeConverter.cs | 6 +- .../DataBoxSecret.cs | 36 +- .../DataBoxSecret.json.cs | 12 +- .../DataExportDetails.PowerShell.cs | 40 +- .../DataExportDetails.TypeConverter.cs | 6 +- .../DataExportDetails.cs | 28 +- .../DataExportDetails.json.cs | 12 +- .../DataImportDetails.PowerShell.cs | 36 +- .../DataImportDetails.TypeConverter.cs | 6 +- .../DataImportDetails.cs | 18 +- .../DataImportDetails.json.cs | 10 +- ...LocationToServiceLocationMap.PowerShell.cs | 28 +- ...ationToServiceLocationMap.TypeConverter.cs | 6 +- .../DataLocationToServiceLocationMap.cs | 10 +- .../DataLocationToServiceLocationMap.json.cs | 8 +- ...sferDetailsValidationRequest.PowerShell.cs | 48 +- ...rDetailsValidationRequest.TypeConverter.cs | 6 +- .../DataTransferDetailsValidationRequest.cs | 62 +- ...taTransferDetailsValidationRequest.json.cs | 16 +- ...ValidationResponseProperties.PowerShell.cs | 52 +- ...idationResponseProperties.TypeConverter.cs | 6 +- ...sferDetailsValidationResponseProperties.cs | 36 +- ...etailsValidationResponseProperties.json.cs | 10 +- .../DataboxJobSecrets.PowerShell.cs | 64 +- .../DataboxJobSecrets.TypeConverter.cs | 6 +- .../DataboxJobSecrets.cs | 52 +- .../DataboxJobSecrets.json.cs | 12 +- ...erAddressInstructionResponse.PowerShell.cs | 36 +- ...ddressInstructionResponse.TypeConverter.cs | 6 +- .../DatacenterAddressInstructionResponse.cs | 26 +- ...tacenterAddressInstructionResponse.json.cs | 10 +- ...enterAddressLocationResponse.PowerShell.cs | 84 +-- ...erAddressLocationResponse.TypeConverter.cs | 6 +- .../DatacenterAddressLocationResponse.cs | 50 +- .../DatacenterAddressLocationResponse.json.cs | 10 +- .../DatacenterAddressRequest.PowerShell.cs | 36 +- .../DatacenterAddressRequest.TypeConverter.cs | 6 +- .../DatacenterAddressRequest.cs | 32 +- .../DatacenterAddressRequest.json.cs | 10 +- .../DatacenterAddressResponse.PowerShell.cs | 32 +- ...DatacenterAddressResponse.TypeConverter.cs | 6 +- .../DatacenterAddressResponse.cs | 10 +- .../DatacenterAddressResponse.json.cs | 10 +- .../DcAccessSecurityCode.PowerShell.cs | 28 +- .../DcAccessSecurityCode.TypeConverter.cs | 6 +- .../DcAccessSecurityCode.cs | 6 +- .../DcAccessSecurityCode.json.cs | 8 +- .../Details.PowerShell.cs | 28 +- .../Details.TypeConverter.cs | 6 +- .../{Api20221201 => Api20250201}/Details.cs | 6 +- .../Details.json.cs | 8 +- .../DeviceCapabilityDetails.PowerShell.cs | 144 ++++ .../DeviceCapabilityDetails.TypeConverter.cs | 147 ++++ .../Api20250201/DeviceCapabilityDetails.cs | 54 ++ .../DeviceCapabilityDetails.json.cs | 111 +++ .../DeviceCapabilityRequest.PowerShell.cs | 152 ++++ .../DeviceCapabilityRequest.TypeConverter.cs | 147 ++++ .../Api20250201/DeviceCapabilityRequest.cs | 77 +++ .../DeviceCapabilityRequest.json.cs | 110 +++ .../DeviceCapabilityResponse.PowerShell.cs | 144 ++++ .../DeviceCapabilityResponse.TypeConverter.cs | 147 ++++ .../Api20250201/DeviceCapabilityResponse.cs | 54 ++ .../DeviceCapabilityResponse.json.cs | 119 ++++ .../DeviceErasureDetails.PowerShell.cs | 28 +- .../DeviceErasureDetails.TypeConverter.cs | 6 +- .../DeviceErasureDetails.cs | 10 +- .../DeviceErasureDetails.json.cs | 8 +- ...kScheduleAvailabilityRequest.PowerShell.cs | 44 +- ...heduleAvailabilityRequest.TypeConverter.cs | 6 +- .../DiskScheduleAvailabilityRequest.cs | 27 +- .../DiskScheduleAvailabilityRequest.json.cs | 10 +- .../DiskSecret.PowerShell.cs | 28 +- .../DiskSecret.TypeConverter.cs | 6 +- .../DiskSecret.cs | 10 +- .../DiskSecret.json.cs | 8 +- .../EncryptionPreferences.PowerShell.cs | 28 +- .../EncryptionPreferences.TypeConverter.cs | 6 +- .../EncryptionPreferences.cs | 6 +- .../EncryptionPreferences.json.cs | 8 +- .../ErrorDetail.PowerShell.cs | 36 +- .../ErrorDetail.TypeConverter.cs | 6 +- .../ErrorDetail.cs | 16 +- .../ErrorDetail.json.cs | 10 +- .../ExportDiskDetails.PowerShell.cs | 32 +- .../ExportDiskDetails.TypeConverter.cs | 6 +- .../ExportDiskDetails.cs | 12 +- .../ExportDiskDetails.json.cs | 8 +- .../FilterFileDetails.PowerShell.cs | 28 +- .../FilterFileDetails.TypeConverter.cs | 6 +- .../FilterFileDetails.cs | 6 +- .../FilterFileDetails.json.cs | 8 +- .../GranularCopyLogDetails.PowerShell.cs | 24 +- .../GranularCopyLogDetails.TypeConverter.cs | 6 +- .../GranularCopyLogDetails.cs | 6 +- .../GranularCopyLogDetails.json.cs | 10 +- .../GranularCopyProgress.PowerShell.cs | 108 +-- .../GranularCopyProgress.TypeConverter.cs | 6 +- .../GranularCopyProgress.cs | 72 +- .../GranularCopyProgress.json.cs | 10 +- ...yScheduleAvailabilityRequest.PowerShell.cs | 40 +- ...heduleAvailabilityRequest.TypeConverter.cs | 6 +- .../HeavyScheduleAvailabilityRequest.cs | 27 +- .../HeavyScheduleAvailabilityRequest.json.cs | 10 +- .../IdentityProperties.PowerShell.cs | 32 +- .../IdentityProperties.TypeConverter.cs | 6 +- .../IdentityProperties.cs | 16 +- .../IdentityProperties.json.cs | 10 +- .../ImportDiskDetails.PowerShell.cs | 36 +- .../ImportDiskDetails.TypeConverter.cs | 6 +- .../ImportDiskDetails.cs | 8 +- .../ImportDiskDetails.json.cs | 8 +- .../Api20250201/JobDelayDetails.PowerShell.cs | 176 +++++ .../JobDelayDetails.TypeConverter.cs | 147 ++++ .../api/Models/Api20250201/JobDelayDetails.cs | 134 ++++ .../Api20250201/JobDelayDetails.json.cs | 131 ++++ .../JobDeliveryInfo.PowerShell.cs | 24 +- .../JobDeliveryInfo.TypeConverter.cs | 6 +- .../JobDeliveryInfo.cs | 6 +- .../JobDeliveryInfo.json.cs | 8 +- .../JobDetails.PowerShell.cs | 100 +-- .../JobDetails.TypeConverter.cs | 6 +- .../JobDetails.cs | 168 ++--- .../JobDetails.json.cs | 38 +- .../JobProperties.PowerShell.cs | 120 ++-- .../JobProperties.TypeConverter.cs | 6 +- .../JobProperties.cs | 120 ++-- .../JobProperties.json.cs | 24 +- .../JobResource.PowerShell.cs | 216 +++--- .../JobResource.TypeConverter.cs | 6 +- .../JobResource.cs | 218 +++--- .../JobResource.json.cs | 14 +- .../JobResourceList.PowerShell.cs | 28 +- .../JobResourceList.TypeConverter.cs | 6 +- .../JobResourceList.cs | 16 +- .../JobResourceList.json.cs | 10 +- .../JobResourceUpdateParameter.PowerShell.cs | 160 ++--- ...obResourceUpdateParameter.TypeConverter.cs | 6 +- .../JobResourceUpdateParameter.cs | 152 ++-- .../JobResourceUpdateParameter.json.cs | 14 +- ...bResourceUpdateParameterTags.PowerShell.cs | 20 +- ...sourceUpdateParameterTags.TypeConverter.cs | 6 +- .../JobResourceUpdateParameterTags.cs | 6 +- ...bResourceUpdateParameterTags.dictionary.cs | 4 +- .../JobResourceUpdateParameterTags.json.cs | 8 +- .../JobSecrets.PowerShell.cs | 60 +- .../JobSecrets.TypeConverter.cs | 6 +- .../JobSecrets.cs | 52 +- .../JobSecrets.json.cs | 14 +- .../JobStages.PowerShell.cs | 48 +- .../JobStages.TypeConverter.cs | 6 +- .../{Api20221201 => Api20250201}/JobStages.cs | 36 +- .../JobStages.json.cs | 21 +- .../KeyEncryptionKey.PowerShell.cs | 36 +- .../KeyEncryptionKey.TypeConverter.cs | 6 +- .../KeyEncryptionKey.cs | 16 +- .../KeyEncryptionKey.json.cs | 10 +- .../LastMitigationActionOnJob.PowerShell.cs | 32 +- ...LastMitigationActionOnJob.TypeConverter.cs | 6 +- .../LastMitigationActionOnJob.cs | 6 +- .../LastMitigationActionOnJob.json.cs | 8 +- .../ManagedDiskDetails.PowerShell.cs | 36 +- .../ManagedDiskDetails.TypeConverter.cs | 6 +- .../ManagedDiskDetails.cs | 18 +- .../ManagedDiskDetails.json.cs | 10 +- .../MarkDevicesShippedRequest.PowerShell.cs | 32 +- ...MarkDevicesShippedRequest.TypeConverter.cs | 6 +- .../MarkDevicesShippedRequest.cs | 18 +- .../MarkDevicesShippedRequest.json.cs | 10 +- .../MitigateJobRequest.PowerShell.cs | 28 +- .../MitigateJobRequest.TypeConverter.cs | 6 +- .../MitigateJobRequest.cs | 16 +- .../MitigateJobRequest.json.cs | 10 +- ...lNumberCustomerResolutionMap.PowerShell.cs | 20 +- ...mberCustomerResolutionMap.TypeConverter.cs | 6 +- ...equestSerialNumberCustomerResolutionMap.cs | 6 +- ...lNumberCustomerResolutionMap.dictionary.cs | 4 +- ...tSerialNumberCustomerResolutionMap.json.cs | 8 +- .../NotificationPreference.PowerShell.cs | 28 +- .../NotificationPreference.TypeConverter.cs | 6 +- .../NotificationPreference.cs | 6 +- .../NotificationPreference.json.cs | 8 +- .../Operation.PowerShell.cs | 56 +- .../Operation.TypeConverter.cs | 6 +- .../{Api20221201 => Api20250201}/Operation.cs | 28 +- .../Operation.json.cs | 10 +- .../OperationDisplay.PowerShell.cs | 36 +- .../OperationDisplay.TypeConverter.cs | 6 +- .../OperationDisplay.cs | 6 +- .../OperationDisplay.json.cs | 8 +- .../OperationList.PowerShell.cs | 28 +- .../OperationList.TypeConverter.cs | 6 +- .../OperationList.cs | 18 +- .../OperationList.json.cs | 10 +- .../PackageCarrierDetails.PowerShell.cs | 32 +- .../PackageCarrierDetails.TypeConverter.cs | 6 +- .../PackageCarrierDetails.cs | 6 +- .../PackageCarrierDetails.json.cs | 8 +- .../PackageCarrierInfo.PowerShell.cs | 28 +- .../PackageCarrierInfo.TypeConverter.cs | 6 +- .../PackageCarrierInfo.cs | 6 +- .../PackageCarrierInfo.json.cs | 8 +- .../PackageShippingDetails.PowerShell.cs | 32 +- .../PackageShippingDetails.TypeConverter.cs | 6 +- .../PackageShippingDetails.cs | 12 +- .../PackageShippingDetails.json.cs | 8 +- .../Preferences.PowerShell.cs | 64 +- .../Preferences.TypeConverter.cs | 6 +- .../Preferences.cs | 46 +- .../Preferences.json.cs | 14 +- ...PreferencesValidationRequest.PowerShell.cs | 84 ++- ...ferencesValidationRequest.TypeConverter.cs | 6 +- .../PreferencesValidationRequest.cs | 82 ++- .../PreferencesValidationRequest.json.cs | 14 +- ...ValidationResponseProperties.PowerShell.cs | 52 +- ...idationResponseProperties.TypeConverter.cs | 6 +- ...PreferencesValidationResponseProperties.cs | 36 +- ...rencesValidationResponseProperties.json.cs | 10 +- .../RegionConfigurationRequest.PowerShell.cs | 104 ++- ...egionConfigurationRequest.TypeConverter.cs | 6 +- .../Api20250201/RegionConfigurationRequest.cs | 284 ++++++++ .../RegionConfigurationRequest.json.cs | 16 +- .../RegionConfigurationResponse.PowerShell.cs | 68 +- ...gionConfigurationResponse.TypeConverter.cs | 6 +- .../RegionConfigurationResponse.cs | 83 ++- .../RegionConfigurationResponse.json.cs | 19 +- .../Resource.PowerShell.cs | 72 +- .../Resource.TypeConverter.cs | 6 +- .../{Api20221201 => Api20250201}/Resource.cs | 79 ++- .../Resource.json.cs | 14 +- .../ResourceIdentity.PowerShell.cs | 36 +- .../ResourceIdentity.TypeConverter.cs | 6 +- .../ResourceIdentity.cs | 20 +- .../ResourceIdentity.json.cs | 10 +- ...entityUserAssignedIdentities.PowerShell.cs | 20 +- ...ityUserAssignedIdentities.TypeConverter.cs | 6 +- .../ResourceIdentityUserAssignedIdentities.cs | 8 +- ...entityUserAssignedIdentities.dictionary.cs | 26 +- ...urceIdentityUserAssignedIdentities.json.cs | 12 +- .../ResourceTags.PowerShell.cs | 20 +- .../ResourceTags.TypeConverter.cs | 6 +- .../ResourceTags.cs | 6 +- .../ResourceTags.dictionary.cs | 4 +- .../ResourceTags.json.cs | 8 +- .../ReverseShippingDetails.PowerShell.cs | 48 +- .../ReverseShippingDetails.TypeConverter.cs | 6 +- .../ReverseShippingDetails.cs | 34 +- .../ReverseShippingDetails.json.cs | 12 +- .../ScheduleAvailabilityRequest.PowerShell.cs | 40 +- ...heduleAvailabilityRequest.TypeConverter.cs | 6 +- .../ScheduleAvailabilityRequest.cs | 32 +- .../ScheduleAvailabilityRequest.json.cs | 12 +- ...ScheduleAvailabilityResponse.PowerShell.cs | 24 +- ...eduleAvailabilityResponse.TypeConverter.cs | 6 +- .../ScheduleAvailabilityResponse.cs | 8 +- .../ScheduleAvailabilityResponse.json.cs | 8 +- .../ShareCredentialDetails.PowerShell.cs | 40 +- .../ShareCredentialDetails.TypeConverter.cs | 6 +- .../ShareCredentialDetails.cs | 16 +- .../ShareCredentialDetails.json.cs | 8 +- .../ShipmentPickUpRequest.PowerShell.cs | 32 +- .../ShipmentPickUpRequest.TypeConverter.cs | 6 +- .../ShipmentPickUpRequest.cs | 6 +- .../ShipmentPickUpRequest.json.cs | 8 +- .../ShipmentPickUpResponse.PowerShell.cs | 28 +- .../ShipmentPickUpResponse.TypeConverter.cs | 6 +- .../ShipmentPickUpResponse.cs | 10 +- .../ShipmentPickUpResponse.json.cs | 8 +- .../ShippingAddress.PowerShell.cs | 68 +- .../ShippingAddress.TypeConverter.cs | 6 +- .../ShippingAddress.cs | 6 +- .../ShippingAddress.json.cs | 8 +- .../Sku.PowerShell.cs | 40 +- .../Sku.TypeConverter.cs | 6 +- .../{Api20221201 => Api20250201}/Sku.cs | 32 +- .../{Api20221201 => Api20250201}/Sku.json.cs | 10 +- ...vailabilityValidationRequest.PowerShell.cs | 48 +- ...labilityValidationRequest.TypeConverter.cs | 6 +- .../SkuAvailabilityValidationRequest.cs | 42 +- .../SkuAvailabilityValidationRequest.json.cs | 12 +- ...ValidationResponseProperties.PowerShell.cs | 52 +- ...idationResponseProperties.TypeConverter.cs | 6 +- ...vailabilityValidationResponseProperties.cs | 36 +- ...bilityValidationResponseProperties.json.cs | 10 +- .../SkuCapacity.PowerShell.cs | 36 +- .../SkuCapacity.TypeConverter.cs | 6 +- .../SkuCapacity.cs | 30 +- .../SkuCapacity.json.cs | 13 +- .../SkuCost.PowerShell.cs | 32 +- .../SkuCost.TypeConverter.cs | 6 +- .../{Api20221201 => Api20250201}/SkuCost.cs | 12 +- .../SkuCost.json.cs | 8 +- .../SkuInformation.PowerShell.cs | 100 +-- .../SkuInformation.TypeConverter.cs | 6 +- .../SkuInformation.cs | 122 ++-- .../SkuInformation.json.cs | 12 +- .../SkuProperties.PowerShell.cs | 68 +- .../SkuProperties.TypeConverter.cs | 6 +- .../SkuProperties.cs | 73 +- .../SkuProperties.json.cs | 14 +- .../StorageAccountDetails.PowerShell.cs | 32 +- .../StorageAccountDetails.TypeConverter.cs | 6 +- .../StorageAccountDetails.cs | 18 +- .../StorageAccountDetails.json.cs | 10 +- ...ToCreateJobValidationRequest.PowerShell.cs | 24 +- ...reateJobValidationRequest.TypeConverter.cs | 6 +- ...onIsAllowedToCreateJobValidationRequest.cs | 16 +- ...llowedToCreateJobValidationRequest.json.cs | 10 +- ...ValidationResponseProperties.PowerShell.cs | 52 +- ...idationResponseProperties.TypeConverter.cs | 6 +- ...ToCreateJobValidationResponseProperties.cs | 36 +- ...ateJobValidationResponseProperties.json.cs | 10 +- .../SystemData.PowerShell.cs | 44 +- .../SystemData.TypeConverter.cs | 6 +- .../SystemData.cs | 18 +- .../SystemData.json.cs | 8 +- .../TransferAllDetails.PowerShell.cs | 32 +- .../TransferAllDetails.TypeConverter.cs | 6 +- .../TransferAllDetails.cs | 6 +- .../TransferAllDetails.json.cs | 8 +- .../TransferConfiguration.PowerShell.cs | 32 +- .../TransferConfiguration.TypeConverter.cs | 6 +- .../TransferConfiguration.cs | 26 +- .../TransferConfiguration.json.cs | 12 +- ...figurationTransferAllDetails.PowerShell.cs | 36 +- ...urationTransferAllDetails.TypeConverter.cs | 6 +- ...TransferConfigurationTransferAllDetails.cs | 20 +- ...ferConfigurationTransferAllDetails.json.cs | 10 +- ...urationTransferFilterDetails.PowerShell.cs | 64 +- ...tionTransferFilterDetails.TypeConverter.cs | 6 +- ...nsferConfigurationTransferFilterDetails.cs | 44 +- ...ConfigurationTransferFilterDetails.json.cs | 10 +- .../TransferFilterDetails.PowerShell.cs | 60 +- .../TransferFilterDetails.TypeConverter.cs | 6 +- .../TransferFilterDetails.cs | 44 +- .../TransferFilterDetails.json.cs | 14 +- ...TransportAvailabilityDetails.PowerShell.cs | 24 +- ...nsportAvailabilityDetails.TypeConverter.cs | 6 +- .../TransportAvailabilityDetails.cs | 8 +- .../TransportAvailabilityDetails.json.cs | 8 +- ...TransportAvailabilityRequest.PowerShell.cs | 32 +- ...nsportAvailabilityRequest.TypeConverter.cs | 6 +- .../TransportAvailabilityRequest.cs | 32 +- .../TransportAvailabilityRequest.json.cs | 10 +- ...ransportAvailabilityResponse.PowerShell.cs | 24 +- ...sportAvailabilityResponse.TypeConverter.cs | 6 +- .../TransportAvailabilityResponse.cs | 18 +- .../TransportAvailabilityResponse.json.cs | 10 +- .../TransportPreferences.PowerShell.cs | 28 +- .../TransportPreferences.TypeConverter.cs | 6 +- .../TransportPreferences.cs | 8 +- .../TransportPreferences.json.cs | 8 +- .../UnencryptedCredentials.PowerShell.cs | 68 +- .../UnencryptedCredentials.TypeConverter.cs | 6 +- .../UnencryptedCredentials.cs | 56 +- .../UnencryptedCredentials.json.cs | 10 +- .../UnencryptedCredentialsList.PowerShell.cs | 28 +- ...nencryptedCredentialsList.TypeConverter.cs | 6 +- .../UnencryptedCredentialsList.cs | 16 +- .../UnencryptedCredentialsList.json.cs | 10 +- .../UpdateJobDetails.PowerShell.cs | 128 ++-- .../UpdateJobDetails.TypeConverter.cs | 6 +- .../UpdateJobDetails.cs | 122 ++-- .../UpdateJobDetails.json.cs | 20 +- .../UpdateJobProperties.PowerShell.cs | 132 ++-- .../UpdateJobProperties.TypeConverter.cs | 6 +- .../UpdateJobProperties.cs | 112 +-- .../UpdateJobProperties.json.cs | 10 +- .../UserAssignedIdentity.PowerShell.cs | 28 +- .../UserAssignedIdentity.TypeConverter.cs | 6 +- .../UserAssignedIdentity.cs | 10 +- .../UserAssignedIdentity.json.cs | 8 +- .../UserAssignedProperties.PowerShell.cs | 24 +- .../UserAssignedProperties.TypeConverter.cs | 6 +- .../UserAssignedProperties.cs | 6 +- .../UserAssignedProperties.json.cs | 8 +- .../ValidateAddress.PowerShell.cs | 52 +- .../ValidateAddress.TypeConverter.cs | 6 +- .../ValidateAddress.cs | 66 +- .../ValidateAddress.json.cs | 16 +- .../ValidationInputRequest.PowerShell.cs | 24 +- .../ValidationInputRequest.TypeConverter.cs | 6 +- .../ValidationInputRequest.cs | 6 +- .../ValidationInputRequest.json.cs | 10 +- .../ValidationInputResponse.PowerShell.cs | 48 +- .../ValidationInputResponse.TypeConverter.cs | 6 +- .../ValidationInputResponse.cs | 40 +- .../ValidationInputResponse.json.cs | 12 +- .../ValidationRequest.PowerShell.cs | 28 +- .../ValidationRequest.TypeConverter.cs | 6 +- .../ValidationRequest.cs | 18 +- .../ValidationRequest.json.cs | 12 +- .../ValidationResponse.PowerShell.cs | 32 +- .../ValidationResponse.TypeConverter.cs | 6 +- .../ValidationResponse.cs | 28 +- .../ValidationResponse.json.cs | 10 +- ...ValidationResponseProperties.PowerShell.cs | 28 +- ...idationResponseProperties.TypeConverter.cs | 6 +- .../ValidationResponseProperties.cs | 20 +- .../ValidationResponseProperties.json.cs | 10 +- .../api/Support/DataCenterCode.Completer.cs | 36 + .../generated/api/Support/DataCenterCode.cs | 18 + .../DelayNotificationStatus.Completer.cs | 39 ++ .../DelayNotificationStatus.TypeConverter.cs | 59 ++ .../api/Support/DelayNotificationStatus.cs | 100 +++ .../Support/HardwareEncryption.Completer.cs | 2 +- .../HardwareEncryption.TypeConverter.cs | 2 +- .../api/Support/HardwareEncryption.cs | 4 +- .../api/Support/ModelName.Completer.cs | 58 ++ .../api/Support/ModelName.TypeConverter.cs | 62 ++ .../generated/api/Support/ModelName.cs | 115 +++ .../Support/PortalDelayErrorCode.Completer.cs | 47 ++ .../PortalDelayErrorCode.TypeConverter.cs | 59 ++ .../api/Support/PortalDelayErrorCode.cs | 106 +++ .../cmdlets/GetAzDataBoxJobCredential_List.cs | 22 +- .../generated/cmdlets/GetAzDataBoxJob_Get.cs | 24 +- .../generated/cmdlets/GetAzDataBoxJob_List.cs | 22 +- .../cmdlets/GetAzDataBoxJob_List1.cs | 22 +- .../cmdlets/GetAzDataBoxOperation_List.cs | 22 +- .../cmdlets/NewAzDataBoxJob_CreateExpanded.cs | 53 +- .../cmdlets/RemoveAzDataBoxJob_Delete.cs | 12 +- .../StopAzDataBoxJob_CancelExpanded.cs | 14 +- .../UpdateAzDataBoxJob_UpdateExpanded.cs | 50 +- .../internal/Get-AzDataBoxOperation.ps1 | 4 +- .../internal/ProxyCmdletDefinitions.ps1 | 4 +- .../DataBox.Autorest/resources/README.md | 11 + 619 files changed, 11109 insertions(+), 7280 deletions(-) delete mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationRequest.cs rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AccountCredentialDetails.PowerShell.cs (83%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AccountCredentialDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AccountCredentialDetails.cs (89%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AccountCredentialDetails.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AdditionalErrorInfo.PowerShell.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AdditionalErrorInfo.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AdditionalErrorInfo.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AdditionalErrorInfo.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AddressValidationOutput.PowerShell.cs (73%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AddressValidationOutput.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AddressValidationOutput.cs (77%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AddressValidationOutput.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AddressValidationProperties.PowerShell.cs (75%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AddressValidationProperties.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AddressValidationProperties.cs (77%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AddressValidationProperties.json.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ApiError.PowerShell.cs (78%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ApiError.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ApiError.cs (77%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ApiError.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ApplianceNetworkConfiguration.PowerShell.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ApplianceNetworkConfiguration.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ApplianceNetworkConfiguration.cs (93%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ApplianceNetworkConfiguration.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ArmBaseObject.PowerShell.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ArmBaseObject.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ArmBaseObject.cs (93%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ArmBaseObject.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AvailableSkuRequest.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AvailableSkuRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AvailableSkuRequest.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AvailableSkuRequest.json.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AvailableSkusResult.PowerShell.cs (84%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AvailableSkusResult.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AvailableSkusResult.cs (87%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AvailableSkusResult.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AzureFileFilterDetails.PowerShell.cs (87%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AzureFileFilterDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AzureFileFilterDetails.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/AzureFileFilterDetails.json.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/BlobFilterDetails.PowerShell.cs (87%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/BlobFilterDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/BlobFilterDetails.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/BlobFilterDetails.json.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CancellationReason.PowerShell.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CancellationReason.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CancellationReason.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CancellationReason.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CloudError.PowerShell.cs (78%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CloudError.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CloudError.cs (87%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CloudError.json.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ContactDetails.PowerShell.cs (80%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ContactDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ContactDetails.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ContactDetails.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ContactInfo.PowerShell.cs (84%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ContactInfo.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ContactInfo.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ContactInfo.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CopyLogDetails.PowerShell.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CopyLogDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CopyLogDetails.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CopyLogDetails.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CopyProgress.PowerShell.cs (74%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CopyProgress.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CopyProgress.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CopyProgress.json.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CreateJobValidations.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CreateJobValidations.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CreateJobValidations.cs (82%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CreateJobValidations.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CreateOrderLimitForSubscriptionValidationRequest.PowerShell.cs (81%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CreateOrderLimitForSubscriptionValidationRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CreateOrderLimitForSubscriptionValidationRequest.cs (63%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CreateOrderLimitForSubscriptionValidationRequest.json.cs (91%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CreateOrderLimitForSubscriptionValidationResponseProperties.PowerShell.cs (78%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CreateOrderLimitForSubscriptionValidationResponseProperties.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CreateOrderLimitForSubscriptionValidationResponseProperties.cs (78%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CreateOrderLimitForSubscriptionValidationResponseProperties.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CustomerDiskJobSecrets.PowerShell.cs (73%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CustomerDiskJobSecrets.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CustomerDiskJobSecrets.cs (75%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/CustomerDiskJobSecrets.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataAccountDetails.PowerShell.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataAccountDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataAccountDetails.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataAccountDetails.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxAccountCopyLogDetails.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxAccountCopyLogDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxAccountCopyLogDetails.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxAccountCopyLogDetails.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskCopyLogDetails.PowerShell.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskCopyLogDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskCopyLogDetails.cs (89%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskCopyLogDetails.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskCopyProgress.PowerShell.cs (74%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskCopyProgress.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskCopyProgress.cs (72%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskCopyProgress.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskJobDetails.PowerShell.cs (67%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskJobDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskJobDetails.cs (74%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskJobDetails.json.cs (93%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.PowerShell.cs (93%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.dictionary.cs (82%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.json.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.PowerShell.cs (93%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.dictionary.cs (82%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.json.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskCopyLogDetails.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskCopyLogDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskCopyLogDetails.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskCopyLogDetails.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskCopyProgress.PowerShell.cs (76%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskCopyProgress.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskCopyProgress.cs (84%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskCopyProgress.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskGranularCopyLogDetails.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskGranularCopyLogDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskGranularCopyLogDetails.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskGranularCopyLogDetails.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskGranularCopyProgress.PowerShell.cs (75%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskGranularCopyProgress.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskGranularCopyProgress.cs (74%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskGranularCopyProgress.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobDetails.PowerShell.cs (65%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobDetails.cs (72%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobDetails.json.cs (91%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobDetailsDisksAndSizeDetails.PowerShell.cs (93%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobDetailsDisksAndSizeDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobDetailsDisksAndSizeDetails.cs (93%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobDetailsDisksAndSizeDetails.dictionary.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobDetailsDisksAndSizeDetails.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobDetailsPreferredDisks.PowerShell.cs (93%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobDetailsPreferredDisks.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobDetailsPreferredDisks.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobDetailsPreferredDisks.dictionary.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobDetailsPreferredDisks.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobSecrets.PowerShell.cs (72%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobSecrets.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobSecrets.cs (76%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxDiskJobSecrets.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavyAccountCopyLogDetails.PowerShell.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavyAccountCopyLogDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavyAccountCopyLogDetails.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavyAccountCopyLogDetails.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavyJobDetails.PowerShell.cs (66%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavyJobDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavyJobDetails.cs (73%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavyJobDetails.json.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavyJobSecrets.PowerShell.cs (73%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavyJobSecrets.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavyJobSecrets.cs (72%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavyJobSecrets.json.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavySecret.PowerShell.cs (80%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavySecret.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavySecret.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxHeavySecret.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxJobDetails.PowerShell.cs (66%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxJobDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxJobDetails.cs (73%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxJobDetails.json.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxScheduleAvailabilityRequest.PowerShell.cs (80%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxScheduleAvailabilityRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxScheduleAvailabilityRequest.cs (71%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxScheduleAvailabilityRequest.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxSecret.PowerShell.cs (79%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxSecret.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxSecret.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataBoxSecret.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataExportDetails.PowerShell.cs (81%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataExportDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataExportDetails.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataExportDetails.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataImportDetails.PowerShell.cs (84%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataImportDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataImportDetails.cs (91%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataImportDetails.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataLocationToServiceLocationMap.PowerShell.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataLocationToServiceLocationMap.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataLocationToServiceLocationMap.cs (93%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataLocationToServiceLocationMap.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataTransferDetailsValidationRequest.PowerShell.cs (76%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataTransferDetailsValidationRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataTransferDetailsValidationRequest.cs (71%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataTransferDetailsValidationRequest.json.cs (89%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataTransferDetailsValidationResponseProperties.PowerShell.cs (78%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataTransferDetailsValidationResponseProperties.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataTransferDetailsValidationResponseProperties.cs (77%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataTransferDetailsValidationResponseProperties.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataboxJobSecrets.PowerShell.cs (73%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataboxJobSecrets.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataboxJobSecrets.cs (73%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DataboxJobSecrets.json.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressInstructionResponse.PowerShell.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressInstructionResponse.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressInstructionResponse.cs (84%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressInstructionResponse.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressLocationResponse.PowerShell.cs (78%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressLocationResponse.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressLocationResponse.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressLocationResponse.json.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressRequest.PowerShell.cs (80%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressRequest.cs (64%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressRequest.json.cs (92%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressResponse.PowerShell.cs (87%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressResponse.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressResponse.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DatacenterAddressResponse.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DcAccessSecurityCode.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DcAccessSecurityCode.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DcAccessSecurityCode.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DcAccessSecurityCode.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Details.PowerShell.cs (87%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Details.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Details.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Details.json.cs (97%) create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.PowerShell.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.TypeConverter.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.json.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.PowerShell.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.TypeConverter.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.json.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.PowerShell.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.TypeConverter.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.json.cs rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DeviceErasureDetails.PowerShell.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DeviceErasureDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DeviceErasureDetails.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DeviceErasureDetails.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DiskScheduleAvailabilityRequest.PowerShell.cs (79%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DiskScheduleAvailabilityRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DiskScheduleAvailabilityRequest.cs (77%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DiskScheduleAvailabilityRequest.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DiskSecret.PowerShell.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DiskSecret.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DiskSecret.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/DiskSecret.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/EncryptionPreferences.PowerShell.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/EncryptionPreferences.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/EncryptionPreferences.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/EncryptionPreferences.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ErrorDetail.PowerShell.cs (81%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ErrorDetail.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ErrorDetail.cs (92%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ErrorDetail.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ExportDiskDetails.PowerShell.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ExportDiskDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ExportDiskDetails.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ExportDiskDetails.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/FilterFileDetails.PowerShell.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/FilterFileDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/FilterFileDetails.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/FilterFileDetails.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/GranularCopyLogDetails.PowerShell.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/GranularCopyLogDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/GranularCopyLogDetails.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/GranularCopyLogDetails.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/GranularCopyProgress.PowerShell.cs (75%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/GranularCopyProgress.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/GranularCopyProgress.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/GranularCopyProgress.json.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/HeavyScheduleAvailabilityRequest.PowerShell.cs (79%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/HeavyScheduleAvailabilityRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/HeavyScheduleAvailabilityRequest.cs (71%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/HeavyScheduleAvailabilityRequest.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/IdentityProperties.PowerShell.cs (84%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/IdentityProperties.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/IdentityProperties.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/IdentityProperties.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ImportDiskDetails.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ImportDiskDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ImportDiskDetails.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ImportDiskDetails.json.cs (97%) create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.PowerShell.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.TypeConverter.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.json.cs rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobDeliveryInfo.PowerShell.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobDeliveryInfo.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobDeliveryInfo.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobDeliveryInfo.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobDetails.PowerShell.cs (66%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobDetails.cs (80%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobDetails.json.cs (92%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobProperties.PowerShell.cs (69%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobProperties.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobProperties.cs (80%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobProperties.json.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResource.PowerShell.cs (66%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResource.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResource.cs (75%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResource.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResourceList.PowerShell.cs (84%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResourceList.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResourceList.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResourceList.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResourceUpdateParameter.PowerShell.cs (71%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResourceUpdateParameter.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResourceUpdateParameter.cs (80%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResourceUpdateParameter.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResourceUpdateParameterTags.PowerShell.cs (92%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResourceUpdateParameterTags.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResourceUpdateParameterTags.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResourceUpdateParameterTags.dictionary.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobResourceUpdateParameterTags.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobSecrets.PowerShell.cs (74%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobSecrets.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobSecrets.cs (80%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobSecrets.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobStages.PowerShell.cs (76%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobStages.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobStages.cs (78%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/JobStages.json.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/KeyEncryptionKey.PowerShell.cs (83%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/KeyEncryptionKey.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/KeyEncryptionKey.cs (93%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/KeyEncryptionKey.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/LastMitigationActionOnJob.PowerShell.cs (87%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/LastMitigationActionOnJob.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/LastMitigationActionOnJob.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/LastMitigationActionOnJob.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ManagedDiskDetails.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ManagedDiskDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ManagedDiskDetails.cs (91%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ManagedDiskDetails.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/MarkDevicesShippedRequest.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/MarkDevicesShippedRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/MarkDevicesShippedRequest.cs (83%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/MarkDevicesShippedRequest.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/MitigateJobRequest.PowerShell.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/MitigateJobRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/MitigateJobRequest.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/MitigateJobRequest.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/MitigateJobRequestSerialNumberCustomerResolutionMap.PowerShell.cs (93%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/MitigateJobRequestSerialNumberCustomerResolutionMap.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/MitigateJobRequestSerialNumberCustomerResolutionMap.cs (92%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/MitigateJobRequestSerialNumberCustomerResolutionMap.dictionary.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/MitigateJobRequestSerialNumberCustomerResolutionMap.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/NotificationPreference.PowerShell.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/NotificationPreference.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/NotificationPreference.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/NotificationPreference.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Operation.PowerShell.cs (79%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Operation.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Operation.cs (89%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Operation.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/OperationDisplay.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/OperationDisplay.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/OperationDisplay.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/OperationDisplay.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/OperationList.PowerShell.cs (84%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/OperationList.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/OperationList.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/OperationList.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PackageCarrierDetails.PowerShell.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PackageCarrierDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PackageCarrierDetails.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PackageCarrierDetails.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PackageCarrierInfo.PowerShell.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PackageCarrierInfo.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PackageCarrierInfo.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PackageCarrierInfo.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PackageShippingDetails.PowerShell.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PackageShippingDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PackageShippingDetails.cs (93%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PackageShippingDetails.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Preferences.PowerShell.cs (79%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Preferences.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Preferences.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Preferences.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PreferencesValidationRequest.PowerShell.cs (76%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PreferencesValidationRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PreferencesValidationRequest.cs (77%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PreferencesValidationRequest.json.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PreferencesValidationResponseProperties.PowerShell.cs (77%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PreferencesValidationResponseProperties.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PreferencesValidationResponseProperties.cs (78%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/PreferencesValidationResponseProperties.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/RegionConfigurationRequest.PowerShell.cs (57%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/RegionConfigurationRequest.TypeConverter.cs (98%) create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationRequest.cs rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/RegionConfigurationRequest.json.cs (89%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/RegionConfigurationResponse.PowerShell.cs (69%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/RegionConfigurationResponse.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/RegionConfigurationResponse.cs (64%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/RegionConfigurationResponse.json.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Resource.PowerShell.cs (70%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Resource.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Resource.cs (72%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Resource.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ResourceIdentity.PowerShell.cs (83%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ResourceIdentity.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ResourceIdentity.cs (89%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ResourceIdentity.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ResourceIdentityUserAssignedIdentities.PowerShell.cs (92%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ResourceIdentityUserAssignedIdentities.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ResourceIdentityUserAssignedIdentities.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ResourceIdentityUserAssignedIdentities.dictionary.cs (82%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ResourceIdentityUserAssignedIdentities.json.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ResourceTags.PowerShell.cs (92%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ResourceTags.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ResourceTags.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ResourceTags.dictionary.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ResourceTags.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ReverseShippingDetails.PowerShell.cs (78%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ReverseShippingDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ReverseShippingDetails.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ReverseShippingDetails.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ScheduleAvailabilityRequest.PowerShell.cs (79%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ScheduleAvailabilityRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ScheduleAvailabilityRequest.cs (69%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ScheduleAvailabilityRequest.json.cs (92%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ScheduleAvailabilityResponse.PowerShell.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ScheduleAvailabilityResponse.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ScheduleAvailabilityResponse.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ScheduleAvailabilityResponse.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShareCredentialDetails.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShareCredentialDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShareCredentialDetails.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShareCredentialDetails.json.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShipmentPickUpRequest.PowerShell.cs (87%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShipmentPickUpRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShipmentPickUpRequest.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShipmentPickUpRequest.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShipmentPickUpResponse.PowerShell.cs (87%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShipmentPickUpResponse.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShipmentPickUpResponse.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShipmentPickUpResponse.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShippingAddress.PowerShell.cs (79%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShippingAddress.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShippingAddress.cs (99%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ShippingAddress.json.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Sku.PowerShell.cs (79%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Sku.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Sku.cs (64%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/Sku.json.cs (92%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuAvailabilityValidationRequest.PowerShell.cs (79%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuAvailabilityValidationRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuAvailabilityValidationRequest.cs (76%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuAvailabilityValidationRequest.json.cs (92%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuAvailabilityValidationResponseProperties.PowerShell.cs (77%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuAvailabilityValidationResponseProperties.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuAvailabilityValidationResponseProperties.cs (77%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuAvailabilityValidationResponseProperties.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuCapacity.PowerShell.cs (80%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuCapacity.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuCapacity.cs (68%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuCapacity.json.cs (89%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuCost.PowerShell.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuCost.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuCost.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuCost.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuInformation.PowerShell.cs (67%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuInformation.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuInformation.cs (67%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuInformation.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuProperties.PowerShell.cs (72%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuProperties.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuProperties.cs (78%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SkuProperties.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/StorageAccountDetails.PowerShell.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/StorageAccountDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/StorageAccountDetails.cs (89%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/StorageAccountDetails.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SubscriptionIsAllowedToCreateJobValidationRequest.PowerShell.cs (91%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SubscriptionIsAllowedToCreateJobValidationRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SubscriptionIsAllowedToCreateJobValidationRequest.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SubscriptionIsAllowedToCreateJobValidationRequest.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SubscriptionIsAllowedToCreateJobValidationResponseProperties.PowerShell.cs (78%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SubscriptionIsAllowedToCreateJobValidationResponseProperties.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs (78%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SubscriptionIsAllowedToCreateJobValidationResponseProperties.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SystemData.PowerShell.cs (83%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SystemData.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SystemData.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/SystemData.json.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferAllDetails.PowerShell.cs (87%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferAllDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferAllDetails.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferAllDetails.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferConfiguration.PowerShell.cs (83%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferConfiguration.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferConfiguration.cs (87%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferConfiguration.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferConfigurationTransferAllDetails.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferConfigurationTransferAllDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferConfigurationTransferAllDetails.cs (86%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferConfigurationTransferAllDetails.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferConfigurationTransferFilterDetails.PowerShell.cs (79%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferConfigurationTransferFilterDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferConfigurationTransferFilterDetails.cs (82%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferConfigurationTransferFilterDetails.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferFilterDetails.PowerShell.cs (78%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferFilterDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferFilterDetails.cs (84%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransferFilterDetails.json.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportAvailabilityDetails.PowerShell.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportAvailabilityDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportAvailabilityDetails.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportAvailabilityDetails.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportAvailabilityRequest.PowerShell.cs (81%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportAvailabilityRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportAvailabilityRequest.cs (53%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportAvailabilityRequest.json.cs (91%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportAvailabilityResponse.PowerShell.cs (87%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportAvailabilityResponse.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportAvailabilityResponse.cs (83%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportAvailabilityResponse.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportPreferences.PowerShell.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportPreferences.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportPreferences.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/TransportPreferences.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UnencryptedCredentials.PowerShell.cs (74%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UnencryptedCredentials.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UnencryptedCredentials.cs (78%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UnencryptedCredentials.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UnencryptedCredentialsList.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UnencryptedCredentialsList.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UnencryptedCredentialsList.cs (89%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UnencryptedCredentialsList.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UpdateJobDetails.PowerShell.cs (73%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UpdateJobDetails.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UpdateJobDetails.cs (81%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UpdateJobDetails.json.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UpdateJobProperties.PowerShell.cs (72%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UpdateJobProperties.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UpdateJobProperties.cs (81%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UpdateJobProperties.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UserAssignedIdentity.PowerShell.cs (88%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UserAssignedIdentity.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UserAssignedIdentity.cs (94%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UserAssignedIdentity.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UserAssignedProperties.PowerShell.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UserAssignedProperties.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UserAssignedProperties.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/UserAssignedProperties.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidateAddress.PowerShell.cs (76%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidateAddress.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidateAddress.cs (71%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidateAddress.json.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationInputRequest.PowerShell.cs (90%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationInputRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationInputRequest.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationInputRequest.json.cs (97%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationInputResponse.PowerShell.cs (77%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationInputResponse.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationInputResponse.cs (80%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationInputResponse.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationRequest.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationRequest.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationRequest.cs (87%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationRequest.json.cs (95%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationResponse.PowerShell.cs (82%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationResponse.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationResponse.cs (77%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationResponse.json.cs (96%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationResponseProperties.PowerShell.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationResponseProperties.TypeConverter.cs (98%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationResponseProperties.cs (85%) rename generated/DataBox/DataBox.Autorest/generated/api/Models/{Api20221201 => Api20250201}/ValidationResponseProperties.json.cs (95%) create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Support/DelayNotificationStatus.Completer.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Support/DelayNotificationStatus.TypeConverter.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Support/DelayNotificationStatus.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Support/ModelName.Completer.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Support/ModelName.TypeConverter.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Support/ModelName.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Support/PortalDelayErrorCode.Completer.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Support/PortalDelayErrorCode.TypeConverter.cs create mode 100644 generated/DataBox/DataBox.Autorest/generated/api/Support/PortalDelayErrorCode.cs create mode 100644 generated/DataBox/DataBox.Autorest/resources/README.md diff --git a/generated/DataBox/DataBox.Autorest/Az.DataBox.csproj b/generated/DataBox/DataBox.Autorest/Az.DataBox.csproj index 8d6a9e9cbbc4..f436fab65d75 100644 --- a/generated/DataBox/DataBox.Autorest/Az.DataBox.csproj +++ b/generated/DataBox/DataBox.Autorest/Az.DataBox.csproj @@ -2,9 +2,9 @@ DataBox DataBox + DataBox.Autorest - diff --git a/generated/DataBox/DataBox.Autorest/Az.DataBox.format.ps1xml b/generated/DataBox/DataBox.Autorest/Az.DataBox.format.ps1xml index 2430556934a8..874331b493ce 100644 --- a/generated/DataBox/DataBox.Autorest/Az.DataBox.format.ps1xml +++ b/generated/DataBox/DataBox.Autorest/Az.DataBox.format.ps1xml @@ -42,9 +42,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AccountCredentialDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AccountCredentialDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AccountCredentialDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AccountCredentialDetails @@ -76,9 +76,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AddressValidationProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AddressValidationProperties - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AddressValidationProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AddressValidationProperties @@ -122,9 +122,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApplianceNetworkConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApplianceNetworkConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApplianceNetworkConfiguration + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApplianceNetworkConfiguration @@ -150,9 +150,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ArmBaseObject + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ArmBaseObject - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ArmBaseObject + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ArmBaseObject @@ -172,9 +172,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AvailableSkuRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AvailableSkuRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AvailableSkuRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AvailableSkuRequest @@ -212,9 +212,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AvailableSkusResult + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AvailableSkusResult - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AvailableSkusResult + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AvailableSkusResult @@ -234,9 +234,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AzureFileFilterDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AzureFileFilterDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AzureFileFilterDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AzureFileFilterDetails @@ -268,9 +268,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.BlobFilterDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.BlobFilterDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.BlobFilterDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.BlobFilterDetails @@ -302,9 +302,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CancellationReason + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CancellationReason - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CancellationReason + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CancellationReason @@ -324,9 +324,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError @@ -358,9 +358,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetails @@ -404,9 +404,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactInfo + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactInfo + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactInfo @@ -444,9 +444,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyProgress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyProgress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyProgress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyProgress @@ -556,9 +556,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CreateJobValidations + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CreateJobValidations - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CreateJobValidations + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CreateJobValidations @@ -578,9 +578,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CreateOrderLimitForSubscriptionValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CreateOrderLimitForSubscriptionValidationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CreateOrderLimitForSubscriptionValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CreateOrderLimitForSubscriptionValidationRequest @@ -590,6 +590,9 @@ + + + @@ -600,15 +603,18 @@ DeviceType + + Model + - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CreateOrderLimitForSubscriptionValidationResponseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CreateOrderLimitForSubscriptionValidationResponseProperties - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CreateOrderLimitForSubscriptionValidationResponseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CreateOrderLimitForSubscriptionValidationResponseProperties @@ -652,9 +658,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CustomerDiskJobSecrets + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CustomerDiskJobSecrets - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CustomerDiskJobSecrets + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CustomerDiskJobSecrets @@ -704,9 +710,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetails @@ -732,9 +738,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxAccountCopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxAccountCopyLogDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxAccountCopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxAccountCopyLogDetails @@ -766,9 +772,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskCopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskCopyLogDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskCopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskCopyLogDetails @@ -800,9 +806,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskCopyProgress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskCopyProgress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskCopyProgress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskCopyProgress @@ -942,9 +948,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetails @@ -994,9 +1000,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskCopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskCopyLogDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskCopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskCopyLogDetails @@ -1028,9 +1034,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskCopyProgress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskCopyProgress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskCopyProgress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskCopyProgress @@ -1074,9 +1080,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskGranularCopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskGranularCopyLogDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskGranularCopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskGranularCopyLogDetails @@ -1120,9 +1126,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskGranularCopyProgress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskGranularCopyProgress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskGranularCopyProgress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskGranularCopyProgress @@ -1262,9 +1268,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetails @@ -1314,9 +1320,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsDisksAndSizeDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsDisksAndSizeDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsDisksAndSizeDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsDisksAndSizeDetails @@ -1336,9 +1342,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsPreferredDisks + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsPreferredDisks - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsPreferredDisks + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsPreferredDisks @@ -1358,9 +1364,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobSecrets + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobSecrets - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobSecrets + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobSecrets @@ -1416,9 +1422,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavyAccountCopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavyAccountCopyLogDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavyAccountCopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavyAccountCopyLogDetails @@ -1450,9 +1456,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavyJobDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavyJobDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavyJobDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavyJobDetails @@ -1502,9 +1508,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavyJobSecrets + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavyJobSecrets - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavyJobSecrets + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavyJobSecrets @@ -1548,9 +1554,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavySecret + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavySecret - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavySecret + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavySecret @@ -1582,9 +1588,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxJobDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxJobDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxJobDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxJobDetails @@ -1634,9 +1640,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataboxJobSecrets + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataboxJobSecrets - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataboxJobSecrets + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataboxJobSecrets @@ -1680,15 +1686,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxScheduleAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxScheduleAvailabilityRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxScheduleAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxScheduleAvailabilityRequest + + + @@ -1702,6 +1711,9 @@ Country + + Model + SkuName @@ -1714,9 +1726,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxSecret + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxSecret - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxSecret + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxSecret @@ -1748,9 +1760,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressInstructionResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressInstructionResponse - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressInstructionResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressInstructionResponse @@ -1788,9 +1800,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressLocationResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressLocationResponse - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressLocationResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressLocationResponse @@ -1900,12 +1912,15 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressRequest + + + @@ -1916,6 +1931,9 @@ + + Model + SkuName @@ -1928,9 +1946,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponse - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponse @@ -1962,9 +1980,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetails @@ -1984,9 +2002,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetails @@ -2006,9 +2024,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataLocationToServiceLocationMap + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataLocationToServiceLocationMap - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataLocationToServiceLocationMap + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataLocationToServiceLocationMap @@ -2034,9 +2052,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataTransferDetailsValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataTransferDetailsValidationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataTransferDetailsValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataTransferDetailsValidationRequest @@ -2046,6 +2064,9 @@ + + + @@ -2059,6 +2080,9 @@ DeviceType + + Model + TransferType @@ -2068,9 +2092,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataTransferDetailsValidationResponseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataTransferDetailsValidationResponseProperties - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataTransferDetailsValidationResponseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataTransferDetailsValidationResponseProperties @@ -2114,9 +2138,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCode + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCode - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCode + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCode @@ -2142,9 +2166,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Details + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Details - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Details + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Details @@ -2170,9 +2194,59 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityDetails + + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityDetails + + + + + + + + + + + + HardwareEncryption + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityRequest + + + + + + + + + + + + + + + Model + + + SkuName + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetails + + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetails @@ -2198,15 +2272,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DiskScheduleAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DiskScheduleAvailabilityRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DiskScheduleAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DiskScheduleAvailabilityRequest + + + @@ -2223,6 +2300,9 @@ Country + + Model + SkuName @@ -2238,9 +2318,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DiskSecret + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DiskSecret - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DiskSecret + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DiskSecret @@ -2266,9 +2346,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferences + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferences - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferences + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferences @@ -2294,9 +2374,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ErrorDetail + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ErrorDetail @@ -2328,9 +2408,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ExportDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ExportDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ExportDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ExportDiskDetails @@ -2362,9 +2442,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.FilterFileDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.FilterFileDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.FilterFileDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.FilterFileDetails @@ -2390,9 +2470,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.GranularCopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.GranularCopyLogDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.GranularCopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.GranularCopyLogDetails @@ -2412,9 +2492,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.GranularCopyProgress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.GranularCopyProgress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.GranularCopyProgress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.GranularCopyProgress @@ -2524,15 +2604,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.HeavyScheduleAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.HeavyScheduleAvailabilityRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.HeavyScheduleAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.HeavyScheduleAvailabilityRequest + + + @@ -2546,6 +2629,9 @@ Country + + Model + SkuName @@ -2558,9 +2644,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ImportDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ImportDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ImportDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ImportDiskDetails @@ -2598,9 +2684,55 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDeliveryInfo + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDelayDetails + + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDelayDetails + + + + + + + + + + + + + + + + + + + + + + + + Description + + + ErrorCode + + + ResolutionTime + + + StartTime + + + Status + + + + + + + + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDeliveryInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDeliveryInfo + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDeliveryInfo @@ -2620,9 +2752,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetails @@ -2666,15 +2798,21 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobProperties - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobProperties + + + + + + @@ -2712,9 +2850,15 @@ + + AllDevicesLost + CancellationReason + + DelayedStage + DeliveryType @@ -2754,9 +2898,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResource + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResource - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResource + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResource @@ -2818,9 +2962,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResourceList - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResourceList + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResourceList @@ -2840,9 +2984,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResourceUpdateParameterTags + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResourceUpdateParameterTags - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResourceUpdateParameterTags + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResourceUpdateParameterTags @@ -2862,9 +3006,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobStages + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobStages - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobStages + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobStages @@ -2902,9 +3046,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKey + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKey - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKey + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKey @@ -2936,9 +3080,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJob + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJob - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJob + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJob @@ -2970,9 +3114,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ManagedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ManagedDiskDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ManagedDiskDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ManagedDiskDetails @@ -3010,9 +3154,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.MitigateJobRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.MitigateJobRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.MitigateJobRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.MitigateJobRequest @@ -3032,9 +3176,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.MitigateJobRequestSerialNumberCustomerResolutionMap + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.MitigateJobRequestSerialNumberCustomerResolutionMap - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.MitigateJobRequestSerialNumberCustomerResolutionMap + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.MitigateJobRequestSerialNumberCustomerResolutionMap @@ -3054,9 +3198,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.NotificationPreference + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.NotificationPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.NotificationPreference + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.NotificationPreference @@ -3082,9 +3226,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Operation + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Operation - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Operation + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Operation @@ -3116,9 +3260,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.OperationDisplay + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.OperationDisplay - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.OperationDisplay + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.OperationDisplay @@ -3156,9 +3300,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.OperationList + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.OperationList - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.OperationList + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.OperationList @@ -3178,9 +3322,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetails @@ -3212,9 +3356,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierInfo + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierInfo + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierInfo @@ -3240,9 +3384,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetails @@ -3274,9 +3418,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Preferences + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Preferences - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Preferences + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Preferences @@ -3302,9 +3446,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesValidationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesValidationRequest @@ -3314,6 +3458,9 @@ + + + @@ -3324,15 +3471,18 @@ DeviceType + + Model + - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesValidationResponseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesValidationResponseProperties - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesValidationResponseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesValidationResponseProperties @@ -3376,9 +3526,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Resource + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Resource - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Resource + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Resource @@ -3398,9 +3548,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentity + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentity - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentity + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentity @@ -3426,9 +3576,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceTags - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceTags + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceTags @@ -3448,9 +3598,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetails @@ -3470,15 +3620,18 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityRequest + + + @@ -3492,6 +3645,9 @@ Country + + Model + SkuName @@ -3504,9 +3660,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityResponse - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityResponse @@ -3526,9 +3682,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShareCredentialDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShareCredentialDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShareCredentialDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShareCredentialDetails @@ -3572,9 +3728,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShipmentPickUpRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShipmentPickUpRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShipmentPickUpRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShipmentPickUpRequest @@ -3606,9 +3762,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShipmentPickUpResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShipmentPickUpResponse - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShipmentPickUpResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShipmentPickUpResponse @@ -3634,9 +3790,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress @@ -3722,9 +3878,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Sku + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Sku - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Sku + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Sku @@ -3734,6 +3890,9 @@ + + + @@ -3747,6 +3906,9 @@ Family + + Model + Name @@ -3756,9 +3918,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuAvailabilityValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuAvailabilityValidationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuAvailabilityValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuAvailabilityValidationRequest @@ -3774,6 +3936,9 @@ + + + @@ -3793,6 +3958,9 @@ Location + + Model + TransferType @@ -3802,9 +3970,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuAvailabilityValidationResponseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuAvailabilityValidationResponseProperties - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuAvailabilityValidationResponseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuAvailabilityValidationResponseProperties @@ -3848,12 +4016,15 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCapacity + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCapacity - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCapacity + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCapacity + + + @@ -3864,6 +4035,9 @@ + + IndividualSkuUsable + Maximum @@ -3876,9 +4050,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCost + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCost - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCost + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCost @@ -3910,9 +4084,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuInformation + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuInformation - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuInformation + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuInformation @@ -3932,9 +4106,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuProperties - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuProperties @@ -3978,9 +4152,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.StorageAccountDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.StorageAccountDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.StorageAccountDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.StorageAccountDetails @@ -4012,9 +4186,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SubscriptionIsAllowedToCreateJobValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SubscriptionIsAllowedToCreateJobValidationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SubscriptionIsAllowedToCreateJobValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SubscriptionIsAllowedToCreateJobValidationRequest @@ -4034,9 +4208,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SubscriptionIsAllowedToCreateJobValidationResponseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SubscriptionIsAllowedToCreateJobValidationResponseProperties - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SubscriptionIsAllowedToCreateJobValidationResponseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SubscriptionIsAllowedToCreateJobValidationResponseProperties @@ -4080,9 +4254,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SystemData + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SystemData + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SystemData @@ -4132,9 +4306,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferAllDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferAllDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferAllDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferAllDetails @@ -4166,9 +4340,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferFilterDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferFilterDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferFilterDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferFilterDetails @@ -4188,9 +4362,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityDetails - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityDetails @@ -4210,12 +4384,15 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityRequest + + + @@ -4223,6 +4400,9 @@ + + Model + SkuName @@ -4232,9 +4412,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferences + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferences - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferences + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferences @@ -4260,9 +4440,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UnencryptedCredentials + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UnencryptedCredentials - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UnencryptedCredentials + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UnencryptedCredentials @@ -4282,9 +4462,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UnencryptedCredentialsList + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UnencryptedCredentialsList - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UnencryptedCredentialsList + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UnencryptedCredentialsList @@ -4304,9 +4484,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UserAssignedIdentity + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UserAssignedIdentity - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UserAssignedIdentity + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UserAssignedIdentity @@ -4332,9 +4512,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UserAssignedProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UserAssignedProperties - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UserAssignedProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UserAssignedProperties @@ -4354,9 +4534,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidateAddress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidateAddress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidateAddress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidateAddress @@ -4366,6 +4546,9 @@ + + + @@ -4376,15 +4559,18 @@ DeviceType + + Model + - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest @@ -4404,9 +4590,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse @@ -4426,9 +4612,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationRequest @@ -4448,9 +4634,9 @@ - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationResponseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationResponseProperties - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationResponseProperties + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationResponseProperties diff --git a/generated/DataBox/DataBox.Autorest/Properties/AssemblyInfo.cs b/generated/DataBox/DataBox.Autorest/Properties/AssemblyInfo.cs index 98099127cb1d..9ea19e33de47 100644 --- a/generated/DataBox/DataBox.Autorest/Properties/AssemblyInfo.cs +++ b/generated/DataBox/DataBox.Autorest/Properties/AssemblyInfo.cs @@ -1,28 +1,27 @@ -// ---------------------------------------------------------------------------------- -// -// Copyright Microsoft Corporation -// Licensed under the Apache License, Version 2.0 (the "License"); +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the Apache License, Version 2.0 (the ""License""); // you may not use this file except in compliance with the License. // You may obtain a copy of the License at // http://www.apache.org/licenses/LICENSE-2.0 // Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, +// distributed under the License is distributed on an ""AS IS"" BASIS, // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. // See the License for the specific language governing permissions and // limitations under the License. -// ---------------------------------------------------------------------------------- +// Code generated by Microsoft (R) AutoRest Code Generator.Changes may cause incorrect behavior and will be lost if the code +// is regenerated. using System; using System.Reflection; +using System.Runtime.CompilerServices; using System.Runtime.InteropServices; -[assembly: AssemblyTitle("Microsoft Azure Powershell - DataBox")] -[assembly: AssemblyCompany(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCompany)] -[assembly: AssemblyProduct(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyProduct)] -[assembly: AssemblyCopyright(Microsoft.WindowsAzure.Commands.Common.AzurePowerShell.AssemblyCopyright)] +[assembly: System.Reflection.AssemblyCompanyAttribute("Microsoft")] +[assembly: System.Reflection.AssemblyCopyrightAttribute("Copyright © Microsoft")] +[assembly: System.Reflection.AssemblyProductAttribute("Microsoft Azure PowerShell")] +[assembly: System.Reflection.AssemblyTitleAttribute("Microsoft Azure PowerShell - DataBox")] +[assembly: System.Reflection.AssemblyFileVersionAttribute("0.3.3")] +[assembly: System.Reflection.AssemblyVersionAttribute("0.3.3")] +[assembly: System.Runtime.InteropServices.ComVisibleAttribute(false)] +[assembly: System.CLSCompliantAttribute(false)] -[assembly: ComVisible(false)] -[assembly: CLSCompliant(false)] -[assembly: Guid("cd099857-4c87-480f-99ea-d8a37ec54207")] -[assembly: AssemblyVersion("0.3.3")] -[assembly: AssemblyFileVersion("0.3.3")] diff --git a/generated/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJob.ps1 b/generated/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJob.ps1 index 0d2443c674fe..46342f6887d5 100644 --- a/generated/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJob.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJob.ps1 @@ -27,12 +27,12 @@ Get-AzDataBoxJob -SubscriptionId "SubscriptionId" Get-AzDataBoxJob -ResourceGroupName "resourceGroupName" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource .Link https://learn.microsoft.com/powershell/module/az.databox/get-azdataboxjob #> function Get-AzDataBoxJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] diff --git a/generated/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJobCredential.ps1 b/generated/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJobCredential.ps1 index 271441f2492a..48feec9a445c 100644 --- a/generated/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJobCredential.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/Get-AzDataBoxJobCredential.ps1 @@ -28,12 +28,12 @@ $obj.JobSecret | Format-List $cabinetJobSecret = $obj.JobSecret.CabinetPodSecret | Format-List .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials .Link https://learn.microsoft.com/powershell/module/az.databox/get-azdataboxjobcredential #> function Get-AzDataBoxJobCredential { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] diff --git a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxContactDetailsObject.ps1 b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxContactDetailsObject.ps1 index eeff9e1744fb..1c83ff9d9084 100644 --- a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxContactDetailsObject.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxContactDetailsObject.ps1 @@ -23,7 +23,7 @@ Create an in-memory object for ContactDetails. New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetails +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetails .Notes COMPLEX PARAMETER PROPERTIES @@ -36,7 +36,7 @@ NOTIFICATIONPREFERENCE : Notification preference for https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxContactDetailsObject #> function New-AzDataBoxContactDetailsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetails])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -65,7 +65,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference[]] # Notification preference for a job stage. # To construct, see NOTES section for NOTIFICATIONPREFERENCE properties and create a hash table. ${NotificationPreference}, diff --git a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxCustomerDiskJobDetailsObject.ps1 b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxCustomerDiskJobDetailsObject.ps1 index 50995c2169c3..29c0d15c8223 100644 --- a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxCustomerDiskJobDetailsObject.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxCustomerDiskJobDetailsObject.ps1 @@ -28,7 +28,7 @@ $importDiskDetailsCollection = @{"XXXXXX"= @{ManifestFile = "xyz.txt"; ManifestH New-AzDataBoxCustomerDiskJobDetailsObject -Type "DataBoxCustomerDisk" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -ImportDiskDetailsCollection $importDiskDetailsCollection -ReturnToCustomerPackageDetailCarrierAccountNumber "00000" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetails .Notes COMPLEX PARAMETER PROPERTIES @@ -129,12 +129,12 @@ SHIPPINGADDRESS : Shipping address of the customer. https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxCustomerDiskJobDetailsObject #> function New-AzDataBoxCustomerDiskJobDetailsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetails])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails] # Contact details for notification and shipping. # To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. ${ContactDetail}, @@ -148,14 +148,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection] # Contains the map of disk serial number to the disk details for import jobs. # To construct, see NOTES section for IMPORTDISKDETAILSCOLLECTION properties and create a hash table. ${ImportDiskDetailsCollection}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection] # Contains the map of disk serial number to the disk details for export jobs. # To construct, see NOTES section for EXPORTDISKDETAILSCOLLECTION properties and create a hash table. ${ExportDiskDetailsCollection}, @@ -168,14 +168,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]] # Details of the data to be exported from azure. # To construct, see NOTES section for DATAEXPORTDETAIL properties and create a hash table. ${DataExportDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]] # Details of the data to be imported into azure. # To construct, see NOTES section for DATAIMPORTDETAIL properties and create a hash table. ${DataImportDetail}, @@ -188,28 +188,28 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey] # Details about which key encryption type is being used. # To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. ${KeyEncryptionKey}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences] # Preferences for the order. # To construct, see NOTES section for PREFERENCE properties and create a hash table. ${Preference}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails] # Optional Reverse Shipping details for order. # To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. ${ReverseShippingDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress] # Shipping address of the customer. # To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. ${ShippingAddress} diff --git a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxDiskJobDetailsObject.ps1 b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxDiskJobDetailsObject.ps1 index bbcedaeb046c..f250cbc46779 100644 --- a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxDiskJobDetailsObject.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxDiskJobDetailsObject.ps1 @@ -26,7 +26,7 @@ $ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNS New-AzDataBoxDiskJobDetailsObject -Type "DataBoxDisk" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -Passkey $password -PreferredDisk @{"8" = 8; "4" = 2} -ExpectedDataSizeInTeraByte 18 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetails +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetails .Notes COMPLEX PARAMETER PROPERTIES @@ -124,12 +124,12 @@ SHIPPINGADDRESS : Shipping address of the customer. https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxDiskJobDetailsObject #> function New-AzDataBoxDiskJobDetailsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetails])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails] # Contact details for notification and shipping. # To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. ${ContactDetail}, @@ -149,7 +149,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks] # User preference on what size disks are needed for the job. # The map is from the disk size in TB to the count. # Eg. @@ -160,14 +160,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]] # Details of the data to be exported from azure. # To construct, see NOTES section for DATAEXPORTDETAIL properties and create a hash table. ${DataExportDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]] # Details of the data to be imported into azure. # To construct, see NOTES section for DATAIMPORTDETAIL properties and create a hash table. ${DataImportDetail}, @@ -180,28 +180,28 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey] # Details about which key encryption type is being used. # To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. ${KeyEncryptionKey}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences] # Preferences for the order. # To construct, see NOTES section for PREFERENCE properties and create a hash table. ${Preference}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails] # Optional Reverse Shipping details for order. # To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. ${ReverseShippingDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress] # Shipping address of the customer. # To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. ${ShippingAddress} diff --git a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxHeavyJobDetailsObject.ps1 b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxHeavyJobDetailsObject.ps1 index 48c26c03a733..8215e60b8435 100644 --- a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxHeavyJobDetailsObject.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxHeavyJobDetailsObject.ps1 @@ -26,7 +26,7 @@ $ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNS New-AzDataBoxHeavyJobDetailsObject -Type "DataBoxHeavy" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -DevicePassword $password -ExpectedDataSizeInTeraByte 10 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavyJobDetails +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavyJobDetails .Notes COMPLEX PARAMETER PROPERTIES @@ -121,12 +121,12 @@ SHIPPINGADDRESS : Shipping address of the customer. https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxHeavyJobDetailsObject #> function New-AzDataBoxHeavyJobDetailsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavyJobDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavyJobDetails])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails] # Contact details for notification and shipping. # To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. ${ContactDetail}, @@ -152,14 +152,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]] # Details of the data to be exported from azure. # To construct, see NOTES section for DATAEXPORTDETAIL properties and create a hash table. ${DataExportDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]] # Details of the data to be imported into azure. # To construct, see NOTES section for DATAIMPORTDETAIL properties and create a hash table. ${DataImportDetail}, @@ -172,28 +172,28 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey] # Details about which key encryption type is being used. # To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. ${KeyEncryptionKey}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences] # Preferences for the order. # To construct, see NOTES section for PREFERENCE properties and create a hash table. ${Preference}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails] # Optional Reverse Shipping details for order. # To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. ${ReverseShippingDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress] # Shipping address of the customer. # To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. ${ShippingAddress} diff --git a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxJob.ps1 b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxJob.ps1 index fc4acb4e3674..ae42b14d2fee 100644 --- a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxJob.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxJob.ps1 @@ -104,7 +104,7 @@ $customerDiskDetails = New-AzDataBoxCustomerDiskJobDetailsObject -Type "DataBoxC New-AzDataBoxJob -Name "testJobName2" -SubscriptionId "YourSubscriptionId" -ResourceGroupName "YourResourceGroup" -TransferType "ExportFromAzure" -Detail $customerDiskDetails -Location "westus" -SkuName "DataBoxCustomerDisk" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource .Notes COMPLEX PARAMETER PROPERTIES @@ -184,7 +184,7 @@ DETAIL : Details of a job run. This field will only be sent for exp https://learn.microsoft.com/powershell/module/az.databox/new-azdataboxjob #> function New-AzDataBoxJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -246,7 +246,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails] # Details of a job run. # This field will only be sent for expand details filter. # To construct, see NOTES section for DETAIL properties and create a hash table. @@ -271,8 +271,17 @@ param( ${SkuFamily}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName])] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName] + # The customer friendly name of the combination of version and capacity of the device. + # This field is necessary only at the time of ordering the newer generation device i.e. + # AzureDataBox120 and AzureDataBox525 as of Feb/2025 + ${SkuModel}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags]))] [System.Collections.Hashtable] # The list of key value pairs that describe the resource. # These tags can be used in viewing and grouping this resource (across resource groups). @@ -280,7 +289,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities]))] [System.Collections.Hashtable] # User Assigned Identities ${UserAssignedIdentity}, diff --git a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxJobDetailsObject.ps1 b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxJobDetailsObject.ps1 index 09fdc98f30b5..bdd1502e635d 100644 --- a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxJobDetailsObject.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxJobDetailsObject.ps1 @@ -26,7 +26,7 @@ $ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNS New-AzDataBoxJobDetailsObject -Type "DataBox" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxJobDetails +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxJobDetails .Notes COMPLEX PARAMETER PROPERTIES @@ -121,12 +121,12 @@ SHIPPINGADDRESS : Shipping address of the customer. https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxJobDetailsObject #> function New-AzDataBoxJobDetailsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxJobDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxJobDetails])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails] # Contact details for notification and shipping. # To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. ${ContactDetail}, @@ -152,14 +152,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]] # Details of the data to be exported from azure. # To construct, see NOTES section for DATAEXPORTDETAIL properties and create a hash table. ${DataExportDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]] # Details of the data to be imported into azure. # To construct, see NOTES section for DATAIMPORTDETAIL properties and create a hash table. ${DataImportDetail}, @@ -172,28 +172,28 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey] # Details about which key encryption type is being used. # To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. ${KeyEncryptionKey}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences] # Preferences for the order. # To construct, see NOTES section for PREFERENCE properties and create a hash table. ${Preference}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails] # Optional Reverse Shipping details for order. # To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. ${ReverseShippingDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress] # Shipping address of the customer. # To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. ${ShippingAddress} diff --git a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxKeyEncryptionKeyObject.ps1 b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxKeyEncryptionKeyObject.ps1 index 2f846c5da90c..1bbd61143590 100644 --- a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxKeyEncryptionKeyObject.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxKeyEncryptionKeyObject.ps1 @@ -23,7 +23,7 @@ Create an in-memory object for KeyEncryptionKey. New-AzDataBoxKeyEncryptionKeyObject -KekType "CustomerManaged" -IdentityProperty @{Type = "UserAssigned"; UserAssignedResourceId = "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName"} -KekUrl "keyIdentifier" -KekVaultResourceId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKey +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKey .Notes COMPLEX PARAMETER PROPERTIES @@ -36,7 +36,7 @@ IDENTITYPROPERTY : Managed identity properties used for key https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxKeyEncryptionKeyObject #> function New-AzDataBoxKeyEncryptionKeyObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKey])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKey])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -48,7 +48,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties] # Managed identity properties used for key encryption. # To construct, see NOTES section for IDENTITYPROPERTY properties and create a hash table. ${IdentityProperty}, diff --git a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxManagedDiskDetailsObject.ps1 b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxManagedDiskDetailsObject.ps1 index 3f0021476d27..04d653fb5c19 100644 --- a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxManagedDiskDetailsObject.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxManagedDiskDetailsObject.ps1 @@ -23,12 +23,12 @@ Create an in-memory object for ManagedDiskDetails. New-AzDataBoxManagedDiskDetailsObject -ResourceGroupId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName" -StagingStorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/stagingAccountName" -DataAccountType "ManagedDisk" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ManagedDiskDetails +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ManagedDiskDetails .Link https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxManagedDiskDetailsObject #> function New-AzDataBoxManagedDiskDetailsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ManagedDiskDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ManagedDiskDetails])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxShippingAddressObject.ps1 b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxShippingAddressObject.ps1 index 267022310538..4f83ade7b5b4 100644 --- a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxShippingAddressObject.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxShippingAddressObject.ps1 @@ -23,12 +23,12 @@ Create an in-memory object for ShippingAddress. New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress .Link https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxShippingAddressObject #> function New-AzDataBoxShippingAddressObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxStorageAccountDetailsObject.ps1 b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxStorageAccountDetailsObject.ps1 index d911d45906a3..2566178b9a95 100644 --- a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxStorageAccountDetailsObject.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxStorageAccountDetailsObject.ps1 @@ -23,12 +23,12 @@ Create an in-memory object for StorageAccountDetails. New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.StorageAccountDetails +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.StorageAccountDetails .Link https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxStorageAccountDetailsObject #> function New-AzDataBoxStorageAccountDetailsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.StorageAccountDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.StorageAccountDetails])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] diff --git a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxTransferConfigurationObject.ps1 b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxTransferConfigurationObject.ps1 index f2e6854b0dc9..3f3673390ccd 100644 --- a/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxTransferConfigurationObject.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/New-AzDataBoxTransferConfigurationObject.ps1 @@ -23,7 +23,7 @@ Create an in-memory object for TransferConfiguration. New-AzDataBoxTransferConfigurationObject -Type "TransferAll" -TransferAllDetail @{"IncludeDataAccountType"="StorageAccount";"IncludeTransferAllBlob"= "True"; "IncludeTransferAllFile"="True"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfiguration +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfiguration .Notes COMPLEX PARAMETER PROPERTIES @@ -49,7 +49,7 @@ TRANSFERFILTERDETAIL : Map of filte https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxTransferConfigurationObject #> function New-AzDataBoxTransferConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfiguration])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -61,7 +61,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails] # Map of filter type and the details to transfer all data. # This field is required only if the TransferConfigurationType is given as TransferAll. # To construct, see NOTES section for TRANSFERALLDETAIL properties and create a hash table. @@ -69,7 +69,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails] # Map of filter type and the details to filter. # This field is required only if the TransferConfigurationType is given as TransferUsingFilter. # To construct, see NOTES section for TRANSFERFILTERDETAIL properties and create a hash table. diff --git a/generated/DataBox/DataBox.Autorest/exports/ProxyCmdletDefinitions.ps1 b/generated/DataBox/DataBox.Autorest/exports/ProxyCmdletDefinitions.ps1 index 49fad0e2bd8e..30781ddecac7 100644 --- a/generated/DataBox/DataBox.Autorest/exports/ProxyCmdletDefinitions.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/ProxyCmdletDefinitions.ps1 @@ -28,12 +28,12 @@ $obj.JobSecret | Format-List $cabinetJobSecret = $obj.JobSecret.CabinetPodSecret | Format-List .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials .Link https://learn.microsoft.com/powershell/module/az.databox/get-azdataboxjobcredential #> function Get-AzDataBoxJobCredential { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -205,12 +205,12 @@ Get-AzDataBoxJob -SubscriptionId "SubscriptionId" Get-AzDataBoxJob -ResourceGroupName "resourceGroupName" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource .Link https://learn.microsoft.com/powershell/module/az.databox/get-azdataboxjob #> function Get-AzDataBoxJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter(ParameterSetName='Get', Mandatory)] @@ -476,7 +476,7 @@ $customerDiskDetails = New-AzDataBoxCustomerDiskJobDetailsObject -Type "DataBoxC New-AzDataBoxJob -Name "testJobName2" -SubscriptionId "YourSubscriptionId" -ResourceGroupName "YourResourceGroup" -TransferType "ExportFromAzure" -Detail $customerDiskDetails -Location "westus" -SkuName "DataBoxCustomerDisk" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource .Notes COMPLEX PARAMETER PROPERTIES @@ -556,7 +556,7 @@ DETAIL : Details of a job run. This field will only be sent for exp https://learn.microsoft.com/powershell/module/az.databox/new-azdataboxjob #> function New-AzDataBoxJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource])] [CmdletBinding(DefaultParameterSetName='CreateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -618,7 +618,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails] # Details of a job run. # This field will only be sent for expand details filter. # To construct, see NOTES section for DETAIL properties and create a hash table. @@ -643,8 +643,17 @@ param( ${SkuFamily}, [Parameter()] + [ArgumentCompleter([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName])] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName] + # The customer friendly name of the combination of version and capacity of the device. + # This field is necessary only at the time of ordering the newer generation device i.e. + # AzureDataBox120 and AzureDataBox525 as of Feb/2025 + ${SkuModel}, + + [Parameter()] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags]))] [System.Collections.Hashtable] # The list of key value pairs that describe the resource. # These tags can be used in viewing and grouping this resource (across resource groups). @@ -652,7 +661,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities]))] [System.Collections.Hashtable] # User Assigned Identities ${UserAssignedIdentity}, @@ -1228,7 +1237,7 @@ $ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNS Update-AzDataBoxJob -Name "pwshTestSAssigned" -ResourceGroupName "resourceGroupName" -KeyEncryptionKey $keyEncryptionDetails -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -IdentityType "SystemAssigned,UserAssigned" -UserAssignedIdentity @{"/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName" = @{}} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource .Notes COMPLEX PARAMETER PROPERTIES @@ -1283,7 +1292,7 @@ SHIPPINGADDRESS : Shipping address of the customer. https://learn.microsoft.com/powershell/module/az.databox/update-azdataboxjob #> function Update-AzDataBoxJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -1316,7 +1325,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails] # Contact details for notification and shipping. # To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. ${ContactDetail}, @@ -1367,7 +1376,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey] # Key encryption key for the job. # To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. ${KeyEncryptionKey}, @@ -1399,7 +1408,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress] # Shipping address where customer wishes to receive the device. # To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. ${ReverseShippingDetail}, @@ -1413,7 +1422,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress] # Shipping address of the customer. # To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. ${ShippingAddress}, @@ -1428,7 +1437,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags]))] [System.Collections.Hashtable] # The list of key value pairs that describe the resource. # These tags can be used in viewing and grouping this resource (across resource groups). @@ -1443,7 +1452,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities]))] [System.Collections.Hashtable] # User Assigned Identities ${UserAssignedIdentity}, @@ -1605,7 +1614,7 @@ Create an in-memory object for ContactDetails. New-AzDataBoxContactDetailsObject -ContactName "random" -EmailList @("emailId") -Phone "1234567891" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetails +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetails .Notes COMPLEX PARAMETER PROPERTIES @@ -1618,7 +1627,7 @@ NOTIFICATIONPREFERENCE : Notification preference for https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxContactDetailsObject #> function New-AzDataBoxContactDetailsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetails])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -1647,7 +1656,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference[]] # Notification preference for a job stage. # To construct, see NOTES section for NOTIFICATIONPREFERENCE properties and create a hash table. ${NotificationPreference}, @@ -1751,7 +1760,7 @@ $importDiskDetailsCollection = @{"XXXXXX"= @{ManifestFile = "xyz.txt"; ManifestH New-AzDataBoxCustomerDiskJobDetailsObject -Type "DataBoxCustomerDisk" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -ImportDiskDetailsCollection $importDiskDetailsCollection -ReturnToCustomerPackageDetailCarrierAccountNumber "00000" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetails .Notes COMPLEX PARAMETER PROPERTIES @@ -1852,12 +1861,12 @@ SHIPPINGADDRESS : Shipping address of the customer. https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxCustomerDiskJobDetailsObject #> function New-AzDataBoxCustomerDiskJobDetailsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetails])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails] # Contact details for notification and shipping. # To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. ${ContactDetail}, @@ -1871,14 +1880,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection] # Contains the map of disk serial number to the disk details for import jobs. # To construct, see NOTES section for IMPORTDISKDETAILSCOLLECTION properties and create a hash table. ${ImportDiskDetailsCollection}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection] # Contains the map of disk serial number to the disk details for export jobs. # To construct, see NOTES section for EXPORTDISKDETAILSCOLLECTION properties and create a hash table. ${ExportDiskDetailsCollection}, @@ -1891,14 +1900,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]] # Details of the data to be exported from azure. # To construct, see NOTES section for DATAEXPORTDETAIL properties and create a hash table. ${DataExportDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]] # Details of the data to be imported into azure. # To construct, see NOTES section for DATAIMPORTDETAIL properties and create a hash table. ${DataImportDetail}, @@ -1911,28 +1920,28 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey] # Details about which key encryption type is being used. # To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. ${KeyEncryptionKey}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences] # Preferences for the order. # To construct, see NOTES section for PREFERENCE properties and create a hash table. ${Preference}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails] # Optional Reverse Shipping details for order. # To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. ${ReverseShippingDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress] # Shipping address of the customer. # To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. ${ShippingAddress} @@ -2028,7 +2037,7 @@ $ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNS New-AzDataBoxDiskJobDetailsObject -Type "DataBoxDisk" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -Passkey $password -PreferredDisk @{"8" = 8; "4" = 2} -ExpectedDataSizeInTeraByte 18 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetails +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetails .Notes COMPLEX PARAMETER PROPERTIES @@ -2126,12 +2135,12 @@ SHIPPINGADDRESS : Shipping address of the customer. https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxDiskJobDetailsObject #> function New-AzDataBoxDiskJobDetailsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetails])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails] # Contact details for notification and shipping. # To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. ${ContactDetail}, @@ -2151,7 +2160,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks] # User preference on what size disks are needed for the job. # The map is from the disk size in TB to the count. # Eg. @@ -2162,14 +2171,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]] # Details of the data to be exported from azure. # To construct, see NOTES section for DATAEXPORTDETAIL properties and create a hash table. ${DataExportDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]] # Details of the data to be imported into azure. # To construct, see NOTES section for DATAIMPORTDETAIL properties and create a hash table. ${DataImportDetail}, @@ -2182,28 +2191,28 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey] # Details about which key encryption type is being used. # To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. ${KeyEncryptionKey}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences] # Preferences for the order. # To construct, see NOTES section for PREFERENCE properties and create a hash table. ${Preference}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails] # Optional Reverse Shipping details for order. # To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. ${ReverseShippingDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress] # Shipping address of the customer. # To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. ${ShippingAddress} @@ -2299,7 +2308,7 @@ $ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNS New-AzDataBoxHeavyJobDetailsObject -Type "DataBoxHeavy" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -DevicePassword $password -ExpectedDataSizeInTeraByte 10 .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavyJobDetails +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavyJobDetails .Notes COMPLEX PARAMETER PROPERTIES @@ -2394,12 +2403,12 @@ SHIPPINGADDRESS : Shipping address of the customer. https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxHeavyJobDetailsObject #> function New-AzDataBoxHeavyJobDetailsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavyJobDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavyJobDetails])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails] # Contact details for notification and shipping. # To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. ${ContactDetail}, @@ -2425,14 +2434,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]] # Details of the data to be exported from azure. # To construct, see NOTES section for DATAEXPORTDETAIL properties and create a hash table. ${DataExportDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]] # Details of the data to be imported into azure. # To construct, see NOTES section for DATAIMPORTDETAIL properties and create a hash table. ${DataImportDetail}, @@ -2445,28 +2454,28 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey] # Details about which key encryption type is being used. # To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. ${KeyEncryptionKey}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences] # Preferences for the order. # To construct, see NOTES section for PREFERENCE properties and create a hash table. ${Preference}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails] # Optional Reverse Shipping details for order. # To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. ${ReverseShippingDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress] # Shipping address of the customer. # To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. ${ShippingAddress} @@ -2562,7 +2571,7 @@ $ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNS New-AzDataBoxJobDetailsObject -Type "DataBox" -DataImportDetail @(@{AccountDetail=$dataAccount; AccountDetailDataAccountType = "StorageAccount"} ) -ContactDetail $contactDetail -ShippingAddress $ShippingDetails .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxJobDetails +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxJobDetails .Notes COMPLEX PARAMETER PROPERTIES @@ -2657,12 +2666,12 @@ SHIPPINGADDRESS : Shipping address of the customer. https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxJobDetailsObject #> function New-AzDataBoxJobDetailsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxJobDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxJobDetails])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails] # Contact details for notification and shipping. # To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. ${ContactDetail}, @@ -2688,14 +2697,14 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]] # Details of the data to be exported from azure. # To construct, see NOTES section for DATAEXPORTDETAIL properties and create a hash table. ${DataExportDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]] # Details of the data to be imported into azure. # To construct, see NOTES section for DATAIMPORTDETAIL properties and create a hash table. ${DataImportDetail}, @@ -2708,28 +2717,28 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey] # Details about which key encryption type is being used. # To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. ${KeyEncryptionKey}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences] # Preferences for the order. # To construct, see NOTES section for PREFERENCE properties and create a hash table. ${Preference}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails] # Optional Reverse Shipping details for order. # To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. ${ReverseShippingDetail}, [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress] # Shipping address of the customer. # To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. ${ShippingAddress} @@ -2822,7 +2831,7 @@ Create an in-memory object for KeyEncryptionKey. New-AzDataBoxKeyEncryptionKeyObject -KekType "CustomerManaged" -IdentityProperty @{Type = "UserAssigned"; UserAssignedResourceId = "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName"} -KekUrl "keyIdentifier" -KekVaultResourceId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.KeyVault/vaults/keyVaultName" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKey +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKey .Notes COMPLEX PARAMETER PROPERTIES @@ -2835,7 +2844,7 @@ IDENTITYPROPERTY : Managed identity properties used for key https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxKeyEncryptionKeyObject #> function New-AzDataBoxKeyEncryptionKeyObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKey])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKey])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -2847,7 +2856,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties] # Managed identity properties used for key encryption. # To construct, see NOTES section for IDENTITYPROPERTY properties and create a hash table. ${IdentityProperty}, @@ -2954,12 +2963,12 @@ Create an in-memory object for ManagedDiskDetails. New-AzDataBoxManagedDiskDetailsObject -ResourceGroupId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName" -StagingStorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/stagingAccountName" -DataAccountType "ManagedDisk" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ManagedDiskDetails +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ManagedDiskDetails .Link https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxManagedDiskDetailsObject #> function New-AzDataBoxManagedDiskDetailsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ManagedDiskDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ManagedDiskDetails])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -3081,12 +3090,12 @@ Create an in-memory object for ShippingAddress. New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNSEND ST" -StateOrProvince "CA" -Country "US" -City "San Francisco" -PostalCode "94107" -AddressType "Commercial" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress .Link https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxShippingAddressObject #> function New-AzDataBoxShippingAddressObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -3250,12 +3259,12 @@ Create an in-memory object for StorageAccountDetails. New-AzDataBoxStorageAccountDetailsObject -DataAccountType "StorageAccount" -StorageAccountId "/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.Storage/storageAccounts/storageAccountName" .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.StorageAccountDetails +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.StorageAccountDetails .Link https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxStorageAccountDetailsObject #> function New-AzDataBoxStorageAccountDetailsObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.StorageAccountDetails])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.StorageAccountDetails])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -3371,7 +3380,7 @@ Create an in-memory object for TransferConfiguration. New-AzDataBoxTransferConfigurationObject -Type "TransferAll" -TransferAllDetail @{"IncludeDataAccountType"="StorageAccount";"IncludeTransferAllBlob"= "True"; "IncludeTransferAllFile"="True"} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfiguration +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfiguration .Notes COMPLEX PARAMETER PROPERTIES @@ -3397,7 +3406,7 @@ TRANSFERFILTERDETAIL : Map of filte https://learn.microsoft.com/powershell/module/Az.DataBox/new-AzDataBoxTransferConfigurationObject #> function New-AzDataBoxTransferConfigurationObject { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfiguration])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfiguration])] [CmdletBinding(PositionalBinding=$false)] param( [Parameter(Mandatory)] @@ -3409,7 +3418,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails] # Map of filter type and the details to transfer all data. # This field is required only if the TransferConfigurationType is given as TransferAll. # To construct, see NOTES section for TRANSFERALLDETAIL properties and create a hash table. @@ -3417,7 +3426,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails] # Map of filter type and the details to filter. # This field is required only if the TransferConfigurationType is given as TransferUsingFilter. # To construct, see NOTES section for TRANSFERFILTERDETAIL properties and create a hash table. diff --git a/generated/DataBox/DataBox.Autorest/exports/Update-AzDataBoxJob.ps1 b/generated/DataBox/DataBox.Autorest/exports/Update-AzDataBoxJob.ps1 index 771ea940afe9..31d19efb0050 100644 --- a/generated/DataBox/DataBox.Autorest/exports/Update-AzDataBoxJob.ps1 +++ b/generated/DataBox/DataBox.Autorest/exports/Update-AzDataBoxJob.ps1 @@ -58,7 +58,7 @@ $ShippingDetails = New-AzDataBoxShippingAddressObject -StreetAddress1 "101 TOWNS Update-AzDataBoxJob -Name "pwshTestSAssigned" -ResourceGroupName "resourceGroupName" -KeyEncryptionKey $keyEncryptionDetails -ContactDetail $contactDetail -ShippingAddress $ShippingDetails -IdentityType "SystemAssigned,UserAssigned" -UserAssignedIdentity @{"/subscriptions/SubscriptionId/resourceGroups/resourceGroupName/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identityName" = @{}} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource .Notes COMPLEX PARAMETER PROPERTIES @@ -113,7 +113,7 @@ SHIPPINGADDRESS : Shipping address of the customer. https://learn.microsoft.com/powershell/module/az.databox/update-azdataboxjob #> function Update-AzDataBoxJob { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource])] [CmdletBinding(DefaultParameterSetName='UpdateExpanded', PositionalBinding=$false, SupportsShouldProcess, ConfirmImpact='Medium')] param( [Parameter(Mandatory)] @@ -146,7 +146,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails] # Contact details for notification and shipping. # To construct, see NOTES section for CONTACTDETAIL properties and create a hash table. ${ContactDetail}, @@ -197,7 +197,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey] # Key encryption key for the job. # To construct, see NOTES section for KEYENCRYPTIONKEY properties and create a hash table. ${KeyEncryptionKey}, @@ -229,7 +229,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress] # Shipping address where customer wishes to receive the device. # To construct, see NOTES section for REVERSESHIPPINGDETAIL properties and create a hash table. ${ReverseShippingDetail}, @@ -243,7 +243,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress] # Shipping address of the customer. # To construct, see NOTES section for SHIPPINGADDRESS properties and create a hash table. ${ShippingAddress}, @@ -258,7 +258,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags]))] [System.Collections.Hashtable] # The list of key value pairs that describe the resource. # These tags can be used in viewing and grouping this resource (across resource groups). @@ -273,7 +273,7 @@ param( [Parameter()] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category('Body')] - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities]))] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info(PossibleTypes=([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities]))] [System.Collections.Hashtable] # User Assigned Identities ${UserAssignedIdentity}, diff --git a/generated/DataBox/DataBox.Autorest/generate-info.json b/generated/DataBox/DataBox.Autorest/generate-info.json index d2bf9d7b407e..5c411a2a31ad 100644 --- a/generated/DataBox/DataBox.Autorest/generate-info.json +++ b/generated/DataBox/DataBox.Autorest/generate-info.json @@ -1,3 +1,3 @@ { - "generate_Id": "c3fe9f5c-8d8d-4f0e-b327-bf5f5c72f532" + "generate_Id": "ec44238f-c4db-4be9-8d14-14e23af14ce8" } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/DataBox.cs b/generated/DataBox/DataBox.Autorest/generated/api/DataBox.cs index d43fba5e4a25..9a1fec4b1a03 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/DataBox.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/DataBox.cs @@ -27,9 +27,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsBookShipmentPickUp(string subscriptionId, string resourceGroupName, string jobName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsBookShipmentPickUp(string subscriptionId, string resourceGroupName, string jobName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -74,9 +74,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsBookShipmentPickUpViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsBookShipmentPickUpViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -132,7 +132,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsBookShipmentPickUp_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobsBookShipmentPickUp_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -150,13 +150,13 @@ public partial class DataBox case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShipmentPickUpResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShipmentPickUpResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -184,7 +184,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsBookShipmentPickUp_Validate(string subscriptionId, string resourceGroupName, string jobName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task JobsBookShipmentPickUp_Validate(string subscriptionId, string resourceGroupName, string jobName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -213,9 +213,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsCancel(string subscriptionId, string resourceGroupName, string jobName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReason body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsCancel(string subscriptionId, string resourceGroupName, string jobName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReason body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -260,9 +260,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsCancelViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReason body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsCancelViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReason body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -318,7 +318,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsCancel_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobsCancel_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -342,7 +342,7 @@ public partial class DataBox default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -370,7 +370,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsCancel_Validate(string subscriptionId, string resourceGroupName, string jobName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReason body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task JobsCancel_Validate(string subscriptionId, string resourceGroupName, string jobName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReason body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -402,9 +402,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsCreate(string subscriptionId, string resourceGroupName, string jobName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsCreate(string subscriptionId, string resourceGroupName, string jobName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -451,9 +451,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsCreateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -508,7 +508,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobsCreate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -625,13 +625,13 @@ public partial class DataBox case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -659,7 +659,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsCreate_Validate(string subscriptionId, string resourceGroupName, string jobName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task JobsCreate_Validate(string subscriptionId, string resourceGroupName, string jobName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -688,9 +688,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsDelete(string subscriptionId, string resourceGroupName, string jobName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsDelete(string subscriptionId, string resourceGroupName, string jobName, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -730,9 +730,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsDeleteViaIdentity(global::System.String viaIdentity, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -784,7 +784,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobsDelete_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onOk, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -914,7 +914,7 @@ public partial class DataBox default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -968,9 +968,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsGet(string subscriptionId, string resourceGroupName, string jobName, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsGet(string subscriptionId, string resourceGroupName, string jobName, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1012,9 +1012,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsGetViaIdentity(global::System.String viaIdentity, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsGetViaIdentity(global::System.String viaIdentity, string Expand, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1067,7 +1067,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobsGet_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1085,13 +1085,13 @@ public partial class DataBox case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1144,9 +1144,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsList(string subscriptionId, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsList(string subscriptionId, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1186,9 +1186,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsListByResourceGroup(string subscriptionId, string resourceGroupName, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsListByResourceGroup(string subscriptionId, string resourceGroupName, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1229,9 +1229,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsListByResourceGroupViaIdentity(global::System.String viaIdentity, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsListByResourceGroupViaIdentity(global::System.String viaIdentity, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1282,7 +1282,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobsListByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1300,13 +1300,13 @@ public partial class DataBox case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1355,9 +1355,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsListCredentials(string subscriptionId, string resourceGroupName, string jobName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsListCredentials(string subscriptionId, string resourceGroupName, string jobName, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1397,9 +1397,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsListCredentialsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsListCredentialsViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1451,7 +1451,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsListCredentials_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobsListCredentials_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1469,13 +1469,13 @@ public partial class DataBox case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UnencryptedCredentialsList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UnencryptedCredentialsList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1526,9 +1526,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsListViaIdentity(global::System.String viaIdentity, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsListViaIdentity(global::System.String viaIdentity, string SkipToken, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1576,7 +1576,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1594,13 +1594,13 @@ public partial class DataBox case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResourceList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1648,9 +1648,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsMarkDevicesShipped(string jobName, string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsMarkDevicesShipped(string jobName, string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1695,9 +1695,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsMarkDevicesShippedViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsMarkDevicesShippedViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1753,7 +1753,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsMarkDevicesShipped_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobsMarkDevicesShipped_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -1777,7 +1777,7 @@ public partial class DataBox default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -1805,7 +1805,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsMarkDevicesShipped_Validate(string jobName, string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task JobsMarkDevicesShipped_Validate(string jobName, string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -1836,9 +1836,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsUpdate(string subscriptionId, string resourceGroupName, string jobName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsUpdate(string subscriptionId, string resourceGroupName, string jobName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1890,9 +1890,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task JobsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task JobsUpdateViaIdentity(global::System.String viaIdentity, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameter body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -1953,7 +1953,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task JobsUpdate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2070,13 +2070,13 @@ public partial class DataBox case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResource.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2106,7 +2106,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task JobsUpdate_Validate(string subscriptionId, string resourceGroupName, string jobName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameter body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task JobsUpdate_Validate(string subscriptionId, string resourceGroupName, string jobName, string ifMatch, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameter body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2136,9 +2136,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task Mitigate(string jobName, string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task Mitigate(string jobName, string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2183,9 +2183,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task MitigateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task MitigateViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequest body, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2241,7 +2241,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task Mitigate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task Mitigate_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func onNoContent, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2265,7 +2265,7 @@ public partial class DataBox default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2293,7 +2293,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task Mitigate_Validate(string jobName, string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task Mitigate_Validate(string jobName, string subscriptionId, string resourceGroupName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2317,9 +2317,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsList(global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2353,9 +2353,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task OperationsListViaIdentity(global::System.String viaIdentity, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2398,7 +2398,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task OperationsList_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2416,13 +2416,13 @@ public partial class DataBox case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.OperationList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.OperationList.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2468,9 +2468,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ServiceListAvailableSkusByResourceGroup(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ServiceListAvailableSkusByResourceGroup(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2517,9 +2517,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ServiceListAvailableSkusByResourceGroupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ServiceListAvailableSkusByResourceGroupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2577,7 +2577,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ServiceListAvailableSkusByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ServiceListAvailableSkusByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2595,13 +2595,13 @@ public partial class DataBox case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AvailableSkusResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AvailableSkusResult.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2628,7 +2628,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ServiceListAvailableSkusByResourceGroup_Validate(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ServiceListAvailableSkusByResourceGroup_Validate(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2654,9 +2654,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ServiceRegionConfiguration(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ServiceRegionConfiguration(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2703,9 +2703,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ServiceRegionConfigurationByResourceGroup(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ServiceRegionConfigurationByResourceGroup(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2752,9 +2752,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ServiceRegionConfigurationByResourceGroupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ServiceRegionConfigurationByResourceGroupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2812,7 +2812,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ServiceRegionConfigurationByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ServiceRegionConfigurationByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2830,13 +2830,13 @@ public partial class DataBox case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.RegionConfigurationResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.RegionConfigurationResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2863,7 +2863,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ServiceRegionConfigurationByResourceGroup_Validate(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ServiceRegionConfigurationByResourceGroup_Validate(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -2888,9 +2888,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ServiceRegionConfigurationViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ServiceRegionConfigurationViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -2943,7 +2943,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ServiceRegionConfiguration_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ServiceRegionConfiguration_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -2961,13 +2961,13 @@ public partial class DataBox case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.RegionConfigurationResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.RegionConfigurationResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -2993,7 +2993,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ServiceRegionConfiguration_Validate(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ServiceRegionConfiguration_Validate(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3019,9 +3019,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ServiceValidateAddress(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddress body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ServiceValidateAddress(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddress body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3067,9 +3067,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ServiceValidateAddressViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddress body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ServiceValidateAddressViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddress body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3122,7 +3122,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ServiceValidateAddress_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ServiceValidateAddress_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3140,13 +3140,13 @@ public partial class DataBox case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AddressValidationOutput.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AddressValidationOutput.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3172,7 +3172,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ServiceValidateAddress_Validate(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddress body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ServiceValidateAddress_Validate(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddress body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3195,9 +3195,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ServiceValidateInputs(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ServiceValidateInputs(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3244,9 +3244,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ServiceValidateInputsByResourceGroup(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ServiceValidateInputsByResourceGroup(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3293,9 +3293,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ServiceValidateInputsByResourceGroupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ServiceValidateInputsByResourceGroupViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3353,7 +3353,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ServiceValidateInputsByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ServiceValidateInputsByResourceGroup_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3371,13 +3371,13 @@ public partial class DataBox case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3404,7 +3404,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ServiceValidateInputsByResourceGroup_Validate(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ServiceValidateInputsByResourceGroup_Validate(string subscriptionId, string resourceGroupName, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { @@ -3427,9 +3427,9 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - public async global::System.Threading.Tasks.Task ServiceValidateInputsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + public async global::System.Threading.Tasks.Task ServiceValidateInputsViaIdentity(global::System.String viaIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest body, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { - var apiVersion = @"2022-12-01"; + var apiVersion = @"2025-02-01"; // Constant Parameters using( NoSynchronizationContext ) { @@ -3482,7 +3482,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ServiceValidateInputs_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) + internal async global::System.Threading.Tasks.Task ServiceValidateInputs_Call(global::System.Net.Http.HttpRequestMessage request, global::System.Func, global::System.Threading.Tasks.Task> onOk, global::System.Func, global::System.Threading.Tasks.Task> onDefault, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.ISendAsync sender) { using( NoSynchronizationContext ) { @@ -3500,13 +3500,13 @@ public partial class DataBox case global::System.Net.HttpStatusCode.OK: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onOk(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationResponse.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } default: { await eventListener.Signal(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Events.BeforeResponseDispatch, _response); if( eventListener.Token.IsCancellationRequested ) { return; } - await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); + await onDefault(_response,_response.Content.ReadAsStringAsync().ContinueWith( body => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApiError.FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(body.Result)) )); break; } } @@ -3532,7 +3532,7 @@ public partial class DataBox /// /// A that will be complete when handling of the response is completed. /// - internal async global::System.Threading.Tasks.Task ServiceValidateInputs_Validate(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) + internal async global::System.Threading.Tasks.Task ServiceValidateInputs_Validate(string subscriptionId, string location, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest body, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener eventListener) { using( NoSynchronizationContext ) { diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationRequest.cs deleted file mode 100644 index 875adc9540d1..000000000000 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationRequest.cs +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. See License.txt in the project root for license information. -// Code generated by Microsoft (R) AutoRest Code Generator. -// Changes may cause incorrect behavior and will be lost if the code is regenerated. - -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 -{ - using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; - - /// Request body to get the configuration for the region. - public partial class RegionConfigurationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal - { - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest _datacenterAddressRequest; - - /// Request body to get the datacenter address for given sku. - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest DatacenterAddressRequest { get => (this._datacenterAddressRequest = this._datacenterAddressRequest ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressRequest()); set => this._datacenterAddressRequest = value; } - - /// Sku Name for which the data center address requested. - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? DatacenterAddressRequestSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequestInternal)DatacenterAddressRequest).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequestInternal)DatacenterAddressRequest).SkuName = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName)""); } - - /// - /// Storage location. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 - /// - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DatacenterAddressRequestStorageLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequestInternal)DatacenterAddressRequest).StorageLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequestInternal)DatacenterAddressRequest).StorageLocation = value ?? null; } - - /// Internal Acessors for DatacenterAddressRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal.DatacenterAddressRequest { get => (this._datacenterAddressRequest = this._datacenterAddressRequest ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressRequest()); set { {_datacenterAddressRequest = value;} } } - - /// Internal Acessors for ScheduleAvailabilityRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal.ScheduleAvailabilityRequest { get => (this._scheduleAvailabilityRequest = this._scheduleAvailabilityRequest ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityRequest()); set { {_scheduleAvailabilityRequest = value;} } } - - /// Internal Acessors for TransportAvailabilityRequest - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal.TransportAvailabilityRequest { get => (this._transportAvailabilityRequest = this._transportAvailabilityRequest ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityRequest()); set { {_transportAvailabilityRequest = value;} } } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest _scheduleAvailabilityRequest; - - /// Request body to get the availability for scheduling orders. - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest ScheduleAvailabilityRequest { get => (this._scheduleAvailabilityRequest = this._scheduleAvailabilityRequest ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityRequest()); set => this._scheduleAvailabilityRequest = value; } - - /// Country in which storage location should be supported. - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ScheduleAvailabilityRequestCountry { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)ScheduleAvailabilityRequest).Country; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)ScheduleAvailabilityRequest).Country = value ?? null; } - - /// Sku Name for which the order is to be scheduled. - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? ScheduleAvailabilityRequestSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)ScheduleAvailabilityRequest).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)ScheduleAvailabilityRequest).SkuName = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName)""); } - - /// - /// Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 - /// - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ScheduleAvailabilityRequestStorageLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)ScheduleAvailabilityRequest).StorageLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)ScheduleAvailabilityRequest).StorageLocation = value ?? null; } - - /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest _transportAvailabilityRequest; - - /// Request body to get the transport availability for given sku. - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest TransportAvailabilityRequest { get => (this._transportAvailabilityRequest = this._transportAvailabilityRequest ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityRequest()); set => this._transportAvailabilityRequest = value; } - - /// Type of the device. - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? TransportAvailabilityRequestSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequestInternal)TransportAvailabilityRequest).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequestInternal)TransportAvailabilityRequest).SkuName = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName)""); } - - /// Creates an new instance. - public RegionConfigurationRequest() - { - - } - } - /// Request body to get the configuration for the region. - public partial interface IRegionConfigurationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable - { - /// Sku Name for which the data center address requested. - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Sku Name for which the data center address requested.", - SerializedName = @"skuName", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? DatacenterAddressRequestSkuName { get; set; } - /// - /// Storage location. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 - /// - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Storage location. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01", - SerializedName = @"storageLocation", - PossibleTypes = new [] { typeof(string) })] - string DatacenterAddressRequestStorageLocation { get; set; } - /// Country in which storage location should be supported. - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Country in which storage location should be supported.", - SerializedName = @"country", - PossibleTypes = new [] { typeof(string) })] - string ScheduleAvailabilityRequestCountry { get; set; } - /// Sku Name for which the order is to be scheduled. - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Sku Name for which the order is to be scheduled.", - SerializedName = @"skuName", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? ScheduleAvailabilityRequestSkuName { get; set; } - /// - /// Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 - /// - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01", - SerializedName = @"storageLocation", - PossibleTypes = new [] { typeof(string) })] - string ScheduleAvailabilityRequestStorageLocation { get; set; } - /// Type of the device. - [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( - Required = false, - ReadOnly = false, - Description = @"Type of the device.", - SerializedName = @"skuName", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? TransportAvailabilityRequestSkuName { get; set; } - - } - /// Request body to get the configuration for the region. - internal partial interface IRegionConfigurationRequestInternal - - { - /// Request body to get the datacenter address for given sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest DatacenterAddressRequest { get; set; } - /// Sku Name for which the data center address requested. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? DatacenterAddressRequestSkuName { get; set; } - /// - /// Storage location. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 - /// - string DatacenterAddressRequestStorageLocation { get; set; } - /// Request body to get the availability for scheduling orders. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest ScheduleAvailabilityRequest { get; set; } - /// Country in which storage location should be supported. - string ScheduleAvailabilityRequestCountry { get; set; } - /// Sku Name for which the order is to be scheduled. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? ScheduleAvailabilityRequestSkuName { get; set; } - /// - /// Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 - /// - string ScheduleAvailabilityRequestStorageLocation { get; set; } - /// Request body to get the transport availability for given sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest TransportAvailabilityRequest { get; set; } - /// Type of the device. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? TransportAvailabilityRequestSkuName { get; set; } - - } -} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AccountCredentialDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AccountCredentialDetails.PowerShell.cs similarity index 83% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AccountCredentialDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AccountCredentialDetails.PowerShell.cs index 66ee89f15405..2132deca0560 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AccountCredentialDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AccountCredentialDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AccountCredentialDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,25 +70,25 @@ internal AccountCredentialDetails(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("AccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).AccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).AccountName, global::System.Convert.ToString); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("AccountConnectionString")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).AccountConnectionString = (string) content.GetValueForProperty("AccountConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).AccountConnectionString, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).AccountConnectionString = (string) content.GetValueForProperty("AccountConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).AccountConnectionString, global::System.Convert.ToString); } if (content.Contains("ShareCredentialDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).ShareCredentialDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails[]) content.GetValueForProperty("ShareCredentialDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).ShareCredentialDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShareCredentialDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).ShareCredentialDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails[]) content.GetValueForProperty("ShareCredentialDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).ShareCredentialDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShareCredentialDetailsTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,45 +103,45 @@ internal AccountCredentialDetails(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("AccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).AccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).AccountName, global::System.Convert.ToString); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("AccountConnectionString")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).AccountConnectionString = (string) content.GetValueForProperty("AccountConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).AccountConnectionString, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).AccountConnectionString = (string) content.GetValueForProperty("AccountConnectionString",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).AccountConnectionString, global::System.Convert.ToString); } if (content.Contains("ShareCredentialDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).ShareCredentialDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails[]) content.GetValueForProperty("ShareCredentialDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal)this).ShareCredentialDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShareCredentialDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).ShareCredentialDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails[]) content.GetValueForProperty("ShareCredentialDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal)this).ShareCredentialDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShareCredentialDetailsTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AccountCredentialDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AccountCredentialDetails(content); } @@ -151,7 +151,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAcc /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AccountCredentialDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AccountCredentialDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AccountCredentialDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AccountCredentialDetails.TypeConverter.cs index 38577db5558f..f4bbd21e8e50 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AccountCredentialDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AccountCredentialDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AccountCredentialDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AccountCredentialDetails.cs similarity index 89% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AccountCredentialDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AccountCredentialDetails.cs index 0dcf7e658a29..a31143802d15 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AccountCredentialDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AccountCredentialDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Credential details of the account. public partial class AccountCredentialDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal { /// Backing field for property. @@ -37,23 +37,23 @@ public partial class AccountCredentialDetails : public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? DataAccountType { get => this._dataAccountType; } /// Internal Acessors for AccountConnectionString - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal.AccountConnectionString { get => this._accountConnectionString; set { {_accountConnectionString = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal.AccountConnectionString { get => this._accountConnectionString; set { {_accountConnectionString = value;} } } /// Internal Acessors for AccountName - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal.AccountName { get => this._accountName; set { {_accountName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal.AccountName { get => this._accountName; set { {_accountName = value;} } } /// Internal Acessors for DataAccountType - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal.DataAccountType { get => this._dataAccountType; set { {_dataAccountType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal.DataAccountType { get => this._dataAccountType; set { {_dataAccountType = value;} } } /// Internal Acessors for ShareCredentialDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetailsInternal.ShareCredentialDetail { get => this._shareCredentialDetail; set { {_shareCredentialDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetailsInternal.ShareCredentialDetail { get => this._shareCredentialDetail; set { {_shareCredentialDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails[] _shareCredentialDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails[] _shareCredentialDetail; /// Per share level unencrypted access credentials. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails[] ShareCredentialDetail { get => this._shareCredentialDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails[] ShareCredentialDetail { get => this._shareCredentialDetail; } /// Creates an new instance. public AccountCredentialDetails() @@ -97,8 +97,8 @@ public partial interface IAccountCredentialDetails : ReadOnly = true, Description = @"Per share level unencrypted access credentials.", SerializedName = @"shareCredentialDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails[] ShareCredentialDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails[] ShareCredentialDetail { get; } } /// Credential details of the account. @@ -114,7 +114,7 @@ internal partial interface IAccountCredentialDetailsInternal /// Type of the account. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? DataAccountType { get; set; } /// Per share level unencrypted access credentials. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails[] ShareCredentialDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails[] ShareCredentialDetail { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AccountCredentialDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AccountCredentialDetails.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AccountCredentialDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AccountCredentialDetails.json.cs index 1946c253e32e..a985a13ff2dc 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AccountCredentialDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AccountCredentialDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -68,18 +68,18 @@ internal AccountCredentialDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Run {_accountName = If( json?.PropertyT("accountName"), out var __jsonAccountName) ? (string)__jsonAccountName : (string)AccountName;} {_dataAccountType = If( json?.PropertyT("dataAccountType"), out var __jsonDataAccountType) ? (string)__jsonDataAccountType : (string)DataAccountType;} {_accountConnectionString = If( json?.PropertyT("accountConnectionString"), out var __jsonAccountConnectionString) ? (string)__jsonAccountConnectionString : (string)AccountConnectionString;} - {_shareCredentialDetail = If( json?.PropertyT("shareCredentialDetails"), out var __jsonShareCredentialDetails) ? If( __jsonShareCredentialDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShareCredentialDetails.FromJson(__u) )) ))() : null : ShareCredentialDetail;} + {_shareCredentialDetail = If( json?.PropertyT("shareCredentialDetails"), out var __jsonShareCredentialDetails) ? If( __jsonShareCredentialDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShareCredentialDetails.FromJson(__u) )) ))() : null : ShareCredentialDetail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new AccountCredentialDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AdditionalErrorInfo.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AdditionalErrorInfo.PowerShell.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AdditionalErrorInfo.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AdditionalErrorInfo.PowerShell.cs index 42816142eeac..c48edffb6f47 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AdditionalErrorInfo.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AdditionalErrorInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -57,7 +57,7 @@ public partial class AdditionalErrorInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -72,17 +72,17 @@ internal AdditionalErrorInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfoInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -97,37 +97,37 @@ internal AdditionalErrorInfo(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Info")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfoInternal)this).Info = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny) content.GetValueForProperty("Info",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfoInternal)this).Info, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfoInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfoInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfoInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AdditionalErrorInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AdditionalErrorInfo(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdd /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AdditionalErrorInfo.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AdditionalErrorInfo.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AdditionalErrorInfo.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AdditionalErrorInfo.TypeConverter.cs index c32b877f7b12..bc21e824d5a9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AdditionalErrorInfo.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AdditionalErrorInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AdditionalErrorInfo.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AdditionalErrorInfo.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AdditionalErrorInfo.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AdditionalErrorInfo.cs index b3ff2f52dac7..e878b797fd6c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AdditionalErrorInfo.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AdditionalErrorInfo.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 /// This class represents additional info which Resource Providers pass when an error occurs. /// public partial class AdditionalErrorInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfoInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AdditionalErrorInfo.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AdditionalErrorInfo.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AdditionalErrorInfo.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AdditionalErrorInfo.json.cs index ab588000f39d..ccfd8a7c1ef5 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AdditionalErrorInfo.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AdditionalErrorInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -73,13 +73,13 @@ internal AdditionalErrorInfo(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new AdditionalErrorInfo(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationOutput.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationOutput.PowerShell.cs similarity index 73% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationOutput.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationOutput.PowerShell.cs index 96b2cad5b747..600046efe573 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationOutput.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationOutput.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AddressValidationOutput partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,49 +70,49 @@ internal AddressValidationOutput(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AddressValidationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AddressValidationPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } if (content.Contains("ValidationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus.CreateFrom); } if (content.Contains("AlternateAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).AlternateAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress[]) content.GetValueForProperty("AlternateAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).AlternateAddress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).AlternateAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress[]) content.GetValueForProperty("AlternateAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).AlternateAddress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -127,69 +127,69 @@ internal AddressValidationOutput(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AddressValidationPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AddressValidationPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } if (content.Contains("ValidationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus.CreateFrom); } if (content.Contains("AlternateAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).AlternateAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress[]) content.GetValueForProperty("AlternateAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).AlternateAddress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).AlternateAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress[]) content.GetValueForProperty("AlternateAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).AlternateAddress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutput DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutput DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AddressValidationOutput(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutput DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AddressValidationOutput(content); } @@ -199,7 +199,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdd /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutput FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationOutput.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationOutput.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationOutput.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationOutput.TypeConverter.cs index f20b1aa5906f..a8d8ff78e7d0 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationOutput.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationOutput.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutput ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutput ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutput).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutput).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationOutput.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationOutput.cs similarity index 77% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationOutput.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationOutput.cs index bbc865f1db10..d1c4d18821eb 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationOutput.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationOutput.cs @@ -3,72 +3,72 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Output of the address validation api. public partial class AddressValidationOutput : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutput, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutput, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal { /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).AdditionalInfo; } /// List of alternate addresses. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress[] AlternateAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal)Property).AlternateAddress; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress[] AlternateAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal)Property).AlternateAddress; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).Code = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).Detail; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).Message = value ?? null; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).AdditionalInfo = value; } /// Internal Acessors for AlternateAddress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal.AlternateAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal)Property).AlternateAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal)Property).AlternateAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal.AlternateAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal)Property).AlternateAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal)Property).AlternateAddress = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).Error = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AddressValidationProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AddressValidationProperties()); set { {_property = value;} } } /// Internal Acessors for ValidationStatus - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutputInternal.ValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal)Property).ValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal)Property).ValidationStatus = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutputInternal.ValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal)Property).ValidationStatus; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal)Property).ValidationStatus = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties _property; /// The address validation properties. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AddressValidationProperties()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AddressValidationProperties()); } /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).Target = value ?? null; } /// The address validation status. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus? ValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal)Property).ValidationStatus; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus? ValidationStatus { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal)Property).ValidationStatus; } /// Identifies the type of validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator? ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)Property).ValidationType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator? ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)Property).ValidationType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator)""); } /// Creates an new instance. public AddressValidationOutput() @@ -86,16 +86,16 @@ public partial interface IAddressValidationOutput : ReadOnly = true, Description = @"Gets or sets additional error info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; } /// List of alternate addresses. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = true, Description = @"List of alternate addresses.", SerializedName = @"alternateAddresses", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress[] AlternateAddress { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress[] AlternateAddress { get; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -110,8 +110,8 @@ public partial interface IAddressValidationOutput : ReadOnly = true, Description = @"Gets or sets details for the error.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -151,19 +151,19 @@ internal partial interface IAddressValidationOutputInternal { /// Gets or sets additional error info. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } /// List of alternate addresses. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress[] AlternateAddress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress[] AlternateAddress { get; set; } /// Error code. string Code { get; set; } /// Gets or sets details for the error. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; set; } /// Error code and message of validation response. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get; set; } /// The error message parsed from the body of the http error response. string Message { get; set; } /// The address validation properties. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties Property { get; set; } /// Gets or sets the target of the error. string Target { get; set; } /// The address validation status. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationOutput.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationOutput.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationOutput.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationOutput.json.cs index eab849cae9d5..04693c4d0373 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationOutput.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationOutput.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,18 +65,18 @@ internal AddressValidationOutput(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runt { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AddressValidationProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AddressValidationProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutput. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutput. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutput. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutput. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationOutput FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationOutput FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new AddressValidationOutput(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationProperties.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationProperties.PowerShell.cs similarity index 75% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationProperties.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationProperties.PowerShell.cs index cb69c38134ea..a5882366fe7f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationProperties.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AddressValidationProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,45 +70,45 @@ internal AddressValidationProperties(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("ValidationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus.CreateFrom); } if (content.Contains("AlternateAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal)this).AlternateAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress[]) content.GetValueForProperty("AlternateAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal)this).AlternateAddress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal)this).AlternateAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress[]) content.GetValueForProperty("AlternateAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal)this).AlternateAddress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,67 +123,67 @@ internal AddressValidationProperties(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("ValidationStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal)this).ValidationStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus?) content.GetValueForProperty("ValidationStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal)this).ValidationStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus.CreateFrom); } if (content.Contains("AlternateAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal)this).AlternateAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress[]) content.GetValueForProperty("AlternateAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal)this).AlternateAddress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal)this).AlternateAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress[]) content.GetValueForProperty("AlternateAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal)this).AlternateAddress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AddressValidationProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AddressValidationProperties(content); } @@ -193,7 +193,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdd /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationProperties.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationProperties.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationProperties.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationProperties.TypeConverter.cs index 448ab0e94293..c14076063a35 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationProperties.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationProperties.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationProperties.cs similarity index 77% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationProperties.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationProperties.cs index 399d6d2a1b06..00465ff9cffd 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationProperties.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationProperties.cs @@ -3,67 +3,67 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The address validation output. public partial class AddressValidationProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse(); /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress[] _alternateAddress; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress[] _alternateAddress; /// List of alternate addresses. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress[] AlternateAddress { get => this._alternateAddress; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress[] AlternateAddress { get => this._alternateAddress; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Code = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail; } /// Error code and message of validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Message = value ?? null; } /// Internal Acessors for AlternateAddress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal.AlternateAddress { get => this._alternateAddress; set { {_alternateAddress = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal.AlternateAddress { get => this._alternateAddress; set { {_alternateAddress = value;} } } /// Internal Acessors for ValidationStatus - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationPropertiesInternal.ValidationStatus { get => this._validationStatus; set { {_validationStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationPropertiesInternal.ValidationStatus { get => this._validationStatus; set { {_validationStatus = value;} } } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error = value; } /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Target = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus? _validationStatus; @@ -74,7 +74,7 @@ public partial class AddressValidationProperties : /// Identifies the type of validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).ValidationType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).ValidationType = value ; } /// Creates an new instance. public AddressValidationProperties() @@ -97,7 +97,7 @@ public AddressValidationProperties() /// The address validation output. public partial interface IAddressValidationProperties : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse { /// List of alternate addresses. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -105,8 +105,8 @@ public partial interface IAddressValidationProperties : ReadOnly = true, Description = @"List of alternate addresses.", SerializedName = @"alternateAddresses", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress[] AlternateAddress { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress[] AlternateAddress { get; } /// The address validation status. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -119,10 +119,10 @@ public partial interface IAddressValidationProperties : } /// The address validation output. internal partial interface IAddressValidationPropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal { /// List of alternate addresses. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress[] AlternateAddress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress[] AlternateAddress { get; set; } /// The address validation status. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressValidationStatus? ValidationStatus { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationProperties.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationProperties.json.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationProperties.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationProperties.json.cs index ea6fdbbacbb5..b123be578a5c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AddressValidationProperties.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AddressValidationProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,20 +65,20 @@ internal AddressValidationProperties(Microsoft.Azure.PowerShell.Cmdlets.DataBox. { return; } - __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse(json); + __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse(json); {_validationStatus = If( json?.PropertyT("validationStatus"), out var __jsonValidationStatus) ? (string)__jsonValidationStatus : (string)ValidationStatus;} - {_alternateAddress = If( json?.PropertyT("alternateAddresses"), out var __jsonAlternateAddresses) ? If( __jsonAlternateAddresses as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress.FromJson(__u) )) ))() : null : AlternateAddress;} + {_alternateAddress = If( json?.PropertyT("alternateAddresses"), out var __jsonAlternateAddresses) ? If( __jsonAlternateAddresses as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress.FromJson(__u) )) ))() : null : AlternateAddress;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new AddressValidationProperties(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApiError.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApiError.PowerShell.cs similarity index 78% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApiError.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApiError.PowerShell.cs index 9105306a2fe6..4916fa2aada7 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApiError.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApiError.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -54,7 +54,7 @@ public partial class ApiError partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -69,29 +69,29 @@ internal ApiError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ErrorDetailTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ErrorDetailTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DetailsTypeConverter.ConvertFrom)); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -106,49 +106,49 @@ internal ApiError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ErrorDetailTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ErrorDetailTypeConverter.ConvertFrom); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DetailsTypeConverter.ConvertFrom)); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ApiError(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ApiError(content); } @@ -158,7 +158,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApi /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApiError.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApiError.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApiError.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApiError.TypeConverter.cs index 055e984205ee..6c10b1e1a231 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApiError.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApiError.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApiError.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApiError.cs similarity index 77% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApiError.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApiError.cs index 9c7ac58a7799..3168502b9df5 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApiError.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApiError.cs @@ -3,35 +3,35 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; public partial class ApiError : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal { [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)Error).Code = value ; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)Error).Code = value ; } [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)Error).Detail = value ?? null /* arrayOf */; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail _error; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail _error; [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ErrorDetail()); set => this._error = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ErrorDetail()); set => this._error = value; } [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)Error).Message = value ; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)Error).Message = value ; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ErrorDetail()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiErrorInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ErrorDetail()); set { {_error = value;} } } [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)Error).Target = value ?? null; } /// Creates an new instance. public ApiError() @@ -55,8 +55,8 @@ public partial interface IApiError : ReadOnly = false, Description = @"", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails[] Detail { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, @@ -80,9 +80,9 @@ internal partial interface IApiErrorInternal { string Code { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails[] Detail { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail Error { get; set; } string Message { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApiError.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApiError.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApiError.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApiError.json.cs index b8bbe17398df..fd7979a5a9e1 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApiError.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApiError.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -64,18 +64,18 @@ internal ApiError(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonOb { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ErrorDetail.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ErrorDetail.FromJson(__jsonError) : Error;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ApiError(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApplianceNetworkConfiguration.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApplianceNetworkConfiguration.PowerShell.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApplianceNetworkConfiguration.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApplianceNetworkConfiguration.PowerShell.cs index 40e554f8e2fc..93620aa99b52 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApplianceNetworkConfiguration.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApplianceNetworkConfiguration.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class ApplianceNetworkConfiguration partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,17 +70,17 @@ internal ApplianceNetworkConfiguration(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfigurationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfigurationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("MacAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfigurationInternal)this).MacAddress = (string) content.GetValueForProperty("MacAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfigurationInternal)this).MacAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfigurationInternal)this).MacAddress = (string) content.GetValueForProperty("MacAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfigurationInternal)this).MacAddress, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -95,39 +95,39 @@ internal ApplianceNetworkConfiguration(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfigurationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfigurationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfigurationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("MacAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfigurationInternal)this).MacAddress = (string) content.GetValueForProperty("MacAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfigurationInternal)this).MacAddress, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfigurationInternal)this).MacAddress = (string) content.GetValueForProperty("MacAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfigurationInternal)this).MacAddress, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ApplianceNetworkConfiguration(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ApplianceNetworkConfiguration(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApp /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApplianceNetworkConfiguration.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApplianceNetworkConfiguration.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApplianceNetworkConfiguration.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApplianceNetworkConfiguration.TypeConverter.cs index f2169e540273..323495d3355d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApplianceNetworkConfiguration.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApplianceNetworkConfiguration.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApplianceNetworkConfiguration.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApplianceNetworkConfiguration.cs similarity index 93% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApplianceNetworkConfiguration.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApplianceNetworkConfiguration.cs index c8a8e8d6f2ac..8537a48c38fd 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApplianceNetworkConfiguration.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApplianceNetworkConfiguration.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The Network Adapter configuration of a DataBox. public partial class ApplianceNetworkConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfigurationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfigurationInternal { /// Backing field for property. @@ -21,10 +21,10 @@ public partial class ApplianceNetworkConfiguration : public string MacAddress { get => this._macAddress; } /// Internal Acessors for MacAddress - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfigurationInternal.MacAddress { get => this._macAddress; set { {_macAddress = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfigurationInternal.MacAddress { get => this._macAddress; set { {_macAddress = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfigurationInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfigurationInternal.Name { get => this._name; set { {_name = value;} } } /// Backing field for property. private string _name; diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApplianceNetworkConfiguration.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApplianceNetworkConfiguration.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApplianceNetworkConfiguration.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApplianceNetworkConfiguration.json.cs index 202a4435d5f8..db9d136732c0 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ApplianceNetworkConfiguration.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ApplianceNetworkConfiguration.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -71,13 +71,13 @@ internal ApplianceNetworkConfiguration(Microsoft.Azure.PowerShell.Cmdlets.DataBo } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ApplianceNetworkConfiguration(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ArmBaseObject.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ArmBaseObject.PowerShell.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ArmBaseObject.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ArmBaseObject.PowerShell.cs index 54a3c0d97e2e..66dd1ea1bfc1 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ArmBaseObject.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ArmBaseObject.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class ArmBaseObject partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,21 +70,21 @@ internal ArmBaseObject(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal)this).Type, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -99,41 +99,41 @@ internal ArmBaseObject(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal)this).Type, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObject DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObject DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ArmBaseObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObject DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ArmBaseObject(content); } @@ -143,7 +143,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArm /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObject FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ArmBaseObject.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ArmBaseObject.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ArmBaseObject.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ArmBaseObject.TypeConverter.cs index 4ad3cf31f260..759ac93b10fd 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ArmBaseObject.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ArmBaseObject.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObject ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObject ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObject).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObject).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ArmBaseObject.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ArmBaseObject.cs similarity index 93% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ArmBaseObject.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ArmBaseObject.cs index 68be55abee6a..b58f642a7dc1 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ArmBaseObject.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ArmBaseObject.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Base class for all objects under resource. public partial class ArmBaseObject : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObject, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObject, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal { /// Backing field for property. @@ -21,13 +21,13 @@ public partial class ArmBaseObject : public string Id { get => this._id; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObjectInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObjectInternal.Type { get => this._type; set { {_type = value;} } } /// Backing field for property. private string _name; diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ArmBaseObject.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ArmBaseObject.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ArmBaseObject.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ArmBaseObject.json.cs index ee1a56fed8da..20a0a6dde623 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ArmBaseObject.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ArmBaseObject.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -72,13 +72,13 @@ internal ArmBaseObject(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.J } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObject. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObject. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObject. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObject. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IArmBaseObject FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IArmBaseObject FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ArmBaseObject(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkuRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkuRequest.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkuRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkuRequest.PowerShell.cs index 0dae52cda385..06137aa9fff3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkuRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkuRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AvailableSkuRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,25 +70,25 @@ internal AvailableSkuRequest(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).Country, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName[]) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).SkuName, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName[]) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).SkuName, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,45 +103,45 @@ internal AvailableSkuRequest(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).Country, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName[]) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal)this).SkuName, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName[]) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal)this).SkuName, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AvailableSkuRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AvailableSkuRequest(content); } @@ -151,7 +151,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAva /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkuRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkuRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkuRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkuRequest.TypeConverter.cs index 8fab2cc4e49c..db0a5638a137 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkuRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkuRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkuRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkuRequest.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkuRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkuRequest.cs index 0f2116e9ff4d..31a476e3bc02 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkuRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkuRequest.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The filters for showing the available skus. public partial class AvailableSkuRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequestInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkuRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkuRequest.json.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkuRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkuRequest.json.cs index 01526c5c6756..bc823fbbd6f2 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkuRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkuRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -73,13 +73,13 @@ internal AvailableSkuRequest(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkuRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkuRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new AvailableSkuRequest(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkusResult.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkusResult.PowerShell.cs similarity index 84% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkusResult.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkusResult.PowerShell.cs index 4bbc252b19d9..a5cbc9792215 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkusResult.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkusResult.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AvailableSkusResult partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,17 +70,17 @@ internal AvailableSkusResult(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuInformationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuInformationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -95,37 +95,37 @@ internal AvailableSkusResult(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuInformationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResultInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResultInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuInformationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResultInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResultInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResultInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResult DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResult DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AvailableSkusResult(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResult DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AvailableSkusResult(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAva /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResult FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkusResult.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkusResult.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkusResult.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkusResult.TypeConverter.cs index fdefcd13b8b2..3927f1a49068 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkusResult.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkusResult.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResult ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResult ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResult).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResult).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkusResult.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkusResult.cs similarity index 87% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkusResult.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkusResult.cs index 929409086415..84d486d63962 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkusResult.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkusResult.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The available skus operation response. public partial class AvailableSkusResult : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResult, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResultInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResult, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResultInternal { /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResultInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResultInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -24,11 +24,11 @@ public partial class AvailableSkusResult : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation[] _value; /// List of available skus. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation[] Value { get => this._value; } /// Creates an new instance. public AvailableSkusResult() @@ -54,8 +54,8 @@ public partial interface IAvailableSkusResult : ReadOnly = true, Description = @"List of available skus.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation[] Value { get; } } /// The available skus operation response. @@ -65,7 +65,7 @@ internal partial interface IAvailableSkusResultInternal /// Link for the next set of skus. string NextLink { get; set; } /// List of available skus. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkusResult.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkusResult.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkusResult.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkusResult.json.cs index 017ce0932ee2..e34f6fd8de03 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AvailableSkusResult.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AvailableSkusResult.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,19 +65,19 @@ internal AvailableSkusResult(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime. { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuInformation.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuInformation.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResult. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResult. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResult. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResult. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAvailableSkusResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAvailableSkusResult FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new AvailableSkusResult(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AzureFileFilterDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AzureFileFilterDetails.PowerShell.cs similarity index 87% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AzureFileFilterDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AzureFileFilterDetails.PowerShell.cs index 142712890be4..3b811bc82888 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AzureFileFilterDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AzureFileFilterDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class AzureFileFilterDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,21 +70,21 @@ internal AzureFileFilterDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("FilePrefixList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)this).FilePrefixList = (string[]) content.GetValueForProperty("FilePrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)this).FilePrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)this).FilePrefixList = (string[]) content.GetValueForProperty("FilePrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)this).FilePrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("FilePathList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)this).FilePathList = (string[]) content.GetValueForProperty("FilePathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)this).FilePathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)this).FilePathList = (string[]) content.GetValueForProperty("FilePathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)this).FilePathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("FileShareList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)this).FileShareList = (string[]) content.GetValueForProperty("FileShareList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)this).FileShareList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)this).FileShareList = (string[]) content.GetValueForProperty("FileShareList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)this).FileShareList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -99,41 +99,41 @@ internal AzureFileFilterDetails(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("FilePrefixList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)this).FilePrefixList = (string[]) content.GetValueForProperty("FilePrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)this).FilePrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)this).FilePrefixList = (string[]) content.GetValueForProperty("FilePrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)this).FilePrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("FilePathList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)this).FilePathList = (string[]) content.GetValueForProperty("FilePathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)this).FilePathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)this).FilePathList = (string[]) content.GetValueForProperty("FilePathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)this).FilePathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("FileShareList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)this).FileShareList = (string[]) content.GetValueForProperty("FileShareList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)this).FileShareList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)this).FileShareList = (string[]) content.GetValueForProperty("FileShareList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)this).FileShareList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new AzureFileFilterDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new AzureFileFilterDetails(content); } @@ -143,7 +143,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzu /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AzureFileFilterDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AzureFileFilterDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AzureFileFilterDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AzureFileFilterDetails.TypeConverter.cs index c92e41de962f..cbf108cae7f8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AzureFileFilterDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AzureFileFilterDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AzureFileFilterDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AzureFileFilterDetails.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AzureFileFilterDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AzureFileFilterDetails.cs index d62fed542f83..8ec11ada03af 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AzureFileFilterDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AzureFileFilterDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Filter details to transfer Azure files public partial class AzureFileFilterDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AzureFileFilterDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AzureFileFilterDetails.json.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AzureFileFilterDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AzureFileFilterDetails.json.cs index 6b1acf3aece5..d1d8bfe9f67d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/AzureFileFilterDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/AzureFileFilterDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -72,13 +72,13 @@ internal AzureFileFilterDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runti } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new AzureFileFilterDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/BlobFilterDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/BlobFilterDetails.PowerShell.cs similarity index 87% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/BlobFilterDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/BlobFilterDetails.PowerShell.cs index 3d70cfb30af2..b741266e6be9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/BlobFilterDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/BlobFilterDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class BlobFilterDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,21 +70,21 @@ internal BlobFilterDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("BlobPrefixList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)this).BlobPrefixList = (string[]) content.GetValueForProperty("BlobPrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)this).BlobPrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)this).BlobPrefixList = (string[]) content.GetValueForProperty("BlobPrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)this).BlobPrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("BlobPathList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)this).BlobPathList = (string[]) content.GetValueForProperty("BlobPathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)this).BlobPathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)this).BlobPathList = (string[]) content.GetValueForProperty("BlobPathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)this).BlobPathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ContainerList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)this).ContainerList = (string[]) content.GetValueForProperty("ContainerList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)this).ContainerList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)this).ContainerList = (string[]) content.GetValueForProperty("ContainerList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)this).ContainerList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -99,41 +99,41 @@ internal BlobFilterDetails(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("BlobPrefixList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)this).BlobPrefixList = (string[]) content.GetValueForProperty("BlobPrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)this).BlobPrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)this).BlobPrefixList = (string[]) content.GetValueForProperty("BlobPrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)this).BlobPrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("BlobPathList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)this).BlobPathList = (string[]) content.GetValueForProperty("BlobPathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)this).BlobPathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)this).BlobPathList = (string[]) content.GetValueForProperty("BlobPathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)this).BlobPathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("ContainerList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)this).ContainerList = (string[]) content.GetValueForProperty("ContainerList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)this).ContainerList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)this).ContainerList = (string[]) content.GetValueForProperty("ContainerList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)this).ContainerList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new BlobFilterDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new BlobFilterDetails(content); } @@ -143,7 +143,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlo /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/BlobFilterDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/BlobFilterDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/BlobFilterDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/BlobFilterDetails.TypeConverter.cs index ca3db7feea8d..5cc688c59d48 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/BlobFilterDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/BlobFilterDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/BlobFilterDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/BlobFilterDetails.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/BlobFilterDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/BlobFilterDetails.cs index 3b2dd865afd6..a2cc4281595a 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/BlobFilterDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/BlobFilterDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Filter details to transfer Azure Blobs public partial class BlobFilterDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/BlobFilterDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/BlobFilterDetails.json.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/BlobFilterDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/BlobFilterDetails.json.cs index fa3266b47684..187c81460cb1 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/BlobFilterDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/BlobFilterDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -72,13 +72,13 @@ internal BlobFilterDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new BlobFilterDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CancellationReason.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CancellationReason.PowerShell.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CancellationReason.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CancellationReason.PowerShell.cs index 52ce9a262f27..6c9e7b602b68 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CancellationReason.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CancellationReason.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CancellationReason partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,13 +70,13 @@ internal CancellationReason(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Reason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReasonInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReasonInternal)this).Reason, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReasonInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReasonInternal)this).Reason, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -91,33 +91,33 @@ internal CancellationReason(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("Reason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReasonInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReasonInternal)this).Reason, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReasonInternal)this).Reason = (string) content.GetValueForProperty("Reason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReasonInternal)this).Reason, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReason DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReason DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CancellationReason(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReason DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReason DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CancellationReason(content); } @@ -127,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICan /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReason FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReason FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CancellationReason.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CancellationReason.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CancellationReason.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CancellationReason.TypeConverter.cs index e16e4e595122..54e086470314 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CancellationReason.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CancellationReason.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReason ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReason ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReason).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReason).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CancellationReason.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CancellationReason.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CancellationReason.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CancellationReason.cs index f1ae7b2c6f45..5c88fe2eb87a 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CancellationReason.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CancellationReason.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Reason for cancellation. public partial class CancellationReason : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReason, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReasonInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReason, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReasonInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CancellationReason.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CancellationReason.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CancellationReason.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CancellationReason.json.cs index 074e22a8f684..449d03128448 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CancellationReason.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CancellationReason.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -70,13 +70,13 @@ internal CancellationReason(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.J } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReason. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReason. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReason. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReason. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReason FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReason FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new CancellationReason(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CloudError.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CloudError.PowerShell.cs similarity index 78% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CloudError.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CloudError.PowerShell.cs index 3cff6defdfb9..cadb1e568ee7 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CloudError.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CloudError.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CloudError partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,29 +70,29 @@ internal CloudError(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,49 +107,49 @@ internal CloudError(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CloudError(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CloudError(content); } @@ -159,7 +159,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IClo /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CloudError.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CloudError.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CloudError.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CloudError.TypeConverter.cs index ced3396a2926..420e4d692550 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CloudError.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CloudError.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CloudError.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CloudError.cs similarity index 87% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CloudError.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CloudError.cs index 2fe299df32f0..9e94374759ef 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CloudError.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CloudError.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Provides additional information about an http error response. public partial class CloudError : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] _additionalInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] _additionalInfo; /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => this._additionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => this._additionalInfo; } /// Backing field for property. private string _code; @@ -28,11 +28,11 @@ public partial class CloudError : public string Code { get => this._code; set => this._code = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] _detail; /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => this._detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => this._detail; } /// Backing field for property. private string _message; @@ -42,10 +42,10 @@ public partial class CloudError : public string Message { get => this._message; set => this._message = value; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal.AdditionalInfo { get => this._additionalInfo; set { {_additionalInfo = value;} } } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal.Detail { get => this._detail; set { {_detail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal.Detail { get => this._detail; set { {_detail = value;} } } /// Backing field for property. private string _target; @@ -70,8 +70,8 @@ public partial interface ICloudError : ReadOnly = true, Description = @"Gets or sets additional error info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -86,8 +86,8 @@ public partial interface ICloudError : ReadOnly = true, Description = @"Gets or sets details for the error.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -111,11 +111,11 @@ internal partial interface ICloudErrorInternal { /// Gets or sets additional error info. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } /// Error code. string Code { get; set; } /// Gets or sets details for the error. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; set; } /// The error message parsed from the body of the http error response. string Message { get; set; } /// Gets or sets the target of the error. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CloudError.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CloudError.json.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CloudError.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CloudError.json.cs index 320ce46bb424..494810288644 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CloudError.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CloudError.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,22 +65,22 @@ internal CloudError(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.Json { return; } - {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfo.FromJson(__u) )) ))() : null : AdditionalInfo;} + {_additionalInfo = If( json?.PropertyT("additionalInfo"), out var __jsonAdditionalInfo) ? If( __jsonAdditionalInfo as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfo.FromJson(__u) )) ))() : null : AdditionalInfo;} {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError.FromJson(__p) )) ))() : null : Detail;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError.FromJson(__p) )) ))() : null : Detail;} {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new CloudError(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactDetails.PowerShell.cs similarity index 80% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactDetails.PowerShell.cs index 69b498129be6..5ae7b2a02d8a 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class ContactDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,33 +70,33 @@ internal ContactDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ContactName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).ContactName = (string) content.GetValueForProperty("ContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).ContactName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).ContactName = (string) content.GetValueForProperty("ContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).ContactName, global::System.Convert.ToString); } if (content.Contains("Phone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).Phone = (string) content.GetValueForProperty("Phone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).Phone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).Phone = (string) content.GetValueForProperty("Phone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).Phone, global::System.Convert.ToString); } if (content.Contains("PhoneExtension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).PhoneExtension = (string) content.GetValueForProperty("PhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).PhoneExtension, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).PhoneExtension = (string) content.GetValueForProperty("PhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).PhoneExtension, global::System.Convert.ToString); } if (content.Contains("Mobile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).Mobile = (string) content.GetValueForProperty("Mobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).Mobile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).Mobile = (string) content.GetValueForProperty("Mobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).Mobile, global::System.Convert.ToString); } if (content.Contains("EmailList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).EmailList = (string[]) content.GetValueForProperty("EmailList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).EmailList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).EmailList = (string[]) content.GetValueForProperty("EmailList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).EmailList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("NotificationPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).NotificationPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference[]) content.GetValueForProperty("NotificationPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).NotificationPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.NotificationPreferenceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).NotificationPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference[]) content.GetValueForProperty("NotificationPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).NotificationPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.NotificationPreferenceTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -111,53 +111,53 @@ internal ContactDetails(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ContactName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).ContactName = (string) content.GetValueForProperty("ContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).ContactName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).ContactName = (string) content.GetValueForProperty("ContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).ContactName, global::System.Convert.ToString); } if (content.Contains("Phone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).Phone = (string) content.GetValueForProperty("Phone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).Phone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).Phone = (string) content.GetValueForProperty("Phone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).Phone, global::System.Convert.ToString); } if (content.Contains("PhoneExtension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).PhoneExtension = (string) content.GetValueForProperty("PhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).PhoneExtension, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).PhoneExtension = (string) content.GetValueForProperty("PhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).PhoneExtension, global::System.Convert.ToString); } if (content.Contains("Mobile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).Mobile = (string) content.GetValueForProperty("Mobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).Mobile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).Mobile = (string) content.GetValueForProperty("Mobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).Mobile, global::System.Convert.ToString); } if (content.Contains("EmailList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).EmailList = (string[]) content.GetValueForProperty("EmailList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).EmailList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).EmailList = (string[]) content.GetValueForProperty("EmailList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).EmailList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("NotificationPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).NotificationPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference[]) content.GetValueForProperty("NotificationPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal)this).NotificationPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.NotificationPreferenceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).NotificationPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference[]) content.GetValueForProperty("NotificationPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal)this).NotificationPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.NotificationPreferenceTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContactDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContactDetails(content); } @@ -167,7 +167,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICon /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactDetails.TypeConverter.cs index 95d1a0290200..d39f76341fa6 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactDetails.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactDetails.cs index e6e004053009..463af2a570f8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Contact Details. public partial class ContactDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetailsInternal { /// Backing field for property. @@ -35,11 +35,11 @@ public partial class ContactDetails : public string Mobile { get => this._mobile; set => this._mobile = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference[] _notificationPreference; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference[] _notificationPreference; /// Notification preference for a job stage. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference[] NotificationPreference { get => this._notificationPreference; set => this._notificationPreference = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference[] NotificationPreference { get => this._notificationPreference; set => this._notificationPreference = value; } /// Backing field for property. private string _phone; @@ -95,8 +95,8 @@ public partial interface IContactDetails : ReadOnly = false, Description = @"Notification preference for a job stage.", SerializedName = @"notificationPreference", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference[] NotificationPreference { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference[] NotificationPreference { get; set; } /// Phone number of the contact person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, @@ -126,7 +126,7 @@ internal partial interface IContactDetailsInternal /// Mobile number of the contact person. string Mobile { get; set; } /// Notification preference for a job stage. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference[] NotificationPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference[] NotificationPreference { get; set; } /// Phone number of the contact person. string Phone { get; set; } /// Phone extension number of the contact person. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactDetails.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactDetails.json.cs index 36a9958c7c1c..1508349c534d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -70,18 +70,18 @@ internal ContactDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json. {_phoneExtension = If( json?.PropertyT("phoneExtension"), out var __jsonPhoneExtension) ? (string)__jsonPhoneExtension : (string)PhoneExtension;} {_mobile = If( json?.PropertyT("mobile"), out var __jsonMobile) ? (string)__jsonMobile : (string)Mobile;} {_emailList = If( json?.PropertyT("emailList"), out var __jsonEmailList) ? If( __jsonEmailList as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : EmailList;} - {_notificationPreference = If( json?.PropertyT("notificationPreference"), out var __jsonNotificationPreference) ? If( __jsonNotificationPreference as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.NotificationPreference.FromJson(__p) )) ))() : null : NotificationPreference;} + {_notificationPreference = If( json?.PropertyT("notificationPreference"), out var __jsonNotificationPreference) ? If( __jsonNotificationPreference as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.NotificationPreference.FromJson(__p) )) ))() : null : NotificationPreference;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ContactDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactInfo.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactInfo.PowerShell.cs similarity index 84% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactInfo.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactInfo.PowerShell.cs index 314a38da618b..785f6e016954 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactInfo.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class ContactInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,25 +70,25 @@ internal ContactInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ContactName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).ContactName = (string) content.GetValueForProperty("ContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).ContactName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).ContactName = (string) content.GetValueForProperty("ContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).ContactName, global::System.Convert.ToString); } if (content.Contains("Phone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).Phone = (string) content.GetValueForProperty("Phone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).Phone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).Phone = (string) content.GetValueForProperty("Phone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).Phone, global::System.Convert.ToString); } if (content.Contains("PhoneExtension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).PhoneExtension = (string) content.GetValueForProperty("PhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).PhoneExtension, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).PhoneExtension = (string) content.GetValueForProperty("PhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).PhoneExtension, global::System.Convert.ToString); } if (content.Contains("Mobile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).Mobile = (string) content.GetValueForProperty("Mobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).Mobile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).Mobile = (string) content.GetValueForProperty("Mobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).Mobile, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,45 +103,45 @@ internal ContactInfo(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ContactName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).ContactName = (string) content.GetValueForProperty("ContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).ContactName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).ContactName = (string) content.GetValueForProperty("ContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).ContactName, global::System.Convert.ToString); } if (content.Contains("Phone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).Phone = (string) content.GetValueForProperty("Phone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).Phone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).Phone = (string) content.GetValueForProperty("Phone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).Phone, global::System.Convert.ToString); } if (content.Contains("PhoneExtension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).PhoneExtension = (string) content.GetValueForProperty("PhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).PhoneExtension, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).PhoneExtension = (string) content.GetValueForProperty("PhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).PhoneExtension, global::System.Convert.ToString); } if (content.Contains("Mobile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).Mobile = (string) content.GetValueForProperty("Mobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)this).Mobile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).Mobile = (string) content.GetValueForProperty("Mobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)this).Mobile, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ContactInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ContactInfo(content); } @@ -151,7 +151,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICon /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactInfo.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactInfo.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactInfo.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactInfo.TypeConverter.cs index 2f8eebe1adc6..a373b9397fc9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactInfo.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactInfo.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactInfo.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactInfo.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactInfo.cs index d6d2dd015383..52fd4d3ba847 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactInfo.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactInfo.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Contact Info. public partial class ContactInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactInfo.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactInfo.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactInfo.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactInfo.json.cs index 366cfedf308d..786a47231805 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ContactInfo.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ContactInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -73,13 +73,13 @@ internal ContactInfo(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.Jso } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ContactInfo(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyLogDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyLogDetails.PowerShell.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyLogDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyLogDetails.PowerShell.cs index ae38d74d32ee..c418fa089d63 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyLogDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyLogDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CopyLogDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,13 +70,13 @@ internal CopyLogDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -91,33 +91,33 @@ internal CopyLogDetails(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CopyLogDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CopyLogDetails(content); } @@ -127,7 +127,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICop /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyLogDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyLogDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyLogDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyLogDetails.TypeConverter.cs index ddc8830812ad..441c73e83b90 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyLogDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyLogDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyLogDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyLogDetails.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyLogDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyLogDetails.cs index 6e4e8d1da14d..c9f7d05e932e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyLogDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyLogDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Details for log generated during copy. public partial class CopyLogDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyLogDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyLogDetails.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyLogDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyLogDetails.json.cs index a5b73e5bec2d..3627660bf76f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyLogDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyLogDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -70,15 +70,15 @@ internal CopyLogDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails interface is polymorphic, and + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails interface is polymorphic, and /// the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)) { diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyProgress.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyProgress.PowerShell.cs similarity index 74% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyProgress.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyProgress.PowerShell.cs index 94055956cafb..ccbdeae43ced 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyProgress.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyProgress.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CopyProgress partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,97 +70,97 @@ internal CopyProgress(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("StorageAccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("AccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AccountId, global::System.Convert.ToString); } if (content.Contains("BytesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalBytesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalFilesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFileBytesUploaded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RenamedContainerCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DirectoriesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidDirectoriesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("IsEnumerationInProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -175,117 +175,117 @@ internal CopyProgress(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("StorageAccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("AccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AccountId, global::System.Convert.ToString); } if (content.Contains("BytesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalBytesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalFilesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFileBytesUploaded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RenamedContainerCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DirectoriesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidDirectoriesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("IsEnumerationInProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CopyProgress(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CopyProgress(content); } @@ -295,7 +295,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICop /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyProgress.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyProgress.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyProgress.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyProgress.TypeConverter.cs index 316379eccfff..52b222a6c2b2 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyProgress.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyProgress.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyProgress.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyProgress.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyProgress.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyProgress.cs index 5014bd4612c6..f52fc2bf903f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyProgress.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyProgress.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Copy progress. public partial class CopyProgress : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal { /// Backing field for property. @@ -29,7 +29,7 @@ public partial class CopyProgress : /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo; } /// Backing field for property. private long? _bytesProcessed; @@ -40,7 +40,7 @@ public partial class CopyProgress : /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Code = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? _dataAccountType; @@ -51,7 +51,7 @@ public partial class CopyProgress : /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail; } /// Backing field for property. private long? _directoriesErroredOut; @@ -61,11 +61,11 @@ public partial class CopyProgress : public long? DirectoriesErroredOut { get => this._directoriesErroredOut; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError _error; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError _error; /// Error, if any, in the stage [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError()); } /// Backing field for property. private long? _filesErroredOut; @@ -118,64 +118,64 @@ public partial class CopyProgress : /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Message = value ?? null; } /// Internal Acessors for AccountId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.AccountId { get => this._accountId; set { {_accountId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.AccountId { get => this._accountId; set { {_accountId = value;} } } /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.Action { get => this._action; set { {_action = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.Action { get => this._action; set { {_action = value;} } } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo = value; } /// Internal Acessors for BytesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.BytesProcessed { get => this._bytesProcessed; set { {_bytesProcessed = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.BytesProcessed { get => this._bytesProcessed; set { {_bytesProcessed = value;} } } /// Internal Acessors for DataAccountType - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.DataAccountType { get => this._dataAccountType; set { {_dataAccountType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.DataAccountType { get => this._dataAccountType; set { {_dataAccountType = value;} } } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail = value; } /// Internal Acessors for DirectoriesErroredOut - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.DirectoriesErroredOut { get => this._directoriesErroredOut; set { {_directoriesErroredOut = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.DirectoriesErroredOut { get => this._directoriesErroredOut; set { {_directoriesErroredOut = value;} } } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError()); set { {_error = value;} } } /// Internal Acessors for FilesErroredOut - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.FilesErroredOut { get => this._filesErroredOut; set { {_filesErroredOut = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.FilesErroredOut { get => this._filesErroredOut; set { {_filesErroredOut = value;} } } /// Internal Acessors for FilesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.FilesProcessed { get => this._filesProcessed; set { {_filesProcessed = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.FilesProcessed { get => this._filesProcessed; set { {_filesProcessed = value;} } } /// Internal Acessors for InvalidDirectoriesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.InvalidDirectoriesProcessed { get => this._invalidDirectoriesProcessed; set { {_invalidDirectoriesProcessed = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.InvalidDirectoriesProcessed { get => this._invalidDirectoriesProcessed; set { {_invalidDirectoriesProcessed = value;} } } /// Internal Acessors for InvalidFileBytesUploaded - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.InvalidFileBytesUploaded { get => this._invalidFileBytesUploaded; set { {_invalidFileBytesUploaded = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.InvalidFileBytesUploaded { get => this._invalidFileBytesUploaded; set { {_invalidFileBytesUploaded = value;} } } /// Internal Acessors for InvalidFilesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.InvalidFilesProcessed { get => this._invalidFilesProcessed; set { {_invalidFilesProcessed = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.InvalidFilesProcessed { get => this._invalidFilesProcessed; set { {_invalidFilesProcessed = value;} } } /// Internal Acessors for IsEnumerationInProgress - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.IsEnumerationInProgress { get => this._isEnumerationInProgress; set { {_isEnumerationInProgress = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.IsEnumerationInProgress { get => this._isEnumerationInProgress; set { {_isEnumerationInProgress = value;} } } /// Internal Acessors for RenamedContainerCount - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.RenamedContainerCount { get => this._renamedContainerCount; set { {_renamedContainerCount = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.RenamedContainerCount { get => this._renamedContainerCount; set { {_renamedContainerCount = value;} } } /// Internal Acessors for StorageAccountName - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.StorageAccountName { get => this._storageAccountName; set { {_storageAccountName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.StorageAccountName { get => this._storageAccountName; set { {_storageAccountName = value;} } } /// Internal Acessors for TotalBytesToProcess - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.TotalBytesToProcess { get => this._totalBytesToProcess; set { {_totalBytesToProcess = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.TotalBytesToProcess { get => this._totalBytesToProcess; set { {_totalBytesToProcess = value;} } } /// Internal Acessors for TotalFilesToProcess - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.TotalFilesToProcess { get => this._totalFilesToProcess; set { {_totalFilesToProcess = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.TotalFilesToProcess { get => this._totalFilesToProcess; set { {_totalFilesToProcess = value;} } } /// Internal Acessors for TransferType - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.TransferType { get => this._transferType; set { {_transferType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.TransferType { get => this._transferType; set { {_transferType = value;} } } /// Backing field for property. private long? _renamedContainerCount; @@ -197,7 +197,7 @@ public partial class CopyProgress : /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Target = value ?? null; } /// Backing field for property. private long? _totalBytesToProcess; @@ -252,8 +252,8 @@ public partial interface ICopyProgress : ReadOnly = true, Description = @"Gets or sets additional error info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; } /// To indicate bytes transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -284,8 +284,8 @@ public partial interface ICopyProgress : ReadOnly = true, Description = @"Gets or sets details for the error.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; } /// To indicate directories errored out in the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -421,7 +421,7 @@ internal partial interface ICopyProgressInternal /// Available actions on the job. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get; set; } /// Gets or sets additional error info. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } /// To indicate bytes transferred. long? BytesProcessed { get; set; } /// Error code. @@ -429,11 +429,11 @@ internal partial interface ICopyProgressInternal /// Data Account Type. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? DataAccountType { get; set; } /// Gets or sets details for the error. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; set; } /// To indicate directories errored out in the job. long? DirectoriesErroredOut { get; set; } /// Error, if any, in the stage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get; set; } /// Number of files which could not be copied long? FilesErroredOut { get; set; } /// Number of files processed diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyProgress.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyProgress.json.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyProgress.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyProgress.json.cs index fe834f4b4d3c..f1bc700cedb8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CopyProgress.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CopyProgress.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,7 +65,7 @@ internal CopyProgress(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.Js { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError.FromJson(__jsonError) : Error;} {_storageAccountName = If( json?.PropertyT("storageAccountName"), out var __jsonStorageAccountName) ? (string)__jsonStorageAccountName : (string)StorageAccountName;} {_transferType = If( json?.PropertyT("transferType"), out var __jsonTransferType) ? (string)__jsonTransferType : (string)TransferType;} {_dataAccountType = If( json?.PropertyT("dataAccountType"), out var __jsonDataAccountType) ? (string)__jsonDataAccountType : (string)DataAccountType;} @@ -86,13 +86,13 @@ internal CopyProgress(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new CopyProgress(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateJobValidations.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateJobValidations.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateJobValidations.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateJobValidations.PowerShell.cs index d245ad025caa..c371725b40ab 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateJobValidations.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateJobValidations.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CreateJobValidations partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,17 +70,17 @@ internal CreateJobValidations(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ValidationCategory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).ValidationCategory = (string) content.GetValueForProperty("ValidationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).ValidationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).ValidationCategory = (string) content.GetValueForProperty("ValidationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).ValidationCategory, global::System.Convert.ToString); } if (content.Contains("IndividualRequestDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).IndividualRequestDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest[]) content.GetValueForProperty("IndividualRequestDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).IndividualRequestDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequestTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).IndividualRequestDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest[]) content.GetValueForProperty("IndividualRequestDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).IndividualRequestDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequestTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -95,37 +95,37 @@ internal CreateJobValidations(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("ValidationCategory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).ValidationCategory = (string) content.GetValueForProperty("ValidationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).ValidationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).ValidationCategory = (string) content.GetValueForProperty("ValidationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).ValidationCategory, global::System.Convert.ToString); } if (content.Contains("IndividualRequestDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).IndividualRequestDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest[]) content.GetValueForProperty("IndividualRequestDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).IndividualRequestDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequestTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).IndividualRequestDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest[]) content.GetValueForProperty("IndividualRequestDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).IndividualRequestDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequestTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateJobValidations DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateJobValidations DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CreateJobValidations(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateJobValidations DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateJobValidations DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CreateJobValidations(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICre /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateJobValidations FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateJobValidations FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateJobValidations.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateJobValidations.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateJobValidations.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateJobValidations.TypeConverter.cs index ede030413d05..a0d721e3a0aa 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateJobValidations.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateJobValidations.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateJobValidations ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateJobValidations ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateJobValidations).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateJobValidations).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateJobValidations.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateJobValidations.cs similarity index 82% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateJobValidations.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateJobValidations.cs index 14751b44824b..714b47d58e08 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateJobValidations.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateJobValidations.cs @@ -3,34 +3,34 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// It does all pre-job creation validations. public partial class CreateJobValidations : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateJobValidations, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateJobValidationsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateJobValidations, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateJobValidationsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest __validationRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest __validationRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationRequest(); /// /// List of request details contain validationType and its request as key and value respectively. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest[] IndividualRequestDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)__validationRequest).IndividualRequestDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)__validationRequest).IndividualRequestDetail = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest[] IndividualRequestDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)__validationRequest).IndividualRequestDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)__validationRequest).IndividualRequestDetail = value ; } /// Internal Acessors for ValidationCategory - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal.ValidationCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)__validationRequest).ValidationCategory; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)__validationRequest).ValidationCategory = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal.ValidationCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)__validationRequest).ValidationCategory; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)__validationRequest).ValidationCategory = value; } /// Identify the nature of validation. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string ValidationCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)__validationRequest).ValidationCategory; } + public string ValidationCategory { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)__validationRequest).ValidationCategory; } /// Creates an new instance. public CreateJobValidations() @@ -53,13 +53,13 @@ public CreateJobValidations() /// It does all pre-job creation validations. public partial interface ICreateJobValidations : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest { } /// It does all pre-job creation validations. internal partial interface ICreateJobValidationsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal { } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateJobValidations.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateJobValidations.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateJobValidations.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateJobValidations.json.cs index 805014a1e4ac..5c3d49d0f2c5 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateJobValidations.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateJobValidations.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,18 +65,18 @@ internal CreateJobValidations(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime { return; } - __validationRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationRequest(json); + __validationRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationRequest(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateJobValidations. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateJobValidations. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateJobValidations. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateJobValidations. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateJobValidations FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateJobValidations FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new CreateJobValidations(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationRequest.PowerShell.cs similarity index 81% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationRequest.PowerShell.cs index 0c32d18ebd13..6006f0e7ce77 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CreateOrderLimitForSubscriptionValidationRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,17 +70,21 @@ internal CreateOrderLimitForSubscriptionValidationRequest(global::System.Collect // actually deserialize if (content.Contains("DeviceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -95,39 +99,43 @@ internal CreateOrderLimitForSubscriptionValidationRequest(global::System.Managem // actually deserialize if (content.Contains("DeviceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CreateOrderLimitForSubscriptionValidationRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CreateOrderLimitForSubscriptionValidationRequest(content); } @@ -140,7 +148,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICre /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationRequest.TypeConverter.cs index 85774323ba2d..df25aca782ed 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationRequest.cs similarity index 63% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationRequest.cs index d3fa708d89da..6c5c690b3c46 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationRequest.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Request to validate create order limit for current subscription. public partial class CreateOrderLimitForSubscriptionValidationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest(); /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName _deviceType; @@ -26,9 +26,19 @@ public partial class CreateOrderLimitForSubscriptionValidationRequest : [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName DeviceType { get => this._deviceType; set => this._deviceType = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? _model; + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get => this._model; set => this._model = value; } + /// Identifies the type of validation request. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)__validationInputRequest).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)__validationInputRequest).ValidationType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)__validationInputRequest).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)__validationInputRequest).ValidationType = value ; } /// /// Creates an new instance. @@ -53,7 +63,7 @@ public CreateOrderLimitForSubscriptionValidationRequest() /// Request to validate create order limit for current subscription. public partial interface ICreateOrderLimitForSubscriptionValidationRequest : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest { /// Device type to be used for the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -63,14 +73,30 @@ public partial interface ICreateOrderLimitForSubscriptionValidationRequest : SerializedName = @"deviceType", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) })] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName DeviceType { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } } /// Request to validate create order limit for current subscription. internal partial interface ICreateOrderLimitForSubscriptionValidationRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal { /// Device type to be used for the job. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName DeviceType { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationRequest.json.cs similarity index 91% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationRequest.json.cs index 8a7018208f84..5fe34353bbdc 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -66,19 +66,20 @@ internal CreateOrderLimitForSubscriptionValidationRequest(Microsoft.Azure.PowerS { return; } - __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest(json); + __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest(json); {_deviceType = If( json?.PropertyT("deviceType"), out var __jsonDeviceType) ? (string)__jsonDeviceType : (string)DeviceType;} + {_model = If( json?.PropertyT("model"), out var __jsonModel) ? (string)__jsonModel : (string)Model;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new CreateOrderLimitForSubscriptionValidationRequest(json) : null; } @@ -106,6 +107,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M } __validationInputRequest?.ToJson(container, serializationMode); AddIf( null != (((object)this._deviceType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._deviceType.ToString()) : null, "deviceType" ,container.Add ); + AddIf( null != (((object)this._model)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._model.ToString()) : null, "model" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationResponseProperties.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationResponseProperties.PowerShell.cs similarity index 78% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationResponseProperties.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationResponseProperties.PowerShell.cs index 6aa0492b24e1..afe1197e1077 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationResponseProperties.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationResponseProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CreateOrderLimitForSubscriptionValidationResponseProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,41 +70,41 @@ internal CreateOrderLimitForSubscriptionValidationResponseProperties(global::Sys // actually deserialize if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -119,63 +119,63 @@ internal CreateOrderLimitForSubscriptionValidationResponseProperties(global::Sys // actually deserialize if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CreateOrderLimitForSubscriptionValidationResponseProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CreateOrderLimitForSubscriptionValidationResponseProperties(content); } @@ -188,7 +188,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICre /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationResponseProperties.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationResponseProperties.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationResponseProperties.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationResponseProperties.TypeConverter.cs index 3df6b554ef24..55666f6ca58a 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationResponseProperties.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationResponseProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is /// no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponseProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponseProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponseProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponseProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationResponseProperties.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationResponseProperties.cs similarity index 78% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationResponseProperties.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationResponseProperties.cs index b6887f71264e..2b89ebc31a78 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationResponseProperties.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationResponseProperties.cs @@ -3,53 +3,53 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Properties of create order limit for subscription validation response. public partial class CreateOrderLimitForSubscriptionValidationResponseProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponseProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponsePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponseProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponsePropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse(); /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Code = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail; } /// Error code and message of validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Message = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponsePropertiesInternal.Status { get => this._status; set { {_status = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponsePropertiesInternal.Status { get => this._status; set { {_status = value;} } } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? _status; @@ -60,11 +60,11 @@ public partial class CreateOrderLimitForSubscriptionValidationResponseProperties /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Target = value ?? null; } /// Identifies the type of validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).ValidationType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).ValidationType = value ; } /// /// Creates an new instance. @@ -89,7 +89,7 @@ public CreateOrderLimitForSubscriptionValidationResponseProperties() /// Properties of create order limit for subscription validation response. public partial interface ICreateOrderLimitForSubscriptionValidationResponseProperties : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse { /// Create order limit validation status. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -103,7 +103,7 @@ public partial interface ICreateOrderLimitForSubscriptionValidationResponsePrope } /// Properties of create order limit for subscription validation response. internal partial interface ICreateOrderLimitForSubscriptionValidationResponsePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal { /// Create order limit validation status. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Status { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationResponseProperties.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationResponseProperties.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationResponseProperties.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationResponseProperties.json.cs index 65e196277147..d7264fb01410 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CreateOrderLimitForSubscriptionValidationResponseProperties.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CreateOrderLimitForSubscriptionValidationResponseProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -66,19 +66,19 @@ internal CreateOrderLimitForSubscriptionValidationResponseProperties(Microsoft.A { return; } - __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse(json); + __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse(json); {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponseProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponseProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponseProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponseProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICreateOrderLimitForSubscriptionValidationResponseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICreateOrderLimitForSubscriptionValidationResponseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new CreateOrderLimitForSubscriptionValidationResponseProperties(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CustomerDiskJobSecrets.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CustomerDiskJobSecrets.PowerShell.cs similarity index 73% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CustomerDiskJobSecrets.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CustomerDiskJobSecrets.PowerShell.cs index 560b4a67c40b..6ee68d051406 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CustomerDiskJobSecrets.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CustomerDiskJobSecrets.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class CustomerDiskJobSecrets partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,57 +70,57 @@ internal CustomerDiskJobSecrets(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DiskSecret")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecretsInternal)this).DiskSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret[]) content.GetValueForProperty("DiskSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecretsInternal)this).DiskSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DiskSecretTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecretsInternal)this).DiskSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret[]) content.GetValueForProperty("DiskSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecretsInternal)this).DiskSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DiskSecretTypeConverter.ConvertFrom)); } if (content.Contains("CarrierAccountNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecretsInternal)this).CarrierAccountNumber = (string) content.GetValueForProperty("CarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecretsInternal)this).CarrierAccountNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecretsInternal)this).CarrierAccountNumber = (string) content.GetValueForProperty("CarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecretsInternal)this).CarrierAccountNumber, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCodeReverseDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCodeForwardDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCodeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCodeTypeConverter.ConvertFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,77 +135,77 @@ internal CustomerDiskJobSecrets(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("DiskSecret")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecretsInternal)this).DiskSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret[]) content.GetValueForProperty("DiskSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecretsInternal)this).DiskSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DiskSecretTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecretsInternal)this).DiskSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret[]) content.GetValueForProperty("DiskSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecretsInternal)this).DiskSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DiskSecretTypeConverter.ConvertFrom)); } if (content.Contains("CarrierAccountNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecretsInternal)this).CarrierAccountNumber = (string) content.GetValueForProperty("CarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecretsInternal)this).CarrierAccountNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecretsInternal)this).CarrierAccountNumber = (string) content.GetValueForProperty("CarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecretsInternal)this).CarrierAccountNumber, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCodeReverseDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCodeForwardDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCodeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCodeTypeConverter.ConvertFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecrets DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecrets DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new CustomerDiskJobSecrets(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecrets DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecrets DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new CustomerDiskJobSecrets(content); } @@ -215,7 +215,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICus /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecrets FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecrets FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CustomerDiskJobSecrets.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CustomerDiskJobSecrets.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CustomerDiskJobSecrets.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CustomerDiskJobSecrets.TypeConverter.cs index d1d7ec94ee4b..7650738e9d28 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CustomerDiskJobSecrets.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CustomerDiskJobSecrets.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecrets ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecrets ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecrets).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecrets).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CustomerDiskJobSecrets.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CustomerDiskJobSecrets.cs similarity index 75% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CustomerDiskJobSecrets.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CustomerDiskJobSecrets.cs index af39ee398904..7ea9e8b0a39d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CustomerDiskJobSecrets.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CustomerDiskJobSecrets.cs @@ -3,25 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The secrets related to customer disk job. public partial class CustomerDiskJobSecrets : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecrets, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecretsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecrets, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecretsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobSecrets(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobSecrets(); /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; } /// Backing field for property. private string _carrierAccountNumber; @@ -32,64 +32,64 @@ public partial class CustomerDiskJobSecrets : /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Code = value ?? null; } /// Dc Access Security Code for Customer Managed Shipping [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; } /// Forward Dc access security code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string DcAccessSecurityCodeForwardDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode = value ?? null; } + public string DcAccessSecurityCodeForwardDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode = value ?? null; } /// Reverse Dc access security code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string DcAccessSecurityCodeReverseDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode = value ?? null; } + public string DcAccessSecurityCodeReverseDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Detail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret[] _diskSecret; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret[] _diskSecret; /// Contains the list of secrets object for that device. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret[] DiskSecret { get => this._diskSecret; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret[] DiskSecret { get => this._diskSecret; } /// Error while fetching the secrets. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Error; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Error; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Message = value ?? null; } /// Internal Acessors for CarrierAccountNumber - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecretsInternal.CarrierAccountNumber { get => this._carrierAccountNumber; set { {_carrierAccountNumber = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecretsInternal.CarrierAccountNumber { get => this._carrierAccountNumber; set { {_carrierAccountNumber = value;} } } /// Internal Acessors for DiskSecret - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecretsInternal.DiskSecret { get => this._diskSecret; set { {_diskSecret = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecretsInternal.DiskSecret { get => this._diskSecret; set { {_diskSecret = value;} } } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).AdditionalInfo = value; } /// Internal Acessors for DcAccessSecurityCode - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Error = value; } /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Target = value ?? null; } /// Used to indicate what type of job secrets object. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Type = value ; } /// Creates an new instance. public CustomerDiskJobSecrets() @@ -112,7 +112,7 @@ public CustomerDiskJobSecrets() /// The secrets related to customer disk job. public partial interface ICustomerDiskJobSecrets : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets { /// Carrier Account Number of the customer [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -128,18 +128,18 @@ public partial interface ICustomerDiskJobSecrets : ReadOnly = true, Description = @"Contains the list of secrets object for that device.", SerializedName = @"diskSecrets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret[] DiskSecret { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret[] DiskSecret { get; } } /// The secrets related to customer disk job. internal partial interface ICustomerDiskJobSecretsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal { /// Carrier Account Number of the customer string CarrierAccountNumber { get; set; } /// Contains the list of secrets object for that device. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret[] DiskSecret { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret[] DiskSecret { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CustomerDiskJobSecrets.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CustomerDiskJobSecrets.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CustomerDiskJobSecrets.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CustomerDiskJobSecrets.json.cs index c0eba11f58c4..039146767721 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/CustomerDiskJobSecrets.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/CustomerDiskJobSecrets.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,20 +65,20 @@ internal CustomerDiskJobSecrets(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runti { return; } - __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobSecrets(json); - {_diskSecret = If( json?.PropertyT("diskSecrets"), out var __jsonDiskSecrets) ? If( __jsonDiskSecrets as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DiskSecret.FromJson(__u) )) ))() : null : DiskSecret;} + __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobSecrets(json); + {_diskSecret = If( json?.PropertyT("diskSecrets"), out var __jsonDiskSecrets) ? If( __jsonDiskSecrets as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DiskSecret.FromJson(__u) )) ))() : null : DiskSecret;} {_carrierAccountNumber = If( json?.PropertyT("carrierAccountNumber"), out var __jsonCarrierAccountNumber) ? (string)__jsonCarrierAccountNumber : (string)CarrierAccountNumber;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecrets. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecrets. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecrets. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecrets. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICustomerDiskJobSecrets FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICustomerDiskJobSecrets FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new CustomerDiskJobSecrets(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataAccountDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataAccountDetails.PowerShell.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataAccountDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataAccountDetails.PowerShell.cs index 2e83531cccd7..e65fc9f1e47d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataAccountDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataAccountDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataAccountDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,17 +70,17 @@ internal DataAccountDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("SharePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).SharePassword = (string) content.GetValueForProperty("SharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).SharePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).SharePassword = (string) content.GetValueForProperty("SharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).SharePassword, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -95,37 +95,37 @@ internal DataAccountDetails(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("SharePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).SharePassword = (string) content.GetValueForProperty("SharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).SharePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).SharePassword = (string) content.GetValueForProperty("SharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).SharePassword, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataAccountDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataAccountDetails(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataAccountDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataAccountDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataAccountDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataAccountDetails.TypeConverter.cs index a93a04f6a799..f4d2110c939b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataAccountDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataAccountDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataAccountDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataAccountDetails.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataAccountDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataAccountDetails.cs index 55b888fdddc3..99a6d5bdf876 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataAccountDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataAccountDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Account details of the data to be transferred public partial class DataAccountDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataAccountDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataAccountDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataAccountDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataAccountDetails.json.cs index ffa33d92da19..991d9af08b26 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataAccountDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataAccountDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -71,15 +71,15 @@ internal DataAccountDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.J } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)) { diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxAccountCopyLogDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxAccountCopyLogDetails.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxAccountCopyLogDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxAccountCopyLogDetails.PowerShell.cs index 26bc00403800..d28daf668002 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxAccountCopyLogDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxAccountCopyLogDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxAccountCopyLogDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,25 +70,25 @@ internal DataBoxAccountCopyLogDetails(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("AccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal)this).AccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal)this).AccountName, global::System.Convert.ToString); } if (content.Contains("CopyLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal)this).CopyLogLink = (string) content.GetValueForProperty("CopyLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal)this).CopyLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal)this).CopyLogLink = (string) content.GetValueForProperty("CopyLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal)this).CopyLogLink, global::System.Convert.ToString); } if (content.Contains("CopyVerboseLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal)this).CopyVerboseLogLink = (string) content.GetValueForProperty("CopyVerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal)this).CopyVerboseLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal)this).CopyVerboseLogLink = (string) content.GetValueForProperty("CopyVerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal)this).CopyVerboseLogLink, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,47 +103,47 @@ internal DataBoxAccountCopyLogDetails(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("AccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal)this).AccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal)this).AccountName, global::System.Convert.ToString); } if (content.Contains("CopyLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal)this).CopyLogLink = (string) content.GetValueForProperty("CopyLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal)this).CopyLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal)this).CopyLogLink = (string) content.GetValueForProperty("CopyLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal)this).CopyLogLink, global::System.Convert.ToString); } if (content.Contains("CopyVerboseLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal)this).CopyVerboseLogLink = (string) content.GetValueForProperty("CopyVerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal)this).CopyVerboseLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal)this).CopyVerboseLogLink = (string) content.GetValueForProperty("CopyVerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal)this).CopyVerboseLogLink, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxAccountCopyLogDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxAccountCopyLogDetails(content); } @@ -153,7 +153,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxAccountCopyLogDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxAccountCopyLogDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxAccountCopyLogDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxAccountCopyLogDetails.TypeConverter.cs index 8d04695ee3ab..966aa4073163 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxAccountCopyLogDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxAccountCopyLogDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxAccountCopyLogDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxAccountCopyLogDetails.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxAccountCopyLogDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxAccountCopyLogDetails.cs index 8ea7588d1cc2..c7ba6d7e389f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxAccountCopyLogDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxAccountCopyLogDetails.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Copy log details for a storage account of a DataBox job public partial class DataBoxAccountCopyLogDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetails(); /// Backing field for property. private string _accountName; @@ -43,17 +43,17 @@ public partial class DataBoxAccountCopyLogDetails : public string CopyVerboseLogLink { get => this._copyVerboseLogLink; } /// Internal Acessors for AccountName - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal.AccountName { get => this._accountName; set { {_accountName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal.AccountName { get => this._accountName; set { {_accountName = value;} } } /// Internal Acessors for CopyLogLink - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal.CopyLogLink { get => this._copyLogLink; set { {_copyLogLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal.CopyLogLink { get => this._copyLogLink; set { {_copyLogLink = value;} } } /// Internal Acessors for CopyVerboseLogLink - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetailsInternal.CopyVerboseLogLink { get => this._copyVerboseLogLink; set { {_copyVerboseLogLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetailsInternal.CopyVerboseLogLink { get => this._copyVerboseLogLink; set { {_copyVerboseLogLink = value;} } } /// Indicates the type of job details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)__copyLogDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)__copyLogDetails).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)__copyLogDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)__copyLogDetails).Type = value ; } /// Creates an new instance. public DataBoxAccountCopyLogDetails() @@ -76,7 +76,7 @@ public DataBoxAccountCopyLogDetails() /// Copy log details for a storage account of a DataBox job public partial interface IDataBoxAccountCopyLogDetails : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails { /// Account name. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -108,7 +108,7 @@ public partial interface IDataBoxAccountCopyLogDetails : } /// Copy log details for a storage account of a DataBox job internal partial interface IDataBoxAccountCopyLogDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal { /// Account name. string AccountName { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxAccountCopyLogDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxAccountCopyLogDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxAccountCopyLogDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxAccountCopyLogDetails.json.cs index 9ba1e95a6583..412d987980f6 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxAccountCopyLogDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxAccountCopyLogDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,7 +65,7 @@ internal DataBoxAccountCopyLogDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox { return; } - __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetails(json); + __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetails(json); {_accountName = If( json?.PropertyT("accountName"), out var __jsonAccountName) ? (string)__jsonAccountName : (string)AccountName;} {_copyLogLink = If( json?.PropertyT("copyLogLink"), out var __jsonCopyLogLink) ? (string)__jsonCopyLogLink : (string)CopyLogLink;} {_copyVerboseLogLink = If( json?.PropertyT("copyVerboseLogLink"), out var __jsonCopyVerboseLogLink) ? (string)__jsonCopyVerboseLogLink : (string)CopyVerboseLogLink;} @@ -73,13 +73,13 @@ internal DataBoxAccountCopyLogDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxAccountCopyLogDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxAccountCopyLogDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxAccountCopyLogDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyLogDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyLogDetails.PowerShell.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyLogDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyLogDetails.PowerShell.cs index 038479901133..a2d186bbc189 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyLogDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyLogDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxCustomerDiskCopyLogDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,25 +70,25 @@ internal DataBoxCustomerDiskCopyLogDetails(global::System.Collections.IDictionar // actually deserialize if (content.Contains("SerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).SerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).SerialNumber, global::System.Convert.ToString); } if (content.Contains("ErrorLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).ErrorLogLink = (string) content.GetValueForProperty("ErrorLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).ErrorLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).ErrorLogLink = (string) content.GetValueForProperty("ErrorLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).ErrorLogLink, global::System.Convert.ToString); } if (content.Contains("VerboseLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).VerboseLogLink = (string) content.GetValueForProperty("VerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).VerboseLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).VerboseLogLink = (string) content.GetValueForProperty("VerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).VerboseLogLink, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,47 +103,47 @@ internal DataBoxCustomerDiskCopyLogDetails(global::System.Management.Automation. // actually deserialize if (content.Contains("SerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).SerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).SerialNumber, global::System.Convert.ToString); } if (content.Contains("ErrorLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).ErrorLogLink = (string) content.GetValueForProperty("ErrorLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).ErrorLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).ErrorLogLink = (string) content.GetValueForProperty("ErrorLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).ErrorLogLink, global::System.Convert.ToString); } if (content.Contains("VerboseLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).VerboseLogLink = (string) content.GetValueForProperty("VerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).VerboseLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).VerboseLogLink = (string) content.GetValueForProperty("VerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal)this).VerboseLogLink, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxCustomerDiskCopyLogDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxCustomerDiskCopyLogDetails(content); } @@ -155,7 +155,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyLogDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyLogDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyLogDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyLogDetails.TypeConverter.cs index 9f069b406bbc..65904621e17b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyLogDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyLogDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyLogDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyLogDetails.cs similarity index 89% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyLogDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyLogDetails.cs index bde7c94a5452..e075c75ca593 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyLogDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyLogDetails.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Copy Log Details for customer disk public partial class DataBoxCustomerDiskCopyLogDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetails(); /// Backing field for property. private string _errorLogLink; @@ -27,13 +27,13 @@ public partial class DataBoxCustomerDiskCopyLogDetails : public string ErrorLogLink { get => this._errorLogLink; } /// Internal Acessors for ErrorLogLink - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal.ErrorLogLink { get => this._errorLogLink; set { {_errorLogLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal.ErrorLogLink { get => this._errorLogLink; set { {_errorLogLink = value;} } } /// Internal Acessors for SerialNumber - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal.SerialNumber { get => this._serialNumber; set { {_serialNumber = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal.SerialNumber { get => this._serialNumber; set { {_serialNumber = value;} } } /// Internal Acessors for VerboseLogLink - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetailsInternal.VerboseLogLink { get => this._verboseLogLink; set { {_verboseLogLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetailsInternal.VerboseLogLink { get => this._verboseLogLink; set { {_verboseLogLink = value;} } } /// Backing field for property. private string _serialNumber; @@ -44,7 +44,7 @@ public partial class DataBoxCustomerDiskCopyLogDetails : /// Indicates the type of job details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)__copyLogDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)__copyLogDetails).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)__copyLogDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)__copyLogDetails).Type = value ; } /// Backing field for property. private string _verboseLogLink; @@ -74,7 +74,7 @@ public DataBoxCustomerDiskCopyLogDetails() /// Copy Log Details for customer disk public partial interface IDataBoxCustomerDiskCopyLogDetails : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails { /// Link for copy error logs. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -104,7 +104,7 @@ public partial interface IDataBoxCustomerDiskCopyLogDetails : } /// Copy Log Details for customer disk internal partial interface IDataBoxCustomerDiskCopyLogDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal { /// Link for copy error logs. string ErrorLogLink { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyLogDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyLogDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyLogDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyLogDetails.json.cs index fe4fab819419..88a697d1ce7e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyLogDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyLogDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,7 +65,7 @@ internal DataBoxCustomerDiskCopyLogDetails(Microsoft.Azure.PowerShell.Cmdlets.Da { return; } - __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetails(json); + __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetails(json); {_serialNumber = If( json?.PropertyT("serialNumber"), out var __jsonSerialNumber) ? (string)__jsonSerialNumber : (string)SerialNumber;} {_errorLogLink = If( json?.PropertyT("errorLogLink"), out var __jsonErrorLogLink) ? (string)__jsonErrorLogLink : (string)ErrorLogLink;} {_verboseLogLink = If( json?.PropertyT("verboseLogLink"), out var __jsonVerboseLogLink) ? (string)__jsonVerboseLogLink : (string)VerboseLogLink;} @@ -73,13 +73,13 @@ internal DataBoxCustomerDiskCopyLogDetails(Microsoft.Azure.PowerShell.Cmdlets.Da } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyLogDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyLogDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxCustomerDiskCopyLogDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyProgress.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyProgress.PowerShell.cs similarity index 74% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyProgress.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyProgress.PowerShell.cs index b6a084405320..a7add6d3adf9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyProgress.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyProgress.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxCustomerDiskCopyProgress partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,105 +70,105 @@ internal DataBoxCustomerDiskCopyProgress(global::System.Collections.IDictionary // actually deserialize if (content.Contains("SerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgressInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgressInternal)this).SerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgressInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgressInternal)this).SerialNumber, global::System.Convert.ToString); } if (content.Contains("CopyStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgressInternal)this).CopyStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus?) content.GetValueForProperty("CopyStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgressInternal)this).CopyStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgressInternal)this).CopyStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus?) content.GetValueForProperty("CopyStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgressInternal)this).CopyStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("StorageAccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("AccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AccountId, global::System.Convert.ToString); } if (content.Contains("BytesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalBytesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalFilesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFileBytesUploaded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RenamedContainerCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DirectoriesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidDirectoriesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("IsEnumerationInProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -183,127 +183,127 @@ internal DataBoxCustomerDiskCopyProgress(global::System.Management.Automation.PS // actually deserialize if (content.Contains("SerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgressInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgressInternal)this).SerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgressInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgressInternal)this).SerialNumber, global::System.Convert.ToString); } if (content.Contains("CopyStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgressInternal)this).CopyStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus?) content.GetValueForProperty("CopyStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgressInternal)this).CopyStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgressInternal)this).CopyStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus?) content.GetValueForProperty("CopyStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgressInternal)this).CopyStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("StorageAccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("AccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).AccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).AccountId, global::System.Convert.ToString); } if (content.Contains("BytesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalBytesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalFilesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFileBytesUploaded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RenamedContainerCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DirectoriesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidDirectoriesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("IsEnumerationInProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxCustomerDiskCopyProgress(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxCustomerDiskCopyProgress(content); } @@ -313,7 +313,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyProgress.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyProgress.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyProgress.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyProgress.TypeConverter.cs index 7bb567d9e3f5..72e8763c0d54 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyProgress.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyProgress.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyProgress.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyProgress.cs similarity index 72% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyProgress.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyProgress.cs index dbabb5ef17ac..14491d0b7079 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyProgress.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyProgress.cs @@ -3,41 +3,41 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// DataBox CustomerDisk Copy Progress public partial class DataBoxCustomerDiskCopyProgress : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgressInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgressInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress __copyProgress = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyProgress(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress __copyProgress = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyProgress(); /// Id of the account where the data needs to be uploaded. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).AccountId; } + public string AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).AccountId; } /// Available actions on the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Action; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Action; } /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).AdditionalInfo; } /// To indicate bytes transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? BytesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).BytesProcessed; } + public long? BytesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).BytesProcessed; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Code = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus? _copyStatus; @@ -48,123 +48,123 @@ public partial class DataBoxCustomerDiskCopyProgress : /// Data Account Type. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? DataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).DataAccountType; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? DataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).DataAccountType; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Detail; } /// To indicate directories errored out in the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? DirectoriesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).DirectoriesErroredOut; } + public long? DirectoriesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).DirectoriesErroredOut; } /// Error, if any, in the stage [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Error; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Error; } /// Number of files which could not be copied [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? FilesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).FilesErroredOut; } + public long? FilesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).FilesErroredOut; } /// Number of files processed [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? FilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).FilesProcessed; } + public long? FilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).FilesProcessed; } /// To indicate directories renamed [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? InvalidDirectoriesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).InvalidDirectoriesProcessed; } + public long? InvalidDirectoriesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).InvalidDirectoriesProcessed; } /// /// Total amount of data not adhering to azure naming conventions which were processed by automatic renaming /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? InvalidFileBytesUploaded { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).InvalidFileBytesUploaded; } + public long? InvalidFileBytesUploaded { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).InvalidFileBytesUploaded; } /// /// Number of files not adhering to azure naming conventions which were processed by automatic renaming /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? InvalidFilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).InvalidFilesProcessed; } + public long? InvalidFilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).InvalidFilesProcessed; } /// /// To indicate if enumeration of data is in progress. /// Until this is true, the TotalBytesToProcess may not be valid. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public bool? IsEnumerationInProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).IsEnumerationInProgress; } + public bool? IsEnumerationInProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).IsEnumerationInProgress; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Message = value ?? null; } /// Internal Acessors for AccountId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).AccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).AccountId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).AccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).AccountId = value; } /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Action = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Action = value; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).AdditionalInfo = value; } /// Internal Acessors for BytesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.BytesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).BytesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).BytesProcessed = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.BytesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).BytesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).BytesProcessed = value; } /// Internal Acessors for DataAccountType - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.DataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).DataAccountType = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.DataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).DataAccountType = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Detail = value; } /// Internal Acessors for DirectoriesErroredOut - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.DirectoriesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).DirectoriesErroredOut; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).DirectoriesErroredOut = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.DirectoriesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).DirectoriesErroredOut; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).DirectoriesErroredOut = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Error = value; } /// Internal Acessors for FilesErroredOut - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.FilesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).FilesErroredOut; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).FilesErroredOut = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.FilesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).FilesErroredOut; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).FilesErroredOut = value; } /// Internal Acessors for FilesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.FilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).FilesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).FilesProcessed = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.FilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).FilesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).FilesProcessed = value; } /// Internal Acessors for InvalidDirectoriesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.InvalidDirectoriesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).InvalidDirectoriesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).InvalidDirectoriesProcessed = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.InvalidDirectoriesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).InvalidDirectoriesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).InvalidDirectoriesProcessed = value; } /// Internal Acessors for InvalidFileBytesUploaded - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.InvalidFileBytesUploaded { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).InvalidFileBytesUploaded; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).InvalidFileBytesUploaded = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.InvalidFileBytesUploaded { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).InvalidFileBytesUploaded; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).InvalidFileBytesUploaded = value; } /// Internal Acessors for InvalidFilesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.InvalidFilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).InvalidFilesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).InvalidFilesProcessed = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.InvalidFilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).InvalidFilesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).InvalidFilesProcessed = value; } /// Internal Acessors for IsEnumerationInProgress - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.IsEnumerationInProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).IsEnumerationInProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).IsEnumerationInProgress = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.IsEnumerationInProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).IsEnumerationInProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).IsEnumerationInProgress = value; } /// Internal Acessors for RenamedContainerCount - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.RenamedContainerCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).RenamedContainerCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).RenamedContainerCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.RenamedContainerCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).RenamedContainerCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).RenamedContainerCount = value; } /// Internal Acessors for StorageAccountName - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.StorageAccountName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).StorageAccountName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).StorageAccountName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.StorageAccountName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).StorageAccountName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).StorageAccountName = value; } /// Internal Acessors for TotalBytesToProcess - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.TotalBytesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).TotalBytesToProcess; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).TotalBytesToProcess = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.TotalBytesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).TotalBytesToProcess; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).TotalBytesToProcess = value; } /// Internal Acessors for TotalFilesToProcess - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.TotalFilesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).TotalFilesToProcess; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).TotalFilesToProcess = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.TotalFilesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).TotalFilesToProcess; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).TotalFilesToProcess = value; } /// Internal Acessors for TransferType - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal.TransferType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).TransferType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).TransferType = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal.TransferType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).TransferType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).TransferType = value; } /// Internal Acessors for CopyStatus - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgressInternal.CopyStatus { get => this._copyStatus; set { {_copyStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgressInternal.CopyStatus { get => this._copyStatus; set { {_copyStatus = value;} } } /// Internal Acessors for SerialNumber - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgressInternal.SerialNumber { get => this._serialNumber; set { {_serialNumber = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgressInternal.SerialNumber { get => this._serialNumber; set { {_serialNumber = value;} } } /// /// Number of folders not adhering to azure naming conventions which were processed by automatic renaming /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? RenamedContainerCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).RenamedContainerCount; } + public long? RenamedContainerCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).RenamedContainerCount; } /// Backing field for property. private string _serialNumber; @@ -177,23 +177,23 @@ public partial class DataBoxCustomerDiskCopyProgress : /// Name of the storage account. This will be empty for data account types other than storage account. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string StorageAccountName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).StorageAccountName; } + public string StorageAccountName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).StorageAccountName; } /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).Target = value ?? null; } /// Total amount of data to be processed by the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? TotalBytesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).TotalBytesToProcess; } + public long? TotalBytesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).TotalBytesToProcess; } /// Total files to process [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? TotalFilesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).TotalFilesToProcess; } + public long? TotalFilesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).TotalFilesToProcess; } /// Transfer type of data [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType? TransferType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal)__copyProgress).TransferType; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType? TransferType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal)__copyProgress).TransferType; } /// Creates an new instance. public DataBoxCustomerDiskCopyProgress() @@ -216,7 +216,7 @@ public DataBoxCustomerDiskCopyProgress() /// DataBox CustomerDisk Copy Progress public partial interface IDataBoxCustomerDiskCopyProgress : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress { /// The Status of the copy [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -238,7 +238,7 @@ public partial interface IDataBoxCustomerDiskCopyProgress : } /// DataBox CustomerDisk Copy Progress internal partial interface IDataBoxCustomerDiskCopyProgressInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgressInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgressInternal { /// The Status of the copy Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus? CopyStatus { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyProgress.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyProgress.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyProgress.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyProgress.json.cs index f37c6ec3d512..21d085410ef3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskCopyProgress.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskCopyProgress.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,20 +65,20 @@ internal DataBoxCustomerDiskCopyProgress(Microsoft.Azure.PowerShell.Cmdlets.Data { return; } - __copyProgress = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyProgress(json); + __copyProgress = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyProgress(json); {_serialNumber = If( json?.PropertyT("serialNumber"), out var __jsonSerialNumber) ? (string)__jsonSerialNumber : (string)SerialNumber;} {_copyStatus = If( json?.PropertyT("copyStatus"), out var __jsonCopyStatus) ? (string)__jsonCopyStatus : (string)CopyStatus;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxCustomerDiskCopyProgress(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetails.PowerShell.cs similarity index 67% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetails.PowerShell.cs index 54122411869a..42dd088c7e84 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxCustomerDiskJobDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,133 +70,133 @@ internal DataBoxCustomerDiskJobDetails(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("DeliverToDcPackageDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo) content.GetValueForProperty("DeliverToDcPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo) content.GetValueForProperty("DeliverToDcPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierInfoTypeConverter.ConvertFrom); } if (content.Contains("ReturnToCustomerPackageDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails) content.GetValueForProperty("ReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails) content.GetValueForProperty("ReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetailsTypeConverter.ConvertFrom); } if (content.Contains("ImportDiskDetailsCollection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ImportDiskDetailsCollection = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection) content.GetValueForProperty("ImportDiskDetailsCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ImportDiskDetailsCollection, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetailsImportDiskDetailsCollectionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ImportDiskDetailsCollection = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection) content.GetValueForProperty("ImportDiskDetailsCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ImportDiskDetailsCollection, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetailsImportDiskDetailsCollectionTypeConverter.ConvertFrom); } if (content.Contains("ExportDiskDetailsCollection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ExportDiskDetailsCollection = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection) content.GetValueForProperty("ExportDiskDetailsCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ExportDiskDetailsCollection, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetailsExportDiskDetailsCollectionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ExportDiskDetailsCollection = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection) content.GetValueForProperty("ExportDiskDetailsCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ExportDiskDetailsCollection, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetailsExportDiskDetailsCollectionTypeConverter.ConvertFrom); } if (content.Contains("CopyProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskCopyProgressTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskCopyProgressTypeConverter.ConvertFrom)); } if (content.Contains("EnableManifestBackup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).EnableManifestBackup = (bool?) content.GetValueForProperty("EnableManifestBackup",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).EnableManifestBackup, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).EnableManifestBackup = (bool?) content.GetValueForProperty("EnableManifestBackup",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).EnableManifestBackup, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("JobStage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobStagesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobStagesTypeConverter.ConvertFrom)); } if (content.Contains("ContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DeliveryPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("ReturnPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("DataImportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DataExportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } if (content.Contains("Preference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("CopyLogDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetailsTypeConverter.ConvertFrom)); } if (content.Contains("ReverseShipmentLabelSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); } if (content.Contains("ChainOfCustodySasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); } if (content.Contains("DeviceErasureDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetailsTypeConverter.ConvertFrom); } if (content.Contains("KeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("ExpectedDataSizeInTeraByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("LastMitigationActionOnJob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJobTypeConverter.ConvertFrom); } if (content.Contains("DatacenterAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponseTypeConverter.ConvertFrom); } if (content.Contains("DataCenterCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); } if (content.Contains("DeliverToDcPackageDetailCarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailCarrierName = (string) content.GetValueForProperty("DeliverToDcPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailCarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailCarrierName = (string) content.GetValueForProperty("DeliverToDcPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailCarrierName, global::System.Convert.ToString); } if (content.Contains("DeliverToDcPackageDetailTrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailTrackingId = (string) content.GetValueForProperty("DeliverToDcPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailTrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailTrackingId = (string) content.GetValueForProperty("DeliverToDcPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailTrackingId, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailCarrierAccountNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailCarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailTrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -211,155 +211,155 @@ internal DataBoxCustomerDiskJobDetails(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("DeliverToDcPackageDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo) content.GetValueForProperty("DeliverToDcPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo) content.GetValueForProperty("DeliverToDcPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierInfoTypeConverter.ConvertFrom); } if (content.Contains("ReturnToCustomerPackageDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails) content.GetValueForProperty("ReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails) content.GetValueForProperty("ReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetailsTypeConverter.ConvertFrom); } if (content.Contains("ImportDiskDetailsCollection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ImportDiskDetailsCollection = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection) content.GetValueForProperty("ImportDiskDetailsCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ImportDiskDetailsCollection, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetailsImportDiskDetailsCollectionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ImportDiskDetailsCollection = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection) content.GetValueForProperty("ImportDiskDetailsCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ImportDiskDetailsCollection, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetailsImportDiskDetailsCollectionTypeConverter.ConvertFrom); } if (content.Contains("ExportDiskDetailsCollection")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ExportDiskDetailsCollection = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection) content.GetValueForProperty("ExportDiskDetailsCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ExportDiskDetailsCollection, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetailsExportDiskDetailsCollectionTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ExportDiskDetailsCollection = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection) content.GetValueForProperty("ExportDiskDetailsCollection",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ExportDiskDetailsCollection, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetailsExportDiskDetailsCollectionTypeConverter.ConvertFrom); } if (content.Contains("CopyProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskCopyProgressTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskCopyProgressTypeConverter.ConvertFrom)); } if (content.Contains("EnableManifestBackup")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).EnableManifestBackup = (bool?) content.GetValueForProperty("EnableManifestBackup",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).EnableManifestBackup, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).EnableManifestBackup = (bool?) content.GetValueForProperty("EnableManifestBackup",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).EnableManifestBackup, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("JobStage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobStagesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobStagesTypeConverter.ConvertFrom)); } if (content.Contains("ContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DeliveryPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("ReturnPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("DataImportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DataExportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } if (content.Contains("Preference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("CopyLogDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetailsTypeConverter.ConvertFrom)); } if (content.Contains("ReverseShipmentLabelSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); } if (content.Contains("ChainOfCustodySasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); } if (content.Contains("DeviceErasureDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetailsTypeConverter.ConvertFrom); } if (content.Contains("KeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("ExpectedDataSizeInTeraByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("LastMitigationActionOnJob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJobTypeConverter.ConvertFrom); } if (content.Contains("DatacenterAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponseTypeConverter.ConvertFrom); } if (content.Contains("DataCenterCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); } if (content.Contains("DeliverToDcPackageDetailCarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailCarrierName = (string) content.GetValueForProperty("DeliverToDcPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailCarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailCarrierName = (string) content.GetValueForProperty("DeliverToDcPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailCarrierName, global::System.Convert.ToString); } if (content.Contains("DeliverToDcPackageDetailTrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailTrackingId = (string) content.GetValueForProperty("DeliverToDcPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailTrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailTrackingId = (string) content.GetValueForProperty("DeliverToDcPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).DeliverToDcPackageDetailTrackingId, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailCarrierAccountNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailCarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailTrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxCustomerDiskJobDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxCustomerDiskJobDetails(content); } @@ -369,7 +369,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetails.TypeConverter.cs index 94549b9e02f3..b88c4d19c84f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetails.cs similarity index 74% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetails.cs index 30058e991573..472d9b1155ec 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetails.cs @@ -3,83 +3,83 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Customer disk job details. public partial class DataBoxCustomerDiskJobDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetails(); /// Available actions on the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Action; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Action; } /// Shared access key to download the chain of custody logs [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; } + public string ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; } /// Contact details for notification and shipping. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails ContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ContactDetail = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails ContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ContactDetail = value ; } /// List of copy log details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[] CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).CopyLogDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[] CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).CopyLogDetail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress[] _copyProgress; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress[] _copyProgress; /// Copy progress per disk. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress[] CopyProgress { get => this._copyProgress; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress[] CopyProgress { get => this._copyProgress; } /// DataCenter code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataCenterCode; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataCenterCode; } /// Details of the data to be exported from azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] DataExportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataExportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataExportDetail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[] DataExportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataExportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataExportDetail = value ?? null /* arrayOf */; } /// Details of the data to be imported into azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] DataImportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataImportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataImportDetail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[] DataImportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataImportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataImportDetail = value ?? null /* arrayOf */; } /// Datacenter address to ship to, for the given sku and storage location. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DatacenterAddress; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DatacenterAddress; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo _deliverToDcPackageDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo _deliverToDcPackageDetail; /// Delivery package shipping details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo DeliverToDcPackageDetail { get => (this._deliverToDcPackageDetail = this._deliverToDcPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierInfo()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo DeliverToDcPackageDetail { get => (this._deliverToDcPackageDetail = this._deliverToDcPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierInfo()); } /// Name of the carrier. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DeliverToDcPackageDetailCarrierName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).CarrierName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).CarrierName = value ?? null; } + public string DeliverToDcPackageDetailCarrierName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).CarrierName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).CarrierName = value ?? null; } /// Tracking Id of shipment. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DeliverToDcPackageDetailTrackingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).TrackingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).TrackingId = value ?? null; } + public string DeliverToDcPackageDetailTrackingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).TrackingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).TrackingId = value ?? null; } /// Delivery package shipping details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeliveryPackage; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeliveryPackage; } /// Holds device data erasure details [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; } /// Backing field for property. private bool? _enableManifestBackup; @@ -92,121 +92,121 @@ public partial class DataBoxCustomerDiskJobDetails : /// The expected size of the data, which needs to be transferred in this job, in terabytes. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public int? ExpectedDataSizeInTeraByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte = value ?? default(int); } + public int? ExpectedDataSizeInTeraByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte = value ?? default(int); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection _exportDiskDetailsCollection; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection _exportDiskDetailsCollection; /// Contains the map of disk serial number to the disk details for export jobs. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection ExportDiskDetailsCollection { get => (this._exportDiskDetailsCollection = this._exportDiskDetailsCollection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection ExportDiskDetailsCollection { get => (this._exportDiskDetailsCollection = this._exportDiskDetailsCollection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection()); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection _importDiskDetailsCollection; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection _importDiskDetailsCollection; /// Contains the map of disk serial number to the disk details for import jobs. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection ImportDiskDetailsCollection { get => (this._importDiskDetailsCollection = this._importDiskDetailsCollection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection()); set => this._importDiskDetailsCollection = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection ImportDiskDetailsCollection { get => (this._importDiskDetailsCollection = this._importDiskDetailsCollection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection()); set => this._importDiskDetailsCollection = value; } /// List of stages that run in the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[] JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).JobStage; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[] JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).JobStage; } /// Details about which key encryption type is being used. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey KeyEncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey KeyEncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey = value ?? null /* model class */; } /// Last mitigation action performed on the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; } /// Internal Acessors for CopyProgress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal.CopyProgress { get => this._copyProgress; set { {_copyProgress = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal.CopyProgress { get => this._copyProgress; set { {_copyProgress = value;} } } /// Internal Acessors for DeliverToDcPackageDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal.DeliverToDcPackageDetail { get => (this._deliverToDcPackageDetail = this._deliverToDcPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierInfo()); set { {_deliverToDcPackageDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal.DeliverToDcPackageDetail { get => (this._deliverToDcPackageDetail = this._deliverToDcPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierInfo()); set { {_deliverToDcPackageDetail = value;} } } /// Internal Acessors for ExportDiskDetailsCollection - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal.ExportDiskDetailsCollection { get => (this._exportDiskDetailsCollection = this._exportDiskDetailsCollection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection()); set { {_exportDiskDetailsCollection = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal.ExportDiskDetailsCollection { get => (this._exportDiskDetailsCollection = this._exportDiskDetailsCollection ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection()); set { {_exportDiskDetailsCollection = value;} } } /// Internal Acessors for ReturnToCustomerPackageDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsInternal.ReturnToCustomerPackageDetail { get => (this._returnToCustomerPackageDetail = this._returnToCustomerPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetails()); set { {_returnToCustomerPackageDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsInternal.ReturnToCustomerPackageDetail { get => (this._returnToCustomerPackageDetail = this._returnToCustomerPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetails()); set { {_returnToCustomerPackageDetail = value;} } } /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Action = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Action = value; } /// Internal Acessors for ChainOfCustodySasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey = value; } /// Internal Acessors for CopyLogDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).CopyLogDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).CopyLogDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).CopyLogDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).CopyLogDetail = value; } /// Internal Acessors for DataCenterCode - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataCenterCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataCenterCode = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataCenterCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataCenterCode = value; } /// Internal Acessors for DatacenterAddress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DatacenterAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DatacenterAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DatacenterAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DatacenterAddress = value; } /// Internal Acessors for DeliveryPackage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeliveryPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeliveryPackage = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeliveryPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeliveryPackage = value; } /// Internal Acessors for DeviceErasureDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail = value; } /// Internal Acessors for JobStage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).JobStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).JobStage = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).JobStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).JobStage = value; } /// Internal Acessors for LastMitigationActionOnJob - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob = value; } /// Internal Acessors for ReturnPackage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReturnPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReturnPackage = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReturnPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReturnPackage = value; } /// Internal Acessors for ReverseShipmentLabelSasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey = value; } /// Preferences for the order. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Preference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Preference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Preference = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Preference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Preference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Preference = value ?? null /* model class */; } /// Return package shipping details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReturnPackage; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReturnPackage; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails _returnToCustomerPackageDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails _returnToCustomerPackageDetail; /// Return package shipping details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails ReturnToCustomerPackageDetail { get => (this._returnToCustomerPackageDetail = this._returnToCustomerPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetails()); set => this._returnToCustomerPackageDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails ReturnToCustomerPackageDetail { get => (this._returnToCustomerPackageDetail = this._returnToCustomerPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetails()); set => this._returnToCustomerPackageDetail = value; } /// Carrier Account Number of customer for customer disk. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ReturnToCustomerPackageDetailCarrierAccountNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierAccountNumber; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierAccountNumber = value ?? null; } + public string ReturnToCustomerPackageDetailCarrierAccountNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierAccountNumber; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierAccountNumber = value ?? null; } /// Name of the carrier. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ReturnToCustomerPackageDetailCarrierName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierName = value ?? null; } + public string ReturnToCustomerPackageDetailCarrierName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierName = value ?? null; } /// Tracking Id of shipment. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ReturnToCustomerPackageDetailTrackingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).TrackingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).TrackingId = value ?? null; } + public string ReturnToCustomerPackageDetailTrackingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).TrackingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).TrackingId = value ?? null; } /// Shared access key to download the return shipment label [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; } + public string ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; } /// Optional Reverse Shipping details for order. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails ReverseShippingDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails ReverseShippingDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail = value ?? null /* model class */; } /// Shipping address of the customer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ShippingAddress = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ShippingAddress = value ?? null /* model class */; } /// Indicates the type of job details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Type = value ; } /// Creates an new instance. public DataBoxCustomerDiskJobDetails() @@ -229,7 +229,7 @@ public DataBoxCustomerDiskJobDetails() /// Customer disk job details. public partial interface IDataBoxCustomerDiskJobDetails : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails { /// Copy progress per disk. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -237,8 +237,8 @@ public partial interface IDataBoxCustomerDiskJobDetails : ReadOnly = true, Description = @"Copy progress per disk.", SerializedName = @"copyProgress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress[] CopyProgress { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress[] CopyProgress { get; } /// Name of the carrier. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -269,16 +269,16 @@ public partial interface IDataBoxCustomerDiskJobDetails : ReadOnly = true, Description = @"Contains the map of disk serial number to the disk details for export jobs.", SerializedName = @"exportDiskDetailsCollection", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection ExportDiskDetailsCollection { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection ExportDiskDetailsCollection { get; } /// Contains the map of disk serial number to the disk details for import jobs. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = false, Description = @"Contains the map of disk serial number to the disk details for import jobs.", SerializedName = @"importDiskDetailsCollection", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection ImportDiskDetailsCollection { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection ImportDiskDetailsCollection { get; set; } /// Carrier Account Number of customer for customer disk. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -307,12 +307,12 @@ public partial interface IDataBoxCustomerDiskJobDetails : } /// Customer disk job details. internal partial interface IDataBoxCustomerDiskJobDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal { /// Copy progress per disk. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress[] CopyProgress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress[] CopyProgress { get; set; } /// Delivery package shipping details. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo DeliverToDcPackageDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo DeliverToDcPackageDetail { get; set; } /// Name of the carrier. string DeliverToDcPackageDetailCarrierName { get; set; } /// Tracking Id of shipment. @@ -320,11 +320,11 @@ internal partial interface IDataBoxCustomerDiskJobDetailsInternal : /// Flag to indicate if disk manifest should be backed-up in the Storage Account. bool? EnableManifestBackup { get; set; } /// Contains the map of disk serial number to the disk details for export jobs. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection ExportDiskDetailsCollection { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection ExportDiskDetailsCollection { get; set; } /// Contains the map of disk serial number to the disk details for import jobs. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection ImportDiskDetailsCollection { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection ImportDiskDetailsCollection { get; set; } /// Return package shipping details. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails ReturnToCustomerPackageDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails ReturnToCustomerPackageDetail { get; set; } /// Carrier Account Number of customer for customer disk. string ReturnToCustomerPackageDetailCarrierAccountNumber { get; set; } /// Name of the carrier. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetails.json.cs similarity index 93% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetails.json.cs index cb57aa40f0ed..55c855500daa 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,24 +65,24 @@ internal DataBoxCustomerDiskJobDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBo { return; } - __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetails(json); - {_deliverToDcPackageDetail = If( json?.PropertyT("deliverToDcPackageDetails"), out var __jsonDeliverToDcPackageDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierInfo.FromJson(__jsonDeliverToDcPackageDetails) : DeliverToDcPackageDetail;} - {_returnToCustomerPackageDetail = If( json?.PropertyT("returnToCustomerPackageDetails"), out var __jsonReturnToCustomerPackageDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetails.FromJson(__jsonReturnToCustomerPackageDetails) : ReturnToCustomerPackageDetail;} - {_importDiskDetailsCollection = If( json?.PropertyT("importDiskDetailsCollection"), out var __jsonImportDiskDetailsCollection) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.FromJson(__jsonImportDiskDetailsCollection) : ImportDiskDetailsCollection;} - {_exportDiskDetailsCollection = If( json?.PropertyT("exportDiskDetailsCollection"), out var __jsonExportDiskDetailsCollection) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.FromJson(__jsonExportDiskDetailsCollection) : ExportDiskDetailsCollection;} - {_copyProgress = If( json?.PropertyT("copyProgress"), out var __jsonCopyProgress) ? If( __jsonCopyProgress as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskCopyProgress) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskCopyProgress.FromJson(__u) )) ))() : null : CopyProgress;} + __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetails(json); + {_deliverToDcPackageDetail = If( json?.PropertyT("deliverToDcPackageDetails"), out var __jsonDeliverToDcPackageDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierInfo.FromJson(__jsonDeliverToDcPackageDetails) : DeliverToDcPackageDetail;} + {_returnToCustomerPackageDetail = If( json?.PropertyT("returnToCustomerPackageDetails"), out var __jsonReturnToCustomerPackageDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetails.FromJson(__jsonReturnToCustomerPackageDetails) : ReturnToCustomerPackageDetail;} + {_importDiskDetailsCollection = If( json?.PropertyT("importDiskDetailsCollection"), out var __jsonImportDiskDetailsCollection) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.FromJson(__jsonImportDiskDetailsCollection) : ImportDiskDetailsCollection;} + {_exportDiskDetailsCollection = If( json?.PropertyT("exportDiskDetailsCollection"), out var __jsonExportDiskDetailsCollection) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.FromJson(__jsonExportDiskDetailsCollection) : ExportDiskDetailsCollection;} + {_copyProgress = If( json?.PropertyT("copyProgress"), out var __jsonCopyProgress) ? If( __jsonCopyProgress as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskCopyProgress) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskCopyProgress.FromJson(__u) )) ))() : null : CopyProgress;} {_enableManifestBackup = If( json?.PropertyT("enableManifestBackup"), out var __jsonEnableManifestBackup) ? (bool?)__jsonEnableManifestBackup : EnableManifestBackup;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxCustomerDiskJobDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.PowerShell.cs similarity index 93% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.PowerShell.cs index 36b5c444cd66..480926deb5e5 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -74,7 +74,7 @@ internal DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection(global::System } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -93,29 +93,29 @@ internal DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection(global::System } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection(content); } @@ -128,7 +128,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.TypeConverter.cs index f7e8d18106d4..1204c86011ef 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no /// suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.cs index efe1398c9de4..523d95338d9e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Contains the map of disk serial number to the disk details for export jobs. public partial class DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollectionInternal { /// @@ -24,7 +24,7 @@ public DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection() /// Contains the map of disk serial number to the disk details for export jobs. public partial interface IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray { } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.dictionary.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.dictionary.cs similarity index 82% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.dictionary.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.dictionary.cs index 89806c9d47f3..f67f66cf1d6b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.dictionary.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.dictionary.cs @@ -3,28 +3,28 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; public partial class DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray { - protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); - global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } - int Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + int Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetails this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetails this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } /// /// - public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetails value) => __additionalProperties.Add( key, value); + public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetails value) => __additionalProperties.Add( key, value); public void Clear() => __additionalProperties.Clear(); @@ -40,7 +40,7 @@ public void CopyFrom(global::System.Collections.IDictionary source) { if ((null != property.Key && null != property.Value)) { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); } } } @@ -55,7 +55,7 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) { if ((null != property.Key && null != property.Value)) { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); } } } @@ -66,10 +66,10 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// /// - public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetails value) => __additionalProperties.TryGetValue( key, out value); + public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetails value) => __additionalProperties.TryGetValue( key, out value); /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.json.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.json.cs index d0d4db0e0176..66b8009e040e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -67,18 +67,18 @@ internal DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection(Microsoft.Azur { return; } - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ExportDiskDetails.FromJson(j) ,exclusions ); + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ExportDiskDetails.FromJson(j) ,exclusions ); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsExportDiskDetailsCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxCustomerDiskJobDetailsExportDiskDetailsCollection(json) : null; } @@ -104,7 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M { return container; } - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray)this).AdditionalProperties, container); + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray)this).AdditionalProperties, container); AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.PowerShell.cs similarity index 93% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.PowerShell.cs index ced98064eff7..f39f466d61ab 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -74,7 +74,7 @@ internal DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection(global::System } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -93,29 +93,29 @@ internal DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection(global::System } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection(content); } @@ -128,7 +128,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.TypeConverter.cs index 4f28cd1a4530..2fedc47fe5bb 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no /// suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.cs index f546f823a73e..669e07441d7d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Contains the map of disk serial number to the disk details for import jobs. public partial class DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollectionInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollectionInternal { /// @@ -24,7 +24,7 @@ public DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection() /// Contains the map of disk serial number to the disk details for import jobs. public partial interface IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray { } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.dictionary.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.dictionary.cs similarity index 82% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.dictionary.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.dictionary.cs index 829362762a35..168d272a415c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.dictionary.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.dictionary.cs @@ -3,28 +3,28 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; public partial class DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray { - protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); - global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } - int Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + int Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetails this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetails this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } /// /// - public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetails value) => __additionalProperties.Add( key, value); + public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetails value) => __additionalProperties.Add( key, value); public void Clear() => __additionalProperties.Clear(); @@ -40,7 +40,7 @@ public void CopyFrom(global::System.Collections.IDictionary source) { if ((null != property.Key && null != property.Value)) { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); } } } @@ -55,7 +55,7 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) { if ((null != property.Key && null != property.Value)) { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); } } } @@ -66,10 +66,10 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// /// - public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetails value) => __additionalProperties.TryGetValue( key, out value); + public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetails value) => __additionalProperties.TryGetValue( key, out value); /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.json.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.json.cs index 92dd2051f21b..28be146ec96b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -67,18 +67,18 @@ internal DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection(Microsoft.Azur { return; } - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ImportDiskDetails.FromJson(j) ,exclusions ); + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ImportDiskDetails.FromJson(j) ,exclusions ); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxCustomerDiskJobDetailsImportDiskDetailsCollection FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxCustomerDiskJobDetailsImportDiskDetailsCollection(json) : null; } @@ -104,7 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M { return container; } - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray)this).AdditionalProperties, container); + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray)this).AdditionalProperties, container); AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyLogDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyLogDetails.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyLogDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyLogDetails.PowerShell.cs index 6c560d5fee34..16f79d2068d9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyLogDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyLogDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxDiskCopyLogDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,25 +70,25 @@ internal DataBoxDiskCopyLogDetails(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("DiskSerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal)this).DiskSerialNumber = (string) content.GetValueForProperty("DiskSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal)this).DiskSerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal)this).DiskSerialNumber = (string) content.GetValueForProperty("DiskSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal)this).DiskSerialNumber, global::System.Convert.ToString); } if (content.Contains("ErrorLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal)this).ErrorLogLink = (string) content.GetValueForProperty("ErrorLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal)this).ErrorLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal)this).ErrorLogLink = (string) content.GetValueForProperty("ErrorLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal)this).ErrorLogLink, global::System.Convert.ToString); } if (content.Contains("VerboseLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal)this).VerboseLogLink = (string) content.GetValueForProperty("VerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal)this).VerboseLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal)this).VerboseLogLink = (string) content.GetValueForProperty("VerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal)this).VerboseLogLink, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,45 +103,45 @@ internal DataBoxDiskCopyLogDetails(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("DiskSerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal)this).DiskSerialNumber = (string) content.GetValueForProperty("DiskSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal)this).DiskSerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal)this).DiskSerialNumber = (string) content.GetValueForProperty("DiskSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal)this).DiskSerialNumber, global::System.Convert.ToString); } if (content.Contains("ErrorLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal)this).ErrorLogLink = (string) content.GetValueForProperty("ErrorLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal)this).ErrorLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal)this).ErrorLogLink = (string) content.GetValueForProperty("ErrorLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal)this).ErrorLogLink, global::System.Convert.ToString); } if (content.Contains("VerboseLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal)this).VerboseLogLink = (string) content.GetValueForProperty("VerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal)this).VerboseLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal)this).VerboseLogLink = (string) content.GetValueForProperty("VerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal)this).VerboseLogLink, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxDiskCopyLogDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxDiskCopyLogDetails(content); } @@ -151,7 +151,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyLogDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyLogDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyLogDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyLogDetails.TypeConverter.cs index 4e0a2558b26f..077fb7beeff1 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyLogDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyLogDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyLogDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyLogDetails.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyLogDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyLogDetails.cs index 9752734b80c2..b16e0ae080fe 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyLogDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyLogDetails.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Copy Log Details for a disk public partial class DataBoxDiskCopyLogDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetails(); /// Backing field for property. private string _diskSerialNumber; @@ -34,17 +34,17 @@ public partial class DataBoxDiskCopyLogDetails : public string ErrorLogLink { get => this._errorLogLink; } /// Internal Acessors for DiskSerialNumber - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal.DiskSerialNumber { get => this._diskSerialNumber; set { {_diskSerialNumber = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal.DiskSerialNumber { get => this._diskSerialNumber; set { {_diskSerialNumber = value;} } } /// Internal Acessors for ErrorLogLink - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal.ErrorLogLink { get => this._errorLogLink; set { {_errorLogLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal.ErrorLogLink { get => this._errorLogLink; set { {_errorLogLink = value;} } } /// Internal Acessors for VerboseLogLink - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetailsInternal.VerboseLogLink { get => this._verboseLogLink; set { {_verboseLogLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetailsInternal.VerboseLogLink { get => this._verboseLogLink; set { {_verboseLogLink = value;} } } /// Indicates the type of job details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)__copyLogDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)__copyLogDetails).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)__copyLogDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)__copyLogDetails).Type = value ; } /// Backing field for property. private string _verboseLogLink; @@ -74,7 +74,7 @@ public DataBoxDiskCopyLogDetails() /// Copy Log Details for a disk public partial interface IDataBoxDiskCopyLogDetails : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails { /// Disk Serial Number. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -104,7 +104,7 @@ public partial interface IDataBoxDiskCopyLogDetails : } /// Copy Log Details for a disk internal partial interface IDataBoxDiskCopyLogDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal { /// Disk Serial Number. string DiskSerialNumber { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyLogDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyLogDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyLogDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyLogDetails.json.cs index 661f885765ed..0780f3deba42 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyLogDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyLogDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,7 +65,7 @@ internal DataBoxDiskCopyLogDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Ru { return; } - __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetails(json); + __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetails(json); {_diskSerialNumber = If( json?.PropertyT("diskSerialNumber"), out var __jsonDiskSerialNumber) ? (string)__jsonDiskSerialNumber : (string)DiskSerialNumber;} {_errorLogLink = If( json?.PropertyT("errorLogLink"), out var __jsonErrorLogLink) ? (string)__jsonErrorLogLink : (string)ErrorLogLink;} {_verboseLogLink = If( json?.PropertyT("verboseLogLink"), out var __jsonVerboseLogLink) ? (string)__jsonVerboseLogLink : (string)VerboseLogLink;} @@ -73,13 +73,13 @@ internal DataBoxDiskCopyLogDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyLogDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyLogDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxDiskCopyLogDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyProgress.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyProgress.PowerShell.cs similarity index 76% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyProgress.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyProgress.PowerShell.cs index b634ba1a7ca9..1e8f06a9298c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyProgress.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyProgress.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxDiskCopyProgress partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,53 +70,53 @@ internal DataBoxDiskCopyProgress(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("SerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).SerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).SerialNumber, global::System.Convert.ToString); } if (content.Contains("BytesCopied")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).BytesCopied = (long?) content.GetValueForProperty("BytesCopied",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).BytesCopied, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).BytesCopied = (long?) content.GetValueForProperty("BytesCopied",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).BytesCopied, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("PercentComplete")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).PercentComplete = (int?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).PercentComplete, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).PercentComplete = (int?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).PercentComplete, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus.CreateFrom); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,73 +131,73 @@ internal DataBoxDiskCopyProgress(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("SerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).SerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).SerialNumber, global::System.Convert.ToString); } if (content.Contains("BytesCopied")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).BytesCopied = (long?) content.GetValueForProperty("BytesCopied",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).BytesCopied, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).BytesCopied = (long?) content.GetValueForProperty("BytesCopied",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).BytesCopied, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("PercentComplete")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).PercentComplete = (int?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).PercentComplete, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).PercentComplete = (int?) content.GetValueForProperty("PercentComplete",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).PercentComplete, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus.CreateFrom); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxDiskCopyProgress(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxDiskCopyProgress(content); } @@ -207,7 +207,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyProgress.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyProgress.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyProgress.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyProgress.TypeConverter.cs index dda108455a20..5f1e6b58eac7 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyProgress.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyProgress.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyProgress.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyProgress.cs similarity index 84% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyProgress.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyProgress.cs index 3a35617f4b6a..297e197b19c3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyProgress.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyProgress.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// DataBox Disk Copy Progress public partial class DataBoxDiskCopyProgress : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal { /// Backing field for property. @@ -22,7 +22,7 @@ public partial class DataBoxDiskCopyProgress : /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo; } /// Backing field for property. private long? _bytesCopied; @@ -33,46 +33,46 @@ public partial class DataBoxDiskCopyProgress : /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Code = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError _error; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError _error; /// Error, if any, in the stage [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError()); } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Message = value ?? null; } /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal.Action { get => this._action; set { {_action = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal.Action { get => this._action; set { {_action = value;} } } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo = value; } /// Internal Acessors for BytesCopied - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal.BytesCopied { get => this._bytesCopied; set { {_bytesCopied = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal.BytesCopied { get => this._bytesCopied; set { {_bytesCopied = value;} } } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError()); set { {_error = value;} } } /// Internal Acessors for PercentComplete - int? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal.PercentComplete { get => this._percentComplete; set { {_percentComplete = value;} } } + int? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal.PercentComplete { get => this._percentComplete; set { {_percentComplete = value;} } } /// Internal Acessors for SerialNumber - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal.SerialNumber { get => this._serialNumber; set { {_serialNumber = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal.SerialNumber { get => this._serialNumber; set { {_serialNumber = value;} } } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgressInternal.Status { get => this._status; set { {_status = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgressInternal.Status { get => this._status; set { {_status = value;} } } /// Backing field for property. private int? _percentComplete; @@ -97,7 +97,7 @@ public partial class DataBoxDiskCopyProgress : /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Target = value ?? null; } /// Creates an new instance. public DataBoxDiskCopyProgress() @@ -123,8 +123,8 @@ public partial interface IDataBoxDiskCopyProgress : ReadOnly = true, Description = @"Gets or sets additional error info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; } /// Bytes copied during the copy of disk. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -147,8 +147,8 @@ public partial interface IDataBoxDiskCopyProgress : ReadOnly = true, Description = @"Gets or sets details for the error.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -198,15 +198,15 @@ internal partial interface IDataBoxDiskCopyProgressInternal /// Available actions on the job. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get; set; } /// Gets or sets additional error info. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } /// Bytes copied during the copy of disk. long? BytesCopied { get; set; } /// Error code. string Code { get; set; } /// Gets or sets details for the error. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; set; } /// Error, if any, in the stage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get; set; } /// The error message parsed from the body of the http error response. string Message { get; set; } /// Indicates the percentage completed for the copy of the disk. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyProgress.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyProgress.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyProgress.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyProgress.json.cs index a2e68562666f..d0e50aad818d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskCopyProgress.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskCopyProgress.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,7 +65,7 @@ internal DataBoxDiskCopyProgress(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runt { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError.FromJson(__jsonError) : Error;} {_serialNumber = If( json?.PropertyT("serialNumber"), out var __jsonSerialNumber) ? (string)__jsonSerialNumber : (string)SerialNumber;} {_bytesCopied = If( json?.PropertyT("bytesCopied"), out var __jsonBytesCopied) ? (long?)__jsonBytesCopied : BytesCopied;} {_percentComplete = If( json?.PropertyT("percentComplete"), out var __jsonPercentComplete) ? (int?)__jsonPercentComplete : PercentComplete;} @@ -75,13 +75,13 @@ internal DataBoxDiskCopyProgress(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runt } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxDiskCopyProgress(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyLogDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyLogDetails.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyLogDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyLogDetails.PowerShell.cs index 9c9b8853569d..ca943169789d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyLogDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyLogDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxDiskGranularCopyLogDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,29 +70,29 @@ internal DataBoxDiskGranularCopyLogDetails(global::System.Collections.IDictionar // actually deserialize if (content.Contains("SerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).SerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).SerialNumber, global::System.Convert.ToString); } if (content.Contains("AccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).AccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).AccountId, global::System.Convert.ToString); } if (content.Contains("ErrorLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).ErrorLogLink = (string) content.GetValueForProperty("ErrorLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).ErrorLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).ErrorLogLink = (string) content.GetValueForProperty("ErrorLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).ErrorLogLink, global::System.Convert.ToString); } if (content.Contains("VerboseLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).VerboseLogLink = (string) content.GetValueForProperty("VerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).VerboseLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).VerboseLogLink = (string) content.GetValueForProperty("VerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).VerboseLogLink, global::System.Convert.ToString); } if (content.Contains("CopyLogDetailsType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("CopyLogDetailsType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("CopyLogDetailsType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,51 +107,51 @@ internal DataBoxDiskGranularCopyLogDetails(global::System.Management.Automation. // actually deserialize if (content.Contains("SerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).SerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).SerialNumber, global::System.Convert.ToString); } if (content.Contains("AccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).AccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).AccountId, global::System.Convert.ToString); } if (content.Contains("ErrorLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).ErrorLogLink = (string) content.GetValueForProperty("ErrorLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).ErrorLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).ErrorLogLink = (string) content.GetValueForProperty("ErrorLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).ErrorLogLink, global::System.Convert.ToString); } if (content.Contains("VerboseLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).VerboseLogLink = (string) content.GetValueForProperty("VerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal)this).VerboseLogLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).VerboseLogLink = (string) content.GetValueForProperty("VerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal)this).VerboseLogLink, global::System.Convert.ToString); } if (content.Contains("CopyLogDetailsType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("CopyLogDetailsType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("CopyLogDetailsType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxDiskGranularCopyLogDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxDiskGranularCopyLogDetails(content); } @@ -163,7 +163,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyLogDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyLogDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyLogDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyLogDetails.TypeConverter.cs index a057b664be8b..4cb1ebd44b6f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyLogDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyLogDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyLogDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyLogDetails.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyLogDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyLogDetails.cs index bfaf6de84efd..f0bb6c005db4 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyLogDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyLogDetails.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Granular Copy Log Details for customer disk public partial class DataBoxDiskGranularCopyLogDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetails __granularCopyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.GranularCopyLogDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetails __granularCopyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.GranularCopyLogDetails(); /// Backing field for property. private string _accountId; @@ -28,7 +28,7 @@ public partial class DataBoxDiskGranularCopyLogDetails : /// Indicates the type of job details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator CopyLogDetailsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetailsInternal)__granularCopyLogDetails).CopyLogDetailsType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetailsInternal)__granularCopyLogDetails).CopyLogDetailsType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator CopyLogDetailsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetailsInternal)__granularCopyLogDetails).CopyLogDetailsType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetailsInternal)__granularCopyLogDetails).CopyLogDetailsType = value ; } /// Backing field for property. private string _errorLogLink; @@ -38,16 +38,16 @@ public partial class DataBoxDiskGranularCopyLogDetails : public string ErrorLogLink { get => this._errorLogLink; } /// Internal Acessors for AccountId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal.AccountId { get => this._accountId; set { {_accountId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal.AccountId { get => this._accountId; set { {_accountId = value;} } } /// Internal Acessors for ErrorLogLink - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal.ErrorLogLink { get => this._errorLogLink; set { {_errorLogLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal.ErrorLogLink { get => this._errorLogLink; set { {_errorLogLink = value;} } } /// Internal Acessors for SerialNumber - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal.SerialNumber { get => this._serialNumber; set { {_serialNumber = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal.SerialNumber { get => this._serialNumber; set { {_serialNumber = value;} } } /// Internal Acessors for VerboseLogLink - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetailsInternal.VerboseLogLink { get => this._verboseLogLink; set { {_verboseLogLink = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetailsInternal.VerboseLogLink { get => this._verboseLogLink; set { {_verboseLogLink = value;} } } /// Backing field for property. private string _serialNumber; @@ -84,7 +84,7 @@ public DataBoxDiskGranularCopyLogDetails() /// Granular Copy Log Details for customer disk public partial interface IDataBoxDiskGranularCopyLogDetails : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetails { /// Account id. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -122,7 +122,7 @@ public partial interface IDataBoxDiskGranularCopyLogDetails : } /// Granular Copy Log Details for customer disk internal partial interface IDataBoxDiskGranularCopyLogDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetailsInternal { /// Account id. string AccountId { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyLogDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyLogDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyLogDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyLogDetails.json.cs index c97b3a85fc75..6c6f51cfd2fe 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyLogDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyLogDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,7 +65,7 @@ internal DataBoxDiskGranularCopyLogDetails(Microsoft.Azure.PowerShell.Cmdlets.Da { return; } - __granularCopyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.GranularCopyLogDetails(json); + __granularCopyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.GranularCopyLogDetails(json); {_serialNumber = If( json?.PropertyT("serialNumber"), out var __jsonSerialNumber) ? (string)__jsonSerialNumber : (string)SerialNumber;} {_accountId = If( json?.PropertyT("accountId"), out var __jsonAccountId) ? (string)__jsonAccountId : (string)AccountId;} {_errorLogLink = If( json?.PropertyT("errorLogLink"), out var __jsonErrorLogLink) ? (string)__jsonErrorLogLink : (string)ErrorLogLink;} @@ -74,13 +74,13 @@ internal DataBoxDiskGranularCopyLogDetails(Microsoft.Azure.PowerShell.Cmdlets.Da } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxDiskGranularCopyLogDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyProgress.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyProgress.PowerShell.cs similarity index 75% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyProgress.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyProgress.PowerShell.cs index 8cb131065c4d..7bf5ea36c220 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyProgress.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyProgress.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxDiskGranularCopyProgress partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,105 +70,105 @@ internal DataBoxDiskGranularCopyProgress(global::System.Collections.IDictionary // actually deserialize if (content.Contains("SerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgressInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgressInternal)this).SerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgressInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgressInternal)this).SerialNumber, global::System.Convert.ToString); } if (content.Contains("CopyStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgressInternal)this).CopyStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus?) content.GetValueForProperty("CopyStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgressInternal)this).CopyStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgressInternal)this).CopyStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus?) content.GetValueForProperty("CopyStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgressInternal)this).CopyStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("StorageAccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("AccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AccountId, global::System.Convert.ToString); } if (content.Contains("BytesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalBytesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalFilesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFileBytesUploaded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RenamedContainerCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DirectoriesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidDirectoriesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("IsEnumerationInProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -183,127 +183,127 @@ internal DataBoxDiskGranularCopyProgress(global::System.Management.Automation.PS // actually deserialize if (content.Contains("SerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgressInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgressInternal)this).SerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgressInternal)this).SerialNumber = (string) content.GetValueForProperty("SerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgressInternal)this).SerialNumber, global::System.Convert.ToString); } if (content.Contains("CopyStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgressInternal)this).CopyStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus?) content.GetValueForProperty("CopyStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgressInternal)this).CopyStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgressInternal)this).CopyStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus?) content.GetValueForProperty("CopyStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgressInternal)this).CopyStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("StorageAccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("AccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AccountId, global::System.Convert.ToString); } if (content.Contains("BytesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalBytesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalFilesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFileBytesUploaded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RenamedContainerCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DirectoriesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidDirectoriesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("IsEnumerationInProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxDiskGranularCopyProgress(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxDiskGranularCopyProgress(content); } @@ -313,7 +313,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyProgress.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyProgress.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyProgress.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyProgress.TypeConverter.cs index b3f9ed984481..585834652e56 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyProgress.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyProgress.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyProgress.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyProgress.cs similarity index 74% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyProgress.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyProgress.cs index ee16e7067e82..3383b7c64646 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyProgress.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyProgress.cs @@ -3,41 +3,41 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// DataBox Disk Granular Copy Progress public partial class DataBoxDiskGranularCopyProgress : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgressInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgressInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgress __granularCopyProgress = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.GranularCopyProgress(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgress __granularCopyProgress = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.GranularCopyProgress(); /// Id of the account where the data needs to be uploaded. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).AccountId; } + public string AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).AccountId; } /// Available actions on the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Action; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Action; } /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).AdditionalInfo; } /// To indicate bytes transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? BytesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).BytesProcessed; } + public long? BytesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).BytesProcessed; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Code = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus? _copyStatus; @@ -48,123 +48,123 @@ public partial class DataBoxDiskGranularCopyProgress : /// Data Account Type. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? DataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).DataAccountType; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? DataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).DataAccountType; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Detail; } /// To indicate directories errored out in the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? DirectoriesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).DirectoriesErroredOut; } + public long? DirectoriesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).DirectoriesErroredOut; } /// Error, if any, in the stage [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Error; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Error; } /// Number of files which could not be copied [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? FilesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).FilesErroredOut; } + public long? FilesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).FilesErroredOut; } /// Number of files processed [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? FilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).FilesProcessed; } + public long? FilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).FilesProcessed; } /// To indicate directories renamed [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? InvalidDirectoriesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidDirectoriesProcessed; } + public long? InvalidDirectoriesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidDirectoriesProcessed; } /// /// Total amount of data not adhering to azure naming conventions which were processed by automatic renaming /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? InvalidFileBytesUploaded { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidFileBytesUploaded; } + public long? InvalidFileBytesUploaded { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidFileBytesUploaded; } /// /// Number of files not adhering to azure naming conventions which were processed by automatic renaming /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? InvalidFilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidFilesProcessed; } + public long? InvalidFilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidFilesProcessed; } /// /// To indicate if enumeration of data is in progress. /// Until this is true, the TotalBytesToProcess may not be valid. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public bool? IsEnumerationInProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).IsEnumerationInProgress; } + public bool? IsEnumerationInProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).IsEnumerationInProgress; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Message = value ?? null; } /// Internal Acessors for CopyStatus - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgressInternal.CopyStatus { get => this._copyStatus; set { {_copyStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgressInternal.CopyStatus { get => this._copyStatus; set { {_copyStatus = value;} } } /// Internal Acessors for SerialNumber - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgressInternal.SerialNumber { get => this._serialNumber; set { {_serialNumber = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgressInternal.SerialNumber { get => this._serialNumber; set { {_serialNumber = value;} } } /// Internal Acessors for AccountId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).AccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).AccountId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.AccountId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).AccountId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).AccountId = value; } /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Action = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Action = value; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).AdditionalInfo = value; } /// Internal Acessors for BytesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.BytesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).BytesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).BytesProcessed = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.BytesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).BytesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).BytesProcessed = value; } /// Internal Acessors for DataAccountType - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.DataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).DataAccountType = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.DataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).DataAccountType = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Detail = value; } /// Internal Acessors for DirectoriesErroredOut - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.DirectoriesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).DirectoriesErroredOut; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).DirectoriesErroredOut = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.DirectoriesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).DirectoriesErroredOut; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).DirectoriesErroredOut = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Error = value; } /// Internal Acessors for FilesErroredOut - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.FilesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).FilesErroredOut; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).FilesErroredOut = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.FilesErroredOut { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).FilesErroredOut; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).FilesErroredOut = value; } /// Internal Acessors for FilesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.FilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).FilesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).FilesProcessed = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.FilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).FilesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).FilesProcessed = value; } /// Internal Acessors for InvalidDirectoriesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.InvalidDirectoriesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidDirectoriesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidDirectoriesProcessed = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.InvalidDirectoriesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidDirectoriesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidDirectoriesProcessed = value; } /// Internal Acessors for InvalidFileBytesUploaded - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.InvalidFileBytesUploaded { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidFileBytesUploaded; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidFileBytesUploaded = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.InvalidFileBytesUploaded { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidFileBytesUploaded; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidFileBytesUploaded = value; } /// Internal Acessors for InvalidFilesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.InvalidFilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidFilesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidFilesProcessed = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.InvalidFilesProcessed { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidFilesProcessed; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).InvalidFilesProcessed = value; } /// Internal Acessors for IsEnumerationInProgress - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.IsEnumerationInProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).IsEnumerationInProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).IsEnumerationInProgress = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.IsEnumerationInProgress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).IsEnumerationInProgress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).IsEnumerationInProgress = value; } /// Internal Acessors for RenamedContainerCount - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.RenamedContainerCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).RenamedContainerCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).RenamedContainerCount = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.RenamedContainerCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).RenamedContainerCount; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).RenamedContainerCount = value; } /// Internal Acessors for StorageAccountName - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.StorageAccountName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).StorageAccountName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).StorageAccountName = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.StorageAccountName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).StorageAccountName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).StorageAccountName = value; } /// Internal Acessors for TotalBytesToProcess - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.TotalBytesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).TotalBytesToProcess; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).TotalBytesToProcess = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.TotalBytesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).TotalBytesToProcess; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).TotalBytesToProcess = value; } /// Internal Acessors for TotalFilesToProcess - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.TotalFilesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).TotalFilesToProcess; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).TotalFilesToProcess = value; } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.TotalFilesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).TotalFilesToProcess; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).TotalFilesToProcess = value; } /// Internal Acessors for TransferType - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.TransferType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).TransferType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).TransferType = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.TransferType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).TransferType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).TransferType = value; } /// /// Number of folders not adhering to azure naming conventions which were processed by automatic renaming /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? RenamedContainerCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).RenamedContainerCount; } + public long? RenamedContainerCount { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).RenamedContainerCount; } /// Backing field for property. private string _serialNumber; @@ -177,23 +177,23 @@ public partial class DataBoxDiskGranularCopyProgress : /// Name of the storage account. This will be empty for data account types other than storage account. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string StorageAccountName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).StorageAccountName; } + public string StorageAccountName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).StorageAccountName; } /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).Target = value ?? null; } /// Total amount of data to be processed by the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? TotalBytesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).TotalBytesToProcess; } + public long? TotalBytesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).TotalBytesToProcess; } /// Total files to process [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public long? TotalFilesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).TotalFilesToProcess; } + public long? TotalFilesToProcess { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).TotalFilesToProcess; } /// Transfer type of data [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType? TransferType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)__granularCopyProgress).TransferType; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType? TransferType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)__granularCopyProgress).TransferType; } /// Creates an new instance. public DataBoxDiskGranularCopyProgress() @@ -216,7 +216,7 @@ public DataBoxDiskGranularCopyProgress() /// DataBox Disk Granular Copy Progress public partial interface IDataBoxDiskGranularCopyProgress : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgress + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgress { /// The Status of the copy [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -238,7 +238,7 @@ public partial interface IDataBoxDiskGranularCopyProgress : } /// DataBox Disk Granular Copy Progress internal partial interface IDataBoxDiskGranularCopyProgressInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal { /// The Status of the copy Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CopyStatus? CopyStatus { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyProgress.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyProgress.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyProgress.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyProgress.json.cs index 8080030d7355..9c980a9ef8c2 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskGranularCopyProgress.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskGranularCopyProgress.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,20 +65,20 @@ internal DataBoxDiskGranularCopyProgress(Microsoft.Azure.PowerShell.Cmdlets.Data { return; } - __granularCopyProgress = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.GranularCopyProgress(json); + __granularCopyProgress = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.GranularCopyProgress(json); {_serialNumber = If( json?.PropertyT("serialNumber"), out var __jsonSerialNumber) ? (string)__jsonSerialNumber : (string)SerialNumber;} {_copyStatus = If( json?.PropertyT("copyStatus"), out var __jsonCopyStatus) ? (string)__jsonCopyStatus : (string)CopyStatus;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxDiskGranularCopyProgress(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetails.PowerShell.cs similarity index 65% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetails.PowerShell.cs index 11001108a7f5..5c0c6ae6e833 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxDiskJobDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,113 +70,113 @@ internal DataBoxDiskJobDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("PreferredDisk")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).PreferredDisk = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks) content.GetValueForProperty("PreferredDisk",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).PreferredDisk, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsPreferredDisksTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).PreferredDisk = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks) content.GetValueForProperty("PreferredDisk",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).PreferredDisk, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsPreferredDisksTypeConverter.ConvertFrom); } if (content.Contains("CopyProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskCopyProgressTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskCopyProgressTypeConverter.ConvertFrom)); } if (content.Contains("GranularCopyProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).GranularCopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress[]) content.GetValueForProperty("GranularCopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).GranularCopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskGranularCopyProgressTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).GranularCopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress[]) content.GetValueForProperty("GranularCopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).GranularCopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskGranularCopyProgressTypeConverter.ConvertFrom)); } if (content.Contains("GranularCopyLogDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).GranularCopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails[]) content.GetValueForProperty("GranularCopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).GranularCopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskGranularCopyLogDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).GranularCopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails[]) content.GetValueForProperty("GranularCopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).GranularCopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskGranularCopyLogDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DisksAndSizeDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).DisksAndSizeDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails) content.GetValueForProperty("DisksAndSizeDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).DisksAndSizeDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsDisksAndSizeDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).DisksAndSizeDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails) content.GetValueForProperty("DisksAndSizeDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).DisksAndSizeDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsDisksAndSizeDetailsTypeConverter.ConvertFrom); } if (content.Contains("Passkey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).Passkey = (string) content.GetValueForProperty("Passkey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).Passkey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).Passkey = (string) content.GetValueForProperty("Passkey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).Passkey, global::System.Convert.ToString); } if (content.Contains("JobStage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobStagesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobStagesTypeConverter.ConvertFrom)); } if (content.Contains("ContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DeliveryPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("ReturnPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("DataImportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DataExportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } if (content.Contains("Preference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("CopyLogDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetailsTypeConverter.ConvertFrom)); } if (content.Contains("ReverseShipmentLabelSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); } if (content.Contains("ChainOfCustodySasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); } if (content.Contains("DeviceErasureDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetailsTypeConverter.ConvertFrom); } if (content.Contains("KeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("ExpectedDataSizeInTeraByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("LastMitigationActionOnJob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJobTypeConverter.ConvertFrom); } if (content.Contains("DatacenterAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponseTypeConverter.ConvertFrom); } if (content.Contains("DataCenterCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -191,133 +191,133 @@ internal DataBoxDiskJobDetails(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("PreferredDisk")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).PreferredDisk = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks) content.GetValueForProperty("PreferredDisk",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).PreferredDisk, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsPreferredDisksTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).PreferredDisk = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks) content.GetValueForProperty("PreferredDisk",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).PreferredDisk, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsPreferredDisksTypeConverter.ConvertFrom); } if (content.Contains("CopyProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskCopyProgressTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskCopyProgressTypeConverter.ConvertFrom)); } if (content.Contains("GranularCopyProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).GranularCopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress[]) content.GetValueForProperty("GranularCopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).GranularCopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskGranularCopyProgressTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).GranularCopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress[]) content.GetValueForProperty("GranularCopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).GranularCopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskGranularCopyProgressTypeConverter.ConvertFrom)); } if (content.Contains("GranularCopyLogDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).GranularCopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails[]) content.GetValueForProperty("GranularCopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).GranularCopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskGranularCopyLogDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).GranularCopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails[]) content.GetValueForProperty("GranularCopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).GranularCopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskGranularCopyLogDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DisksAndSizeDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).DisksAndSizeDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails) content.GetValueForProperty("DisksAndSizeDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).DisksAndSizeDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsDisksAndSizeDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).DisksAndSizeDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails) content.GetValueForProperty("DisksAndSizeDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).DisksAndSizeDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsDisksAndSizeDetailsTypeConverter.ConvertFrom); } if (content.Contains("Passkey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).Passkey = (string) content.GetValueForProperty("Passkey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal)this).Passkey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).Passkey = (string) content.GetValueForProperty("Passkey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal)this).Passkey, global::System.Convert.ToString); } if (content.Contains("JobStage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobStagesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobStagesTypeConverter.ConvertFrom)); } if (content.Contains("ContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DeliveryPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("ReturnPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("DataImportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DataExportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } if (content.Contains("Preference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("CopyLogDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetailsTypeConverter.ConvertFrom)); } if (content.Contains("ReverseShipmentLabelSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); } if (content.Contains("ChainOfCustodySasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); } if (content.Contains("DeviceErasureDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetailsTypeConverter.ConvertFrom); } if (content.Contains("KeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("ExpectedDataSizeInTeraByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("LastMitigationActionOnJob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJobTypeConverter.ConvertFrom); } if (content.Contains("DatacenterAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponseTypeConverter.ConvertFrom); } if (content.Contains("DataCenterCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxDiskJobDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxDiskJobDetails(content); } @@ -327,7 +327,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetails.TypeConverter.cs index c975a5e21200..333c52910257 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetails.cs similarity index 72% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetails.cs index ed0265d20bba..eca0274a3a7c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetails.cs @@ -3,155 +3,155 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// DataBox Disk Job Details. public partial class DataBoxDiskJobDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetails(); /// Available actions on the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Action; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Action; } /// Shared access key to download the chain of custody logs [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; } + public string ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; } /// Contact details for notification and shipping. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails ContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ContactDetail = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails ContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ContactDetail = value ; } /// List of copy log details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[] CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).CopyLogDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[] CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).CopyLogDetail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress[] _copyProgress; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress[] _copyProgress; /// Copy progress per disk. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress[] CopyProgress { get => this._copyProgress; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress[] CopyProgress { get => this._copyProgress; } /// DataCenter code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataCenterCode; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataCenterCode; } /// Details of the data to be exported from azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] DataExportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataExportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataExportDetail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[] DataExportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataExportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataExportDetail = value ?? null /* arrayOf */; } /// Details of the data to be imported into azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] DataImportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataImportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataImportDetail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[] DataImportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataImportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataImportDetail = value ?? null /* arrayOf */; } /// Datacenter address to ship to, for the given sku and storage location. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DatacenterAddress; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DatacenterAddress; } /// Delivery package shipping details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeliveryPackage; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeliveryPackage; } /// Holds device data erasure details [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails _disksAndSizeDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails _disksAndSizeDetail; /// /// Contains the map of disk serial number to the disk size being used for the job. Is returned only after the disks are shipped /// to the customer. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails DisksAndSizeDetail { get => (this._disksAndSizeDetail = this._disksAndSizeDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsDisksAndSizeDetails()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails DisksAndSizeDetail { get => (this._disksAndSizeDetail = this._disksAndSizeDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsDisksAndSizeDetails()); } /// /// The expected size of the data, which needs to be transferred in this job, in terabytes. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public int? ExpectedDataSizeInTeraByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte = value ?? default(int); } + public int? ExpectedDataSizeInTeraByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte = value ?? default(int); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails[] _granularCopyLogDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails[] _granularCopyLogDetail; /// Copy progress per disk. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails[] GranularCopyLogDetail { get => this._granularCopyLogDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails[] GranularCopyLogDetail { get => this._granularCopyLogDetail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress[] _granularCopyProgress; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress[] _granularCopyProgress; /// Copy progress per disk. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress[] GranularCopyProgress { get => this._granularCopyProgress; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress[] GranularCopyProgress { get => this._granularCopyProgress; } /// List of stages that run in the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[] JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).JobStage; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[] JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).JobStage; } /// Details about which key encryption type is being used. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey KeyEncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey KeyEncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey = value ?? null /* model class */; } /// Last mitigation action performed on the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; } /// Internal Acessors for CopyProgress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal.CopyProgress { get => this._copyProgress; set { {_copyProgress = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal.CopyProgress { get => this._copyProgress; set { {_copyProgress = value;} } } /// Internal Acessors for DisksAndSizeDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal.DisksAndSizeDetail { get => (this._disksAndSizeDetail = this._disksAndSizeDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsDisksAndSizeDetails()); set { {_disksAndSizeDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal.DisksAndSizeDetail { get => (this._disksAndSizeDetail = this._disksAndSizeDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsDisksAndSizeDetails()); set { {_disksAndSizeDetail = value;} } } /// Internal Acessors for GranularCopyLogDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal.GranularCopyLogDetail { get => this._granularCopyLogDetail; set { {_granularCopyLogDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal.GranularCopyLogDetail { get => this._granularCopyLogDetail; set { {_granularCopyLogDetail = value;} } } /// Internal Acessors for GranularCopyProgress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsInternal.GranularCopyProgress { get => this._granularCopyProgress; set { {_granularCopyProgress = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsInternal.GranularCopyProgress { get => this._granularCopyProgress; set { {_granularCopyProgress = value;} } } /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Action = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Action = value; } /// Internal Acessors for ChainOfCustodySasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey = value; } /// Internal Acessors for CopyLogDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).CopyLogDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).CopyLogDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).CopyLogDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).CopyLogDetail = value; } /// Internal Acessors for DataCenterCode - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataCenterCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataCenterCode = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataCenterCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataCenterCode = value; } /// Internal Acessors for DatacenterAddress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DatacenterAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DatacenterAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DatacenterAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DatacenterAddress = value; } /// Internal Acessors for DeliveryPackage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeliveryPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeliveryPackage = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeliveryPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeliveryPackage = value; } /// Internal Acessors for DeviceErasureDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail = value; } /// Internal Acessors for JobStage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).JobStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).JobStage = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).JobStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).JobStage = value; } /// Internal Acessors for LastMitigationActionOnJob - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob = value; } /// Internal Acessors for ReturnPackage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReturnPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReturnPackage = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReturnPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReturnPackage = value; } /// Internal Acessors for ReverseShipmentLabelSasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey = value; } /// Backing field for property. private string _passkey; @@ -162,37 +162,37 @@ public partial class DataBoxDiskJobDetails : /// Preferences for the order. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Preference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Preference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Preference = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Preference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Preference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Preference = value ?? null /* model class */; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks _preferredDisk; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks _preferredDisk; /// /// User preference on what size disks are needed for the job. The map is from the disk size in TB to the count. Eg. {2,5} /// means 5 disks of 2 TB size. Key is string but will be checked against an int. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks PreferredDisk { get => (this._preferredDisk = this._preferredDisk ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsPreferredDisks()); set => this._preferredDisk = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks PreferredDisk { get => (this._preferredDisk = this._preferredDisk ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsPreferredDisks()); set => this._preferredDisk = value; } /// Return package shipping details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReturnPackage; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReturnPackage; } /// Shared access key to download the return shipment label [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; } + public string ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; } /// Optional Reverse Shipping details for order. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails ReverseShippingDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails ReverseShippingDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail = value ?? null /* model class */; } /// Shipping address of the customer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ShippingAddress = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ShippingAddress = value ?? null /* model class */; } /// Indicates the type of job details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Type = value ; } /// Creates an new instance. public DataBoxDiskJobDetails() @@ -215,7 +215,7 @@ public DataBoxDiskJobDetails() /// DataBox Disk Job Details. public partial interface IDataBoxDiskJobDetails : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails { /// Copy progress per disk. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -223,8 +223,8 @@ public partial interface IDataBoxDiskJobDetails : ReadOnly = true, Description = @"Copy progress per disk.", SerializedName = @"copyProgress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress[] CopyProgress { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress[] CopyProgress { get; } /// /// Contains the map of disk serial number to the disk size being used for the job. Is returned only after the disks are shipped /// to the customer. @@ -234,24 +234,24 @@ public partial interface IDataBoxDiskJobDetails : ReadOnly = true, Description = @"Contains the map of disk serial number to the disk size being used for the job. Is returned only after the disks are shipped to the customer.", SerializedName = @"disksAndSizeDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails DisksAndSizeDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails DisksAndSizeDetail { get; } /// Copy progress per disk. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = true, Description = @"Copy progress per disk.", SerializedName = @"granularCopyLogDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails[] GranularCopyLogDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails[] GranularCopyLogDetail { get; } /// Copy progress per disk. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = true, Description = @"Copy progress per disk.", SerializedName = @"granularCopyProgress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress[] GranularCopyProgress { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress[] GranularCopyProgress { get; } /// User entered passkey for DataBox Disk job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -269,32 +269,32 @@ public partial interface IDataBoxDiskJobDetails : ReadOnly = false, Description = @"User preference on what size disks are needed for the job. The map is from the disk size in TB to the count. Eg. {2,5} means 5 disks of 2 TB size. Key is string but will be checked against an int.", SerializedName = @"preferredDisks", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks PreferredDisk { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks PreferredDisk { get; set; } } /// DataBox Disk Job Details. internal partial interface IDataBoxDiskJobDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal { /// Copy progress per disk. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress[] CopyProgress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress[] CopyProgress { get; set; } /// /// Contains the map of disk serial number to the disk size being used for the job. Is returned only after the disks are shipped /// to the customer. /// - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails DisksAndSizeDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails DisksAndSizeDetail { get; set; } /// Copy progress per disk. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails[] GranularCopyLogDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails[] GranularCopyLogDetail { get; set; } /// Copy progress per disk. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress[] GranularCopyProgress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress[] GranularCopyProgress { get; set; } /// User entered passkey for DataBox Disk job. string Passkey { get; set; } /// /// User preference on what size disks are needed for the job. The map is from the disk size in TB to the count. Eg. {2,5} /// means 5 disks of 2 TB size. Key is string but will be checked against an int. /// - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks PreferredDisk { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks PreferredDisk { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetails.json.cs similarity index 91% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetails.json.cs index d14a1e0df6f0..84e3193e3f00 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,24 +65,24 @@ internal DataBoxDiskJobDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtim { return; } - __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetails(json); - {_preferredDisk = If( json?.PropertyT("preferredDisks"), out var __jsonPreferredDisks) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsPreferredDisks.FromJson(__jsonPreferredDisks) : PreferredDisk;} - {_copyProgress = If( json?.PropertyT("copyProgress"), out var __jsonCopyProgress) ? If( __jsonCopyProgress as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskCopyProgress) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskCopyProgress.FromJson(__u) )) ))() : null : CopyProgress;} - {_granularCopyProgress = If( json?.PropertyT("granularCopyProgress"), out var __jsonGranularCopyProgress) ? If( __jsonGranularCopyProgress as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyProgress) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskGranularCopyProgress.FromJson(__p) )) ))() : null : GranularCopyProgress;} - {_granularCopyLogDetail = If( json?.PropertyT("granularCopyLogDetails"), out var __jsonGranularCopyLogDetails) ? If( __jsonGranularCopyLogDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskGranularCopyLogDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskGranularCopyLogDetails.FromJson(__k) )) ))() : null : GranularCopyLogDetail;} - {_disksAndSizeDetail = If( json?.PropertyT("disksAndSizeDetails"), out var __jsonDisksAndSizeDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsDisksAndSizeDetails.FromJson(__jsonDisksAndSizeDetails) : DisksAndSizeDetail;} + __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetails(json); + {_preferredDisk = If( json?.PropertyT("preferredDisks"), out var __jsonPreferredDisks) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsPreferredDisks.FromJson(__jsonPreferredDisks) : PreferredDisk;} + {_copyProgress = If( json?.PropertyT("copyProgress"), out var __jsonCopyProgress) ? If( __jsonCopyProgress as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskCopyProgress) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskCopyProgress.FromJson(__u) )) ))() : null : CopyProgress;} + {_granularCopyProgress = If( json?.PropertyT("granularCopyProgress"), out var __jsonGranularCopyProgress) ? If( __jsonGranularCopyProgress as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyProgress) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskGranularCopyProgress.FromJson(__p) )) ))() : null : GranularCopyProgress;} + {_granularCopyLogDetail = If( json?.PropertyT("granularCopyLogDetails"), out var __jsonGranularCopyLogDetails) ? If( __jsonGranularCopyLogDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskGranularCopyLogDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskGranularCopyLogDetails.FromJson(__k) )) ))() : null : GranularCopyLogDetail;} + {_disksAndSizeDetail = If( json?.PropertyT("disksAndSizeDetails"), out var __jsonDisksAndSizeDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsDisksAndSizeDetails.FromJson(__jsonDisksAndSizeDetails) : DisksAndSizeDetail;} {_passkey = If( json?.PropertyT("passkey"), out var __jsonPasskey) ? (string)__jsonPasskey : (string)Passkey;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxDiskJobDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.PowerShell.cs similarity index 93% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.PowerShell.cs index 5fb55467a8a7..69a86a7e2f85 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -58,7 +58,7 @@ public partial class DataBoxDiskJobDetailsDisksAndSizeDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -77,7 +77,7 @@ internal DataBoxDiskJobDetailsDisksAndSizeDetails(global::System.Collections.IDi } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -96,29 +96,29 @@ internal DataBoxDiskJobDetailsDisksAndSizeDetails(global::System.Management.Auto } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxDiskJobDetailsDisksAndSizeDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxDiskJobDetailsDisksAndSizeDetails(content); } @@ -131,7 +131,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.TypeConverter.cs index b6e2d6e3641e..badf63fb69de 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.cs similarity index 93% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.cs index b49dacb03b31..6e5c3f8f0baa 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 /// to the customer. /// public partial class DataBoxDiskJobDetailsDisksAndSizeDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetailsInternal { /// diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.dictionary.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.dictionary.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.dictionary.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.dictionary.cs index 8aa41eb1ca60..b432219a86da 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.dictionary.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsDisksAndSizeDetails source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsDisksAndSizeDetails source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.json.cs index b83660837245..1fd0c4a1d34b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsDisksAndSizeDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsDisksAndSizeDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -74,13 +74,13 @@ internal DataBoxDiskJobDetailsDisksAndSizeDetails(Microsoft.Azure.PowerShell.Cmd } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsDisksAndSizeDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsDisksAndSizeDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxDiskJobDetailsDisksAndSizeDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.PowerShell.cs similarity index 93% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.PowerShell.cs index 7a49e49d862d..575f92dc2297 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -58,7 +58,7 @@ public partial class DataBoxDiskJobDetailsPreferredDisks partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -77,7 +77,7 @@ internal DataBoxDiskJobDetailsPreferredDisks(global::System.Collections.IDiction } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -96,29 +96,29 @@ internal DataBoxDiskJobDetailsPreferredDisks(global::System.Management.Automatio } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxDiskJobDetailsPreferredDisks(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxDiskJobDetailsPreferredDisks(content); } @@ -130,7 +130,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.TypeConverter.cs index a8ca0cba61a7..f32535e3dced 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.cs index 1e7c221912ae..f8f3141d2b74 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 /// means 5 disks of 2 TB size. Key is string but will be checked against an int. /// public partial class DataBoxDiskJobDetailsPreferredDisks : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisksInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisksInternal { /// Creates an new instance. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.dictionary.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.dictionary.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.dictionary.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.dictionary.cs index 881a3c014d11..2e906fc7c51a 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.dictionary.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxDiskJobDetailsPreferredDisks source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxDiskJobDetailsPreferredDisks source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.json.cs index f9883a34be5f..17f4994e3498 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobDetailsPreferredDisks.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobDetailsPreferredDisks.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -74,13 +74,13 @@ internal DataBoxDiskJobDetailsPreferredDisks(Microsoft.Azure.PowerShell.Cmdlets. } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobDetailsPreferredDisks FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobDetailsPreferredDisks FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxDiskJobDetailsPreferredDisks(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobSecrets.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobSecrets.PowerShell.cs similarity index 72% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobSecrets.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobSecrets.PowerShell.cs index 8f8137441ada..0949f97c6abe 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobSecrets.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobSecrets.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxDiskJobSecrets partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,61 +70,61 @@ internal DataBoxDiskJobSecrets(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DiskSecret")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal)this).DiskSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret[]) content.GetValueForProperty("DiskSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal)this).DiskSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DiskSecretTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal)this).DiskSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret[]) content.GetValueForProperty("DiskSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal)this).DiskSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DiskSecretTypeConverter.ConvertFrom)); } if (content.Contains("PassKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal)this).PassKey = (string) content.GetValueForProperty("PassKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal)this).PassKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal)this).PassKey = (string) content.GetValueForProperty("PassKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal)this).PassKey, global::System.Convert.ToString); } if (content.Contains("IsPasskeyUserDefined")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal)this).IsPasskeyUserDefined = (bool?) content.GetValueForProperty("IsPasskeyUserDefined",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal)this).IsPasskeyUserDefined, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal)this).IsPasskeyUserDefined = (bool?) content.GetValueForProperty("IsPasskeyUserDefined",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal)this).IsPasskeyUserDefined, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("DcAccessSecurityCodeReverseDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCodeForwardDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCodeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCodeTypeConverter.ConvertFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -139,81 +139,81 @@ internal DataBoxDiskJobSecrets(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("DiskSecret")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal)this).DiskSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret[]) content.GetValueForProperty("DiskSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal)this).DiskSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DiskSecretTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal)this).DiskSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret[]) content.GetValueForProperty("DiskSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal)this).DiskSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DiskSecretTypeConverter.ConvertFrom)); } if (content.Contains("PassKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal)this).PassKey = (string) content.GetValueForProperty("PassKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal)this).PassKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal)this).PassKey = (string) content.GetValueForProperty("PassKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal)this).PassKey, global::System.Convert.ToString); } if (content.Contains("IsPasskeyUserDefined")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal)this).IsPasskeyUserDefined = (bool?) content.GetValueForProperty("IsPasskeyUserDefined",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal)this).IsPasskeyUserDefined, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal)this).IsPasskeyUserDefined = (bool?) content.GetValueForProperty("IsPasskeyUserDefined",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal)this).IsPasskeyUserDefined, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("DcAccessSecurityCodeReverseDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCodeForwardDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCodeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCodeTypeConverter.ConvertFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecrets DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecrets DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxDiskJobSecrets(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecrets DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecrets DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxDiskJobSecrets(content); } @@ -223,7 +223,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecrets FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecrets FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobSecrets.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobSecrets.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobSecrets.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobSecrets.TypeConverter.cs index 753f2da7b4e4..439e26451cd0 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobSecrets.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobSecrets.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecrets ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecrets ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecrets).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecrets).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobSecrets.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobSecrets.cs similarity index 76% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobSecrets.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobSecrets.cs index 3dd685e7ef7e..9a1bf048bd79 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobSecrets.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobSecrets.cs @@ -3,56 +3,56 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The secrets related to disk job. public partial class DataBoxDiskJobSecrets : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecrets, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecrets, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobSecrets(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobSecrets(); /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Code = value ?? null; } /// Dc Access Security Code for Customer Managed Shipping [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; } /// Forward Dc access security code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string DcAccessSecurityCodeForwardDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode = value ?? null; } + public string DcAccessSecurityCodeForwardDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode = value ?? null; } /// Reverse Dc access security code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string DcAccessSecurityCodeReverseDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode = value ?? null; } + public string DcAccessSecurityCodeReverseDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Detail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret[] _diskSecret; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret[] _diskSecret; /// Contains the list of secrets object for that device. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret[] DiskSecret { get => this._diskSecret; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret[] DiskSecret { get => this._diskSecret; } /// Error while fetching the secrets. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Error; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Error; } /// Backing field for property. private bool? _isPasskeyUserDefined; @@ -63,28 +63,28 @@ public partial class DataBoxDiskJobSecrets : /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Message = value ?? null; } /// Internal Acessors for DiskSecret - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal.DiskSecret { get => this._diskSecret; set { {_diskSecret = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal.DiskSecret { get => this._diskSecret; set { {_diskSecret = value;} } } /// Internal Acessors for IsPasskeyUserDefined - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal.IsPasskeyUserDefined { get => this._isPasskeyUserDefined; set { {_isPasskeyUserDefined = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal.IsPasskeyUserDefined { get => this._isPasskeyUserDefined; set { {_isPasskeyUserDefined = value;} } } /// Internal Acessors for PassKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecretsInternal.PassKey { get => this._passKey; set { {_passKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecretsInternal.PassKey { get => this._passKey; set { {_passKey = value;} } } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).AdditionalInfo = value; } /// Internal Acessors for DcAccessSecurityCode - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Error = value; } /// Backing field for property. private string _passKey; @@ -95,11 +95,11 @@ public partial class DataBoxDiskJobSecrets : /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Target = value ?? null; } /// Used to indicate what type of job secrets object. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Type = value ; } /// Creates an new instance. public DataBoxDiskJobSecrets() @@ -122,7 +122,7 @@ public DataBoxDiskJobSecrets() /// The secrets related to disk job. public partial interface IDataBoxDiskJobSecrets : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets { /// Contains the list of secrets object for that device. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -130,8 +130,8 @@ public partial interface IDataBoxDiskJobSecrets : ReadOnly = true, Description = @"Contains the list of secrets object for that device.", SerializedName = @"diskSecrets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret[] DiskSecret { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret[] DiskSecret { get; } /// Whether passkey was provided by user. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -152,10 +152,10 @@ public partial interface IDataBoxDiskJobSecrets : } /// The secrets related to disk job. internal partial interface IDataBoxDiskJobSecretsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal { /// Contains the list of secrets object for that device. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret[] DiskSecret { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret[] DiskSecret { get; set; } /// Whether passkey was provided by user. bool? IsPasskeyUserDefined { get; set; } /// PassKey for the disk Job. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobSecrets.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobSecrets.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobSecrets.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobSecrets.json.cs index c64474e98a2e..1156102454f3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxDiskJobSecrets.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxDiskJobSecrets.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,21 +65,21 @@ internal DataBoxDiskJobSecrets(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtim { return; } - __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobSecrets(json); - {_diskSecret = If( json?.PropertyT("diskSecrets"), out var __jsonDiskSecrets) ? If( __jsonDiskSecrets as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DiskSecret.FromJson(__u) )) ))() : null : DiskSecret;} + __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobSecrets(json); + {_diskSecret = If( json?.PropertyT("diskSecrets"), out var __jsonDiskSecrets) ? If( __jsonDiskSecrets as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DiskSecret.FromJson(__u) )) ))() : null : DiskSecret;} {_passKey = If( json?.PropertyT("passKey"), out var __jsonPassKey) ? (string)__jsonPassKey : (string)PassKey;} {_isPasskeyUserDefined = If( json?.PropertyT("isPasskeyUserDefined"), out var __jsonIsPasskeyUserDefined) ? (bool?)__jsonIsPasskeyUserDefined : IsPasskeyUserDefined;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecrets. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecrets. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecrets. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecrets. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxDiskJobSecrets FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxDiskJobSecrets FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxDiskJobSecrets(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyAccountCopyLogDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyAccountCopyLogDetails.PowerShell.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyAccountCopyLogDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyAccountCopyLogDetails.PowerShell.cs index 39d3f7addaac..dc9b78da6852 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyAccountCopyLogDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyAccountCopyLogDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxHeavyAccountCopyLogDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,25 +70,25 @@ internal DataBoxHeavyAccountCopyLogDetails(global::System.Collections.IDictionar // actually deserialize if (content.Contains("AccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).AccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).AccountName, global::System.Convert.ToString); } if (content.Contains("CopyLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyLogLink = (string[]) content.GetValueForProperty("CopyLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyLogLink, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyLogLink = (string[]) content.GetValueForProperty("CopyLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyLogLink, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("CopyVerboseLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyVerboseLogLink = (string[]) content.GetValueForProperty("CopyVerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyVerboseLogLink, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyVerboseLogLink = (string[]) content.GetValueForProperty("CopyVerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyVerboseLogLink, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,47 +103,47 @@ internal DataBoxHeavyAccountCopyLogDetails(global::System.Management.Automation. // actually deserialize if (content.Contains("AccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).AccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).AccountName = (string) content.GetValueForProperty("AccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).AccountName, global::System.Convert.ToString); } if (content.Contains("CopyLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyLogLink = (string[]) content.GetValueForProperty("CopyLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyLogLink, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyLogLink = (string[]) content.GetValueForProperty("CopyLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyLogLink, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("CopyVerboseLogLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyVerboseLogLink = (string[]) content.GetValueForProperty("CopyVerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyVerboseLogLink, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyVerboseLogLink = (string[]) content.GetValueForProperty("CopyVerboseLogLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal)this).CopyVerboseLogLink, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxHeavyAccountCopyLogDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxHeavyAccountCopyLogDetails(content); } @@ -155,7 +155,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyAccountCopyLogDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyAccountCopyLogDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyAccountCopyLogDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyAccountCopyLogDetails.TypeConverter.cs index 3b00eae3a17d..dd6a622abdb9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyAccountCopyLogDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyAccountCopyLogDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyAccountCopyLogDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyAccountCopyLogDetails.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyAccountCopyLogDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyAccountCopyLogDetails.cs index b2ca1fa3f1f3..d6d0ead8e5dd 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyAccountCopyLogDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyAccountCopyLogDetails.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Copy log details for a storage account for Databox heavy public partial class DataBoxHeavyAccountCopyLogDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetails(); /// Backing field for property. private string _accountName; @@ -43,17 +43,17 @@ public partial class DataBoxHeavyAccountCopyLogDetails : public string[] CopyVerboseLogLink { get => this._copyVerboseLogLink; } /// Internal Acessors for AccountName - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal.AccountName { get => this._accountName; set { {_accountName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal.AccountName { get => this._accountName; set { {_accountName = value;} } } /// Internal Acessors for CopyLogLink - string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal.CopyLogLink { get => this._copyLogLink; set { {_copyLogLink = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal.CopyLogLink { get => this._copyLogLink; set { {_copyLogLink = value;} } } /// Internal Acessors for CopyVerboseLogLink - string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetailsInternal.CopyVerboseLogLink { get => this._copyVerboseLogLink; set { {_copyVerboseLogLink = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetailsInternal.CopyVerboseLogLink { get => this._copyVerboseLogLink; set { {_copyVerboseLogLink = value;} } } /// Indicates the type of job details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)__copyLogDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal)__copyLogDetails).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)__copyLogDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal)__copyLogDetails).Type = value ; } /// Creates an new instance. public DataBoxHeavyAccountCopyLogDetails() @@ -76,7 +76,7 @@ public DataBoxHeavyAccountCopyLogDetails() /// Copy log details for a storage account for Databox heavy public partial interface IDataBoxHeavyAccountCopyLogDetails : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails { /// Account name. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -108,7 +108,7 @@ public partial interface IDataBoxHeavyAccountCopyLogDetails : } /// Copy log details for a storage account for Databox heavy internal partial interface IDataBoxHeavyAccountCopyLogDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetailsInternal { /// Account name. string AccountName { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyAccountCopyLogDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyAccountCopyLogDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyAccountCopyLogDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyAccountCopyLogDetails.json.cs index 9fb5dcb77545..aaf4132c9444 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyAccountCopyLogDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyAccountCopyLogDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,7 +65,7 @@ internal DataBoxHeavyAccountCopyLogDetails(Microsoft.Azure.PowerShell.Cmdlets.Da { return; } - __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetails(json); + __copyLogDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetails(json); {_accountName = If( json?.PropertyT("accountName"), out var __jsonAccountName) ? (string)__jsonAccountName : (string)AccountName;} {_copyLogLink = If( json?.PropertyT("copyLogLink"), out var __jsonCopyLogLink) ? If( __jsonCopyLogLink as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : CopyLogLink;} {_copyVerboseLogLink = If( json?.PropertyT("copyVerboseLogLink"), out var __jsonCopyVerboseLogLink) ? If( __jsonCopyVerboseLogLink as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(string) (__p is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString __o ? (string)(__o.ToString()) : null)) ))() : null : CopyVerboseLogLink;} @@ -73,13 +73,13 @@ internal DataBoxHeavyAccountCopyLogDetails(Microsoft.Azure.PowerShell.Cmdlets.Da } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyAccountCopyLogDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyAccountCopyLogDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxHeavyAccountCopyLogDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobDetails.PowerShell.cs similarity index 66% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobDetails.PowerShell.cs index a3c323f306fc..2d1311f0481e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxHeavyJobDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,97 +70,97 @@ internal DataBoxHeavyJobDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CopyProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyProgressTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyProgressTypeConverter.ConvertFrom)); } if (content.Contains("DevicePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetailsInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetailsInternal)this).DevicePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetailsInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetailsInternal)this).DevicePassword, global::System.Convert.ToString); } if (content.Contains("JobStage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobStagesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobStagesTypeConverter.ConvertFrom)); } if (content.Contains("ContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DeliveryPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("ReturnPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("DataImportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DataExportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } if (content.Contains("Preference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("CopyLogDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetailsTypeConverter.ConvertFrom)); } if (content.Contains("ReverseShipmentLabelSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); } if (content.Contains("ChainOfCustodySasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); } if (content.Contains("DeviceErasureDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetailsTypeConverter.ConvertFrom); } if (content.Contains("KeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("ExpectedDataSizeInTeraByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("LastMitigationActionOnJob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJobTypeConverter.ConvertFrom); } if (content.Contains("DatacenterAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponseTypeConverter.ConvertFrom); } if (content.Contains("DataCenterCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -175,117 +175,117 @@ internal DataBoxHeavyJobDetails(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("CopyProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyProgressTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyProgressTypeConverter.ConvertFrom)); } if (content.Contains("DevicePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetailsInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetailsInternal)this).DevicePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetailsInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetailsInternal)this).DevicePassword, global::System.Convert.ToString); } if (content.Contains("JobStage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobStagesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobStagesTypeConverter.ConvertFrom)); } if (content.Contains("ContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DeliveryPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("ReturnPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("DataImportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DataExportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } if (content.Contains("Preference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("CopyLogDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetailsTypeConverter.ConvertFrom)); } if (content.Contains("ReverseShipmentLabelSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); } if (content.Contains("ChainOfCustodySasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); } if (content.Contains("DeviceErasureDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetailsTypeConverter.ConvertFrom); } if (content.Contains("KeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("ExpectedDataSizeInTeraByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("LastMitigationActionOnJob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJobTypeConverter.ConvertFrom); } if (content.Contains("DatacenterAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponseTypeConverter.ConvertFrom); } if (content.Contains("DataCenterCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxHeavyJobDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxHeavyJobDetails(content); } @@ -295,7 +295,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobDetails.TypeConverter.cs index 2be5da8471e2..cba0e052bc54 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobDetails.cs similarity index 73% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobDetails.cs index b0ef0619cf6b..d4d5850046ed 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobDetails.cs @@ -3,68 +3,68 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Databox Heavy Device Job Details public partial class DataBoxHeavyJobDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetails(); /// Available actions on the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Action; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Action; } /// Shared access key to download the chain of custody logs [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; } + public string ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; } /// Contact details for notification and shipping. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails ContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ContactDetail = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails ContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ContactDetail = value ; } /// List of copy log details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[] CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).CopyLogDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[] CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).CopyLogDetail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress[] _copyProgress; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress[] _copyProgress; /// Copy progress per account. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress[] CopyProgress { get => this._copyProgress; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress[] CopyProgress { get => this._copyProgress; } /// DataCenter code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataCenterCode; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataCenterCode; } /// Details of the data to be exported from azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] DataExportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataExportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataExportDetail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[] DataExportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataExportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataExportDetail = value ?? null /* arrayOf */; } /// Details of the data to be imported into azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] DataImportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataImportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataImportDetail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[] DataImportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataImportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataImportDetail = value ?? null /* arrayOf */; } /// Datacenter address to ship to, for the given sku and storage location. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DatacenterAddress; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DatacenterAddress; } /// Delivery package shipping details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeliveryPackage; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeliveryPackage; } /// Holds device data erasure details [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; } /// Backing field for property. private string _devicePassword; @@ -83,79 +83,79 @@ public partial class DataBoxHeavyJobDetails : /// The expected size of the data, which needs to be transferred in this job, in terabytes. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public int? ExpectedDataSizeInTeraByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte = value ?? default(int); } + public int? ExpectedDataSizeInTeraByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte = value ?? default(int); } /// List of stages that run in the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[] JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).JobStage; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[] JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).JobStage; } /// Details about which key encryption type is being used. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey KeyEncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey KeyEncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey = value ?? null /* model class */; } /// Last mitigation action performed on the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; } /// Internal Acessors for CopyProgress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetailsInternal.CopyProgress { get => this._copyProgress; set { {_copyProgress = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetailsInternal.CopyProgress { get => this._copyProgress; set { {_copyProgress = value;} } } /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Action = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Action = value; } /// Internal Acessors for ChainOfCustodySasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey = value; } /// Internal Acessors for CopyLogDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).CopyLogDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).CopyLogDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).CopyLogDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).CopyLogDetail = value; } /// Internal Acessors for DataCenterCode - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataCenterCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataCenterCode = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataCenterCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataCenterCode = value; } /// Internal Acessors for DatacenterAddress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DatacenterAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DatacenterAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DatacenterAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DatacenterAddress = value; } /// Internal Acessors for DeliveryPackage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeliveryPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeliveryPackage = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeliveryPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeliveryPackage = value; } /// Internal Acessors for DeviceErasureDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail = value; } /// Internal Acessors for JobStage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).JobStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).JobStage = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).JobStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).JobStage = value; } /// Internal Acessors for LastMitigationActionOnJob - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob = value; } /// Internal Acessors for ReturnPackage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReturnPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReturnPackage = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReturnPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReturnPackage = value; } /// Internal Acessors for ReverseShipmentLabelSasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey = value; } /// Preferences for the order. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Preference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Preference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Preference = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Preference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Preference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Preference = value ?? null /* model class */; } /// Return package shipping details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReturnPackage; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReturnPackage; } /// Shared access key to download the return shipment label [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; } + public string ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; } /// Optional Reverse Shipping details for order. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails ReverseShippingDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails ReverseShippingDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail = value ?? null /* model class */; } /// Shipping address of the customer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ShippingAddress = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ShippingAddress = value ?? null /* model class */; } /// Indicates the type of job details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Type = value ; } /// Creates an new instance. public DataBoxHeavyJobDetails() @@ -178,7 +178,7 @@ public DataBoxHeavyJobDetails() /// Databox Heavy Device Job Details public partial interface IDataBoxHeavyJobDetails : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails { /// Copy progress per account. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -186,8 +186,8 @@ public partial interface IDataBoxHeavyJobDetails : ReadOnly = true, Description = @"Copy progress per account.", SerializedName = @"copyProgress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress[] CopyProgress { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress[] CopyProgress { get; } /// /// Set Device password for unlocking Databox Heavy. Should not be passed for TransferType:ExportFromAzure jobs. If this is /// not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : @@ -206,10 +206,10 @@ public partial interface IDataBoxHeavyJobDetails : } /// Databox Heavy Device Job Details internal partial interface IDataBoxHeavyJobDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal { /// Copy progress per account. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress[] CopyProgress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress[] CopyProgress { get; set; } /// /// Set Device password for unlocking Databox Heavy. Should not be passed for TransferType:ExportFromAzure jobs. If this is /// not passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobDetails.json.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobDetails.json.cs index 7be981035fab..8df6f631ea13 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,20 +65,20 @@ internal DataBoxHeavyJobDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runti { return; } - __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetails(json); - {_copyProgress = If( json?.PropertyT("copyProgress"), out var __jsonCopyProgress) ? If( __jsonCopyProgress as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyProgress.FromJson(__u) )) ))() : null : CopyProgress;} + __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetails(json); + {_copyProgress = If( json?.PropertyT("copyProgress"), out var __jsonCopyProgress) ? If( __jsonCopyProgress as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyProgress.FromJson(__u) )) ))() : null : CopyProgress;} {_devicePassword = If( json?.PropertyT("devicePassword"), out var __jsonDevicePassword) ? (string)__jsonDevicePassword : (string)DevicePassword;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxHeavyJobDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobSecrets.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobSecrets.PowerShell.cs similarity index 73% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobSecrets.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobSecrets.PowerShell.cs index 1cb84bc43dda..6a529d7e1b55 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobSecrets.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobSecrets.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxHeavyJobSecrets partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,53 +70,53 @@ internal DataBoxHeavyJobSecrets(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CabinetPodSecret")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecretsInternal)this).CabinetPodSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret[]) content.GetValueForProperty("CabinetPodSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecretsInternal)this).CabinetPodSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavySecretTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecretsInternal)this).CabinetPodSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret[]) content.GetValueForProperty("CabinetPodSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecretsInternal)this).CabinetPodSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavySecretTypeConverter.ConvertFrom)); } if (content.Contains("DcAccessSecurityCodeReverseDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCodeForwardDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCodeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCodeTypeConverter.ConvertFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,73 +131,73 @@ internal DataBoxHeavyJobSecrets(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("CabinetPodSecret")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecretsInternal)this).CabinetPodSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret[]) content.GetValueForProperty("CabinetPodSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecretsInternal)this).CabinetPodSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavySecretTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecretsInternal)this).CabinetPodSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret[]) content.GetValueForProperty("CabinetPodSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecretsInternal)this).CabinetPodSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavySecretTypeConverter.ConvertFrom)); } if (content.Contains("DcAccessSecurityCodeReverseDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCodeForwardDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCodeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCodeTypeConverter.ConvertFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecrets DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecrets DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxHeavyJobSecrets(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecrets DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecrets DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxHeavyJobSecrets(content); } @@ -207,7 +207,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecrets FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecrets FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobSecrets.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobSecrets.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobSecrets.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobSecrets.TypeConverter.cs index ee8b202c1e8b..59e238432e74 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobSecrets.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobSecrets.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecrets ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecrets ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecrets).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecrets).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobSecrets.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobSecrets.cs similarity index 72% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobSecrets.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobSecrets.cs index d3fd38abf574..c13dcb79177e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobSecrets.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobSecrets.cs @@ -3,83 +3,83 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The secrets related to a databox heavy job. public partial class DataBoxHeavyJobSecrets : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecrets, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecretsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecrets, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecretsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobSecrets(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobSecrets(); /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret[] _cabinetPodSecret; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret[] _cabinetPodSecret; /// Contains the list of secret objects for a databox heavy job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret[] CabinetPodSecret { get => this._cabinetPodSecret; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret[] CabinetPodSecret { get => this._cabinetPodSecret; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Code = value ?? null; } /// Dc Access Security Code for Customer Managed Shipping [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; } /// Forward Dc access security code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string DcAccessSecurityCodeForwardDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode = value ?? null; } + public string DcAccessSecurityCodeForwardDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode = value ?? null; } /// Reverse Dc access security code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string DcAccessSecurityCodeReverseDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode = value ?? null; } + public string DcAccessSecurityCodeReverseDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Detail; } /// Error while fetching the secrets. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Error; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Error; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Message = value ?? null; } /// Internal Acessors for CabinetPodSecret - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecretsInternal.CabinetPodSecret { get => this._cabinetPodSecret; set { {_cabinetPodSecret = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecretsInternal.CabinetPodSecret { get => this._cabinetPodSecret; set { {_cabinetPodSecret = value;} } } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).AdditionalInfo = value; } /// Internal Acessors for DcAccessSecurityCode - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Error = value; } /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Target = value ?? null; } /// Used to indicate what type of job secrets object. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Type = value ; } /// Creates an new instance. public DataBoxHeavyJobSecrets() @@ -102,7 +102,7 @@ public DataBoxHeavyJobSecrets() /// The secrets related to a databox heavy job. public partial interface IDataBoxHeavyJobSecrets : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets { /// Contains the list of secret objects for a databox heavy job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -110,16 +110,16 @@ public partial interface IDataBoxHeavyJobSecrets : ReadOnly = true, Description = @"Contains the list of secret objects for a databox heavy job.", SerializedName = @"cabinetPodSecrets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret[] CabinetPodSecret { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret[] CabinetPodSecret { get; } } /// The secrets related to a databox heavy job. internal partial interface IDataBoxHeavyJobSecretsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal { /// Contains the list of secret objects for a databox heavy job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret[] CabinetPodSecret { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret[] CabinetPodSecret { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobSecrets.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobSecrets.json.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobSecrets.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobSecrets.json.cs index 7c0cc6c6c0e4..12060ca97429 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavyJobSecrets.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavyJobSecrets.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DataBoxHeavyJobSecrets(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runti { return; } - __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobSecrets(json); - {_cabinetPodSecret = If( json?.PropertyT("cabinetPodSecrets"), out var __jsonCabinetPodSecrets) ? If( __jsonCabinetPodSecrets as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxHeavySecret.FromJson(__u) )) ))() : null : CabinetPodSecret;} + __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobSecrets(json); + {_cabinetPodSecret = If( json?.PropertyT("cabinetPodSecrets"), out var __jsonCabinetPodSecrets) ? If( __jsonCabinetPodSecrets as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxHeavySecret.FromJson(__u) )) ))() : null : CabinetPodSecret;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecrets. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecrets. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecrets. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecrets. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavyJobSecrets FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavyJobSecrets FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxHeavyJobSecrets(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavySecret.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavySecret.PowerShell.cs similarity index 80% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavySecret.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavySecret.PowerShell.cs index 67817e966de2..24e50217050b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavySecret.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavySecret.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxHeavySecret partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,29 +70,29 @@ internal DataBoxHeavySecret(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DeviceSerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).DeviceSerialNumber = (string) content.GetValueForProperty("DeviceSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).DeviceSerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).DeviceSerialNumber = (string) content.GetValueForProperty("DeviceSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).DeviceSerialNumber, global::System.Convert.ToString); } if (content.Contains("DevicePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).DevicePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).DevicePassword, global::System.Convert.ToString); } if (content.Contains("NetworkConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).NetworkConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration[]) content.GetValueForProperty("NetworkConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).NetworkConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApplianceNetworkConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).NetworkConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration[]) content.GetValueForProperty("NetworkConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).NetworkConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApplianceNetworkConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("EncodedValidationCertPubKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).EncodedValidationCertPubKey = (string) content.GetValueForProperty("EncodedValidationCertPubKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).EncodedValidationCertPubKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).EncodedValidationCertPubKey = (string) content.GetValueForProperty("EncodedValidationCertPubKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).EncodedValidationCertPubKey, global::System.Convert.ToString); } if (content.Contains("AccountCredentialDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).AccountCredentialDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails[]) content.GetValueForProperty("AccountCredentialDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).AccountCredentialDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AccountCredentialDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).AccountCredentialDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails[]) content.GetValueForProperty("AccountCredentialDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).AccountCredentialDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AccountCredentialDetailsTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,49 +107,49 @@ internal DataBoxHeavySecret(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("DeviceSerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).DeviceSerialNumber = (string) content.GetValueForProperty("DeviceSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).DeviceSerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).DeviceSerialNumber = (string) content.GetValueForProperty("DeviceSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).DeviceSerialNumber, global::System.Convert.ToString); } if (content.Contains("DevicePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).DevicePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).DevicePassword, global::System.Convert.ToString); } if (content.Contains("NetworkConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).NetworkConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration[]) content.GetValueForProperty("NetworkConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).NetworkConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApplianceNetworkConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).NetworkConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration[]) content.GetValueForProperty("NetworkConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).NetworkConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApplianceNetworkConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("EncodedValidationCertPubKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).EncodedValidationCertPubKey = (string) content.GetValueForProperty("EncodedValidationCertPubKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).EncodedValidationCertPubKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).EncodedValidationCertPubKey = (string) content.GetValueForProperty("EncodedValidationCertPubKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).EncodedValidationCertPubKey, global::System.Convert.ToString); } if (content.Contains("AccountCredentialDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).AccountCredentialDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails[]) content.GetValueForProperty("AccountCredentialDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal)this).AccountCredentialDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AccountCredentialDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).AccountCredentialDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails[]) content.GetValueForProperty("AccountCredentialDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal)this).AccountCredentialDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AccountCredentialDetailsTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxHeavySecret(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxHeavySecret(content); } @@ -159,7 +159,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavySecret.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavySecret.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavySecret.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavySecret.TypeConverter.cs index 88b9e05aaa6e..e7936fe22226 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavySecret.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavySecret.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavySecret.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavySecret.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavySecret.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavySecret.cs index 128fe53c8d2c..148584df5dc6 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavySecret.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavySecret.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The secrets related to a databox heavy. public partial class DataBoxHeavySecret : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails[] _accountCredentialDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails[] _accountCredentialDetail; /// Per account level access credentials. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails[] AccountCredentialDetail { get => this._accountCredentialDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails[] AccountCredentialDetail { get => this._accountCredentialDetail; } /// Backing field for property. private string _devicePassword; @@ -42,26 +42,26 @@ public partial class DataBoxHeavySecret : public string EncodedValidationCertPubKey { get => this._encodedValidationCertPubKey; } /// Internal Acessors for AccountCredentialDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal.AccountCredentialDetail { get => this._accountCredentialDetail; set { {_accountCredentialDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal.AccountCredentialDetail { get => this._accountCredentialDetail; set { {_accountCredentialDetail = value;} } } /// Internal Acessors for DevicePassword - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal.DevicePassword { get => this._devicePassword; set { {_devicePassword = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal.DevicePassword { get => this._devicePassword; set { {_devicePassword = value;} } } /// Internal Acessors for DeviceSerialNumber - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal.DeviceSerialNumber { get => this._deviceSerialNumber; set { {_deviceSerialNumber = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal.DeviceSerialNumber { get => this._deviceSerialNumber; set { {_deviceSerialNumber = value;} } } /// Internal Acessors for EncodedValidationCertPubKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal.EncodedValidationCertPubKey { get => this._encodedValidationCertPubKey; set { {_encodedValidationCertPubKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal.EncodedValidationCertPubKey { get => this._encodedValidationCertPubKey; set { {_encodedValidationCertPubKey = value;} } } /// Internal Acessors for NetworkConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecretInternal.NetworkConfiguration { get => this._networkConfiguration; set { {_networkConfiguration = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecretInternal.NetworkConfiguration { get => this._networkConfiguration; set { {_networkConfiguration = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration[] _networkConfiguration; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration[] _networkConfiguration; /// Network configuration of the appliance. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration[] NetworkConfiguration { get => this._networkConfiguration; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration[] NetworkConfiguration { get => this._networkConfiguration; } /// Creates an new instance. public DataBoxHeavySecret() @@ -79,8 +79,8 @@ public partial interface IDataBoxHeavySecret : ReadOnly = true, Description = @"Per account level access credentials.", SerializedName = @"accountCredentialDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails[] AccountCredentialDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails[] AccountCredentialDetail { get; } /// Password for out of the box experience on device. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -111,8 +111,8 @@ public partial interface IDataBoxHeavySecret : ReadOnly = true, Description = @"Network configuration of the appliance.", SerializedName = @"networkConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration[] NetworkConfiguration { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration[] NetworkConfiguration { get; } } /// The secrets related to a databox heavy. @@ -120,7 +120,7 @@ internal partial interface IDataBoxHeavySecretInternal { /// Per account level access credentials. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails[] AccountCredentialDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails[] AccountCredentialDetail { get; set; } /// Password for out of the box experience on device. string DevicePassword { get; set; } /// Serial number of the assigned device. @@ -128,7 +128,7 @@ internal partial interface IDataBoxHeavySecretInternal /// The base 64 encoded public key to authenticate with the device string EncodedValidationCertPubKey { get; set; } /// Network configuration of the appliance. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration[] NetworkConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration[] NetworkConfiguration { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavySecret.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavySecret.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavySecret.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavySecret.json.cs index 270472222ba5..5d38e7cdacf0 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxHeavySecret.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxHeavySecret.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -67,20 +67,20 @@ internal DataBoxHeavySecret(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.J } {_deviceSerialNumber = If( json?.PropertyT("deviceSerialNumber"), out var __jsonDeviceSerialNumber) ? (string)__jsonDeviceSerialNumber : (string)DeviceSerialNumber;} {_devicePassword = If( json?.PropertyT("devicePassword"), out var __jsonDevicePassword) ? (string)__jsonDevicePassword : (string)DevicePassword;} - {_networkConfiguration = If( json?.PropertyT("networkConfigurations"), out var __jsonNetworkConfigurations) ? If( __jsonNetworkConfigurations as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApplianceNetworkConfiguration.FromJson(__u) )) ))() : null : NetworkConfiguration;} + {_networkConfiguration = If( json?.PropertyT("networkConfigurations"), out var __jsonNetworkConfigurations) ? If( __jsonNetworkConfigurations as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApplianceNetworkConfiguration.FromJson(__u) )) ))() : null : NetworkConfiguration;} {_encodedValidationCertPubKey = If( json?.PropertyT("encodedValidationCertPubKey"), out var __jsonEncodedValidationCertPubKey) ? (string)__jsonEncodedValidationCertPubKey : (string)EncodedValidationCertPubKey;} - {_accountCredentialDetail = If( json?.PropertyT("accountCredentialDetails"), out var __jsonAccountCredentialDetails) ? If( __jsonAccountCredentialDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AccountCredentialDetails.FromJson(__p) )) ))() : null : AccountCredentialDetail;} + {_accountCredentialDetail = If( json?.PropertyT("accountCredentialDetails"), out var __jsonAccountCredentialDetails) ? If( __jsonAccountCredentialDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AccountCredentialDetails.FromJson(__p) )) ))() : null : AccountCredentialDetail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxHeavySecret FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxHeavySecret FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxHeavySecret(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxJobDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxJobDetails.PowerShell.cs similarity index 66% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxJobDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxJobDetails.PowerShell.cs index 744c403c09a6..ebb1d7d77119 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxJobDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxJobDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxJobDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,97 +70,97 @@ internal DataBoxJobDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CopyProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyProgressTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyProgressTypeConverter.ConvertFrom)); } if (content.Contains("DevicePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetailsInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetailsInternal)this).DevicePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetailsInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetailsInternal)this).DevicePassword, global::System.Convert.ToString); } if (content.Contains("JobStage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobStagesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobStagesTypeConverter.ConvertFrom)); } if (content.Contains("ContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DeliveryPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("ReturnPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("DataImportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DataExportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } if (content.Contains("Preference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("CopyLogDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetailsTypeConverter.ConvertFrom)); } if (content.Contains("ReverseShipmentLabelSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); } if (content.Contains("ChainOfCustodySasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); } if (content.Contains("DeviceErasureDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetailsTypeConverter.ConvertFrom); } if (content.Contains("KeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("ExpectedDataSizeInTeraByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("LastMitigationActionOnJob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJobTypeConverter.ConvertFrom); } if (content.Contains("DatacenterAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponseTypeConverter.ConvertFrom); } if (content.Contains("DataCenterCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -175,117 +175,117 @@ internal DataBoxJobDetails(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("CopyProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyProgressTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetailsInternal)this).CopyProgress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress[]) content.GetValueForProperty("CopyProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetailsInternal)this).CopyProgress, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyProgressTypeConverter.ConvertFrom)); } if (content.Contains("DevicePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetailsInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetailsInternal)this).DevicePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetailsInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetailsInternal)this).DevicePassword, global::System.Convert.ToString); } if (content.Contains("JobStage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobStagesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobStagesTypeConverter.ConvertFrom)); } if (content.Contains("ContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DeliveryPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("ReturnPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("DataImportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DataExportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } if (content.Contains("Preference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("CopyLogDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetailsTypeConverter.ConvertFrom)); } if (content.Contains("ReverseShipmentLabelSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); } if (content.Contains("ChainOfCustodySasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); } if (content.Contains("DeviceErasureDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetailsTypeConverter.ConvertFrom); } if (content.Contains("KeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("ExpectedDataSizeInTeraByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("LastMitigationActionOnJob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJobTypeConverter.ConvertFrom); } if (content.Contains("DatacenterAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponseTypeConverter.ConvertFrom); } if (content.Contains("DataCenterCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxJobDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxJobDetails(content); } @@ -295,7 +295,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxJobDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxJobDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxJobDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxJobDetails.TypeConverter.cs index 0d305aeddc7f..a3061c30a933 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxJobDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxJobDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxJobDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxJobDetails.cs similarity index 73% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxJobDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxJobDetails.cs index 9ec696e677ba..e0d6c9137062 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxJobDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxJobDetails.cs @@ -3,68 +3,68 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Databox Job Details public partial class DataBoxJobDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetails(); /// Available actions on the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Action; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Action; } /// Shared access key to download the chain of custody logs [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; } + public string ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; } /// Contact details for notification and shipping. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails ContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ContactDetail = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails ContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ContactDetail = value ; } /// List of copy log details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[] CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).CopyLogDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[] CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).CopyLogDetail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress[] _copyProgress; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress[] _copyProgress; /// Copy progress per storage account. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress[] CopyProgress { get => this._copyProgress; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress[] CopyProgress { get => this._copyProgress; } /// DataCenter code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataCenterCode; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataCenterCode; } /// Details of the data to be exported from azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] DataExportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataExportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataExportDetail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[] DataExportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataExportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataExportDetail = value ?? null /* arrayOf */; } /// Details of the data to be imported into azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] DataImportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataImportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataImportDetail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[] DataImportDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataImportDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataImportDetail = value ?? null /* arrayOf */; } /// Datacenter address to ship to, for the given sku and storage location. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DatacenterAddress; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DatacenterAddress; } /// Delivery package shipping details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeliveryPackage; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeliveryPackage; } /// Holds device data erasure details [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; } /// Backing field for property. private string _devicePassword; @@ -83,79 +83,79 @@ public partial class DataBoxJobDetails : /// The expected size of the data, which needs to be transferred in this job, in terabytes. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public int? ExpectedDataSizeInTeraByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte = value ?? default(int); } + public int? ExpectedDataSizeInTeraByte { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ExpectedDataSizeInTeraByte = value ?? default(int); } /// List of stages that run in the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[] JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).JobStage; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[] JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).JobStage; } /// Details about which key encryption type is being used. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey KeyEncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey KeyEncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).KeyEncryptionKey = value ?? null /* model class */; } /// Last mitigation action performed on the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; } /// Internal Acessors for CopyProgress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetailsInternal.CopyProgress { get => this._copyProgress; set { {_copyProgress = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetailsInternal.CopyProgress { get => this._copyProgress; set { {_copyProgress = value;} } } /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Action = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.Action { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Action; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Action = value; } /// Internal Acessors for ChainOfCustodySasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ChainOfCustodySasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ChainOfCustodySasKey = value; } /// Internal Acessors for CopyLogDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).CopyLogDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).CopyLogDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.CopyLogDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).CopyLogDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).CopyLogDetail = value; } /// Internal Acessors for DataCenterCode - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataCenterCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DataCenterCode = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DataCenterCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataCenterCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DataCenterCode = value; } /// Internal Acessors for DatacenterAddress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DatacenterAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DatacenterAddress = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DatacenterAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DatacenterAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DatacenterAddress = value; } /// Internal Acessors for DeliveryPackage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeliveryPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeliveryPackage = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DeliveryPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeliveryPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeliveryPackage = value; } /// Internal Acessors for DeviceErasureDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DeviceErasureDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).DeviceErasureDetail = value; } /// Internal Acessors for JobStage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).JobStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).JobStage = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.JobStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).JobStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).JobStage = value; } /// Internal Acessors for LastMitigationActionOnJob - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.LastMitigationActionOnJob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).LastMitigationActionOnJob = value; } /// Internal Acessors for ReturnPackage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReturnPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReturnPackage = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReturnPackage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReturnPackage = value; } /// Internal Acessors for ReverseShipmentLabelSasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey = value; } /// Preferences for the order. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Preference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Preference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Preference = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Preference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Preference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Preference = value ?? null /* model class */; } /// Return package shipping details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReturnPackage; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails ReturnPackage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReturnPackage; } /// Shared access key to download the return shipment label [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; } + public string ReverseShipmentLabelSasKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShipmentLabelSasKey; } /// Optional Reverse Shipping details for order. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails ReverseShippingDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails ReverseShippingDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ReverseShippingDetail = value ?? null /* model class */; } /// Shipping address of the customer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).ShippingAddress = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).ShippingAddress = value ?? null /* model class */; } /// Indicates the type of job details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)__jobDetails).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)__jobDetails).Type = value ; } /// Creates an new instance. public DataBoxJobDetails() @@ -178,7 +178,7 @@ public DataBoxJobDetails() /// Databox Job Details public partial interface IDataBoxJobDetails : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails { /// Copy progress per storage account. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -186,8 +186,8 @@ public partial interface IDataBoxJobDetails : ReadOnly = true, Description = @"Copy progress per storage account.", SerializedName = @"copyProgress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress[] CopyProgress { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress[] CopyProgress { get; } /// /// Set Device password for unlocking Databox. Should not be passed for TransferType:ExportFromAzure jobs. If this is not /// passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password @@ -206,10 +206,10 @@ public partial interface IDataBoxJobDetails : } /// Databox Job Details internal partial interface IDataBoxJobDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal { /// Copy progress per storage account. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress[] CopyProgress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress[] CopyProgress { get; set; } /// /// Set Device password for unlocking Databox. Should not be passed for TransferType:ExportFromAzure jobs. If this is not /// passed, the service will generate password itself. This will not be returned in Get Call. Password Requirements : Password diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxJobDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxJobDetails.json.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxJobDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxJobDetails.json.cs index 3b7b19d61018..4f39345bc017 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxJobDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxJobDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,20 +65,20 @@ internal DataBoxJobDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Js { return; } - __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetails(json); - {_copyProgress = If( json?.PropertyT("copyProgress"), out var __jsonCopyProgress) ? If( __jsonCopyProgress as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyProgress) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyProgress.FromJson(__u) )) ))() : null : CopyProgress;} + __jobDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetails(json); + {_copyProgress = If( json?.PropertyT("copyProgress"), out var __jsonCopyProgress) ? If( __jsonCopyProgress as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyProgress) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyProgress.FromJson(__u) )) ))() : null : CopyProgress;} {_devicePassword = If( json?.PropertyT("devicePassword"), out var __jsonDevicePassword) ? (string)__jsonDevicePassword : (string)DevicePassword;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxJobDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxScheduleAvailabilityRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxScheduleAvailabilityRequest.PowerShell.cs similarity index 80% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxScheduleAvailabilityRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxScheduleAvailabilityRequest.PowerShell.cs index 50869954baf3..173d9c7d55b0 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxScheduleAvailabilityRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxScheduleAvailabilityRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxScheduleAvailabilityRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,21 +70,25 @@ internal DataBoxScheduleAvailabilityRequest(global::System.Collections.IDictiona // actually deserialize if (content.Contains("StorageLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -99,43 +103,47 @@ internal DataBoxScheduleAvailabilityRequest(global::System.Management.Automation // actually deserialize if (content.Contains("StorageLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxScheduleAvailabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxScheduleAvailabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxScheduleAvailabilityRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxScheduleAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxScheduleAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxScheduleAvailabilityRequest(content); } @@ -147,7 +155,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxScheduleAvailabilityRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxScheduleAvailabilityRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxScheduleAvailabilityRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxScheduleAvailabilityRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxScheduleAvailabilityRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxScheduleAvailabilityRequest.TypeConverter.cs index 3b3e74751a1f..e2dedf34d5aa 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxScheduleAvailabilityRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxScheduleAvailabilityRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -108,14 +108,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxScheduleAvailabilityRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxScheduleAvailabilityRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxScheduleAvailabilityRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxScheduleAvailabilityRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxScheduleAvailabilityRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxScheduleAvailabilityRequest.cs similarity index 71% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxScheduleAvailabilityRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxScheduleAvailabilityRequest.cs index d83efb0b7c77..10f9db9aadcb 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxScheduleAvailabilityRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxScheduleAvailabilityRequest.cs @@ -3,35 +3,42 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Request body to get the availability for scheduling data box orders orders. public partial class DataBoxScheduleAvailabilityRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxScheduleAvailabilityRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxScheduleAvailabilityRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxScheduleAvailabilityRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxScheduleAvailabilityRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest __scheduleAvailabilityRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest __scheduleAvailabilityRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityRequest(); /// Country in which storage location should be supported. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Country { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Country; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Country = value ?? null; } + public string Country { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Country; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Country = value ?? null; } + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Model; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Model = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName)""); } /// Sku Name for which the order is to be scheduled. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).SkuName = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).SkuName = value ; } /// /// Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string StorageLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).StorageLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).StorageLocation = value ; } + public string StorageLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).StorageLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).StorageLocation = value ; } /// Creates an new instance. public DataBoxScheduleAvailabilityRequest() @@ -54,13 +61,13 @@ public DataBoxScheduleAvailabilityRequest() /// Request body to get the availability for scheduling data box orders orders. public partial interface IDataBoxScheduleAvailabilityRequest : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest { } /// Request body to get the availability for scheduling data box orders orders. internal partial interface IDataBoxScheduleAvailabilityRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal { } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxScheduleAvailabilityRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxScheduleAvailabilityRequest.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxScheduleAvailabilityRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxScheduleAvailabilityRequest.json.cs index 9cae5519e716..f79ae4fa2049 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxScheduleAvailabilityRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxScheduleAvailabilityRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,18 +65,18 @@ internal DataBoxScheduleAvailabilityRequest(Microsoft.Azure.PowerShell.Cmdlets.D { return; } - __scheduleAvailabilityRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityRequest(json); + __scheduleAvailabilityRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityRequest(json); AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxScheduleAvailabilityRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxScheduleAvailabilityRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxScheduleAvailabilityRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxScheduleAvailabilityRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxScheduleAvailabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxScheduleAvailabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxScheduleAvailabilityRequest(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxSecret.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxSecret.PowerShell.cs similarity index 79% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxSecret.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxSecret.PowerShell.cs index 37a6b600885b..897e95cfa244 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxSecret.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxSecret.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataBoxSecret partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,29 +70,29 @@ internal DataBoxSecret(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DeviceSerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).DeviceSerialNumber = (string) content.GetValueForProperty("DeviceSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).DeviceSerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).DeviceSerialNumber = (string) content.GetValueForProperty("DeviceSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).DeviceSerialNumber, global::System.Convert.ToString); } if (content.Contains("DevicePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).DevicePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).DevicePassword, global::System.Convert.ToString); } if (content.Contains("NetworkConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).NetworkConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration[]) content.GetValueForProperty("NetworkConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).NetworkConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApplianceNetworkConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).NetworkConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration[]) content.GetValueForProperty("NetworkConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).NetworkConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApplianceNetworkConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("EncodedValidationCertPubKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).EncodedValidationCertPubKey = (string) content.GetValueForProperty("EncodedValidationCertPubKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).EncodedValidationCertPubKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).EncodedValidationCertPubKey = (string) content.GetValueForProperty("EncodedValidationCertPubKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).EncodedValidationCertPubKey, global::System.Convert.ToString); } if (content.Contains("AccountCredentialDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).AccountCredentialDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails[]) content.GetValueForProperty("AccountCredentialDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).AccountCredentialDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AccountCredentialDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).AccountCredentialDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails[]) content.GetValueForProperty("AccountCredentialDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).AccountCredentialDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AccountCredentialDetailsTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,49 +107,49 @@ internal DataBoxSecret(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DeviceSerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).DeviceSerialNumber = (string) content.GetValueForProperty("DeviceSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).DeviceSerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).DeviceSerialNumber = (string) content.GetValueForProperty("DeviceSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).DeviceSerialNumber, global::System.Convert.ToString); } if (content.Contains("DevicePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).DevicePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).DevicePassword = (string) content.GetValueForProperty("DevicePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).DevicePassword, global::System.Convert.ToString); } if (content.Contains("NetworkConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).NetworkConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration[]) content.GetValueForProperty("NetworkConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).NetworkConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApplianceNetworkConfigurationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).NetworkConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration[]) content.GetValueForProperty("NetworkConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).NetworkConfiguration, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApplianceNetworkConfigurationTypeConverter.ConvertFrom)); } if (content.Contains("EncodedValidationCertPubKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).EncodedValidationCertPubKey = (string) content.GetValueForProperty("EncodedValidationCertPubKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).EncodedValidationCertPubKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).EncodedValidationCertPubKey = (string) content.GetValueForProperty("EncodedValidationCertPubKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).EncodedValidationCertPubKey, global::System.Convert.ToString); } if (content.Contains("AccountCredentialDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).AccountCredentialDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails[]) content.GetValueForProperty("AccountCredentialDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal)this).AccountCredentialDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AccountCredentialDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).AccountCredentialDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails[]) content.GetValueForProperty("AccountCredentialDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal)this).AccountCredentialDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AccountCredentialDetailsTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataBoxSecret(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataBoxSecret(content); } @@ -159,7 +159,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxSecret.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxSecret.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxSecret.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxSecret.TypeConverter.cs index 1c66710ace49..b84f5b5acb3a 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxSecret.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxSecret.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxSecret.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxSecret.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxSecret.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxSecret.cs index 9f97cf0969ac..e1d8c7696498 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxSecret.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxSecret.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The secrets related to a DataBox. public partial class DataBoxSecret : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails[] _accountCredentialDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails[] _accountCredentialDetail; /// Per account level access credentials. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails[] AccountCredentialDetail { get => this._accountCredentialDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails[] AccountCredentialDetail { get => this._accountCredentialDetail; } /// Backing field for property. private string _devicePassword; @@ -42,26 +42,26 @@ public partial class DataBoxSecret : public string EncodedValidationCertPubKey { get => this._encodedValidationCertPubKey; } /// Internal Acessors for AccountCredentialDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal.AccountCredentialDetail { get => this._accountCredentialDetail; set { {_accountCredentialDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal.AccountCredentialDetail { get => this._accountCredentialDetail; set { {_accountCredentialDetail = value;} } } /// Internal Acessors for DevicePassword - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal.DevicePassword { get => this._devicePassword; set { {_devicePassword = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal.DevicePassword { get => this._devicePassword; set { {_devicePassword = value;} } } /// Internal Acessors for DeviceSerialNumber - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal.DeviceSerialNumber { get => this._deviceSerialNumber; set { {_deviceSerialNumber = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal.DeviceSerialNumber { get => this._deviceSerialNumber; set { {_deviceSerialNumber = value;} } } /// Internal Acessors for EncodedValidationCertPubKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal.EncodedValidationCertPubKey { get => this._encodedValidationCertPubKey; set { {_encodedValidationCertPubKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal.EncodedValidationCertPubKey { get => this._encodedValidationCertPubKey; set { {_encodedValidationCertPubKey = value;} } } /// Internal Acessors for NetworkConfiguration - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecretInternal.NetworkConfiguration { get => this._networkConfiguration; set { {_networkConfiguration = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecretInternal.NetworkConfiguration { get => this._networkConfiguration; set { {_networkConfiguration = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration[] _networkConfiguration; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration[] _networkConfiguration; /// Network configuration of the appliance. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration[] NetworkConfiguration { get => this._networkConfiguration; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration[] NetworkConfiguration { get => this._networkConfiguration; } /// Creates an new instance. public DataBoxSecret() @@ -79,8 +79,8 @@ public partial interface IDataBoxSecret : ReadOnly = true, Description = @"Per account level access credentials.", SerializedName = @"accountCredentialDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails[] AccountCredentialDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails[] AccountCredentialDetail { get; } /// Password for out of the box experience on device. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -111,8 +111,8 @@ public partial interface IDataBoxSecret : ReadOnly = true, Description = @"Network configuration of the appliance.", SerializedName = @"networkConfigurations", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration[] NetworkConfiguration { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration[] NetworkConfiguration { get; } } /// The secrets related to a DataBox. @@ -120,7 +120,7 @@ internal partial interface IDataBoxSecretInternal { /// Per account level access credentials. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails[] AccountCredentialDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails[] AccountCredentialDetail { get; set; } /// Password for out of the box experience on device. string DevicePassword { get; set; } /// Serial number of the assigned device. @@ -128,7 +128,7 @@ internal partial interface IDataBoxSecretInternal /// The base 64 encoded public key to authenticate with the device string EncodedValidationCertPubKey { get; set; } /// Network configuration of the appliance. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration[] NetworkConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration[] NetworkConfiguration { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxSecret.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxSecret.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxSecret.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxSecret.json.cs index 7ad9165076cc..bc6bfab3e7be 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataBoxSecret.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataBoxSecret.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -67,20 +67,20 @@ internal DataBoxSecret(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.J } {_deviceSerialNumber = If( json?.PropertyT("deviceSerialNumber"), out var __jsonDeviceSerialNumber) ? (string)__jsonDeviceSerialNumber : (string)DeviceSerialNumber;} {_devicePassword = If( json?.PropertyT("devicePassword"), out var __jsonDevicePassword) ? (string)__jsonDevicePassword : (string)DevicePassword;} - {_networkConfiguration = If( json?.PropertyT("networkConfigurations"), out var __jsonNetworkConfigurations) ? If( __jsonNetworkConfigurations as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApplianceNetworkConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ApplianceNetworkConfiguration.FromJson(__u) )) ))() : null : NetworkConfiguration;} + {_networkConfiguration = If( json?.PropertyT("networkConfigurations"), out var __jsonNetworkConfigurations) ? If( __jsonNetworkConfigurations as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApplianceNetworkConfiguration) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ApplianceNetworkConfiguration.FromJson(__u) )) ))() : null : NetworkConfiguration;} {_encodedValidationCertPubKey = If( json?.PropertyT("encodedValidationCertPubKey"), out var __jsonEncodedValidationCertPubKey) ? (string)__jsonEncodedValidationCertPubKey : (string)EncodedValidationCertPubKey;} - {_accountCredentialDetail = If( json?.PropertyT("accountCredentialDetails"), out var __jsonAccountCredentialDetails) ? If( __jsonAccountCredentialDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAccountCredentialDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AccountCredentialDetails.FromJson(__p) )) ))() : null : AccountCredentialDetail;} + {_accountCredentialDetail = If( json?.PropertyT("accountCredentialDetails"), out var __jsonAccountCredentialDetails) ? If( __jsonAccountCredentialDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAccountCredentialDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AccountCredentialDetails.FromJson(__p) )) ))() : null : AccountCredentialDetail;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataBoxSecret(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataExportDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataExportDetails.PowerShell.cs similarity index 81% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataExportDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataExportDetails.PowerShell.cs index d90e1475715f..b4e23cb4d4db 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataExportDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataExportDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataExportDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,29 +70,29 @@ internal DataExportDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AccountDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).AccountDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails) content.GetValueForProperty("AccountDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).AccountDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).AccountDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails) content.GetValueForProperty("AccountDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).AccountDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetailsTypeConverter.ConvertFrom); } if (content.Contains("TransferConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).TransferConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration) content.GetValueForProperty("TransferConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).TransferConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).TransferConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration) content.GetValueForProperty("TransferConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).TransferConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfigurationTypeConverter.ConvertFrom); } if (content.Contains("LogCollectionLevel")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).LogCollectionLevel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel?) content.GetValueForProperty("LogCollectionLevel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).LogCollectionLevel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).LogCollectionLevel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel?) content.GetValueForProperty("LogCollectionLevel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).LogCollectionLevel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel.CreateFrom); } if (content.Contains("AccountDetailDataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).AccountDetailDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("AccountDetailDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).AccountDetailDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).AccountDetailDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("AccountDetailDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).AccountDetailDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("AccountDetailSharePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).AccountDetailSharePassword = (string) content.GetValueForProperty("AccountDetailSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).AccountDetailSharePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).AccountDetailSharePassword = (string) content.GetValueForProperty("AccountDetailSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).AccountDetailSharePassword, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,49 +107,49 @@ internal DataExportDetails(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("AccountDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).AccountDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails) content.GetValueForProperty("AccountDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).AccountDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).AccountDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails) content.GetValueForProperty("AccountDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).AccountDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetailsTypeConverter.ConvertFrom); } if (content.Contains("TransferConfiguration")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).TransferConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration) content.GetValueForProperty("TransferConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).TransferConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfigurationTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).TransferConfiguration = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration) content.GetValueForProperty("TransferConfiguration",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).TransferConfiguration, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfigurationTypeConverter.ConvertFrom); } if (content.Contains("LogCollectionLevel")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).LogCollectionLevel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel?) content.GetValueForProperty("LogCollectionLevel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).LogCollectionLevel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).LogCollectionLevel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel?) content.GetValueForProperty("LogCollectionLevel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).LogCollectionLevel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel.CreateFrom); } if (content.Contains("AccountDetailDataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).AccountDetailDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("AccountDetailDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).AccountDetailDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).AccountDetailDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("AccountDetailDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).AccountDetailDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("AccountDetailSharePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).AccountDetailSharePassword = (string) content.GetValueForProperty("AccountDetailSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal)this).AccountDetailSharePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).AccountDetailSharePassword = (string) content.GetValueForProperty("AccountDetailSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal)this).AccountDetailSharePassword, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataExportDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataExportDetails(content); } @@ -159,7 +159,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataExportDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataExportDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataExportDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataExportDetails.TypeConverter.cs index 99a418d93c78..a9dbf0527c5d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataExportDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataExportDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataExportDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataExportDetails.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataExportDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataExportDetails.cs index 975b9f1589aa..7bad0be96e62 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataExportDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataExportDetails.cs @@ -3,26 +3,26 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Details of the data to be used for exporting data from azure. public partial class DataExportDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails _accountDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails _accountDetail; /// Account details of the data to be transferred [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails AccountDetail { get => (this._accountDetail = this._accountDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetails()); set => this._accountDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails AccountDetail { get => (this._accountDetail = this._accountDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetails()); set => this._accountDetail = value; } /// Account Type of the data to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType AccountDetailDataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)AccountDetail).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)AccountDetail).DataAccountType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType AccountDetailDataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)AccountDetail).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)AccountDetail).DataAccountType = value ; } /// /// Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If @@ -32,7 +32,7 @@ public partial class DataExportDetails : /// numbers and these characters : @#\-$%^!+=;:_()]+ /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string AccountDetailSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)AccountDetail).SharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)AccountDetail).SharePassword = value ?? null; } + public string AccountDetailSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)AccountDetail).SharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)AccountDetail).SharePassword = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel? _logCollectionLevel; @@ -42,14 +42,14 @@ public partial class DataExportDetails : public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel? LogCollectionLevel { get => this._logCollectionLevel; set => this._logCollectionLevel = value; } /// Internal Acessors for AccountDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetailsInternal.AccountDetail { get => (this._accountDetail = this._accountDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetails()); set { {_accountDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetailsInternal.AccountDetail { get => (this._accountDetail = this._accountDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetails()); set { {_accountDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration _transferConfiguration; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration _transferConfiguration; /// Configuration for the data transfer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration TransferConfiguration { get => (this._transferConfiguration = this._transferConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfiguration()); set => this._transferConfiguration = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration TransferConfiguration { get => (this._transferConfiguration = this._transferConfiguration ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfiguration()); set => this._transferConfiguration = value; } /// Creates an new instance. public DataExportDetails() @@ -97,8 +97,8 @@ public partial interface IDataExportDetails : ReadOnly = false, Description = @"Configuration for the data transfer.", SerializedName = @"transferConfiguration", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration TransferConfiguration { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration TransferConfiguration { get; set; } } /// Details of the data to be used for exporting data from azure. @@ -106,7 +106,7 @@ internal partial interface IDataExportDetailsInternal { /// Account details of the data to be transferred - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails AccountDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails AccountDetail { get; set; } /// Account Type of the data to be transferred. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType AccountDetailDataAccountType { get; set; } /// @@ -120,7 +120,7 @@ internal partial interface IDataExportDetailsInternal /// Level of the logs to be collected. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel? LogCollectionLevel { get; set; } /// Configuration for the data transfer. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration TransferConfiguration { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration TransferConfiguration { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataExportDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataExportDetails.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataExportDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataExportDetails.json.cs index 43a66d444db6..4558a9f03719 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataExportDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataExportDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,20 +65,20 @@ internal DataExportDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Js { return; } - {_accountDetail = If( json?.PropertyT("accountDetails"), out var __jsonAccountDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetails.FromJson(__jsonAccountDetails) : AccountDetail;} - {_transferConfiguration = If( json?.PropertyT("transferConfiguration"), out var __jsonTransferConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfiguration.FromJson(__jsonTransferConfiguration) : TransferConfiguration;} + {_accountDetail = If( json?.PropertyT("accountDetails"), out var __jsonAccountDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetails.FromJson(__jsonAccountDetails) : AccountDetail;} + {_transferConfiguration = If( json?.PropertyT("transferConfiguration"), out var __jsonTransferConfiguration) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfiguration.FromJson(__jsonTransferConfiguration) : TransferConfiguration;} {_logCollectionLevel = If( json?.PropertyT("logCollectionLevel"), out var __jsonLogCollectionLevel) ? (string)__jsonLogCollectionLevel : (string)LogCollectionLevel;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataExportDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataImportDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataImportDetails.PowerShell.cs similarity index 84% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataImportDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataImportDetails.PowerShell.cs index db850af50b20..7455e81da6fe 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataImportDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataImportDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataImportDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,25 +70,25 @@ internal DataImportDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("AccountDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).AccountDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails) content.GetValueForProperty("AccountDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).AccountDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).AccountDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails) content.GetValueForProperty("AccountDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).AccountDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetailsTypeConverter.ConvertFrom); } if (content.Contains("LogCollectionLevel")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).LogCollectionLevel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel?) content.GetValueForProperty("LogCollectionLevel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).LogCollectionLevel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).LogCollectionLevel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel?) content.GetValueForProperty("LogCollectionLevel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).LogCollectionLevel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel.CreateFrom); } if (content.Contains("AccountDetailDataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).AccountDetailDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("AccountDetailDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).AccountDetailDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).AccountDetailDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("AccountDetailDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).AccountDetailDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("AccountDetailSharePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).AccountDetailSharePassword = (string) content.GetValueForProperty("AccountDetailSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).AccountDetailSharePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).AccountDetailSharePassword = (string) content.GetValueForProperty("AccountDetailSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).AccountDetailSharePassword, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,45 +103,45 @@ internal DataImportDetails(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("AccountDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).AccountDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails) content.GetValueForProperty("AccountDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).AccountDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).AccountDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails) content.GetValueForProperty("AccountDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).AccountDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetailsTypeConverter.ConvertFrom); } if (content.Contains("LogCollectionLevel")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).LogCollectionLevel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel?) content.GetValueForProperty("LogCollectionLevel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).LogCollectionLevel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).LogCollectionLevel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel?) content.GetValueForProperty("LogCollectionLevel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).LogCollectionLevel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel.CreateFrom); } if (content.Contains("AccountDetailDataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).AccountDetailDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("AccountDetailDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).AccountDetailDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).AccountDetailDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("AccountDetailDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).AccountDetailDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("AccountDetailSharePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).AccountDetailSharePassword = (string) content.GetValueForProperty("AccountDetailSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal)this).AccountDetailSharePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).AccountDetailSharePassword = (string) content.GetValueForProperty("AccountDetailSharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal)this).AccountDetailSharePassword, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataImportDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataImportDetails(content); } @@ -151,7 +151,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataImportDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataImportDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataImportDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataImportDetails.TypeConverter.cs index 873875546474..73bf72e6f075 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataImportDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataImportDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataImportDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataImportDetails.cs similarity index 91% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataImportDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataImportDetails.cs index 573443214f33..d0877481dd24 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataImportDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataImportDetails.cs @@ -3,26 +3,26 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Details of the data to be used for importing data to azure. public partial class DataImportDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails _accountDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails _accountDetail; /// Account details of the data to be transferred [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails AccountDetail { get => (this._accountDetail = this._accountDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetails()); set => this._accountDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails AccountDetail { get => (this._accountDetail = this._accountDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetails()); set => this._accountDetail = value; } /// Account Type of the data to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType AccountDetailDataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)AccountDetail).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)AccountDetail).DataAccountType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType AccountDetailDataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)AccountDetail).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)AccountDetail).DataAccountType = value ; } /// /// Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If @@ -32,7 +32,7 @@ public partial class DataImportDetails : /// numbers and these characters : @#\-$%^!+=;:_()]+ /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string AccountDetailSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)AccountDetail).SharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)AccountDetail).SharePassword = value ?? null; } + public string AccountDetailSharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)AccountDetail).SharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)AccountDetail).SharePassword = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel? _logCollectionLevel; @@ -42,7 +42,7 @@ public partial class DataImportDetails : public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.LogCollectionLevel? LogCollectionLevel { get => this._logCollectionLevel; set => this._logCollectionLevel = value; } /// Internal Acessors for AccountDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetailsInternal.AccountDetail { get => (this._accountDetail = this._accountDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetails()); set { {_accountDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetailsInternal.AccountDetail { get => (this._accountDetail = this._accountDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetails()); set { {_accountDetail = value;} } } /// Creates an new instance. public DataImportDetails() @@ -91,7 +91,7 @@ internal partial interface IDataImportDetailsInternal { /// Account details of the data to be transferred - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails AccountDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails AccountDetail { get; set; } /// Account Type of the data to be transferred. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType AccountDetailDataAccountType { get; set; } /// diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataImportDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataImportDetails.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataImportDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataImportDetails.json.cs index a212df021a11..0b22ec5b30e1 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataImportDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataImportDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DataImportDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Js { return; } - {_accountDetail = If( json?.PropertyT("accountDetails"), out var __jsonAccountDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetails.FromJson(__jsonAccountDetails) : AccountDetail;} + {_accountDetail = If( json?.PropertyT("accountDetails"), out var __jsonAccountDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetails.FromJson(__jsonAccountDetails) : AccountDetail;} {_logCollectionLevel = If( json?.PropertyT("logCollectionLevel"), out var __jsonLogCollectionLevel) ? (string)__jsonLogCollectionLevel : (string)LogCollectionLevel;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataImportDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataLocationToServiceLocationMap.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataLocationToServiceLocationMap.PowerShell.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataLocationToServiceLocationMap.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataLocationToServiceLocationMap.PowerShell.cs index 083f1e2a4712..1a749897fae7 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataLocationToServiceLocationMap.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataLocationToServiceLocationMap.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataLocationToServiceLocationMap partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,17 +70,17 @@ internal DataLocationToServiceLocationMap(global::System.Collections.IDictionary // actually deserialize if (content.Contains("DataLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMapInternal)this).DataLocation = (string) content.GetValueForProperty("DataLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMapInternal)this).DataLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMapInternal)this).DataLocation = (string) content.GetValueForProperty("DataLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMapInternal)this).DataLocation, global::System.Convert.ToString); } if (content.Contains("ServiceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMapInternal)this).ServiceLocation = (string) content.GetValueForProperty("ServiceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMapInternal)this).ServiceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMapInternal)this).ServiceLocation = (string) content.GetValueForProperty("ServiceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMapInternal)this).ServiceLocation, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -95,39 +95,39 @@ internal DataLocationToServiceLocationMap(global::System.Management.Automation.P // actually deserialize if (content.Contains("DataLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMapInternal)this).DataLocation = (string) content.GetValueForProperty("DataLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMapInternal)this).DataLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMapInternal)this).DataLocation = (string) content.GetValueForProperty("DataLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMapInternal)this).DataLocation, global::System.Convert.ToString); } if (content.Contains("ServiceLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMapInternal)this).ServiceLocation = (string) content.GetValueForProperty("ServiceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMapInternal)this).ServiceLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMapInternal)this).ServiceLocation = (string) content.GetValueForProperty("ServiceLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMapInternal)this).ServiceLocation, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataLocationToServiceLocationMap(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataLocationToServiceLocationMap(content); } @@ -137,7 +137,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataLocationToServiceLocationMap.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataLocationToServiceLocationMap.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataLocationToServiceLocationMap.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataLocationToServiceLocationMap.TypeConverter.cs index 3f903b0b5a72..0748ccabe1f7 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataLocationToServiceLocationMap.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataLocationToServiceLocationMap.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataLocationToServiceLocationMap.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataLocationToServiceLocationMap.cs similarity index 93% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataLocationToServiceLocationMap.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataLocationToServiceLocationMap.cs index 16d34902fdee..9a98d425a2f4 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataLocationToServiceLocationMap.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataLocationToServiceLocationMap.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Map of data location to service location public partial class DataLocationToServiceLocationMap : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMapInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMapInternal { /// Backing field for property. @@ -21,10 +21,10 @@ public partial class DataLocationToServiceLocationMap : public string DataLocation { get => this._dataLocation; } /// Internal Acessors for DataLocation - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMapInternal.DataLocation { get => this._dataLocation; set { {_dataLocation = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMapInternal.DataLocation { get => this._dataLocation; set { {_dataLocation = value;} } } /// Internal Acessors for ServiceLocation - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMapInternal.ServiceLocation { get => this._serviceLocation; set { {_serviceLocation = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMapInternal.ServiceLocation { get => this._serviceLocation; set { {_serviceLocation = value;} } } /// Backing field for property. private string _serviceLocation; diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataLocationToServiceLocationMap.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataLocationToServiceLocationMap.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataLocationToServiceLocationMap.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataLocationToServiceLocationMap.json.cs index c900c9abb916..24a312bf34d5 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataLocationToServiceLocationMap.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataLocationToServiceLocationMap.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DataLocationToServiceLocationMap(Microsoft.Azure.PowerShell.Cmdlets.Dat } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataLocationToServiceLocationMap(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationRequest.PowerShell.cs similarity index 76% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationRequest.PowerShell.cs index 16c1fd8cbbf6..da700594422d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataTransferDetailsValidationRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,29 +70,33 @@ internal DataTransferDetailsValidationRequest(global::System.Collections.IDictio // actually deserialize if (content.Contains("DataExportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DataImportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DeviceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -107,51 +111,55 @@ internal DataTransferDetailsValidationRequest(global::System.Management.Automati // actually deserialize if (content.Contains("DataExportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DataImportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DeviceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataTransferDetailsValidationRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataTransferDetailsValidationRequest(content); } @@ -163,7 +171,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationRequest.TypeConverter.cs index d6849e941f11..41f31ef5be71 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationRequest.cs similarity index 71% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationRequest.cs index c67851970a9f..ae2b5f73a555 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationRequest.cs @@ -3,35 +3,35 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Request to validate export and import data details. public partial class DataTransferDetailsValidationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest(); /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] _dataExportDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[] _dataExportDetail; /// List of DataTransfer details to be used to export data from azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] DataExportDetail { get => this._dataExportDetail; set => this._dataExportDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[] DataExportDetail { get => this._dataExportDetail; set => this._dataExportDetail = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] _dataImportDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[] _dataImportDetail; /// List of DataTransfer details to be used to import data to azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] DataImportDetail { get => this._dataImportDetail; set => this._dataImportDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[] DataImportDetail { get => this._dataImportDetail; set => this._dataImportDetail = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName _deviceType; @@ -40,6 +40,16 @@ public partial class DataTransferDetailsValidationRequest : [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName DeviceType { get => this._deviceType; set => this._deviceType = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? _model; + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get => this._model; set => this._model = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType _transferType; @@ -49,7 +59,7 @@ public partial class DataTransferDetailsValidationRequest : /// Identifies the type of validation request. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)__validationInputRequest).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)__validationInputRequest).ValidationType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)__validationInputRequest).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)__validationInputRequest).ValidationType = value ; } /// Creates an new instance. public DataTransferDetailsValidationRequest() @@ -72,7 +82,7 @@ public DataTransferDetailsValidationRequest() /// Request to validate export and import data details. public partial interface IDataTransferDetailsValidationRequest : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest { /// List of DataTransfer details to be used to export data from azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -80,16 +90,16 @@ public partial interface IDataTransferDetailsValidationRequest : ReadOnly = false, Description = @"List of DataTransfer details to be used to export data from azure.", SerializedName = @"dataExportDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] DataExportDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[] DataExportDetail { get; set; } /// List of DataTransfer details to be used to import data to azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = false, Description = @"List of DataTransfer details to be used to import data to azure.", SerializedName = @"dataImportDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] DataImportDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[] DataImportDetail { get; set; } /// Device type. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, @@ -98,6 +108,17 @@ public partial interface IDataTransferDetailsValidationRequest : SerializedName = @"deviceType", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) })] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName DeviceType { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// Type of the transfer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, @@ -110,14 +131,19 @@ public partial interface IDataTransferDetailsValidationRequest : } /// Request to validate export and import data details. internal partial interface IDataTransferDetailsValidationRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal { /// List of DataTransfer details to be used to export data from azure. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] DataExportDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[] DataExportDetail { get; set; } /// List of DataTransfer details to be used to import data to azure. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] DataImportDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[] DataImportDetail { get; set; } /// Device type. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName DeviceType { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// Type of the transfer. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType TransferType { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationRequest.json.cs similarity index 89% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationRequest.json.cs index 4ffc76453158..798240e73ae8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,22 +65,23 @@ internal DataTransferDetailsValidationRequest(Microsoft.Azure.PowerShell.Cmdlets { return; } - __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest(json); - {_dataExportDetail = If( json?.PropertyT("dataExportDetails"), out var __jsonDataExportDetails) ? If( __jsonDataExportDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetails.FromJson(__u) )) ))() : null : DataExportDetail;} - {_dataImportDetail = If( json?.PropertyT("dataImportDetails"), out var __jsonDataImportDetails) ? If( __jsonDataImportDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetails.FromJson(__p) )) ))() : null : DataImportDetail;} + __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest(json); + {_dataExportDetail = If( json?.PropertyT("dataExportDetails"), out var __jsonDataExportDetails) ? If( __jsonDataExportDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetails.FromJson(__u) )) ))() : null : DataExportDetail;} + {_dataImportDetail = If( json?.PropertyT("dataImportDetails"), out var __jsonDataImportDetails) ? If( __jsonDataImportDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetails.FromJson(__p) )) ))() : null : DataImportDetail;} {_deviceType = If( json?.PropertyT("deviceType"), out var __jsonDeviceType) ? (string)__jsonDeviceType : (string)DeviceType;} {_transferType = If( json?.PropertyT("transferType"), out var __jsonTransferType) ? (string)__jsonTransferType : (string)TransferType;} + {_model = If( json?.PropertyT("model"), out var __jsonModel) ? (string)__jsonModel : (string)Model;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataTransferDetailsValidationRequest(json) : null; } @@ -126,6 +127,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M } AddIf( null != (((object)this._deviceType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._deviceType.ToString()) : null, "deviceType" ,container.Add ); AddIf( null != (((object)this._transferType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._transferType.ToString()) : null, "transferType" ,container.Add ); + AddIf( null != (((object)this._model)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._model.ToString()) : null, "model" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationResponseProperties.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationResponseProperties.PowerShell.cs similarity index 78% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationResponseProperties.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationResponseProperties.PowerShell.cs index 8a244d6e662b..56b40702d50d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationResponseProperties.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationResponseProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataTransferDetailsValidationResponseProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,41 +70,41 @@ internal DataTransferDetailsValidationResponseProperties(global::System.Collecti // actually deserialize if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -119,63 +119,63 @@ internal DataTransferDetailsValidationResponseProperties(global::System.Manageme // actually deserialize if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataTransferDetailsValidationResponseProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataTransferDetailsValidationResponseProperties(content); } @@ -188,7 +188,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationResponseProperties.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationResponseProperties.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationResponseProperties.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationResponseProperties.TypeConverter.cs index 2e2f3919652f..55a83779b548 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationResponseProperties.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationResponseProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponseProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponseProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponseProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponseProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationResponseProperties.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationResponseProperties.cs similarity index 77% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationResponseProperties.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationResponseProperties.cs index 0897ab826ad0..b7d361c647f8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationResponseProperties.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationResponseProperties.cs @@ -3,53 +3,53 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Properties of data transfer details validation response. public partial class DataTransferDetailsValidationResponseProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponseProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponsePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponseProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponsePropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse(); /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Code = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail; } /// Error code and message of validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Message = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponsePropertiesInternal.Status { get => this._status; set { {_status = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponsePropertiesInternal.Status { get => this._status; set { {_status = value;} } } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? _status; @@ -60,11 +60,11 @@ public partial class DataTransferDetailsValidationResponseProperties : /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Target = value ?? null; } /// Identifies the type of validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).ValidationType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).ValidationType = value ; } /// /// Creates an new instance. @@ -89,7 +89,7 @@ public DataTransferDetailsValidationResponseProperties() /// Properties of data transfer details validation response. public partial interface IDataTransferDetailsValidationResponseProperties : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse { /// Data transfer details validation status. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -103,7 +103,7 @@ public partial interface IDataTransferDetailsValidationResponseProperties : } /// Properties of data transfer details validation response. internal partial interface IDataTransferDetailsValidationResponsePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal { /// Data transfer details validation status. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Status { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationResponseProperties.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationResponseProperties.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationResponseProperties.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationResponseProperties.json.cs index ce6eaaf18daa..c4928d9dc43d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataTransferDetailsValidationResponseProperties.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataTransferDetailsValidationResponseProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -66,19 +66,19 @@ internal DataTransferDetailsValidationResponseProperties(Microsoft.Azure.PowerSh { return; } - __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse(json); + __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse(json); {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponseProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponseProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponseProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponseProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataTransferDetailsValidationResponseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataTransferDetailsValidationResponseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataTransferDetailsValidationResponseProperties(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataboxJobSecrets.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataboxJobSecrets.PowerShell.cs similarity index 73% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataboxJobSecrets.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataboxJobSecrets.PowerShell.cs index a5e5129f5b30..0e4364a7b69f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataboxJobSecrets.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataboxJobSecrets.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DataboxJobSecrets partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,53 +70,53 @@ internal DataboxJobSecrets(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("PodSecret")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataboxJobSecretsInternal)this).PodSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret[]) content.GetValueForProperty("PodSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataboxJobSecretsInternal)this).PodSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxSecretTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataboxJobSecretsInternal)this).PodSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret[]) content.GetValueForProperty("PodSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataboxJobSecretsInternal)this).PodSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxSecretTypeConverter.ConvertFrom)); } if (content.Contains("DcAccessSecurityCodeReverseDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCodeForwardDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCodeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCodeTypeConverter.ConvertFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,73 +131,73 @@ internal DataboxJobSecrets(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("PodSecret")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataboxJobSecretsInternal)this).PodSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret[]) content.GetValueForProperty("PodSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataboxJobSecretsInternal)this).PodSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxSecretTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataboxJobSecretsInternal)this).PodSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret[]) content.GetValueForProperty("PodSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataboxJobSecretsInternal)this).PodSecret, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxSecretTypeConverter.ConvertFrom)); } if (content.Contains("DcAccessSecurityCodeReverseDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCodeForwardDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCodeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCodeTypeConverter.ConvertFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataboxJobSecrets DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataboxJobSecrets DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DataboxJobSecrets(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataboxJobSecrets DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataboxJobSecrets DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DataboxJobSecrets(content); } @@ -207,7 +207,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataboxJobSecrets FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataboxJobSecrets FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataboxJobSecrets.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataboxJobSecrets.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataboxJobSecrets.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataboxJobSecrets.TypeConverter.cs index 6186e0cdc282..7f872582baae 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataboxJobSecrets.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataboxJobSecrets.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataboxJobSecrets ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataboxJobSecrets ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataboxJobSecrets).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataboxJobSecrets).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataboxJobSecrets.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataboxJobSecrets.cs similarity index 73% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataboxJobSecrets.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataboxJobSecrets.cs index a2cce1394b63..91338f0d5344 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataboxJobSecrets.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataboxJobSecrets.cs @@ -3,80 +3,80 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The secrets related to a databox job. public partial class DataboxJobSecrets : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataboxJobSecrets, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataboxJobSecretsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataboxJobSecrets, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataboxJobSecretsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobSecrets(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobSecrets(); /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Code = value ?? null; } /// Dc Access Security Code for Customer Managed Shipping [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; } /// Forward Dc access security code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string DcAccessSecurityCodeForwardDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode = value ?? null; } + public string DcAccessSecurityCodeForwardDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeForwardDcAccessCode = value ?? null; } /// Reverse Dc access security code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string DcAccessSecurityCodeReverseDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode = value ?? null; } + public string DcAccessSecurityCodeReverseDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCodeReverseDcAccessCode = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Detail; } /// Error while fetching the secrets. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Error; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Error; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Message = value ?? null; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).AdditionalInfo = value; } /// Internal Acessors for DcAccessSecurityCode - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.DcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).DcAccessSecurityCode = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Error = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret[] _podSecret; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret[] _podSecret; /// Contains the list of secret objects for a job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret[] PodSecret { get => this._podSecret; set => this._podSecret = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret[] PodSecret { get => this._podSecret; set => this._podSecret = value; } /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Target = value ?? null; } /// Used to indicate what type of job secrets object. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)__jobSecrets).Type = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)__jobSecrets).Type = value ; } /// Creates an new instance. public DataboxJobSecrets() @@ -99,7 +99,7 @@ public DataboxJobSecrets() /// The secrets related to a databox job. public partial interface IDataboxJobSecrets : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets { /// Contains the list of secret objects for a job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -107,16 +107,16 @@ public partial interface IDataboxJobSecrets : ReadOnly = false, Description = @"Contains the list of secret objects for a job.", SerializedName = @"podSecrets", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret[] PodSecret { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret[] PodSecret { get; set; } } /// The secrets related to a databox job. internal partial interface IDataboxJobSecretsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal { /// Contains the list of secret objects for a job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret[] PodSecret { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret[] PodSecret { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataboxJobSecrets.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataboxJobSecrets.json.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataboxJobSecrets.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataboxJobSecrets.json.cs index 405d53a6faa3..120596b43d6b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DataboxJobSecrets.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DataboxJobSecrets.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DataboxJobSecrets(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Js { return; } - __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobSecrets(json); - {_podSecret = If( json?.PropertyT("podSecrets"), out var __jsonPodSecrets) ? If( __jsonPodSecrets as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataBoxSecret) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataBoxSecret.FromJson(__u) )) ))() : null : PodSecret;} + __jobSecrets = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobSecrets(json); + {_podSecret = If( json?.PropertyT("podSecrets"), out var __jsonPodSecrets) ? If( __jsonPodSecrets as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataBoxSecret) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataBoxSecret.FromJson(__u) )) ))() : null : PodSecret;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataboxJobSecrets. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataboxJobSecrets. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataboxJobSecrets. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataboxJobSecrets. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataboxJobSecrets FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataboxJobSecrets FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DataboxJobSecrets(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressInstructionResponse.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressInstructionResponse.PowerShell.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressInstructionResponse.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressInstructionResponse.PowerShell.cs index 1815b83d8bd8..cc4ee4ee703e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressInstructionResponse.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressInstructionResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DatacenterAddressInstructionResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,25 +70,25 @@ internal DatacenterAddressInstructionResponse(global::System.Collections.IDictio // actually deserialize if (content.Contains("CommunicationInstruction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponseInternal)this).CommunicationInstruction = (string) content.GetValueForProperty("CommunicationInstruction",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponseInternal)this).CommunicationInstruction, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponseInternal)this).CommunicationInstruction = (string) content.GetValueForProperty("CommunicationInstruction",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponseInternal)this).CommunicationInstruction, global::System.Convert.ToString); } if (content.Contains("DatacenterAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); } if (content.Contains("SupportedCarriersForReturnShipment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("SupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("SupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DataCenterAzureLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation = (string) content.GetValueForProperty("DataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation = (string) content.GetValueForProperty("DataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -103,47 +103,47 @@ internal DatacenterAddressInstructionResponse(global::System.Management.Automati // actually deserialize if (content.Contains("CommunicationInstruction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponseInternal)this).CommunicationInstruction = (string) content.GetValueForProperty("CommunicationInstruction",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponseInternal)this).CommunicationInstruction, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponseInternal)this).CommunicationInstruction = (string) content.GetValueForProperty("CommunicationInstruction",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponseInternal)this).CommunicationInstruction, global::System.Convert.ToString); } if (content.Contains("DatacenterAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); } if (content.Contains("SupportedCarriersForReturnShipment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("SupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("SupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DataCenterAzureLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation = (string) content.GetValueForProperty("DataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation = (string) content.GetValueForProperty("DataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DatacenterAddressInstructionResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatacenterAddressInstructionResponse(content); } @@ -155,7 +155,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressInstructionResponse.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressInstructionResponse.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressInstructionResponse.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressInstructionResponse.TypeConverter.cs index ab5cbf35888e..829e2672509e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressInstructionResponse.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressInstructionResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -109,14 +109,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressInstructionResponse.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressInstructionResponse.cs similarity index 84% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressInstructionResponse.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressInstructionResponse.cs index d8bc4e9ddee2..accf5ebec4a9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressInstructionResponse.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressInstructionResponse.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Datacenter instruction for given storage location. public partial class DatacenterAddressInstructionResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponseInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponseInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse __datacenterAddressResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponse(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse __datacenterAddressResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponse(); /// Backing field for property. private string _communicationInstruction; @@ -28,24 +28,24 @@ public partial class DatacenterAddressInstructionResponse : /// Azure Location where the Data Center serves primarily. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string DataCenterAzureLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DataCenterAzureLocation; } + public string DataCenterAzureLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DataCenterAzureLocation; } /// Data center address type [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType DatacenterAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DatacenterAddressType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DatacenterAddressType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType DatacenterAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DatacenterAddressType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DatacenterAddressType = value ; } /// Internal Acessors for CommunicationInstruction - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponseInternal.CommunicationInstruction { get => this._communicationInstruction; set { {_communicationInstruction = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponseInternal.CommunicationInstruction { get => this._communicationInstruction; set { {_communicationInstruction = value;} } } /// Internal Acessors for DataCenterAzureLocation - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal.DataCenterAzureLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DataCenterAzureLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DataCenterAzureLocation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal.DataCenterAzureLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DataCenterAzureLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DataCenterAzureLocation = value; } /// Internal Acessors for SupportedCarriersForReturnShipment - string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal.SupportedCarriersForReturnShipment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).SupportedCarriersForReturnShipment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).SupportedCarriersForReturnShipment = value; } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal.SupportedCarriersForReturnShipment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).SupportedCarriersForReturnShipment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).SupportedCarriersForReturnShipment = value; } /// List of supported carriers for return shipment. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string[] SupportedCarriersForReturnShipment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).SupportedCarriersForReturnShipment; } + public string[] SupportedCarriersForReturnShipment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).SupportedCarriersForReturnShipment; } /// Creates an new instance. public DatacenterAddressInstructionResponse() @@ -68,7 +68,7 @@ public DatacenterAddressInstructionResponse() /// Datacenter instruction for given storage location. public partial interface IDatacenterAddressInstructionResponse : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse { /// Data center communication instruction [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -82,7 +82,7 @@ public partial interface IDatacenterAddressInstructionResponse : } /// Datacenter instruction for given storage location. internal partial interface IDatacenterAddressInstructionResponseInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal { /// Data center communication instruction string CommunicationInstruction { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressInstructionResponse.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressInstructionResponse.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressInstructionResponse.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressInstructionResponse.json.cs index a2f20e250f35..865c06edbcc4 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressInstructionResponse.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressInstructionResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DatacenterAddressInstructionResponse(Microsoft.Azure.PowerShell.Cmdlets { return; } - __datacenterAddressResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponse(json); + __datacenterAddressResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponse(json); {_communicationInstruction = If( json?.PropertyT("communicationInstruction"), out var __jsonCommunicationInstruction) ? (string)__jsonCommunicationInstruction : (string)CommunicationInstruction;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressInstructionResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressInstructionResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DatacenterAddressInstructionResponse(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressLocationResponse.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressLocationResponse.PowerShell.cs similarity index 78% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressLocationResponse.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressLocationResponse.PowerShell.cs index 2a8149820dde..15a3f6832e61 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressLocationResponse.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressLocationResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DatacenterAddressLocationResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,73 +70,73 @@ internal DatacenterAddressLocationResponse(global::System.Collections.IDictionar // actually deserialize if (content.Contains("ContactPersonName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).ContactPersonName = (string) content.GetValueForProperty("ContactPersonName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).ContactPersonName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).ContactPersonName = (string) content.GetValueForProperty("ContactPersonName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).ContactPersonName, global::System.Convert.ToString); } if (content.Contains("Company")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Company = (string) content.GetValueForProperty("Company",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Company, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Company = (string) content.GetValueForProperty("Company",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Company, global::System.Convert.ToString); } if (content.Contains("Street1")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Street1 = (string) content.GetValueForProperty("Street1",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Street1, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Street1 = (string) content.GetValueForProperty("Street1",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Street1, global::System.Convert.ToString); } if (content.Contains("Street2")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Street2 = (string) content.GetValueForProperty("Street2",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Street2, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Street2 = (string) content.GetValueForProperty("Street2",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Street2, global::System.Convert.ToString); } if (content.Contains("Street3")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Street3 = (string) content.GetValueForProperty("Street3",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Street3, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Street3 = (string) content.GetValueForProperty("Street3",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Street3, global::System.Convert.ToString); } if (content.Contains("City")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).City = (string) content.GetValueForProperty("City",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).City, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).City = (string) content.GetValueForProperty("City",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).City, global::System.Convert.ToString); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).State, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).State, global::System.Convert.ToString); } if (content.Contains("Zip")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Zip = (string) content.GetValueForProperty("Zip",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Zip, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Zip = (string) content.GetValueForProperty("Zip",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Zip, global::System.Convert.ToString); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Country, global::System.Convert.ToString); } if (content.Contains("Phone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Phone = (string) content.GetValueForProperty("Phone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Phone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Phone = (string) content.GetValueForProperty("Phone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Phone, global::System.Convert.ToString); } if (content.Contains("PhoneExtension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).PhoneExtension = (string) content.GetValueForProperty("PhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).PhoneExtension, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).PhoneExtension = (string) content.GetValueForProperty("PhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).PhoneExtension, global::System.Convert.ToString); } if (content.Contains("AddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).AddressType = (string) content.GetValueForProperty("AddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).AddressType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).AddressType = (string) content.GetValueForProperty("AddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).AddressType, global::System.Convert.ToString); } if (content.Contains("AdditionalShippingInformation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).AdditionalShippingInformation = (string) content.GetValueForProperty("AdditionalShippingInformation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).AdditionalShippingInformation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).AdditionalShippingInformation = (string) content.GetValueForProperty("AdditionalShippingInformation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).AdditionalShippingInformation, global::System.Convert.ToString); } if (content.Contains("DatacenterAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); } if (content.Contains("SupportedCarriersForReturnShipment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("SupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("SupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DataCenterAzureLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation = (string) content.GetValueForProperty("DataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation = (string) content.GetValueForProperty("DataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -151,95 +151,95 @@ internal DatacenterAddressLocationResponse(global::System.Management.Automation. // actually deserialize if (content.Contains("ContactPersonName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).ContactPersonName = (string) content.GetValueForProperty("ContactPersonName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).ContactPersonName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).ContactPersonName = (string) content.GetValueForProperty("ContactPersonName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).ContactPersonName, global::System.Convert.ToString); } if (content.Contains("Company")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Company = (string) content.GetValueForProperty("Company",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Company, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Company = (string) content.GetValueForProperty("Company",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Company, global::System.Convert.ToString); } if (content.Contains("Street1")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Street1 = (string) content.GetValueForProperty("Street1",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Street1, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Street1 = (string) content.GetValueForProperty("Street1",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Street1, global::System.Convert.ToString); } if (content.Contains("Street2")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Street2 = (string) content.GetValueForProperty("Street2",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Street2, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Street2 = (string) content.GetValueForProperty("Street2",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Street2, global::System.Convert.ToString); } if (content.Contains("Street3")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Street3 = (string) content.GetValueForProperty("Street3",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Street3, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Street3 = (string) content.GetValueForProperty("Street3",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Street3, global::System.Convert.ToString); } if (content.Contains("City")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).City = (string) content.GetValueForProperty("City",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).City, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).City = (string) content.GetValueForProperty("City",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).City, global::System.Convert.ToString); } if (content.Contains("State")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).State, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).State = (string) content.GetValueForProperty("State",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).State, global::System.Convert.ToString); } if (content.Contains("Zip")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Zip = (string) content.GetValueForProperty("Zip",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Zip, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Zip = (string) content.GetValueForProperty("Zip",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Zip, global::System.Convert.ToString); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Country, global::System.Convert.ToString); } if (content.Contains("Phone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Phone = (string) content.GetValueForProperty("Phone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).Phone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Phone = (string) content.GetValueForProperty("Phone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).Phone, global::System.Convert.ToString); } if (content.Contains("PhoneExtension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).PhoneExtension = (string) content.GetValueForProperty("PhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).PhoneExtension, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).PhoneExtension = (string) content.GetValueForProperty("PhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).PhoneExtension, global::System.Convert.ToString); } if (content.Contains("AddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).AddressType = (string) content.GetValueForProperty("AddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).AddressType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).AddressType = (string) content.GetValueForProperty("AddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).AddressType, global::System.Convert.ToString); } if (content.Contains("AdditionalShippingInformation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).AdditionalShippingInformation = (string) content.GetValueForProperty("AdditionalShippingInformation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal)this).AdditionalShippingInformation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).AdditionalShippingInformation = (string) content.GetValueForProperty("AdditionalShippingInformation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal)this).AdditionalShippingInformation, global::System.Convert.ToString); } if (content.Contains("DatacenterAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); } if (content.Contains("SupportedCarriersForReturnShipment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("SupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("SupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DataCenterAzureLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation = (string) content.GetValueForProperty("DataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation = (string) content.GetValueForProperty("DataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DatacenterAddressLocationResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatacenterAddressLocationResponse(content); } @@ -251,7 +251,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressLocationResponse.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressLocationResponse.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressLocationResponse.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressLocationResponse.TypeConverter.cs index 6103649263fe..a4cbb7aa0efb 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressLocationResponse.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressLocationResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressLocationResponse.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressLocationResponse.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressLocationResponse.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressLocationResponse.cs index a6fef9093301..911c46faaa42 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressLocationResponse.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressLocationResponse.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Datacenter address for given storage location. public partial class DatacenterAddressLocationResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse __datacenterAddressResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponse(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse __datacenterAddressResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponse(); /// Backing field for property. private string _additionalShippingInformation; @@ -63,56 +63,56 @@ public partial class DatacenterAddressLocationResponse : /// Azure Location where the Data Center serves primarily. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string DataCenterAzureLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DataCenterAzureLocation; } + public string DataCenterAzureLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DataCenterAzureLocation; } /// Data center address type [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType DatacenterAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DatacenterAddressType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DatacenterAddressType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType DatacenterAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DatacenterAddressType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DatacenterAddressType = value ; } /// Internal Acessors for AdditionalShippingInformation - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal.AdditionalShippingInformation { get => this._additionalShippingInformation; set { {_additionalShippingInformation = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal.AdditionalShippingInformation { get => this._additionalShippingInformation; set { {_additionalShippingInformation = value;} } } /// Internal Acessors for AddressType - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal.AddressType { get => this._addressType; set { {_addressType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal.AddressType { get => this._addressType; set { {_addressType = value;} } } /// Internal Acessors for City - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal.City { get => this._city; set { {_city = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal.City { get => this._city; set { {_city = value;} } } /// Internal Acessors for Company - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal.Company { get => this._company; set { {_company = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal.Company { get => this._company; set { {_company = value;} } } /// Internal Acessors for ContactPersonName - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal.ContactPersonName { get => this._contactPersonName; set { {_contactPersonName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal.ContactPersonName { get => this._contactPersonName; set { {_contactPersonName = value;} } } /// Internal Acessors for Country - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal.Country { get => this._country; set { {_country = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal.Country { get => this._country; set { {_country = value;} } } /// Internal Acessors for Phone - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal.Phone { get => this._phone; set { {_phone = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal.Phone { get => this._phone; set { {_phone = value;} } } /// Internal Acessors for PhoneExtension - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal.PhoneExtension { get => this._phoneExtension; set { {_phoneExtension = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal.PhoneExtension { get => this._phoneExtension; set { {_phoneExtension = value;} } } /// Internal Acessors for State - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal.State { get => this._state; set { {_state = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal.State { get => this._state; set { {_state = value;} } } /// Internal Acessors for Street1 - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal.Street1 { get => this._street1; set { {_street1 = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal.Street1 { get => this._street1; set { {_street1 = value;} } } /// Internal Acessors for Street2 - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal.Street2 { get => this._street2; set { {_street2 = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal.Street2 { get => this._street2; set { {_street2 = value;} } } /// Internal Acessors for Street3 - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal.Street3 { get => this._street3; set { {_street3 = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal.Street3 { get => this._street3; set { {_street3 = value;} } } /// Internal Acessors for Zip - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponseInternal.Zip { get => this._zip; set { {_zip = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponseInternal.Zip { get => this._zip; set { {_zip = value;} } } /// Internal Acessors for DataCenterAzureLocation - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal.DataCenterAzureLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DataCenterAzureLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DataCenterAzureLocation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal.DataCenterAzureLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DataCenterAzureLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).DataCenterAzureLocation = value; } /// Internal Acessors for SupportedCarriersForReturnShipment - string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal.SupportedCarriersForReturnShipment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).SupportedCarriersForReturnShipment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).SupportedCarriersForReturnShipment = value; } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal.SupportedCarriersForReturnShipment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).SupportedCarriersForReturnShipment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).SupportedCarriersForReturnShipment = value; } /// Backing field for property. private string _phone; @@ -158,7 +158,7 @@ public partial class DatacenterAddressLocationResponse : /// List of supported carriers for return shipment. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string[] SupportedCarriersForReturnShipment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).SupportedCarriersForReturnShipment; } + public string[] SupportedCarriersForReturnShipment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)__datacenterAddressResponse).SupportedCarriersForReturnShipment; } /// Backing field for property. private string _zip; @@ -188,7 +188,7 @@ public DatacenterAddressLocationResponse() /// Datacenter address for given storage location. public partial interface IDatacenterAddressLocationResponse : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse { /// Special instruction for shipping [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -298,7 +298,7 @@ public partial interface IDatacenterAddressLocationResponse : } /// Datacenter address for given storage location. internal partial interface IDatacenterAddressLocationResponseInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal { /// Special instruction for shipping string AdditionalShippingInformation { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressLocationResponse.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressLocationResponse.json.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressLocationResponse.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressLocationResponse.json.cs index ba9826a1bd08..face6ed18b97 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressLocationResponse.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressLocationResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,7 +65,7 @@ internal DatacenterAddressLocationResponse(Microsoft.Azure.PowerShell.Cmdlets.Da { return; } - __datacenterAddressResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponse(json); + __datacenterAddressResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponse(json); {_contactPersonName = If( json?.PropertyT("contactPersonName"), out var __jsonContactPersonName) ? (string)__jsonContactPersonName : (string)ContactPersonName;} {_company = If( json?.PropertyT("company"), out var __jsonCompany) ? (string)__jsonCompany : (string)Company;} {_street1 = If( json?.PropertyT("street1"), out var __jsonStreet1) ? (string)__jsonStreet1 : (string)Street1;} @@ -83,13 +83,13 @@ internal DatacenterAddressLocationResponse(Microsoft.Azure.PowerShell.Cmdlets.Da } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressLocationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressLocationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DatacenterAddressLocationResponse(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressRequest.PowerShell.cs similarity index 80% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressRequest.PowerShell.cs index fb0cbdd030c5..4727cfde4d66 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DatacenterAddressRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,17 +70,21 @@ internal DatacenterAddressRequest(global::System.Collections.IDictionary content // actually deserialize if (content.Contains("StorageLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequestInternal)this).StorageLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)this).StorageLocation, global::System.Convert.ToString); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -95,37 +99,41 @@ internal DatacenterAddressRequest(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("StorageLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequestInternal)this).StorageLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)this).StorageLocation, global::System.Convert.ToString); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DatacenterAddressRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatacenterAddressRequest(content); } @@ -135,7 +143,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressRequest.TypeConverter.cs index 548e53766830..c0bdbb581800 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressRequest.cs similarity index 64% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressRequest.cs index 788b23d5daaf..824ea3b5dd89 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressRequest.cs @@ -3,16 +3,26 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Request body to get the datacenter address. public partial class DatacenterAddressRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal { + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? _model; + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get => this._model; set => this._model = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName _skuName; @@ -39,6 +49,17 @@ public DatacenterAddressRequest() public partial interface IDatacenterAddressRequest : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable { + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// Sku Name for which the data center address requested. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, @@ -63,6 +84,11 @@ public partial interface IDatacenterAddressRequest : internal partial interface IDatacenterAddressRequestInternal { + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// Sku Name for which the data center address requested. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName SkuName { get; set; } /// diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressRequest.json.cs similarity index 92% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressRequest.json.cs index 49157e5f2697..785b7246fbe6 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -67,17 +67,18 @@ internal DatacenterAddressRequest(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Run } {_storageLocation = If( json?.PropertyT("storageLocation"), out var __jsonStorageLocation) ? (string)__jsonStorageLocation : (string)StorageLocation;} {_skuName = If( json?.PropertyT("skuName"), out var __jsonSkuName) ? (string)__jsonSkuName : (string)SkuName;} + {_model = If( json?.PropertyT("model"), out var __jsonModel) ? (string)__jsonModel : (string)Model;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DatacenterAddressRequest(json) : null; } @@ -103,6 +104,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M } AddIf( null != (((object)this._storageLocation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._storageLocation.ToString()) : null, "storageLocation" ,container.Add ); AddIf( null != (((object)this._skuName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._skuName.ToString()) : null, "skuName" ,container.Add ); + AddIf( null != (((object)this._model)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._model.ToString()) : null, "model" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressResponse.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressResponse.PowerShell.cs similarity index 87% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressResponse.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressResponse.PowerShell.cs index 887ec1b98c34..ea41a5f53df0 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressResponse.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DatacenterAddressResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,21 +70,21 @@ internal DatacenterAddressResponse(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("DatacenterAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); } if (content.Contains("SupportedCarriersForReturnShipment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("SupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("SupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DataCenterAzureLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation = (string) content.GetValueForProperty("DataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation = (string) content.GetValueForProperty("DataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -99,41 +99,41 @@ internal DatacenterAddressResponse(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("DatacenterAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); } if (content.Contains("SupportedCarriersForReturnShipment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("SupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("SupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).SupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DataCenterAzureLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation = (string) content.GetValueForProperty("DataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation = (string) content.GetValueForProperty("DataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)this).DataCenterAzureLocation, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DatacenterAddressResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DatacenterAddressResponse(content); } @@ -143,7 +143,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDat /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressResponse.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressResponse.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressResponse.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressResponse.TypeConverter.cs index eee8a37d44fa..d65f5fe0e6b3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressResponse.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressResponse.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressResponse.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressResponse.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressResponse.cs index d479a3c76796..b423d306f774 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressResponse.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressResponse.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Datacenter address for given storage location. public partial class DatacenterAddressResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal { /// Backing field for property. @@ -28,10 +28,10 @@ public partial class DatacenterAddressResponse : public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType DatacenterAddressType { get => this._datacenterAddressType; set => this._datacenterAddressType = value; } /// Internal Acessors for DataCenterAzureLocation - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal.DataCenterAzureLocation { get => this._dataCenterAzureLocation; set { {_dataCenterAzureLocation = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal.DataCenterAzureLocation { get => this._dataCenterAzureLocation; set { {_dataCenterAzureLocation = value;} } } /// Internal Acessors for SupportedCarriersForReturnShipment - string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal.SupportedCarriersForReturnShipment { get => this._supportedCarriersForReturnShipment; set { {_supportedCarriersForReturnShipment = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal.SupportedCarriersForReturnShipment { get => this._supportedCarriersForReturnShipment; set { {_supportedCarriersForReturnShipment = value;} } } /// Backing field for property. private string[] _supportedCarriersForReturnShipment; diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressResponse.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressResponse.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressResponse.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressResponse.json.cs index 25de73ba0808..5eb20ed30e7f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DatacenterAddressResponse.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DatacenterAddressResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -72,15 +72,15 @@ internal DatacenterAddressResponse(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Ru } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)) { diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DcAccessSecurityCode.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DcAccessSecurityCode.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DcAccessSecurityCode.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DcAccessSecurityCode.PowerShell.cs index b4dd9ee803a1..828c6067ef9f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DcAccessSecurityCode.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DcAccessSecurityCode.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,7 +55,7 @@ public partial class DcAccessSecurityCode partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -70,17 +70,17 @@ internal DcAccessSecurityCode(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ReverseDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCodeInternal)this).ReverseDcAccessCode = (string) content.GetValueForProperty("ReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCodeInternal)this).ReverseDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCodeInternal)this).ReverseDcAccessCode = (string) content.GetValueForProperty("ReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCodeInternal)this).ReverseDcAccessCode, global::System.Convert.ToString); } if (content.Contains("ForwardDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCodeInternal)this).ForwardDcAccessCode = (string) content.GetValueForProperty("ForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCodeInternal)this).ForwardDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCodeInternal)this).ForwardDcAccessCode = (string) content.GetValueForProperty("ForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCodeInternal)this).ForwardDcAccessCode, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -95,37 +95,37 @@ internal DcAccessSecurityCode(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("ReverseDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCodeInternal)this).ReverseDcAccessCode = (string) content.GetValueForProperty("ReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCodeInternal)this).ReverseDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCodeInternal)this).ReverseDcAccessCode = (string) content.GetValueForProperty("ReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCodeInternal)this).ReverseDcAccessCode, global::System.Convert.ToString); } if (content.Contains("ForwardDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCodeInternal)this).ForwardDcAccessCode = (string) content.GetValueForProperty("ForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCodeInternal)this).ForwardDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCodeInternal)this).ForwardDcAccessCode = (string) content.GetValueForProperty("ForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCodeInternal)this).ForwardDcAccessCode, global::System.Convert.ToString); } AfterDeserializePSObject(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DcAccessSecurityCode(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DcAccessSecurityCode(content); } @@ -135,7 +135,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcA /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DcAccessSecurityCode.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DcAccessSecurityCode.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DcAccessSecurityCode.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DcAccessSecurityCode.TypeConverter.cs index 4e5363a74f52..a62a194543d2 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DcAccessSecurityCode.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DcAccessSecurityCode.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DcAccessSecurityCode.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DcAccessSecurityCode.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DcAccessSecurityCode.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DcAccessSecurityCode.cs index 1e2e2c335e67..55541604446f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DcAccessSecurityCode.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DcAccessSecurityCode.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Dc access security code public partial class DcAccessSecurityCode : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCodeInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCodeInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DcAccessSecurityCode.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DcAccessSecurityCode.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DcAccessSecurityCode.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DcAccessSecurityCode.json.cs index 6a71319bcf68..e1f00037e6b6 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DcAccessSecurityCode.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DcAccessSecurityCode.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DcAccessSecurityCode(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DcAccessSecurityCode(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Details.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Details.PowerShell.cs similarity index 87% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Details.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Details.PowerShell.cs index 5bfe8a2252b0..be9931530587 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Details.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Details.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -54,33 +54,33 @@ public partial class Details partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Details(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Details(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -95,17 +95,17 @@ internal Details(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetailsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetailsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetailsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetailsInternal)this).Message, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -120,11 +120,11 @@ internal Details(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetailsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetailsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetailsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetailsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetailsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetailsInternal)this).Message, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -134,7 +134,7 @@ internal Details(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Details.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Details.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Details.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Details.TypeConverter.cs index c980c2f98580..9901decfbc84 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Details.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Details.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Details.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Details.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Details.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Details.cs index 86ad4c8df19e..8ee2baf4b29c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Details.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Details.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; public partial class Details : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetailsInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Details.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Details.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Details.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Details.json.cs index 5ab38a95cc15..23182c219739 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Details.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Details.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -70,13 +70,13 @@ internal Details(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObj } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new Details(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.PowerShell.cs new file mode 100644 index 000000000000..102c827cd0b8 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.PowerShell.cs @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; + + /// Device capability details for a given sku for a given region. + [System.ComponentModel.TypeConverter(typeof(DeviceCapabilityDetailsTypeConverter))] + public partial class DeviceCapabilityDetails + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DeviceCapabilityDetails(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DeviceCapabilityDetails(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DeviceCapabilityDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("HardwareEncryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetailsInternal)this).HardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("HardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetailsInternal)this).HardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DeviceCapabilityDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("HardwareEncryption")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetailsInternal)this).HardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("HardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetailsInternal)this).HardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Device capability details for a given sku for a given region. + [System.ComponentModel.TypeConverter(typeof(DeviceCapabilityDetailsTypeConverter))] + public partial interface IDeviceCapabilityDetails + + { + + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.TypeConverter.cs new file mode 100644 index 000000000000..0a0b8b84d640 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DeviceCapabilityDetailsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DeviceCapabilityDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DeviceCapabilityDetails.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DeviceCapabilityDetails.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.cs new file mode 100644 index 000000000000..0e3dcb690766 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; + + /// Device capability details for a given sku for a given region. + public partial class DeviceCapabilityDetails : + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetailsInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? _hardwareEncryption; + + /// Hardware encryption support for a given sku for a given region. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? HardwareEncryption { get => this._hardwareEncryption; } + + /// Internal Acessors for HardwareEncryption + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetailsInternal.HardwareEncryption { get => this._hardwareEncryption; set { {_hardwareEncryption = value;} } } + + /// Creates an new instance. + public DeviceCapabilityDetails() + { + + } + } + /// Device capability details for a given sku for a given region. + public partial interface IDeviceCapabilityDetails : + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable + { + /// Hardware encryption support for a given sku for a given region. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Hardware encryption support for a given sku for a given region.", + SerializedName = @"hardwareEncryption", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? HardwareEncryption { get; } + + } + /// Device capability details for a given sku for a given region. + internal partial interface IDeviceCapabilityDetailsInternal + + { + /// Hardware encryption support for a given sku for a given region. + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? HardwareEncryption { get; set; } + + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.json.cs new file mode 100644 index 000000000000..4478c01baf92 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityDetails.json.cs @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; + + /// Device capability details for a given sku for a given region. + public partial class DeviceCapabilityDetails + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject instance to deserialize from. + internal DeviceCapabilityDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_hardwareEncryption = If( json?.PropertyT("hardwareEncryption"), out var __jsonHardwareEncryption) ? (string)__jsonHardwareEncryption : (string)HardwareEncryption;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DeviceCapabilityDetails(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._hardwareEncryption)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._hardwareEncryption.ToString()) : null, "hardwareEncryption" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.PowerShell.cs new file mode 100644 index 000000000000..7c3c5278ff9b --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.PowerShell.cs @@ -0,0 +1,152 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; + + /// Request body to get the device capabilities for given sku. + [System.ComponentModel.TypeConverter(typeof(DeviceCapabilityRequestTypeConverter))] + public partial class DeviceCapabilityRequest + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DeviceCapabilityRequest(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DeviceCapabilityRequest(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DeviceCapabilityRequest(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName?) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DeviceCapabilityRequest(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("SkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName?) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Request body to get the device capabilities for given sku. + [System.ComponentModel.TypeConverter(typeof(DeviceCapabilityRequestTypeConverter))] + public partial interface IDeviceCapabilityRequest + + { + + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.TypeConverter.cs new file mode 100644 index 000000000000..7e26584b0e9c --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DeviceCapabilityRequestTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DeviceCapabilityRequest.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DeviceCapabilityRequest.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DeviceCapabilityRequest.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.cs new file mode 100644 index 000000000000..551102b41611 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.cs @@ -0,0 +1,77 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; + + /// Request body to get the device capabilities for given sku. + public partial class DeviceCapabilityRequest : + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequestInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? _model; + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get => this._model; set => this._model = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? _skuName; + + /// Type of the device. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? SkuName { get => this._skuName; set => this._skuName = value; } + + /// Creates an new instance. + public DeviceCapabilityRequest() + { + + } + } + /// Request body to get the device capabilities for given sku. + public partial interface IDeviceCapabilityRequest : + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable + { + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } + /// Type of the device. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of the device.", + SerializedName = @"skuName", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? SkuName { get; set; } + + } + /// Request body to get the device capabilities for given sku. + internal partial interface IDeviceCapabilityRequestInternal + + { + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } + /// Type of the device. + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? SkuName { get; set; } + + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.json.cs new file mode 100644 index 000000000000..6699f1395b93 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityRequest.json.cs @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; + + /// Request body to get the device capabilities for given sku. + public partial class DeviceCapabilityRequest + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject instance to deserialize from. + internal DeviceCapabilityRequest(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_skuName = If( json?.PropertyT("skuName"), out var __jsonSkuName) ? (string)__jsonSkuName : (string)SkuName;} + {_model = If( json?.PropertyT("model"), out var __jsonModel) ? (string)__jsonModel : (string)Model;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DeviceCapabilityRequest(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + AddIf( null != (((object)this._skuName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._skuName.ToString()) : null, "skuName" ,container.Add ); + AddIf( null != (((object)this._model)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._model.ToString()) : null, "model" ,container.Add ); + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.PowerShell.cs new file mode 100644 index 000000000000..cd89eee1e555 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.PowerShell.cs @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; + + /// Device capabilities for given sku in a region + [System.ComponentModel.TypeConverter(typeof(DeviceCapabilityResponseTypeConverter))] + public partial class DeviceCapabilityResponse + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new DeviceCapabilityResponse(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new DeviceCapabilityResponse(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal DeviceCapabilityResponse(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DeviceCapabilityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponseInternal)this).DeviceCapabilityDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails[]) content.GetValueForProperty("DeviceCapabilityDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponseInternal)this).DeviceCapabilityDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityDetailsTypeConverter.ConvertFrom)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal DeviceCapabilityResponse(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("DeviceCapabilityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponseInternal)this).DeviceCapabilityDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails[]) content.GetValueForProperty("DeviceCapabilityDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponseInternal)this).DeviceCapabilityDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityDetailsTypeConverter.ConvertFrom)); + } + AfterDeserializePSObject(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Device capabilities for given sku in a region + [System.ComponentModel.TypeConverter(typeof(DeviceCapabilityResponseTypeConverter))] + public partial interface IDeviceCapabilityResponse + + { + + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.TypeConverter.cs new file mode 100644 index 000000000000..e79f4167b32b --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class DeviceCapabilityResponseTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return DeviceCapabilityResponse.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return DeviceCapabilityResponse.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return DeviceCapabilityResponse.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.cs new file mode 100644 index 000000000000..694bb9b28aab --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.cs @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; + + /// Device capabilities for given sku in a region + public partial class DeviceCapabilityResponse : + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponseInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails[] _deviceCapabilityDetail; + + /// List of device capabilities available for a given region and a given sku + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails[] DeviceCapabilityDetail { get => this._deviceCapabilityDetail; } + + /// Internal Acessors for DeviceCapabilityDetail + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponseInternal.DeviceCapabilityDetail { get => this._deviceCapabilityDetail; set { {_deviceCapabilityDetail = value;} } } + + /// Creates an new instance. + public DeviceCapabilityResponse() + { + + } + } + /// Device capabilities for given sku in a region + public partial interface IDeviceCapabilityResponse : + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable + { + /// List of device capabilities available for a given region and a given sku + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"List of device capabilities available for a given region and a given sku", + SerializedName = @"deviceCapabilityDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails[] DeviceCapabilityDetail { get; } + + } + /// Device capabilities for given sku in a region + internal partial interface IDeviceCapabilityResponseInternal + + { + /// List of device capabilities available for a given region and a given sku + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails[] DeviceCapabilityDetail { get; set; } + + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.json.cs new file mode 100644 index 000000000000..93bb380e121c --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceCapabilityResponse.json.cs @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; + + /// Device capabilities for given sku in a region + public partial class DeviceCapabilityResponse + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject instance to deserialize from. + internal DeviceCapabilityResponse(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_deviceCapabilityDetail = If( json?.PropertyT("deviceCapabilityDetails"), out var __jsonDeviceCapabilityDetails) ? If( __jsonDeviceCapabilityDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityDetails.FromJson(__u) )) ))() : null : DeviceCapabilityDetail;} + AfterFromJson(json); + } + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DeviceCapabilityResponse(json) : null; + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._deviceCapabilityDetail) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.XNodeArray(); + foreach( var __x in this._deviceCapabilityDetail ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("deviceCapabilityDetails",__w); + } + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DeviceErasureDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceErasureDetails.PowerShell.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DeviceErasureDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceErasureDetails.PowerShell.cs index 1253373014f0..13d4f492c252 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DeviceErasureDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceErasureDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -57,33 +57,33 @@ public partial class DeviceErasureDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DeviceErasureDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DeviceErasureDetails(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,17 +98,17 @@ internal DeviceErasureDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DeviceErasureStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetailsInternal)this).DeviceErasureStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus?) content.GetValueForProperty("DeviceErasureStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetailsInternal)this).DeviceErasureStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetailsInternal)this).DeviceErasureStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus?) content.GetValueForProperty("DeviceErasureStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetailsInternal)this).DeviceErasureStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus.CreateFrom); } if (content.Contains("ErasureOrDestructionCertificateSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetailsInternal)this).ErasureOrDestructionCertificateSasKey = (string) content.GetValueForProperty("ErasureOrDestructionCertificateSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetailsInternal)this).ErasureOrDestructionCertificateSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetailsInternal)this).ErasureOrDestructionCertificateSasKey = (string) content.GetValueForProperty("ErasureOrDestructionCertificateSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetailsInternal)this).ErasureOrDestructionCertificateSasKey, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -123,11 +123,11 @@ internal DeviceErasureDetails(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("DeviceErasureStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetailsInternal)this).DeviceErasureStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus?) content.GetValueForProperty("DeviceErasureStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetailsInternal)this).DeviceErasureStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetailsInternal)this).DeviceErasureStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus?) content.GetValueForProperty("DeviceErasureStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetailsInternal)this).DeviceErasureStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus.CreateFrom); } if (content.Contains("ErasureOrDestructionCertificateSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetailsInternal)this).ErasureOrDestructionCertificateSasKey = (string) content.GetValueForProperty("ErasureOrDestructionCertificateSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetailsInternal)this).ErasureOrDestructionCertificateSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetailsInternal)this).ErasureOrDestructionCertificateSasKey = (string) content.GetValueForProperty("ErasureOrDestructionCertificateSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetailsInternal)this).ErasureOrDestructionCertificateSasKey, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -137,7 +137,7 @@ internal DeviceErasureDetails(global::System.Management.Automation.PSObject cont /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DeviceErasureDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceErasureDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DeviceErasureDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceErasureDetails.TypeConverter.cs index f7490b2f329b..beec9b141671 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DeviceErasureDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceErasureDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DeviceErasureDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceErasureDetails.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DeviceErasureDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceErasureDetails.cs index 92bac29724e0..476633cc3193 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DeviceErasureDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceErasureDetails.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 /// Device erasure details with erasure completion status and erasureordestructionlog sas key /// public partial class DeviceErasureDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetailsInternal { /// Backing field for property. @@ -32,10 +32,10 @@ public partial class DeviceErasureDetails : public string ErasureOrDestructionCertificateSasKey { get => this._erasureOrDestructionCertificateSasKey; } /// Internal Acessors for DeviceErasureStatus - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetailsInternal.DeviceErasureStatus { get => this._deviceErasureStatus; set { {_deviceErasureStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetailsInternal.DeviceErasureStatus { get => this._deviceErasureStatus; set { {_deviceErasureStatus = value;} } } /// Internal Acessors for ErasureOrDestructionCertificateSasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetailsInternal.ErasureOrDestructionCertificateSasKey { get => this._erasureOrDestructionCertificateSasKey; set { {_erasureOrDestructionCertificateSasKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetailsInternal.ErasureOrDestructionCertificateSasKey { get => this._erasureOrDestructionCertificateSasKey; set { {_erasureOrDestructionCertificateSasKey = value;} } } /// Creates an new instance. public DeviceErasureDetails() diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DeviceErasureDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceErasureDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DeviceErasureDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceErasureDetails.json.cs index 3369cb49bc8c..08e6d4b31b55 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DeviceErasureDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DeviceErasureDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -73,13 +73,13 @@ internal DeviceErasureDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DeviceErasureDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskScheduleAvailabilityRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskScheduleAvailabilityRequest.PowerShell.cs similarity index 79% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskScheduleAvailabilityRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskScheduleAvailabilityRequest.PowerShell.cs index f762e93f105e..10347cb24f7d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskScheduleAvailabilityRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskScheduleAvailabilityRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,35 +55,35 @@ public partial class DiskScheduleAvailabilityRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskScheduleAvailabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskScheduleAvailabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DiskScheduleAvailabilityRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskScheduleAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskScheduleAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DiskScheduleAvailabilityRequest(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -98,25 +98,29 @@ internal DiskScheduleAvailabilityRequest(global::System.Collections.IDictionary // actually deserialize if (content.Contains("ExpectedDataSizeInTeraByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskScheduleAvailabilityRequestInternal)this).ExpectedDataSizeInTeraByte = (int) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskScheduleAvailabilityRequestInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskScheduleAvailabilityRequestInternal)this).ExpectedDataSizeInTeraByte = (int) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskScheduleAvailabilityRequestInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("StorageLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,19 +135,23 @@ internal DiskScheduleAvailabilityRequest(global::System.Management.Automation.PS // actually deserialize if (content.Contains("ExpectedDataSizeInTeraByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskScheduleAvailabilityRequestInternal)this).ExpectedDataSizeInTeraByte = (int) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskScheduleAvailabilityRequestInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskScheduleAvailabilityRequestInternal)this).ExpectedDataSizeInTeraByte = (int) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskScheduleAvailabilityRequestInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("StorageLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializePSObject(content); } @@ -153,7 +161,7 @@ internal DiskScheduleAvailabilityRequest(global::System.Management.Automation.PS /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskScheduleAvailabilityRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskScheduleAvailabilityRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskScheduleAvailabilityRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskScheduleAvailabilityRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskScheduleAvailabilityRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskScheduleAvailabilityRequest.TypeConverter.cs index 7826b0e2625f..5e543651a13e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskScheduleAvailabilityRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskScheduleAvailabilityRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskScheduleAvailabilityRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskScheduleAvailabilityRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskScheduleAvailabilityRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskScheduleAvailabilityRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskScheduleAvailabilityRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskScheduleAvailabilityRequest.cs similarity index 77% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskScheduleAvailabilityRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskScheduleAvailabilityRequest.cs index 846a1c1df40e..230e3c420d67 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskScheduleAvailabilityRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskScheduleAvailabilityRequest.cs @@ -3,25 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Request body to get the availability for scheduling disk orders. public partial class DiskScheduleAvailabilityRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskScheduleAvailabilityRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskScheduleAvailabilityRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskScheduleAvailabilityRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskScheduleAvailabilityRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest __scheduleAvailabilityRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest __scheduleAvailabilityRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityRequest(); /// Country in which storage location should be supported. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Country { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Country; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Country = value ?? null; } + public string Country { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Country; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Country = value ?? null; } /// Backing field for property. private int _expectedDataSizeInTeraByte; @@ -32,15 +32,22 @@ public partial class DiskScheduleAvailabilityRequest : [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] public int ExpectedDataSizeInTeraByte { get => this._expectedDataSizeInTeraByte; set => this._expectedDataSizeInTeraByte = value; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Model; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Model = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName)""); } + /// Sku Name for which the order is to be scheduled. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).SkuName = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).SkuName = value ; } /// /// Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string StorageLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).StorageLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).StorageLocation = value ; } + public string StorageLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).StorageLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).StorageLocation = value ; } /// Creates an new instance. public DiskScheduleAvailabilityRequest() @@ -63,7 +70,7 @@ public DiskScheduleAvailabilityRequest() /// Request body to get the availability for scheduling disk orders. public partial interface IDiskScheduleAvailabilityRequest : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest { /// /// The expected size of the data, which needs to be transferred in this job, in terabytes. @@ -79,7 +86,7 @@ public partial interface IDiskScheduleAvailabilityRequest : } /// Request body to get the availability for scheduling disk orders. internal partial interface IDiskScheduleAvailabilityRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal { /// /// The expected size of the data, which needs to be transferred in this job, in terabytes. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskScheduleAvailabilityRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskScheduleAvailabilityRequest.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskScheduleAvailabilityRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskScheduleAvailabilityRequest.json.cs index f54d900fb596..e63971fbe96f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskScheduleAvailabilityRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskScheduleAvailabilityRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -65,19 +65,19 @@ internal DiskScheduleAvailabilityRequest(Microsoft.Azure.PowerShell.Cmdlets.Data { return; } - __scheduleAvailabilityRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityRequest(json); + __scheduleAvailabilityRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityRequest(json); {_expectedDataSizeInTeraByte = If( json?.PropertyT("expectedDataSizeInTeraBytes"), out var __jsonExpectedDataSizeInTeraBytes) ? (int)__jsonExpectedDataSizeInTeraBytes : ExpectedDataSizeInTeraByte;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskScheduleAvailabilityRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskScheduleAvailabilityRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskScheduleAvailabilityRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskScheduleAvailabilityRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskScheduleAvailabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskScheduleAvailabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DiskScheduleAvailabilityRequest(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskSecret.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskSecret.PowerShell.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskSecret.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskSecret.PowerShell.cs index 57fc5439ea16..7cf4321a5f15 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskSecret.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskSecret.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class DiskSecret partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new DiskSecret(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new DiskSecret(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,17 +96,17 @@ internal DiskSecret(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DiskSerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecretInternal)this).DiskSerialNumber = (string) content.GetValueForProperty("DiskSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecretInternal)this).DiskSerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecretInternal)this).DiskSerialNumber = (string) content.GetValueForProperty("DiskSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecretInternal)this).DiskSerialNumber, global::System.Convert.ToString); } if (content.Contains("BitLockerKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecretInternal)this).BitLockerKey = (string) content.GetValueForProperty("BitLockerKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecretInternal)this).BitLockerKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecretInternal)this).BitLockerKey = (string) content.GetValueForProperty("BitLockerKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecretInternal)this).BitLockerKey, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -121,11 +121,11 @@ internal DiskSecret(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DiskSerialNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecretInternal)this).DiskSerialNumber = (string) content.GetValueForProperty("DiskSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecretInternal)this).DiskSerialNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecretInternal)this).DiskSerialNumber = (string) content.GetValueForProperty("DiskSerialNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecretInternal)this).DiskSerialNumber, global::System.Convert.ToString); } if (content.Contains("BitLockerKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecretInternal)this).BitLockerKey = (string) content.GetValueForProperty("BitLockerKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecretInternal)this).BitLockerKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecretInternal)this).BitLockerKey = (string) content.GetValueForProperty("BitLockerKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecretInternal)this).BitLockerKey, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -135,7 +135,7 @@ internal DiskSecret(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskSecret.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskSecret.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskSecret.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskSecret.TypeConverter.cs index 7b59d01f0024..334ad864b056 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskSecret.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskSecret.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskSecret.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskSecret.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskSecret.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskSecret.cs index 43d7d26bb09b..1db43673174a 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskSecret.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskSecret.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Contains all the secrets of a Disk. public partial class DiskSecret : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecretInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecretInternal { /// Backing field for property. @@ -28,10 +28,10 @@ public partial class DiskSecret : public string DiskSerialNumber { get => this._diskSerialNumber; } /// Internal Acessors for BitLockerKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecretInternal.BitLockerKey { get => this._bitLockerKey; set { {_bitLockerKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecretInternal.BitLockerKey { get => this._bitLockerKey; set { {_bitLockerKey = value;} } } /// Internal Acessors for DiskSerialNumber - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecretInternal.DiskSerialNumber { get => this._diskSerialNumber; set { {_diskSerialNumber = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecretInternal.DiskSerialNumber { get => this._diskSerialNumber; set { {_diskSerialNumber = value;} } } /// Creates an new instance. public DiskSecret() diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskSecret.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskSecret.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskSecret.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskSecret.json.cs index ab4d58a906b5..f91fd612c0e0 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/DiskSecret.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/DiskSecret.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -71,13 +71,13 @@ internal DiskSecret(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.Json } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDiskSecret FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDiskSecret FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new DiskSecret(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/EncryptionPreferences.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/EncryptionPreferences.PowerShell.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/EncryptionPreferences.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/EncryptionPreferences.PowerShell.cs index 0168f7c04059..68651d40556f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/EncryptionPreferences.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/EncryptionPreferences.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class EncryptionPreferences partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new EncryptionPreferences(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new EncryptionPreferences(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,17 +96,17 @@ internal EncryptionPreferences(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DoubleEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferencesInternal)this).DoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("DoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferencesInternal)this).DoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferencesInternal)this).DoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("DoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferencesInternal)this).DoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); } if (content.Contains("HardwareEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferencesInternal)this).HardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("HardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferencesInternal)this).HardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferencesInternal)this).HardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("HardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferencesInternal)this).HardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -121,11 +121,11 @@ internal EncryptionPreferences(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("DoubleEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferencesInternal)this).DoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("DoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferencesInternal)this).DoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferencesInternal)this).DoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("DoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferencesInternal)this).DoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); } if (content.Contains("HardwareEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferencesInternal)this).HardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("HardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferencesInternal)this).HardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferencesInternal)this).HardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("HardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferencesInternal)this).HardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); } AfterDeserializePSObject(content); } @@ -135,7 +135,7 @@ internal EncryptionPreferences(global::System.Management.Automation.PSObject con /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/EncryptionPreferences.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/EncryptionPreferences.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/EncryptionPreferences.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/EncryptionPreferences.TypeConverter.cs index 2df18f068923..53e6f38e08f0 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/EncryptionPreferences.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/EncryptionPreferences.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/EncryptionPreferences.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/EncryptionPreferences.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/EncryptionPreferences.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/EncryptionPreferences.cs index 2ba78c9c1274..065937b6f401 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/EncryptionPreferences.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/EncryptionPreferences.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Preferences related to the Encryption. public partial class EncryptionPreferences : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferencesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferencesInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/EncryptionPreferences.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/EncryptionPreferences.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/EncryptionPreferences.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/EncryptionPreferences.json.cs index a3e853c300be..9a8df139245f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/EncryptionPreferences.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/EncryptionPreferences.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -71,13 +71,13 @@ internal EncryptionPreferences(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtim } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new EncryptionPreferences(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ErrorDetail.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ErrorDetail.PowerShell.cs similarity index 81% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ErrorDetail.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ErrorDetail.PowerShell.cs index 43d5982c176d..bb9728f4867f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ErrorDetail.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ErrorDetail.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -54,33 +54,33 @@ public partial class ErrorDetail partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ErrorDetail(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ErrorDetail(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -95,25 +95,25 @@ internal ErrorDetail(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DetailsTypeConverter.ConvertFrom)); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,19 +128,19 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DetailsTypeConverter.ConvertFrom)); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -150,7 +150,7 @@ internal ErrorDetail(global::System.Management.Automation.PSObject content) /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ErrorDetail.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ErrorDetail.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ErrorDetail.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ErrorDetail.TypeConverter.cs index e60b93f60e51..e4e3dac5b0fe 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ErrorDetail.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ErrorDetail.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ErrorDetail.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ErrorDetail.cs similarity index 92% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ErrorDetail.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ErrorDetail.cs index 577e655532e3..5c2d1b3176a0 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ErrorDetail.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ErrorDetail.cs @@ -3,13 +3,13 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; public partial class ErrorDetail : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetailInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetailInternal { /// Backing field for property. @@ -19,10 +19,10 @@ public partial class ErrorDetail : public string Code { get => this._code; set => this._code = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails[] _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails[] _detail; [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails[] Detail { get => this._detail; set => this._detail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails[] Detail { get => this._detail; set => this._detail = value; } /// Backing field for property. private string _message; @@ -58,8 +58,8 @@ public partial interface IErrorDetail : ReadOnly = false, Description = @"", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails[] Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails[] Detail { get; set; } [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, @@ -83,7 +83,7 @@ internal partial interface IErrorDetailInternal { string Code { get; set; } - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails[] Detail { get; set; } string Message { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ErrorDetail.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ErrorDetail.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ErrorDetail.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ErrorDetail.json.cs index 5132aa3bd9be..029b32caddb0 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ErrorDetail.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ErrorDetail.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -66,19 +66,19 @@ internal ErrorDetail(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.Jso } {_code = If( json?.PropertyT("code"), out var __jsonCode) ? (string)__jsonCode : (string)Code;} {_message = If( json?.PropertyT("message"), out var __jsonMessage) ? (string)__jsonMessage : (string)Message;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Details.FromJson(__u) )) ))() : null : Detail;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? If( __jsonDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Details.FromJson(__u) )) ))() : null : Detail;} {_target = If( json?.PropertyT("target"), out var __jsonTarget) ? (string)__jsonTarget : (string)Target;} AfterFromJson(json); } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IErrorDetail FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ErrorDetail(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ExportDiskDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ExportDiskDetails.PowerShell.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ExportDiskDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ExportDiskDetails.PowerShell.cs index 0f9af3769fc6..4fa36244d53b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ExportDiskDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ExportDiskDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class ExportDiskDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ExportDiskDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ExportDiskDetails(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,21 +96,21 @@ internal ExportDiskDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ManifestFile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal)this).ManifestFile = (string) content.GetValueForProperty("ManifestFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal)this).ManifestFile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal)this).ManifestFile = (string) content.GetValueForProperty("ManifestFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal)this).ManifestFile, global::System.Convert.ToString); } if (content.Contains("ManifestHash")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal)this).ManifestHash = (string) content.GetValueForProperty("ManifestHash",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal)this).ManifestHash, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal)this).ManifestHash = (string) content.GetValueForProperty("ManifestHash",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal)this).ManifestHash, global::System.Convert.ToString); } if (content.Contains("BackupManifestCloudPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal)this).BackupManifestCloudPath = (string) content.GetValueForProperty("BackupManifestCloudPath",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal)this).BackupManifestCloudPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal)this).BackupManifestCloudPath = (string) content.GetValueForProperty("BackupManifestCloudPath",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal)this).BackupManifestCloudPath, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -125,15 +125,15 @@ internal ExportDiskDetails(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("ManifestFile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal)this).ManifestFile = (string) content.GetValueForProperty("ManifestFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal)this).ManifestFile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal)this).ManifestFile = (string) content.GetValueForProperty("ManifestFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal)this).ManifestFile, global::System.Convert.ToString); } if (content.Contains("ManifestHash")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal)this).ManifestHash = (string) content.GetValueForProperty("ManifestHash",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal)this).ManifestHash, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal)this).ManifestHash = (string) content.GetValueForProperty("ManifestHash",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal)this).ManifestHash, global::System.Convert.ToString); } if (content.Contains("BackupManifestCloudPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal)this).BackupManifestCloudPath = (string) content.GetValueForProperty("BackupManifestCloudPath",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal)this).BackupManifestCloudPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal)this).BackupManifestCloudPath = (string) content.GetValueForProperty("BackupManifestCloudPath",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal)this).BackupManifestCloudPath, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -143,7 +143,7 @@ internal ExportDiskDetails(global::System.Management.Automation.PSObject content /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ExportDiskDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ExportDiskDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ExportDiskDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ExportDiskDetails.TypeConverter.cs index df8e453a06f0..2e48d9a4d1bd 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ExportDiskDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ExportDiskDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ExportDiskDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ExportDiskDetails.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ExportDiskDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ExportDiskDetails.cs index 930bfa825346..a76400656299 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ExportDiskDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ExportDiskDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Export disk details public partial class ExportDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal { /// Backing field for property. @@ -35,13 +35,13 @@ public partial class ExportDiskDetails : public string ManifestHash { get => this._manifestHash; } /// Internal Acessors for BackupManifestCloudPath - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal.BackupManifestCloudPath { get => this._backupManifestCloudPath; set { {_backupManifestCloudPath = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal.BackupManifestCloudPath { get => this._backupManifestCloudPath; set { {_backupManifestCloudPath = value;} } } /// Internal Acessors for ManifestFile - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal.ManifestFile { get => this._manifestFile; set { {_manifestFile = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal.ManifestFile { get => this._manifestFile; set { {_manifestFile = value;} } } /// Internal Acessors for ManifestHash - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetailsInternal.ManifestHash { get => this._manifestHash; set { {_manifestHash = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetailsInternal.ManifestHash { get => this._manifestHash; set { {_manifestHash = value;} } } /// Creates an new instance. public ExportDiskDetails() diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ExportDiskDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ExportDiskDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ExportDiskDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ExportDiskDetails.json.cs index 768cfb31ed2c..90bf9ebc7698 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ExportDiskDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ExportDiskDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -72,13 +72,13 @@ internal ExportDiskDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IExportDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IExportDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ExportDiskDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/FilterFileDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/FilterFileDetails.PowerShell.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/FilterFileDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/FilterFileDetails.PowerShell.cs index cb488360889f..42afa1df1c2f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/FilterFileDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/FilterFileDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,33 +55,33 @@ public partial class FilterFileDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new FilterFileDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new FilterFileDetails(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -96,17 +96,17 @@ internal FilterFileDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("FilterFileType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetailsInternal)this).FilterFileType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.FilterFileType) content.GetValueForProperty("FilterFileType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetailsInternal)this).FilterFileType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.FilterFileType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetailsInternal)this).FilterFileType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.FilterFileType) content.GetValueForProperty("FilterFileType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetailsInternal)this).FilterFileType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.FilterFileType.CreateFrom); } if (content.Contains("FilterFilePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetailsInternal)this).FilterFilePath = (string) content.GetValueForProperty("FilterFilePath",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetailsInternal)this).FilterFilePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetailsInternal)this).FilterFilePath = (string) content.GetValueForProperty("FilterFilePath",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetailsInternal)this).FilterFilePath, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -121,11 +121,11 @@ internal FilterFileDetails(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("FilterFileType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetailsInternal)this).FilterFileType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.FilterFileType) content.GetValueForProperty("FilterFileType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetailsInternal)this).FilterFileType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.FilterFileType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetailsInternal)this).FilterFileType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.FilterFileType) content.GetValueForProperty("FilterFileType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetailsInternal)this).FilterFileType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.FilterFileType.CreateFrom); } if (content.Contains("FilterFilePath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetailsInternal)this).FilterFilePath = (string) content.GetValueForProperty("FilterFilePath",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetailsInternal)this).FilterFilePath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetailsInternal)this).FilterFilePath = (string) content.GetValueForProperty("FilterFilePath",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetailsInternal)this).FilterFilePath, global::System.Convert.ToString); } AfterDeserializePSObject(content); } @@ -135,7 +135,7 @@ internal FilterFileDetails(global::System.Management.Automation.PSObject content /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/FilterFileDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/FilterFileDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/FilterFileDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/FilterFileDetails.TypeConverter.cs index 6f13e6c7d5b5..f3e7717750b6 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/FilterFileDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/FilterFileDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/FilterFileDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/FilterFileDetails.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/FilterFileDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/FilterFileDetails.cs index 96e875a6a115..dc7dd0f7ee12 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/FilterFileDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/FilterFileDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Details of the filter files to be used for data transfer. public partial class FilterFileDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetailsInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/FilterFileDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/FilterFileDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/FilterFileDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/FilterFileDetails.json.cs index 0eee9c77abc6..f2a4ba316e7b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/FilterFileDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/FilterFileDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -71,13 +71,13 @@ internal FilterFileDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Js } /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new FilterFileDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyLogDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyLogDetails.PowerShell.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyLogDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyLogDetails.PowerShell.cs index e257d4822655..e2bc090159ab 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyLogDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyLogDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class GranularCopyLogDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new GranularCopyLogDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new GranularCopyLogDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGra /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,13 +103,13 @@ internal GranularCopyLogDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CopyLogDetailsType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("CopyLogDetailsType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("CopyLogDetailsType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -124,7 +124,7 @@ internal GranularCopyLogDetails(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("CopyLogDetailsType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("CopyLogDetailsType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("CopyLogDetailsType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetailsInternal)this).CopyLogDetailsType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyLogDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyLogDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyLogDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyLogDetails.TypeConverter.cs index c98b3db8c0b8..11bc84db15bd 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyLogDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyLogDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyLogDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyLogDetails.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyLogDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyLogDetails.cs index d2c142127965..cf6fbb3a26ba 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyLogDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyLogDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Granular Details for log generated during copy. public partial class GranularCopyLogDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetailsInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyLogDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyLogDetails.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyLogDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyLogDetails.json.cs index 18b4da518497..c750c12b4c13 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyLogDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyLogDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class GranularCopyLogDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetails interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetails interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyLogDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyLogDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)) { diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyProgress.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyProgress.PowerShell.cs similarity index 75% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyProgress.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyProgress.PowerShell.cs index b9b77dfd108d..d18cf3e399de 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyProgress.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyProgress.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class GranularCopyProgress partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgress DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgress DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new GranularCopyProgress(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new GranularCopyProgress(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGra /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,97 +103,97 @@ internal GranularCopyProgress(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("StorageAccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("AccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AccountId, global::System.Convert.ToString); } if (content.Contains("BytesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalBytesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalFilesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFileBytesUploaded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RenamedContainerCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DirectoriesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidDirectoriesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("IsEnumerationInProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -208,91 +208,91 @@ internal GranularCopyProgress(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("StorageAccountName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).StorageAccountName = (string) content.GetValueForProperty("StorageAccountName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).StorageAccountName, global::System.Convert.ToString); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType?) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType?) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("AccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AccountId = (string) content.GetValueForProperty("AccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AccountId, global::System.Convert.ToString); } if (content.Contains("BytesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).BytesProcessed = (long?) content.GetValueForProperty("BytesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).BytesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalBytesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalBytesToProcess = (long?) content.GetValueForProperty("TotalBytesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalBytesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesProcessed = (long?) content.GetValueForProperty("FilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("TotalFilesToProcess")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalFilesToProcess = (long?) content.GetValueForProperty("TotalFilesToProcess",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).TotalFilesToProcess, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFilesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFilesProcessed = (long?) content.GetValueForProperty("InvalidFilesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFilesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidFileBytesUploaded")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded = (long?) content.GetValueForProperty("InvalidFileBytesUploaded",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidFileBytesUploaded, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("RenamedContainerCount")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).RenamedContainerCount = (long?) content.GetValueForProperty("RenamedContainerCount",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).RenamedContainerCount, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("FilesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesErroredOut = (long?) content.GetValueForProperty("FilesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).FilesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("DirectoriesErroredOut")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DirectoriesErroredOut = (long?) content.GetValueForProperty("DirectoriesErroredOut",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).DirectoriesErroredOut, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("InvalidDirectoriesProcessed")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed = (long?) content.GetValueForProperty("InvalidDirectoriesProcessed",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).InvalidDirectoriesProcessed, (__y)=> (long) global::System.Convert.ChangeType(__y, typeof(long))); } if (content.Contains("IsEnumerationInProgress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).IsEnumerationInProgress = (bool?) content.GetValueForProperty("IsEnumerationInProgress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).IsEnumerationInProgress, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyProgress.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyProgress.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyProgress.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyProgress.TypeConverter.cs index d7698a5accff..28334e3b03f6 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyProgress.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyProgress.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgress ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgress ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgress).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgress).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyProgress.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyProgress.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyProgress.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyProgress.cs index 4ac26de9c18a..7948ccee051c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyProgress.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyProgress.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Granular Copy progress. public partial class GranularCopyProgress : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgress, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgress, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal { /// Backing field for property. @@ -29,7 +29,7 @@ public partial class GranularCopyProgress : /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo; } /// Backing field for property. private long? _bytesProcessed; @@ -40,7 +40,7 @@ public partial class GranularCopyProgress : /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Code = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? _dataAccountType; @@ -51,7 +51,7 @@ public partial class GranularCopyProgress : /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail; } /// Backing field for property. private long? _directoriesErroredOut; @@ -61,11 +61,11 @@ public partial class GranularCopyProgress : public long? DirectoriesErroredOut { get => this._directoriesErroredOut; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError _error; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError _error; /// Error, if any, in the stage [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError()); } /// Backing field for property. private long? _filesErroredOut; @@ -118,64 +118,64 @@ public partial class GranularCopyProgress : /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Message = value ?? null; } /// Internal Acessors for AccountId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.AccountId { get => this._accountId; set { {_accountId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.AccountId { get => this._accountId; set { {_accountId = value;} } } /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.Action { get => this._action; set { {_action = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.Action { get => this._action; set { {_action = value;} } } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo = value; } /// Internal Acessors for BytesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.BytesProcessed { get => this._bytesProcessed; set { {_bytesProcessed = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.BytesProcessed { get => this._bytesProcessed; set { {_bytesProcessed = value;} } } /// Internal Acessors for DataAccountType - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.DataAccountType { get => this._dataAccountType; set { {_dataAccountType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.DataAccountType { get => this._dataAccountType; set { {_dataAccountType = value;} } } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail = value; } /// Internal Acessors for DirectoriesErroredOut - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.DirectoriesErroredOut { get => this._directoriesErroredOut; set { {_directoriesErroredOut = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.DirectoriesErroredOut { get => this._directoriesErroredOut; set { {_directoriesErroredOut = value;} } } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError()); set { {_error = value;} } } /// Internal Acessors for FilesErroredOut - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.FilesErroredOut { get => this._filesErroredOut; set { {_filesErroredOut = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.FilesErroredOut { get => this._filesErroredOut; set { {_filesErroredOut = value;} } } /// Internal Acessors for FilesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.FilesProcessed { get => this._filesProcessed; set { {_filesProcessed = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.FilesProcessed { get => this._filesProcessed; set { {_filesProcessed = value;} } } /// Internal Acessors for InvalidDirectoriesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.InvalidDirectoriesProcessed { get => this._invalidDirectoriesProcessed; set { {_invalidDirectoriesProcessed = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.InvalidDirectoriesProcessed { get => this._invalidDirectoriesProcessed; set { {_invalidDirectoriesProcessed = value;} } } /// Internal Acessors for InvalidFileBytesUploaded - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.InvalidFileBytesUploaded { get => this._invalidFileBytesUploaded; set { {_invalidFileBytesUploaded = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.InvalidFileBytesUploaded { get => this._invalidFileBytesUploaded; set { {_invalidFileBytesUploaded = value;} } } /// Internal Acessors for InvalidFilesProcessed - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.InvalidFilesProcessed { get => this._invalidFilesProcessed; set { {_invalidFilesProcessed = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.InvalidFilesProcessed { get => this._invalidFilesProcessed; set { {_invalidFilesProcessed = value;} } } /// Internal Acessors for IsEnumerationInProgress - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.IsEnumerationInProgress { get => this._isEnumerationInProgress; set { {_isEnumerationInProgress = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.IsEnumerationInProgress { get => this._isEnumerationInProgress; set { {_isEnumerationInProgress = value;} } } /// Internal Acessors for RenamedContainerCount - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.RenamedContainerCount { get => this._renamedContainerCount; set { {_renamedContainerCount = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.RenamedContainerCount { get => this._renamedContainerCount; set { {_renamedContainerCount = value;} } } /// Internal Acessors for StorageAccountName - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.StorageAccountName { get => this._storageAccountName; set { {_storageAccountName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.StorageAccountName { get => this._storageAccountName; set { {_storageAccountName = value;} } } /// Internal Acessors for TotalBytesToProcess - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.TotalBytesToProcess { get => this._totalBytesToProcess; set { {_totalBytesToProcess = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.TotalBytesToProcess { get => this._totalBytesToProcess; set { {_totalBytesToProcess = value;} } } /// Internal Acessors for TotalFilesToProcess - long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.TotalFilesToProcess { get => this._totalFilesToProcess; set { {_totalFilesToProcess = value;} } } + long? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.TotalFilesToProcess { get => this._totalFilesToProcess; set { {_totalFilesToProcess = value;} } } /// Internal Acessors for TransferType - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgressInternal.TransferType { get => this._transferType; set { {_transferType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgressInternal.TransferType { get => this._transferType; set { {_transferType = value;} } } /// Backing field for property. private long? _renamedContainerCount; @@ -197,7 +197,7 @@ public partial class GranularCopyProgress : /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Target = value ?? null; } /// Backing field for property. private long? _totalBytesToProcess; @@ -252,8 +252,8 @@ public partial interface IGranularCopyProgress : ReadOnly = true, Description = @"Gets or sets additional error info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; } /// To indicate bytes transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -284,8 +284,8 @@ public partial interface IGranularCopyProgress : ReadOnly = true, Description = @"Gets or sets details for the error.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; } /// To indicate directories errored out in the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -421,7 +421,7 @@ internal partial interface IGranularCopyProgressInternal /// Available actions on the job. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Action { get; set; } /// Gets or sets additional error info. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } /// To indicate bytes transferred. long? BytesProcessed { get; set; } /// Error code. @@ -429,11 +429,11 @@ internal partial interface IGranularCopyProgressInternal /// Data Account Type. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? DataAccountType { get; set; } /// Gets or sets details for the error. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; set; } /// To indicate directories errored out in the job. long? DirectoriesErroredOut { get; set; } /// Error, if any, in the stage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get; set; } /// Number of files which could not be copied long? FilesErroredOut { get; set; } /// Number of files processed diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyProgress.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyProgress.json.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyProgress.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyProgress.json.cs index 78f0c3a912f7..08be58873005 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/GranularCopyProgress.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/GranularCopyProgress.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class GranularCopyProgress partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgress. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgress. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgress. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgress. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IGranularCopyProgress FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IGranularCopyProgress FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new GranularCopyProgress(json) : null; } @@ -77,7 +77,7 @@ internal GranularCopyProgress(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError.FromJson(__jsonError) : Error;} {_storageAccountName = If( json?.PropertyT("storageAccountName"), out var __jsonStorageAccountName) ? (string)__jsonStorageAccountName : (string)StorageAccountName;} {_transferType = If( json?.PropertyT("transferType"), out var __jsonTransferType) ? (string)__jsonTransferType : (string)TransferType;} {_dataAccountType = If( json?.PropertyT("dataAccountType"), out var __jsonDataAccountType) ? (string)__jsonDataAccountType : (string)DataAccountType;} diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/HeavyScheduleAvailabilityRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/HeavyScheduleAvailabilityRequest.PowerShell.cs similarity index 79% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/HeavyScheduleAvailabilityRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/HeavyScheduleAvailabilityRequest.PowerShell.cs index b1b2c48a2b09..25431b447056 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/HeavyScheduleAvailabilityRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/HeavyScheduleAvailabilityRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class HeavyScheduleAvailabilityRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IHeavyScheduleAvailabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IHeavyScheduleAvailabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new HeavyScheduleAvailabilityRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IHeavyScheduleAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IHeavyScheduleAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new HeavyScheduleAvailabilityRequest(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IHea /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IHeavyScheduleAvailabilityRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IHeavyScheduleAvailabilityRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,21 +105,25 @@ internal HeavyScheduleAvailabilityRequest(global::System.Collections.IDictionary // actually deserialize if (content.Contains("StorageLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -134,15 +138,19 @@ internal HeavyScheduleAvailabilityRequest(global::System.Management.Automation.P // actually deserialize if (content.Contains("StorageLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/HeavyScheduleAvailabilityRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/HeavyScheduleAvailabilityRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/HeavyScheduleAvailabilityRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/HeavyScheduleAvailabilityRequest.TypeConverter.cs index b314db320097..b50d1da28c8b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/HeavyScheduleAvailabilityRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/HeavyScheduleAvailabilityRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IHeavyScheduleAvailabilityRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IHeavyScheduleAvailabilityRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IHeavyScheduleAvailabilityRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IHeavyScheduleAvailabilityRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/HeavyScheduleAvailabilityRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/HeavyScheduleAvailabilityRequest.cs similarity index 71% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/HeavyScheduleAvailabilityRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/HeavyScheduleAvailabilityRequest.cs index e7992eec5377..303ab0a9caab 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/HeavyScheduleAvailabilityRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/HeavyScheduleAvailabilityRequest.cs @@ -3,35 +3,42 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Request body to get the availability for scheduling heavy orders. public partial class HeavyScheduleAvailabilityRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IHeavyScheduleAvailabilityRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IHeavyScheduleAvailabilityRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IHeavyScheduleAvailabilityRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IHeavyScheduleAvailabilityRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest __scheduleAvailabilityRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest __scheduleAvailabilityRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityRequest(); /// Country in which storage location should be supported. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Country { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Country; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Country = value ?? null; } + public string Country { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Country; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Country = value ?? null; } + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Model; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).Model = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName)""); } /// Sku Name for which the order is to be scheduled. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).SkuName = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).SkuName = value ; } /// /// Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string StorageLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).StorageLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).StorageLocation = value ; } + public string StorageLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).StorageLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)__scheduleAvailabilityRequest).StorageLocation = value ; } /// Creates an new instance. public HeavyScheduleAvailabilityRequest() @@ -54,13 +61,13 @@ public HeavyScheduleAvailabilityRequest() /// Request body to get the availability for scheduling heavy orders. public partial interface IHeavyScheduleAvailabilityRequest : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest { } /// Request body to get the availability for scheduling heavy orders. internal partial interface IHeavyScheduleAvailabilityRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal { } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/HeavyScheduleAvailabilityRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/HeavyScheduleAvailabilityRequest.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/HeavyScheduleAvailabilityRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/HeavyScheduleAvailabilityRequest.json.cs index 07a5a3c28101..dd69b07ca191 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/HeavyScheduleAvailabilityRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/HeavyScheduleAvailabilityRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class HeavyScheduleAvailabilityRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IHeavyScheduleAvailabilityRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IHeavyScheduleAvailabilityRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IHeavyScheduleAvailabilityRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IHeavyScheduleAvailabilityRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IHeavyScheduleAvailabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IHeavyScheduleAvailabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new HeavyScheduleAvailabilityRequest(json) : null; } @@ -77,7 +77,7 @@ internal HeavyScheduleAvailabilityRequest(Microsoft.Azure.PowerShell.Cmdlets.Dat { return; } - __scheduleAvailabilityRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityRequest(json); + __scheduleAvailabilityRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityRequest(json); AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/IdentityProperties.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/IdentityProperties.PowerShell.cs similarity index 84% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/IdentityProperties.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/IdentityProperties.PowerShell.cs index 58189faebf69..610bd0704080 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/IdentityProperties.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/IdentityProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class IdentityProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new IdentityProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new IdentityProperties(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIde /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,21 +103,21 @@ internal IdentityProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("UserAssigned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityPropertiesInternal)this).UserAssigned = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties) content.GetValueForProperty("UserAssigned",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityPropertiesInternal)this).UserAssigned, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UserAssignedPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityPropertiesInternal)this).UserAssigned = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties) content.GetValueForProperty("UserAssigned",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityPropertiesInternal)this).UserAssigned, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UserAssignedPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityPropertiesInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityPropertiesInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityPropertiesInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityPropertiesInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("UserAssignedResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityPropertiesInternal)this).UserAssignedResourceId = (string) content.GetValueForProperty("UserAssignedResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityPropertiesInternal)this).UserAssignedResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityPropertiesInternal)this).UserAssignedResourceId = (string) content.GetValueForProperty("UserAssignedResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityPropertiesInternal)this).UserAssignedResourceId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,15 +132,15 @@ internal IdentityProperties(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("UserAssigned")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityPropertiesInternal)this).UserAssigned = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties) content.GetValueForProperty("UserAssigned",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityPropertiesInternal)this).UserAssigned, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UserAssignedPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityPropertiesInternal)this).UserAssigned = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties) content.GetValueForProperty("UserAssigned",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityPropertiesInternal)this).UserAssigned, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UserAssignedPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityPropertiesInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityPropertiesInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityPropertiesInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityPropertiesInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("UserAssignedResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityPropertiesInternal)this).UserAssignedResourceId = (string) content.GetValueForProperty("UserAssignedResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityPropertiesInternal)this).UserAssignedResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityPropertiesInternal)this).UserAssignedResourceId = (string) content.GetValueForProperty("UserAssignedResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityPropertiesInternal)this).UserAssignedResourceId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/IdentityProperties.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/IdentityProperties.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/IdentityProperties.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/IdentityProperties.TypeConverter.cs index 7e34c318e870..fe99b55bdda0 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/IdentityProperties.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/IdentityProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/IdentityProperties.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/IdentityProperties.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/IdentityProperties.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/IdentityProperties.cs index abe95d3d5e3d..7b793f7c0f38 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/IdentityProperties.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/IdentityProperties.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Managed identity properties. public partial class IdentityProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityPropertiesInternal { /// Internal Acessors for UserAssigned - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityPropertiesInternal.UserAssigned { get => (this._userAssigned = this._userAssigned ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UserAssignedProperties()); set { {_userAssigned = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityPropertiesInternal.UserAssigned { get => (this._userAssigned = this._userAssigned ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UserAssignedProperties()); set { {_userAssigned = value;} } } /// Backing field for property. private string _type; @@ -24,15 +24,15 @@ public partial class IdentityProperties : public string Type { get => this._type; set => this._type = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties _userAssigned; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties _userAssigned; /// User assigned identity properties. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties UserAssigned { get => (this._userAssigned = this._userAssigned ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UserAssignedProperties()); set => this._userAssigned = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties UserAssigned { get => (this._userAssigned = this._userAssigned ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UserAssignedProperties()); set => this._userAssigned = value; } /// Arm resource id for user assigned identity to be used to fetch MSI token. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string UserAssignedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedPropertiesInternal)UserAssigned).ResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedPropertiesInternal)UserAssigned).ResourceId = value ?? null; } + public string UserAssignedResourceId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedPropertiesInternal)UserAssigned).ResourceId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedPropertiesInternal)UserAssigned).ResourceId = value ?? null; } /// Creates an new instance. public IdentityProperties() @@ -69,7 +69,7 @@ internal partial interface IIdentityPropertiesInternal /// Managed service identity type. string Type { get; set; } /// User assigned identity properties. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties UserAssigned { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties UserAssigned { get; set; } /// Arm resource id for user assigned identity to be used to fetch MSI token. string UserAssignedResourceId { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/IdentityProperties.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/IdentityProperties.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/IdentityProperties.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/IdentityProperties.json.cs index 20d9d82aa9f9..3df77f9dc121 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/IdentityProperties.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/IdentityProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class IdentityProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new IdentityProperties(json) : null; } @@ -77,7 +77,7 @@ internal IdentityProperties(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.J { return; } - {_userAssigned = If( json?.PropertyT("userAssigned"), out var __jsonUserAssigned) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UserAssignedProperties.FromJson(__jsonUserAssigned) : UserAssigned;} + {_userAssigned = If( json?.PropertyT("userAssigned"), out var __jsonUserAssigned) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UserAssignedProperties.FromJson(__jsonUserAssigned) : UserAssigned;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ImportDiskDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ImportDiskDetails.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ImportDiskDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ImportDiskDetails.PowerShell.cs index b7531fb77e19..546a62174830 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ImportDiskDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ImportDiskDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ImportDiskDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ImportDiskDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ImportDiskDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImp /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,25 +103,25 @@ internal ImportDiskDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ManifestFile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).ManifestFile = (string) content.GetValueForProperty("ManifestFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).ManifestFile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).ManifestFile = (string) content.GetValueForProperty("ManifestFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).ManifestFile, global::System.Convert.ToString); } if (content.Contains("ManifestHash")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).ManifestHash = (string) content.GetValueForProperty("ManifestHash",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).ManifestHash, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).ManifestHash = (string) content.GetValueForProperty("ManifestHash",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).ManifestHash, global::System.Convert.ToString); } if (content.Contains("BitLockerKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).BitLockerKey = (string) content.GetValueForProperty("BitLockerKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).BitLockerKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).BitLockerKey = (string) content.GetValueForProperty("BitLockerKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).BitLockerKey, global::System.Convert.ToString); } if (content.Contains("BackupManifestCloudPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).BackupManifestCloudPath = (string) content.GetValueForProperty("BackupManifestCloudPath",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).BackupManifestCloudPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).BackupManifestCloudPath = (string) content.GetValueForProperty("BackupManifestCloudPath",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).BackupManifestCloudPath, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,19 +136,19 @@ internal ImportDiskDetails(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("ManifestFile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).ManifestFile = (string) content.GetValueForProperty("ManifestFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).ManifestFile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).ManifestFile = (string) content.GetValueForProperty("ManifestFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).ManifestFile, global::System.Convert.ToString); } if (content.Contains("ManifestHash")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).ManifestHash = (string) content.GetValueForProperty("ManifestHash",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).ManifestHash, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).ManifestHash = (string) content.GetValueForProperty("ManifestHash",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).ManifestHash, global::System.Convert.ToString); } if (content.Contains("BitLockerKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).BitLockerKey = (string) content.GetValueForProperty("BitLockerKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).BitLockerKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).BitLockerKey = (string) content.GetValueForProperty("BitLockerKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).BitLockerKey, global::System.Convert.ToString); } if (content.Contains("BackupManifestCloudPath")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).BackupManifestCloudPath = (string) content.GetValueForProperty("BackupManifestCloudPath",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal)this).BackupManifestCloudPath, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).BackupManifestCloudPath = (string) content.GetValueForProperty("BackupManifestCloudPath",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal)this).BackupManifestCloudPath, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ImportDiskDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ImportDiskDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ImportDiskDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ImportDiskDetails.TypeConverter.cs index 89b49c21cf9c..0e60f0523dc3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ImportDiskDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ImportDiskDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ImportDiskDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ImportDiskDetails.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ImportDiskDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ImportDiskDetails.cs index 5eb9fba87d23..00cf69634bd8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ImportDiskDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ImportDiskDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Import disk details public partial class ImportDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal { /// Backing field for property. @@ -42,7 +42,7 @@ public partial class ImportDiskDetails : public string ManifestHash { get => this._manifestHash; set => this._manifestHash = value; } /// Internal Acessors for BackupManifestCloudPath - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetailsInternal.BackupManifestCloudPath { get => this._backupManifestCloudPath; set { {_backupManifestCloudPath = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetailsInternal.BackupManifestCloudPath { get => this._backupManifestCloudPath; set { {_backupManifestCloudPath = value;} } } /// Creates an new instance. public ImportDiskDetails() diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ImportDiskDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ImportDiskDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ImportDiskDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ImportDiskDetails.json.cs index 90111df2669c..0d49ebc49660 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ImportDiskDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ImportDiskDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ImportDiskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IImportDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IImportDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ImportDiskDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.PowerShell.cs new file mode 100644 index 000000000000..46ba0e56a5ea --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.PowerShell.cs @@ -0,0 +1,176 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; + + /// Job Delay Notification details + [System.ComponentModel.TypeConverter(typeof(JobDelayDetailsTypeConverter))] + public partial class JobDelayDetails + { + + /// + /// AfterDeserializeDictionary will be called after the deserialization has finished, allowing customization of the + /// object before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Collections.IDictionary content that should be used. + + partial void AfterDeserializeDictionary(global::System.Collections.IDictionary content); + + /// + /// AfterDeserializePSObject will be called after the deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The global::System.Management.Automation.PSObject content that should be used. + + partial void AfterDeserializePSObject(global::System.Management.Automation.PSObject content); + + /// + /// BeforeDeserializeDictionary will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Collections.IDictionary content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializeDictionary(global::System.Collections.IDictionary content, ref bool returnNow); + + /// + /// BeforeDeserializePSObject will be called before the deserialization has commenced, allowing complete customization + /// of the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + { + return new JobDelayDetails(content); + } + + /// + /// Deserializes a into an instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + /// + /// an instance of . + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + { + return new JobDelayDetails(content); + } + + /// + /// Creates a new instance of , deserializing the content from a json string. + /// + /// a string containing a JSON serialized instance of this model. + /// an instance of the model class. + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Collections.IDictionary content that should be used. + internal JobDelayDetails(global::System.Collections.IDictionary content) + { + bool returnNow = false; + BeforeDeserializeDictionary(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus.CreateFrom); + } + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).ErrorCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode?) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).ErrorCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResolutionTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).ResolutionTime = (global::System.DateTime?) content.GetValueForProperty("ResolutionTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).ResolutionTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializeDictionary(content); + } + + /// + /// Deserializes a into a new instance of . + /// + /// The global::System.Management.Automation.PSObject content that should be used. + internal JobDelayDetails(global::System.Management.Automation.PSObject content) + { + bool returnNow = false; + BeforeDeserializePSObject(content, ref returnNow); + if (returnNow) + { + return; + } + // actually deserialize + if (content.Contains("Status")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus.CreateFrom); + } + if (content.Contains("ErrorCode")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).ErrorCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode?) content.GetValueForProperty("ErrorCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).ErrorCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode.CreateFrom); + } + if (content.Contains("Description")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).Description, global::System.Convert.ToString); + } + if (content.Contains("StartTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + if (content.Contains("ResolutionTime")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).ResolutionTime = (global::System.DateTime?) content.GetValueForProperty("ResolutionTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal)this).ResolutionTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + } + AfterDeserializePSObject(content); + } + + /// Serializes this instance to a json string. + + /// a containing this model serialized to JSON text. + public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); + } + /// Job Delay Notification details + [System.ComponentModel.TypeConverter(typeof(JobDelayDetailsTypeConverter))] + public partial interface IJobDelayDetails + + { + + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.TypeConverter.cs new file mode 100644 index 000000000000..7390ce40da0e --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.TypeConverter.cs @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; + + /// + /// A PowerShell PSTypeConverter to support converting to an instance of + /// + public partial class JobDelayDetailsTypeConverter : global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => CanConvertFrom(sourceValue); + + /// + /// Determines if the converter can convert the parameter to the + /// type. + /// + /// the instance to check if it can be converted to the type. + /// + /// true if the instance could be converted to a type, otherwise false + /// + public static bool CanConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return true; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + // we say yest to PSObjects + return true; + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + // we say yest to Hashtables/dictionaries + return true; + } + try + { + if (null != sourceValue.ToJsonString()) + { + return true; + } + } + catch + { + // Not one of our objects + } + try + { + string text = sourceValue.ToString()?.Trim(); + return true == text?.StartsWith("{") && true == text?.EndsWith("}") && Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(text).Type == Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonType.Object; + } + catch + { + // Doesn't look like it can be treated as JSON + } + return false; + } + + /// + /// Determines if the parameter can be converted to the + /// parameter + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ConvertFrom(sourceValue); + + /// + /// Converts the parameter into an instance of + /// + /// the value to convert into an instance of . + /// + /// an instance of , or null if there is no suitable conversion. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails ConvertFrom(dynamic sourceValue) + { + if (null == sourceValue) + { + return null; + } + global::System.Type type = sourceValue.GetType(); + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails).IsAssignableFrom(type)) + { + return sourceValue; + } + try + { + return JobDelayDetails.FromJsonString(typeof(string) == sourceValue.GetType() ? sourceValue : sourceValue.ToJsonString());; + } + catch + { + // Unable to use JSON pattern + } + if (typeof(global::System.Management.Automation.PSObject).IsAssignableFrom(type)) + { + return JobDelayDetails.DeserializeFromPSObject(sourceValue); + } + if (typeof(global::System.Collections.IDictionary).IsAssignableFrom(type)) + { + return JobDelayDetails.DeserializeFromDictionary(sourceValue); + } + return null; + } + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.cs new file mode 100644 index 000000000000..986b1e7af6be --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.cs @@ -0,0 +1,134 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; + + /// Job Delay Notification details + public partial class JobDelayDetails : + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal + { + + /// Backing field for property. + private string _description; + + /// Description of the delay. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public string Description { get => this._description; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode? _errorCode; + + /// Delay Error code + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode? ErrorCode { get => this._errorCode; } + + /// Internal Acessors for Description + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal.Description { get => this._description; set { {_description = value;} } } + + /// Internal Acessors for ErrorCode + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal.ErrorCode { get => this._errorCode; set { {_errorCode = value;} } } + + /// Internal Acessors for ResolutionTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal.ResolutionTime { get => this._resolutionTime; set { {_resolutionTime = value;} } } + + /// Internal Acessors for StartTime + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } + + /// Internal Acessors for Status + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetailsInternal.Status { get => this._status; set { {_status = value;} } } + + /// Backing field for property. + private global::System.DateTime? _resolutionTime; + + /// Timestamp when the delay notification was resolved. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public global::System.DateTime? ResolutionTime { get => this._resolutionTime; } + + /// Backing field for property. + private global::System.DateTime? _startTime; + + /// Timestamp when the delay notification was created. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public global::System.DateTime? StartTime { get => this._startTime; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus? _status; + + /// Status of notification + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus? Status { get => this._status; } + + /// Creates an new instance. + public JobDelayDetails() + { + + } + } + /// Job Delay Notification details + public partial interface IJobDelayDetails : + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable + { + /// Description of the delay. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Description of the delay.", + SerializedName = @"description", + PossibleTypes = new [] { typeof(string) })] + string Description { get; } + /// Delay Error code + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Delay Error code", + SerializedName = @"errorCode", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode? ErrorCode { get; } + /// Timestamp when the delay notification was resolved. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Timestamp when the delay notification was resolved.", + SerializedName = @"resolutionTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? ResolutionTime { get; } + /// Timestamp when the delay notification was created. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Timestamp when the delay notification was created.", + SerializedName = @"startTime", + PossibleTypes = new [] { typeof(global::System.DateTime) })] + global::System.DateTime? StartTime { get; } + /// Status of notification + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Status of notification", + SerializedName = @"status", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus? Status { get; } + + } + /// Job Delay Notification details + internal partial interface IJobDelayDetailsInternal + + { + /// Description of the delay. + string Description { get; set; } + /// Delay Error code + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode? ErrorCode { get; set; } + /// Timestamp when the delay notification was resolved. + global::System.DateTime? ResolutionTime { get; set; } + /// Timestamp when the delay notification was created. + global::System.DateTime? StartTime { get; set; } + /// Status of notification + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus? Status { get; set; } + + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.json.cs new file mode 100644 index 000000000000..506c81b1b8ad --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDelayDetails.json.cs @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; + + /// Job Delay Notification details + public partial class JobDelayDetails + { + + /// + /// AfterFromJson will be called after the json deserialization has finished, allowing customization of the object + /// before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JsonNode that should be deserialized into this object. + + partial void AfterFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json); + + /// + /// AfterToJson will be called after the json serialization has finished, allowing customization of the before it is returned. Implement this method in a partial class to enable this behavior + /// + /// The JSON container that the serialization result will be placed in. + + partial void AfterToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container); + + /// + /// BeforeFromJson will be called before the json deserialization has commenced, allowing complete customization of + /// the object before it is deserialized. + /// If you wish to disable the default deserialization entirely, return true in the + /// output parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JsonNode that should be deserialized into this object. + /// Determines if the rest of the deserialization should be processed, or if the method should return + /// instantly. + + partial void BeforeFromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json, ref bool returnNow); + + /// + /// BeforeToJson will be called before the json serialization has commenced, allowing complete customization of the + /// object before it is serialized. + /// If you wish to disable the default serialization entirely, return true in the output + /// parameter. + /// Implement this method in a partial class to enable this behavior. + /// + /// The JSON container that the serialization result will be placed in. + /// Determines if the rest of the serialization should be processed, or if the method should return + /// instantly. + + partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); + + /// + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails. + /// + /// a to deserialize from. + /// + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails. + /// + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + { + return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new JobDelayDetails(json) : null; + } + + /// + /// Deserializes a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject into a new instance of . + /// + /// A Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject instance to deserialize from. + internal JobDelayDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json) + { + bool returnNow = false; + BeforeFromJson(json, ref returnNow); + if (returnNow) + { + return; + } + {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} + {_errorCode = If( json?.PropertyT("errorCode"), out var __jsonErrorCode) ? (string)__jsonErrorCode : (string)ErrorCode;} + {_description = If( json?.PropertyT("description"), out var __jsonDescription) ? (string)__jsonDescription : (string)Description;} + {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : StartTime : StartTime;} + {_resolutionTime = If( json?.PropertyT("resolutionTime"), out var __jsonResolutionTime) ? global::System.DateTime.TryParse((string)__jsonResolutionTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonResolutionTimeValue) ? __jsonResolutionTimeValue : ResolutionTime : ResolutionTime;} + AfterFromJson(json); + } + + /// + /// Serializes this instance of into a . + /// + /// The container to serialize this object into. If the caller + /// passes in null, a new instance will be created and returned to the caller. + /// Allows the caller to choose the depth of the serialization. See . + /// + /// a serialized instance of as a . + /// + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode serializationMode) + { + container = container ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject(); + + bool returnNow = false; + BeforeToJson(ref container, ref returnNow); + if (returnNow) + { + return container; + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._errorCode)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._errorCode.ToString()) : null, "errorCode" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._description)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._description.ToString()) : null, "description" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._startTime ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._startTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startTime" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._resolutionTime ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._resolutionTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "resolutionTime" ,container.Add ); + } + AfterToJson(ref container); + return container; + } + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDeliveryInfo.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDeliveryInfo.PowerShell.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDeliveryInfo.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDeliveryInfo.PowerShell.cs index 774bd411f02c..1dcc287e89c2 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDeliveryInfo.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDeliveryInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class JobDeliveryInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobDeliveryInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobDeliveryInfo(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJob /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,13 +103,13 @@ internal JobDeliveryInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ScheduledDateTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfoInternal)this).ScheduledDateTime = (global::System.DateTime?) content.GetValueForProperty("ScheduledDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfoInternal)this).ScheduledDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfoInternal)this).ScheduledDateTime = (global::System.DateTime?) content.GetValueForProperty("ScheduledDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfoInternal)this).ScheduledDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -124,7 +124,7 @@ internal JobDeliveryInfo(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ScheduledDateTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfoInternal)this).ScheduledDateTime = (global::System.DateTime?) content.GetValueForProperty("ScheduledDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfoInternal)this).ScheduledDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfoInternal)this).ScheduledDateTime = (global::System.DateTime?) content.GetValueForProperty("ScheduledDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfoInternal)this).ScheduledDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDeliveryInfo.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDeliveryInfo.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDeliveryInfo.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDeliveryInfo.TypeConverter.cs index 12838c6f2f70..9c59b141b258 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDeliveryInfo.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDeliveryInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDeliveryInfo.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDeliveryInfo.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDeliveryInfo.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDeliveryInfo.cs index 16b14279b862..41abfd998f49 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDeliveryInfo.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDeliveryInfo.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Additional delivery info. public partial class JobDeliveryInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfoInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDeliveryInfo.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDeliveryInfo.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDeliveryInfo.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDeliveryInfo.json.cs index 2bbc6a1e6020..7c0ce646ac28 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDeliveryInfo.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDeliveryInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobDeliveryInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new JobDeliveryInfo(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDetails.PowerShell.cs similarity index 66% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDetails.PowerShell.cs index a86fbca2d5a6..b88cbbdef7c3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class JobDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJob /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,89 +103,89 @@ internal JobDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("JobStage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobStagesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobStagesTypeConverter.ConvertFrom)); } if (content.Contains("ContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DeliveryPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("ReturnPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("DataImportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DataExportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } if (content.Contains("Preference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("CopyLogDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetailsTypeConverter.ConvertFrom)); } if (content.Contains("ReverseShipmentLabelSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); } if (content.Contains("ChainOfCustodySasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); } if (content.Contains("DeviceErasureDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetailsTypeConverter.ConvertFrom); } if (content.Contains("KeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("ExpectedDataSizeInTeraByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("LastMitigationActionOnJob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJobTypeConverter.ConvertFrom); } if (content.Contains("DatacenterAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponseTypeConverter.ConvertFrom); } if (content.Contains("DataCenterCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -200,83 +200,83 @@ internal JobDetails(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("JobStage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobStagesTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[]) content.GetValueForProperty("JobStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).JobStage, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobStagesTypeConverter.ConvertFrom)); } if (content.Contains("ContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DeliveryPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("DeliveryPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeliveryPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("ReturnPackage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) content.GetValueForProperty("ReturnPackage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReturnPackage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("DataImportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[]) content.GetValueForProperty("DataImportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataImportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DataExportDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[]) content.GetValueForProperty("DataExportDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataExportDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetailsTypeConverter.ConvertFrom)); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } if (content.Contains("Preference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("CopyLogDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[]) content.GetValueForProperty("CopyLogDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).CopyLogDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetailsTypeConverter.ConvertFrom)); } if (content.Contains("ReverseShipmentLabelSasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey = (string) content.GetValueForProperty("ReverseShipmentLabelSasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ReverseShipmentLabelSasKey, global::System.Convert.ToString); } if (content.Contains("ChainOfCustodySasKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey = (string) content.GetValueForProperty("ChainOfCustodySasKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ChainOfCustodySasKey, global::System.Convert.ToString); } if (content.Contains("DeviceErasureDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails) content.GetValueForProperty("DeviceErasureDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DeviceErasureDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetailsTypeConverter.ConvertFrom); } if (content.Contains("KeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("ExpectedDataSizeInTeraByte")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte = (int?) content.GetValueForProperty("ExpectedDataSizeInTeraByte",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).ExpectedDataSizeInTeraByte, (__y)=> (int) global::System.Convert.ChangeType(__y, typeof(int))); } if (content.Contains("Action")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[]) content.GetValueForProperty("Action",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).Action, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom)); } if (content.Contains("LastMitigationActionOnJob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJobTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob) content.GetValueForProperty("LastMitigationActionOnJob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).LastMitigationActionOnJob, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJobTypeConverter.ConvertFrom); } if (content.Contains("DatacenterAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DatacenterAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponseTypeConverter.ConvertFrom); } if (content.Contains("DataCenterCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode?) content.GetValueForProperty("DataCenterCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal)this).DataCenterCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDetails.TypeConverter.cs index 27caadfb6e13..bbe97f8c6b1b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDetails.cs similarity index 80% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDetails.cs index 161802796a25..e5c37037d512 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Job details. public partial class JobDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal { /// Backing field for property. @@ -28,18 +28,18 @@ public partial class JobDetails : public string ChainOfCustodySasKey { get => this._chainOfCustodySasKey; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails _contactDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails _contactDetail; /// Contact details for notification and shipping. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails ContactDetail { get => (this._contactDetail = this._contactDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetails()); set => this._contactDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails ContactDetail { get => (this._contactDetail = this._contactDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetails()); set => this._contactDetail = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[] _copyLogDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[] _copyLogDetail; /// List of copy log details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[] CopyLogDetail { get => this._copyLogDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[] CopyLogDetail { get => this._copyLogDetail; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? _dataCenterCode; @@ -49,39 +49,39 @@ public partial class JobDetails : public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? DataCenterCode { get => this._dataCenterCode; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] _dataExportDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[] _dataExportDetail; /// Details of the data to be exported from azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] DataExportDetail { get => this._dataExportDetail; set => this._dataExportDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[] DataExportDetail { get => this._dataExportDetail; set => this._dataExportDetail = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] _dataImportDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[] _dataImportDetail; /// Details of the data to be imported into azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] DataImportDetail { get => this._dataImportDetail; set => this._dataImportDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[] DataImportDetail { get => this._dataImportDetail; set => this._dataImportDetail = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse _datacenterAddress; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse _datacenterAddress; /// Datacenter address to ship to, for the given sku and storage location. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse DatacenterAddress { get => (this._datacenterAddress = this._datacenterAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponse()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse DatacenterAddress { get => (this._datacenterAddress = this._datacenterAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponse()); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails _deliveryPackage; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails _deliveryPackage; /// Delivery package shipping details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails DeliveryPackage { get => (this._deliveryPackage = this._deliveryPackage ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetails()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails DeliveryPackage { get => (this._deliveryPackage = this._deliveryPackage ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetails()); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails _deviceErasureDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails _deviceErasureDetail; /// Holds device data erasure details [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails DeviceErasureDetail { get => (this._deviceErasureDetail = this._deviceErasureDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetails()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails DeviceErasureDetail { get => (this._deviceErasureDetail = this._deviceErasureDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetails()); } /// Backing field for property. private int? _expectedDataSizeInTeraByte; @@ -93,72 +93,72 @@ public partial class JobDetails : public int? ExpectedDataSizeInTeraByte { get => this._expectedDataSizeInTeraByte; set => this._expectedDataSizeInTeraByte = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[] _jobStage; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[] _jobStage; /// List of stages that run in the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[] JobStage { get => this._jobStage; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[] JobStage { get => this._jobStage; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey _keyEncryptionKey; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey _keyEncryptionKey; /// Details about which key encryption type is being used. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey KeyEncryptionKey { get => (this._keyEncryptionKey = this._keyEncryptionKey ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKey()); set => this._keyEncryptionKey = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey KeyEncryptionKey { get => (this._keyEncryptionKey = this._keyEncryptionKey ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKey()); set => this._keyEncryptionKey = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob _lastMitigationActionOnJob; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob _lastMitigationActionOnJob; /// Last mitigation action performed on the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob LastMitigationActionOnJob { get => (this._lastMitigationActionOnJob = this._lastMitigationActionOnJob ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJob()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob LastMitigationActionOnJob { get => (this._lastMitigationActionOnJob = this._lastMitigationActionOnJob ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJob()); } /// Internal Acessors for Action - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.Action { get => this._action; set { {_action = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.Action { get => this._action; set { {_action = value;} } } /// Internal Acessors for ChainOfCustodySasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ChainOfCustodySasKey { get => this._chainOfCustodySasKey; set { {_chainOfCustodySasKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ChainOfCustodySasKey { get => this._chainOfCustodySasKey; set { {_chainOfCustodySasKey = value;} } } /// Internal Acessors for CopyLogDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.CopyLogDetail { get => this._copyLogDetail; set { {_copyLogDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.CopyLogDetail { get => this._copyLogDetail; set { {_copyLogDetail = value;} } } /// Internal Acessors for DataCenterCode - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DataCenterCode { get => this._dataCenterCode; set { {_dataCenterCode = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DataCenterCode { get => this._dataCenterCode; set { {_dataCenterCode = value;} } } /// Internal Acessors for DatacenterAddress - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DatacenterAddress { get => (this._datacenterAddress = this._datacenterAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponse()); set { {_datacenterAddress = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DatacenterAddress { get => (this._datacenterAddress = this._datacenterAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponse()); set { {_datacenterAddress = value;} } } /// Internal Acessors for DeliveryPackage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DeliveryPackage { get => (this._deliveryPackage = this._deliveryPackage ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetails()); set { {_deliveryPackage = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DeliveryPackage { get => (this._deliveryPackage = this._deliveryPackage ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetails()); set { {_deliveryPackage = value;} } } /// Internal Acessors for DeviceErasureDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.DeviceErasureDetail { get => (this._deviceErasureDetail = this._deviceErasureDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetails()); set { {_deviceErasureDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.DeviceErasureDetail { get => (this._deviceErasureDetail = this._deviceErasureDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetails()); set { {_deviceErasureDetail = value;} } } /// Internal Acessors for JobStage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.JobStage { get => this._jobStage; set { {_jobStage = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.JobStage { get => this._jobStage; set { {_jobStage = value;} } } /// Internal Acessors for LastMitigationActionOnJob - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.LastMitigationActionOnJob { get => (this._lastMitigationActionOnJob = this._lastMitigationActionOnJob ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJob()); set { {_lastMitigationActionOnJob = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.LastMitigationActionOnJob { get => (this._lastMitigationActionOnJob = this._lastMitigationActionOnJob ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJob()); set { {_lastMitigationActionOnJob = value;} } } /// Internal Acessors for ReturnPackage - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ReturnPackage { get => (this._returnPackage = this._returnPackage ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetails()); set { {_returnPackage = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ReturnPackage { get => (this._returnPackage = this._returnPackage ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetails()); set { {_returnPackage = value;} } } /// Internal Acessors for ReverseShipmentLabelSasKey - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetailsInternal.ReverseShipmentLabelSasKey { get => this._reverseShipmentLabelSasKey; set { {_reverseShipmentLabelSasKey = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetailsInternal.ReverseShipmentLabelSasKey { get => this._reverseShipmentLabelSasKey; set { {_reverseShipmentLabelSasKey = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences _preference; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences _preference; /// Preferences for the order. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Preference { get => (this._preference = this._preference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Preferences()); set => this._preference = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Preference { get => (this._preference = this._preference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Preferences()); set => this._preference = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails _returnPackage; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails _returnPackage; /// Return package shipping details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails ReturnPackage { get => (this._returnPackage = this._returnPackage ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetails()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails ReturnPackage { get => (this._returnPackage = this._returnPackage ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetails()); } /// Backing field for property. private string _reverseShipmentLabelSasKey; @@ -168,18 +168,18 @@ public partial class JobDetails : public string ReverseShipmentLabelSasKey { get => this._reverseShipmentLabelSasKey; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails _reverseShippingDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails _reverseShippingDetail; /// Optional Reverse Shipping details for order. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails ReverseShippingDetail { get => (this._reverseShippingDetail = this._reverseShippingDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetails()); set => this._reverseShippingDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails ReverseShippingDetail { get => (this._reverseShippingDetail = this._reverseShippingDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetails()); set => this._reverseShippingDetail = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress _shippingAddress; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress _shippingAddress; /// Shipping address of the customer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get => (this._shippingAddress = this._shippingAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress()); set => this._shippingAddress = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get => (this._shippingAddress = this._shippingAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress()); set => this._shippingAddress = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator _type; @@ -220,16 +220,16 @@ public partial interface IJobDetails : ReadOnly = false, Description = @"Contact details for notification and shipping.", SerializedName = @"contactDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails ContactDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails ContactDetail { get; set; } /// List of copy log details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = true, Description = @"List of copy log details.", SerializedName = @"copyLogDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[] CopyLogDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[] CopyLogDetail { get; } /// DataCenter code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -244,40 +244,40 @@ public partial interface IJobDetails : ReadOnly = false, Description = @"Details of the data to be exported from azure.", SerializedName = @"dataExportDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] DataExportDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[] DataExportDetail { get; set; } /// Details of the data to be imported into azure. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = false, Description = @"Details of the data to be imported into azure.", SerializedName = @"dataImportDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] DataImportDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[] DataImportDetail { get; set; } /// Datacenter address to ship to, for the given sku and storage location. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = true, Description = @"Datacenter address to ship to, for the given sku and storage location.", SerializedName = @"datacenterAddress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse DatacenterAddress { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse DatacenterAddress { get; } /// Delivery package shipping details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = true, Description = @"Delivery package shipping details.", SerializedName = @"deliveryPackage", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails DeliveryPackage { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails DeliveryPackage { get; } /// Holds device data erasure details [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = true, Description = @"Holds device data erasure details", SerializedName = @"deviceErasureDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails DeviceErasureDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails DeviceErasureDetail { get; } /// /// The expected size of the data, which needs to be transferred in this job, in terabytes. /// @@ -294,40 +294,40 @@ public partial interface IJobDetails : ReadOnly = true, Description = @"List of stages that run in the job.", SerializedName = @"jobStages", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[] JobStage { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[] JobStage { get; } /// Details about which key encryption type is being used. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = false, Description = @"Details about which key encryption type is being used.", SerializedName = @"keyEncryptionKey", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey KeyEncryptionKey { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey KeyEncryptionKey { get; set; } /// Last mitigation action performed on the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = true, Description = @"Last mitigation action performed on the job.", SerializedName = @"lastMitigationActionOnJob", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob LastMitigationActionOnJob { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob LastMitigationActionOnJob { get; } /// Preferences for the order. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = false, Description = @"Preferences for the order.", SerializedName = @"preferences", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Preference { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Preference { get; set; } /// Return package shipping details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = true, Description = @"Return package shipping details.", SerializedName = @"returnPackage", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails ReturnPackage { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails ReturnPackage { get; } /// Shared access key to download the return shipment label [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -342,16 +342,16 @@ public partial interface IJobDetails : ReadOnly = false, Description = @"Optional Reverse Shipping details for order.", SerializedName = @"reverseShippingDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails ReverseShippingDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails ReverseShippingDetail { get; set; } /// Shipping address of the customer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = false, Description = @"Shipping address of the customer.", SerializedName = @"shippingAddress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get; set; } /// Indicates the type of job details. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, @@ -371,41 +371,41 @@ internal partial interface IJobDetailsInternal /// Shared access key to download the chain of custody logs string ChainOfCustodySasKey { get; set; } /// Contact details for notification and shipping. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails ContactDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails ContactDetail { get; set; } /// List of copy log details. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails[] CopyLogDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails[] CopyLogDetail { get; set; } /// DataCenter code. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode? DataCenterCode { get; set; } /// Details of the data to be exported from azure. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails[] DataExportDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails[] DataExportDetail { get; set; } /// Details of the data to be imported into azure. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails[] DataImportDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails[] DataImportDetail { get; set; } /// Datacenter address to ship to, for the given sku and storage location. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse DatacenterAddress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse DatacenterAddress { get; set; } /// Delivery package shipping details. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails DeliveryPackage { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails DeliveryPackage { get; set; } /// Holds device data erasure details - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDeviceErasureDetails DeviceErasureDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceErasureDetails DeviceErasureDetail { get; set; } /// /// The expected size of the data, which needs to be transferred in this job, in terabytes. /// int? ExpectedDataSizeInTeraByte { get; set; } /// List of stages that run in the job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages[] JobStage { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages[] JobStage { get; set; } /// Details about which key encryption type is being used. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey KeyEncryptionKey { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey KeyEncryptionKey { get; set; } /// Last mitigation action performed on the job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob LastMitigationActionOnJob { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob LastMitigationActionOnJob { get; set; } /// Preferences for the order. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Preference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Preference { get; set; } /// Return package shipping details. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails ReturnPackage { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails ReturnPackage { get; set; } /// Shared access key to download the return shipment label string ReverseShipmentLabelSasKey { get; set; } /// Optional Reverse Shipping details for order. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails ReverseShippingDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails ReverseShippingDetail { get; set; } /// Shipping address of the customer. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get; set; } /// Indicates the type of job details. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator Type { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDetails.json.cs similarity index 92% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDetails.json.cs index 5e516402c99a..f85b6152272a 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class JobDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails interface is polymorphic, and the + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails interface is polymorphic, and the /// precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)) { @@ -104,25 +104,25 @@ internal JobDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.Json { return; } - {_jobStage = If( json?.PropertyT("jobStages"), out var __jsonJobStages) ? If( __jsonJobStages as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobStages.FromJson(__u) )) ))() : null : JobStage;} - {_contactDetail = If( json?.PropertyT("contactDetails"), out var __jsonContactDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetails.FromJson(__jsonContactDetails) : ContactDetail;} - {_shippingAddress = If( json?.PropertyT("shippingAddress"), out var __jsonShippingAddress) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress.FromJson(__jsonShippingAddress) : ShippingAddress;} - {_deliveryPackage = If( json?.PropertyT("deliveryPackage"), out var __jsonDeliveryPackage) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetails.FromJson(__jsonDeliveryPackage) : DeliveryPackage;} - {_returnPackage = If( json?.PropertyT("returnPackage"), out var __jsonReturnPackage) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageShippingDetails.FromJson(__jsonReturnPackage) : ReturnPackage;} - {_dataImportDetail = If( json?.PropertyT("dataImportDetails"), out var __jsonDataImportDetails) ? If( __jsonDataImportDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataImportDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataImportDetails.FromJson(__p) )) ))() : null : DataImportDetail;} - {_dataExportDetail = If( json?.PropertyT("dataExportDetails"), out var __jsonDataExportDetails) ? If( __jsonDataExportDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataExportDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataExportDetails.FromJson(__k) )) ))() : null : DataExportDetail;} + {_jobStage = If( json?.PropertyT("jobStages"), out var __jsonJobStages) ? If( __jsonJobStages as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobStages.FromJson(__u) )) ))() : null : JobStage;} + {_contactDetail = If( json?.PropertyT("contactDetails"), out var __jsonContactDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetails.FromJson(__jsonContactDetails) : ContactDetail;} + {_shippingAddress = If( json?.PropertyT("shippingAddress"), out var __jsonShippingAddress) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress.FromJson(__jsonShippingAddress) : ShippingAddress;} + {_deliveryPackage = If( json?.PropertyT("deliveryPackage"), out var __jsonDeliveryPackage) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetails.FromJson(__jsonDeliveryPackage) : DeliveryPackage;} + {_returnPackage = If( json?.PropertyT("returnPackage"), out var __jsonReturnPackage) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageShippingDetails.FromJson(__jsonReturnPackage) : ReturnPackage;} + {_dataImportDetail = If( json?.PropertyT("dataImportDetails"), out var __jsonDataImportDetails) ? If( __jsonDataImportDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataImportDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataImportDetails.FromJson(__p) )) ))() : null : DataImportDetail;} + {_dataExportDetail = If( json?.PropertyT("dataExportDetails"), out var __jsonDataExportDetails) ? If( __jsonDataExportDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataExportDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataExportDetails.FromJson(__k) )) ))() : null : DataExportDetail;} {_type = If( json?.PropertyT("jobDetailsType"), out var __jsonJobDetailsType) ? (string)__jsonJobDetailsType : (string)Type;} - {_preference = If( json?.PropertyT("preferences"), out var __jsonPreferences) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Preferences.FromJson(__jsonPreferences) : Preference;} - {_reverseShippingDetail = If( json?.PropertyT("reverseShippingDetails"), out var __jsonReverseShippingDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetails.FromJson(__jsonReverseShippingDetails) : ReverseShippingDetail;} - {_copyLogDetail = If( json?.PropertyT("copyLogDetails"), out var __jsonCopyLogDetails) ? If( __jsonCopyLogDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICopyLogDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CopyLogDetails.FromJson(__f) )) ))() : null : CopyLogDetail;} + {_preference = If( json?.PropertyT("preferences"), out var __jsonPreferences) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Preferences.FromJson(__jsonPreferences) : Preference;} + {_reverseShippingDetail = If( json?.PropertyT("reverseShippingDetails"), out var __jsonReverseShippingDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetails.FromJson(__jsonReverseShippingDetails) : ReverseShippingDetail;} + {_copyLogDetail = If( json?.PropertyT("copyLogDetails"), out var __jsonCopyLogDetails) ? If( __jsonCopyLogDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __g) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__g, (__f)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICopyLogDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CopyLogDetails.FromJson(__f) )) ))() : null : CopyLogDetail;} {_reverseShipmentLabelSasKey = If( json?.PropertyT("reverseShipmentLabelSasKey"), out var __jsonReverseShipmentLabelSasKey) ? (string)__jsonReverseShipmentLabelSasKey : (string)ReverseShipmentLabelSasKey;} {_chainOfCustodySasKey = If( json?.PropertyT("chainOfCustodySasKey"), out var __jsonChainOfCustodySasKey) ? (string)__jsonChainOfCustodySasKey : (string)ChainOfCustodySasKey;} - {_deviceErasureDetail = If( json?.PropertyT("deviceErasureDetails"), out var __jsonDeviceErasureDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DeviceErasureDetails.FromJson(__jsonDeviceErasureDetails) : DeviceErasureDetail;} - {_keyEncryptionKey = If( json?.PropertyT("keyEncryptionKey"), out var __jsonKeyEncryptionKey) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKey.FromJson(__jsonKeyEncryptionKey) : KeyEncryptionKey;} + {_deviceErasureDetail = If( json?.PropertyT("deviceErasureDetails"), out var __jsonDeviceErasureDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceErasureDetails.FromJson(__jsonDeviceErasureDetails) : DeviceErasureDetail;} + {_keyEncryptionKey = If( json?.PropertyT("keyEncryptionKey"), out var __jsonKeyEncryptionKey) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKey.FromJson(__jsonKeyEncryptionKey) : KeyEncryptionKey;} {_expectedDataSizeInTeraByte = If( json?.PropertyT("expectedDataSizeInTeraBytes"), out var __jsonExpectedDataSizeInTeraBytes) ? (int?)__jsonExpectedDataSizeInTeraBytes : ExpectedDataSizeInTeraByte;} {_action = If( json?.PropertyT("actions"), out var __jsonActions) ? If( __jsonActions as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __b) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__b, (__a)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode) (__a is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString ___z ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode)(___z.ToString()) : ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode)""))) ))() : null : Action;} - {_lastMitigationActionOnJob = If( json?.PropertyT("lastMitigationActionOnJob"), out var __jsonLastMitigationActionOnJob) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.LastMitigationActionOnJob.FromJson(__jsonLastMitigationActionOnJob) : LastMitigationActionOnJob;} - {_datacenterAddress = If( json?.PropertyT("datacenterAddress"), out var __jsonDatacenterAddress) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponse.FromJson(__jsonDatacenterAddress) : DatacenterAddress;} + {_lastMitigationActionOnJob = If( json?.PropertyT("lastMitigationActionOnJob"), out var __jsonLastMitigationActionOnJob) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.LastMitigationActionOnJob.FromJson(__jsonLastMitigationActionOnJob) : LastMitigationActionOnJob;} + {_datacenterAddress = If( json?.PropertyT("datacenterAddress"), out var __jsonDatacenterAddress) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponse.FromJson(__jsonDatacenterAddress) : DatacenterAddress;} {_dataCenterCode = If( json?.PropertyT("dataCenterCode"), out var __jsonDataCenterCode) ? (string)__jsonDataCenterCode : (string)DataCenterCode;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobProperties.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobProperties.PowerShell.cs similarity index 69% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobProperties.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobProperties.PowerShell.cs index ff847e090229..5dad5df53038 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobProperties.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class JobProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobProperties(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJob /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,93 +103,101 @@ internal JobProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("DeliveryInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo) content.GetValueForProperty("DeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDeliveryInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo) content.GetValueForProperty("DeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDeliveryInfoTypeConverter.ConvertFrom); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("IsCancellable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsCancellable = (bool?) content.GetValueForProperty("IsCancellable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsCancellable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsCancellable = (bool?) content.GetValueForProperty("IsCancellable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsCancellable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsDeletable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsDeletable = (bool?) content.GetValueForProperty("IsDeletable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsDeletable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsDeletable = (bool?) content.GetValueForProperty("IsDeletable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsDeletable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsShippingAddressEditable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsShippingAddressEditable = (bool?) content.GetValueForProperty("IsShippingAddressEditable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsShippingAddressEditable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsShippingAddressEditable = (bool?) content.GetValueForProperty("IsShippingAddressEditable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsShippingAddressEditable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReverseShippingDetailsUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).ReverseShippingDetailsUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus?) content.GetValueForProperty("ReverseShippingDetailsUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).ReverseShippingDetailsUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).ReverseShippingDetailsUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus?) content.GetValueForProperty("ReverseShippingDetailsUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).ReverseShippingDetailsUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus.CreateFrom); } if (content.Contains("ReverseTransportPreferenceUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).ReverseTransportPreferenceUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus?) content.GetValueForProperty("ReverseTransportPreferenceUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).ReverseTransportPreferenceUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).ReverseTransportPreferenceUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus?) content.GetValueForProperty("ReverseTransportPreferenceUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).ReverseTransportPreferenceUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus.CreateFrom); } if (content.Contains("IsPrepareToShipEnabled")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsPrepareToShipEnabled = (bool?) content.GetValueForProperty("IsPrepareToShipEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsPrepareToShipEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsPrepareToShipEnabled = (bool?) content.GetValueForProperty("IsPrepareToShipEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsPrepareToShipEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); + } + if (content.Contains("DelayedStage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DelayedStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("DelayedStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DelayedStage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetailsTypeConverter.ConvertFrom); } if (content.Contains("CancellationReason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).CancellationReason = (string) content.GetValueForProperty("CancellationReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).CancellationReason, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).CancellationReason = (string) content.GetValueForProperty("CancellationReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).CancellationReason, global::System.Convert.ToString); } if (content.Contains("DeliveryType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).DeliveryType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType?) content.GetValueForProperty("DeliveryType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).DeliveryType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DeliveryType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType?) content.GetValueForProperty("DeliveryType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DeliveryType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType.CreateFrom); } if (content.Contains("IsCancellableWithoutFee")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsCancellableWithoutFee = (bool?) content.GetValueForProperty("IsCancellableWithoutFee",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsCancellableWithoutFee, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsCancellableWithoutFee = (bool?) content.GetValueForProperty("IsCancellableWithoutFee",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsCancellableWithoutFee, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("AllDevicesLost")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).AllDevicesLost = (bool?) content.GetValueForProperty("AllDevicesLost",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).AllDevicesLost, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("DeliveryInfoScheduledDateTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).DeliveryInfoScheduledDateTime = (global::System.DateTime?) content.GetValueForProperty("DeliveryInfoScheduledDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).DeliveryInfoScheduledDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DeliveryInfoScheduledDateTime = (global::System.DateTime?) content.GetValueForProperty("DeliveryInfoScheduledDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DeliveryInfoScheduledDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -204,87 +212,95 @@ internal JobProperties(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("DeliveryInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo) content.GetValueForProperty("DeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDeliveryInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo) content.GetValueForProperty("DeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDeliveryInfoTypeConverter.ConvertFrom); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("IsCancellable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsCancellable = (bool?) content.GetValueForProperty("IsCancellable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsCancellable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsCancellable = (bool?) content.GetValueForProperty("IsCancellable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsCancellable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsDeletable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsDeletable = (bool?) content.GetValueForProperty("IsDeletable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsDeletable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsDeletable = (bool?) content.GetValueForProperty("IsDeletable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsDeletable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsShippingAddressEditable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsShippingAddressEditable = (bool?) content.GetValueForProperty("IsShippingAddressEditable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsShippingAddressEditable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsShippingAddressEditable = (bool?) content.GetValueForProperty("IsShippingAddressEditable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsShippingAddressEditable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReverseShippingDetailsUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).ReverseShippingDetailsUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus?) content.GetValueForProperty("ReverseShippingDetailsUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).ReverseShippingDetailsUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).ReverseShippingDetailsUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus?) content.GetValueForProperty("ReverseShippingDetailsUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).ReverseShippingDetailsUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus.CreateFrom); } if (content.Contains("ReverseTransportPreferenceUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).ReverseTransportPreferenceUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus?) content.GetValueForProperty("ReverseTransportPreferenceUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).ReverseTransportPreferenceUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).ReverseTransportPreferenceUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus?) content.GetValueForProperty("ReverseTransportPreferenceUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).ReverseTransportPreferenceUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus.CreateFrom); } if (content.Contains("IsPrepareToShipEnabled")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsPrepareToShipEnabled = (bool?) content.GetValueForProperty("IsPrepareToShipEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsPrepareToShipEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsPrepareToShipEnabled = (bool?) content.GetValueForProperty("IsPrepareToShipEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsPrepareToShipEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); + } + if (content.Contains("DelayedStage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DelayedStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("DelayedStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DelayedStage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetailsTypeConverter.ConvertFrom); } if (content.Contains("CancellationReason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).CancellationReason = (string) content.GetValueForProperty("CancellationReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).CancellationReason, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).CancellationReason = (string) content.GetValueForProperty("CancellationReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).CancellationReason, global::System.Convert.ToString); } if (content.Contains("DeliveryType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).DeliveryType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType?) content.GetValueForProperty("DeliveryType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).DeliveryType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DeliveryType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType?) content.GetValueForProperty("DeliveryType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DeliveryType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType.CreateFrom); } if (content.Contains("IsCancellableWithoutFee")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsCancellableWithoutFee = (bool?) content.GetValueForProperty("IsCancellableWithoutFee",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).IsCancellableWithoutFee, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsCancellableWithoutFee = (bool?) content.GetValueForProperty("IsCancellableWithoutFee",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).IsCancellableWithoutFee, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("AllDevicesLost")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).AllDevicesLost = (bool?) content.GetValueForProperty("AllDevicesLost",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).AllDevicesLost, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("DeliveryInfoScheduledDateTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).DeliveryInfoScheduledDateTime = (global::System.DateTime?) content.GetValueForProperty("DeliveryInfoScheduledDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)this).DeliveryInfoScheduledDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DeliveryInfoScheduledDateTime = (global::System.DateTime?) content.GetValueForProperty("DeliveryInfoScheduledDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)this).DeliveryInfoScheduledDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobProperties.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobProperties.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobProperties.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobProperties.TypeConverter.cs index 8461b65edb6e..0218466c8e89 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobProperties.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobProperties.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobProperties.cs similarity index 80% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobProperties.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobProperties.cs index 8dbece80d598..e6e4bce2dc53 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobProperties.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobProperties.cs @@ -3,19 +3,26 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Job Properties public partial class JobProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal { /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo; } + + /// Backing field for property. + private bool? _allDevicesLost; + + /// Flag to indicate if all devices associated with the job are lost. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public bool? AllDevicesLost { get => this._allDevicesLost; } /// Backing field for property. private string _cancellationReason; @@ -26,18 +33,25 @@ public partial class JobProperties : /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Code = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? _delayedStage; + + /// Name of the stage where delay might be present. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? DelayedStage { get => this._delayedStage; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo _deliveryInfo; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo _deliveryInfo; /// Delivery Info of Job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo DeliveryInfo { get => (this._deliveryInfo = this._deliveryInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDeliveryInfo()); set => this._deliveryInfo = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo DeliveryInfo { get => (this._deliveryInfo = this._deliveryInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDeliveryInfo()); set => this._deliveryInfo = value; } /// Scheduled date time. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public global::System.DateTime? DeliveryInfoScheduledDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfoInternal)DeliveryInfo).ScheduledDateTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfoInternal)DeliveryInfo).ScheduledDateTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? DeliveryInfoScheduledDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfoInternal)DeliveryInfo).ScheduledDateTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfoInternal)DeliveryInfo).ScheduledDateTime = value ?? default(global::System.DateTime); } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType? _deliveryType; @@ -47,22 +61,22 @@ public partial class JobProperties : public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType? DeliveryType { get => this._deliveryType; set => this._deliveryType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails _detail; /// Details of a job run. This field will only be sent for expand details filter. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails Detail { get => (this._detail = this._detail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetails()); set => this._detail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails Detail { get => (this._detail = this._detail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetails()); set => this._detail = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError _error; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError _error; /// Top level error for the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError()); } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail; } /// Backing field for property. private bool? _isCancellable; @@ -101,49 +115,55 @@ public partial class JobProperties : /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Message = value ?? null; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo = value; } + + /// Internal Acessors for AllDevicesLost + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.AllDevicesLost { get => this._allDevicesLost; set { {_allDevicesLost = value;} } } /// Internal Acessors for CancellationReason - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal.CancellationReason { get => this._cancellationReason; set { {_cancellationReason = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.CancellationReason { get => this._cancellationReason; set { {_cancellationReason = value;} } } + + /// Internal Acessors for DelayedStage + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.DelayedStage { get => this._delayedStage; set { {_delayedStage = value;} } } /// Internal Acessors for DeliveryInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal.DeliveryInfo { get => (this._deliveryInfo = this._deliveryInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDeliveryInfo()); set { {_deliveryInfo = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.DeliveryInfo { get => (this._deliveryInfo = this._deliveryInfo ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDeliveryInfo()); set { {_deliveryInfo = value;} } } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError()); set { {_error = value;} } } /// Internal Acessors for ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail = value; } /// Internal Acessors for IsCancellable - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal.IsCancellable { get => this._isCancellable; set { {_isCancellable = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.IsCancellable { get => this._isCancellable; set { {_isCancellable = value;} } } /// Internal Acessors for IsCancellableWithoutFee - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal.IsCancellableWithoutFee { get => this._isCancellableWithoutFee; set { {_isCancellableWithoutFee = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.IsCancellableWithoutFee { get => this._isCancellableWithoutFee; set { {_isCancellableWithoutFee = value;} } } /// Internal Acessors for IsDeletable - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal.IsDeletable { get => this._isDeletable; set { {_isDeletable = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.IsDeletable { get => this._isDeletable; set { {_isDeletable = value;} } } /// Internal Acessors for IsPrepareToShipEnabled - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal.IsPrepareToShipEnabled { get => this._isPrepareToShipEnabled; set { {_isPrepareToShipEnabled = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.IsPrepareToShipEnabled { get => this._isPrepareToShipEnabled; set { {_isPrepareToShipEnabled = value;} } } /// Internal Acessors for IsShippingAddressEditable - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal.IsShippingAddressEditable { get => this._isShippingAddressEditable; set { {_isShippingAddressEditable = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.IsShippingAddressEditable { get => this._isShippingAddressEditable; set { {_isShippingAddressEditable = value;} } } /// Internal Acessors for ReverseShippingDetailsUpdate - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal.ReverseShippingDetailsUpdate { get => this._reverseShippingDetailsUpdate; set { {_reverseShippingDetailsUpdate = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.ReverseShippingDetailsUpdate { get => this._reverseShippingDetailsUpdate; set { {_reverseShippingDetailsUpdate = value;} } } /// Internal Acessors for ReverseTransportPreferenceUpdate - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal.ReverseTransportPreferenceUpdate { get => this._reverseTransportPreferenceUpdate; set { {_reverseTransportPreferenceUpdate = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.ReverseTransportPreferenceUpdate { get => this._reverseTransportPreferenceUpdate; set { {_reverseTransportPreferenceUpdate = value;} } } /// Internal Acessors for StartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.StartTime { get => this._startTime; set { {_startTime = value;} } } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal.Status { get => this._status; set { {_status = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal.Status { get => this._status; set { {_status = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus? _reverseShippingDetailsUpdate; @@ -175,7 +195,7 @@ public partial class JobProperties : /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Target = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType _transferType; @@ -200,8 +220,16 @@ public partial interface IJobProperties : ReadOnly = true, Description = @"Gets or sets additional error info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; } + /// Flag to indicate if all devices associated with the job are lost. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Flag to indicate if all devices associated with the job are lost.", + SerializedName = @"allDevicesLost", + PossibleTypes = new [] { typeof(bool) })] + bool? AllDevicesLost { get; } /// Reason for cancellation. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -218,6 +246,14 @@ public partial interface IJobProperties : SerializedName = @"code", PossibleTypes = new [] { typeof(string) })] string Code { get; set; } + /// Name of the stage where delay might be present. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Name of the stage where delay might be present.", + SerializedName = @"delayedStage", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? DelayedStage { get; } /// Scheduled date time. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -240,16 +276,16 @@ public partial interface IJobProperties : ReadOnly = false, Description = @"Details of a job run. This field will only be sent for expand details filter.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails Detail { get; set; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = true, Description = @"Gets or sets details for the error.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] ErrorDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] ErrorDetail { get; } /// Describes whether the job is cancellable or not. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -353,23 +389,27 @@ internal partial interface IJobPropertiesInternal { /// Gets or sets additional error info. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } + /// Flag to indicate if all devices associated with the job are lost. + bool? AllDevicesLost { get; set; } /// Reason for cancellation. string CancellationReason { get; set; } /// Error code. string Code { get; set; } + /// Name of the stage where delay might be present. + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? DelayedStage { get; set; } /// Delivery Info of Job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo DeliveryInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo DeliveryInfo { get; set; } /// Scheduled date time. global::System.DateTime? DeliveryInfoScheduledDateTime { get; set; } /// Delivery type of Job. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType? DeliveryType { get; set; } /// Details of a job run. This field will only be sent for expand details filter. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails Detail { get; set; } /// Top level error for the job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get; set; } /// Gets or sets details for the error. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] ErrorDetail { get; set; } /// Describes whether the job is cancellable or not. bool? IsCancellable { get; set; } /// Flag to indicate cancellation of scheduled job. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobProperties.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobProperties.json.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobProperties.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobProperties.json.cs index 6bd14958707c..ee6608b78cb5 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobProperties.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new JobProperties(json) : null; } @@ -77,8 +77,8 @@ internal JobProperties(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.J { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError.FromJson(__jsonError) : Error;} - {_deliveryInfo = If( json?.PropertyT("deliveryInfo"), out var __jsonDeliveryInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDeliveryInfo.FromJson(__jsonDeliveryInfo) : DeliveryInfo;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError.FromJson(__jsonError) : Error;} + {_deliveryInfo = If( json?.PropertyT("deliveryInfo"), out var __jsonDeliveryInfo) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDeliveryInfo.FromJson(__jsonDeliveryInfo) : DeliveryInfo;} {_transferType = If( json?.PropertyT("transferType"), out var __jsonTransferType) ? (string)__jsonTransferType : (string)TransferType;} {_isCancellable = If( json?.PropertyT("isCancellable"), out var __jsonIsCancellable) ? (bool?)__jsonIsCancellable : IsCancellable;} {_isDeletable = If( json?.PropertyT("isDeletable"), out var __jsonIsDeletable) ? (bool?)__jsonIsDeletable : IsDeletable;} @@ -87,11 +87,13 @@ internal JobProperties(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.J {_reverseTransportPreferenceUpdate = If( json?.PropertyT("reverseTransportPreferenceUpdate"), out var __jsonReverseTransportPreferenceUpdate) ? (string)__jsonReverseTransportPreferenceUpdate : (string)ReverseTransportPreferenceUpdate;} {_isPrepareToShipEnabled = If( json?.PropertyT("isPrepareToShipEnabled"), out var __jsonIsPrepareToShipEnabled) ? (bool?)__jsonIsPrepareToShipEnabled : IsPrepareToShipEnabled;} {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} + {_delayedStage = If( json?.PropertyT("delayedStage"), out var __jsonDelayedStage) ? (string)__jsonDelayedStage : (string)DelayedStage;} {_startTime = If( json?.PropertyT("startTime"), out var __jsonStartTime) ? global::System.DateTime.TryParse((string)__jsonStartTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStartTimeValue) ? __jsonStartTimeValue : StartTime : StartTime;} - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetails.FromJson(__jsonDetails) : Detail;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetails.FromJson(__jsonDetails) : Detail;} {_cancellationReason = If( json?.PropertyT("cancellationReason"), out var __jsonCancellationReason) ? (string)__jsonCancellationReason : (string)CancellationReason;} {_deliveryType = If( json?.PropertyT("deliveryType"), out var __jsonDeliveryType) ? (string)__jsonDeliveryType : (string)DeliveryType;} {_isCancellableWithoutFee = If( json?.PropertyT("isCancellableWithoutFee"), out var __jsonIsCancellableWithoutFee) ? (bool?)__jsonIsCancellableWithoutFee : IsCancellableWithoutFee;} + {_allDevicesLost = If( json?.PropertyT("allDevicesLost"), out var __jsonAllDevicesLost) ? (bool?)__jsonAllDevicesLost : AllDevicesLost;} AfterFromJson(json); } @@ -149,6 +151,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M AddIf( null != (((object)this._status)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._status.ToString()) : null, "status" ,container.Add ); } if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._delayedStage)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._delayedStage.ToString()) : null, "delayedStage" ,container.Add ); + } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeReadOnly)) { AddIf( null != this._startTime ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._startTime?.ToString(@"yyyy'-'MM'-'dd'T'HH':'mm':'ss.fffffffK",global::System.Globalization.CultureInfo.InvariantCulture)) : null, "startTime" ,container.Add ); } @@ -162,6 +168,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M { AddIf( null != this._isCancellableWithoutFee ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonBoolean((bool)this._isCancellableWithoutFee) : null, "isCancellableWithoutFee" ,container.Add ); } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._allDevicesLost ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode)new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonBoolean((bool)this._allDevicesLost) : null, "allDevicesLost" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResource.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResource.PowerShell.cs similarity index 66% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResource.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResource.PowerShell.cs index 97005ba512d1..bc5564ab1dea 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResource.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class JobResource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobResource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobResource(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJob /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,181 +103,193 @@ internal JobResource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("SkuDisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuDisplayName = (string) content.GetValueForProperty("SkuDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuDisplayName = (string) content.GetValueForProperty("SkuDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuDisplayName, global::System.Convert.ToString); } if (content.Contains("SkuFamily")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuFamily, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuModel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("SkuModel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuModel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityType, global::System.Convert.ToString); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityUserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuTypeConverter.ConvertFrom); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("DeliveryInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo) content.GetValueForProperty("DeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDeliveryInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo) content.GetValueForProperty("DeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDeliveryInfoTypeConverter.ConvertFrom); } if (content.Contains("IsCancellable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsCancellable = (bool?) content.GetValueForProperty("IsCancellable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsCancellable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsCancellable = (bool?) content.GetValueForProperty("IsCancellable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsCancellable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsDeletable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsDeletable = (bool?) content.GetValueForProperty("IsDeletable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsDeletable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsDeletable = (bool?) content.GetValueForProperty("IsDeletable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsDeletable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsShippingAddressEditable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsShippingAddressEditable = (bool?) content.GetValueForProperty("IsShippingAddressEditable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsShippingAddressEditable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsShippingAddressEditable = (bool?) content.GetValueForProperty("IsShippingAddressEditable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsShippingAddressEditable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReverseShippingDetailsUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).ReverseShippingDetailsUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus?) content.GetValueForProperty("ReverseShippingDetailsUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).ReverseShippingDetailsUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).ReverseShippingDetailsUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus?) content.GetValueForProperty("ReverseShippingDetailsUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).ReverseShippingDetailsUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus.CreateFrom); } if (content.Contains("ReverseTransportPreferenceUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).ReverseTransportPreferenceUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus?) content.GetValueForProperty("ReverseTransportPreferenceUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).ReverseTransportPreferenceUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).ReverseTransportPreferenceUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus?) content.GetValueForProperty("ReverseTransportPreferenceUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).ReverseTransportPreferenceUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus.CreateFrom); } if (content.Contains("IsPrepareToShipEnabled")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsPrepareToShipEnabled = (bool?) content.GetValueForProperty("IsPrepareToShipEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsPrepareToShipEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsPrepareToShipEnabled = (bool?) content.GetValueForProperty("IsPrepareToShipEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsPrepareToShipEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); + } + if (content.Contains("DelayedStage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DelayedStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("DelayedStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DelayedStage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetailsTypeConverter.ConvertFrom); } if (content.Contains("CancellationReason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).CancellationReason = (string) content.GetValueForProperty("CancellationReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).CancellationReason, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).CancellationReason = (string) content.GetValueForProperty("CancellationReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).CancellationReason, global::System.Convert.ToString); } if (content.Contains("DeliveryType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).DeliveryType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType?) content.GetValueForProperty("DeliveryType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).DeliveryType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DeliveryType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType?) content.GetValueForProperty("DeliveryType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DeliveryType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType.CreateFrom); } if (content.Contains("IsCancellableWithoutFee")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsCancellableWithoutFee = (bool?) content.GetValueForProperty("IsCancellableWithoutFee",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsCancellableWithoutFee, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsCancellableWithoutFee = (bool?) content.GetValueForProperty("IsCancellableWithoutFee",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsCancellableWithoutFee, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("AllDevicesLost")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).AllDevicesLost = (bool?) content.GetValueForProperty("AllDevicesLost",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).AllDevicesLost, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("DeliveryInfoScheduledDateTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).DeliveryInfoScheduledDateTime = (global::System.DateTime?) content.GetValueForProperty("DeliveryInfoScheduledDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).DeliveryInfoScheduledDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DeliveryInfoScheduledDateTime = (global::System.DateTime?) content.GetValueForProperty("DeliveryInfoScheduledDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DeliveryInfoScheduledDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -292,175 +304,187 @@ internal JobResource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobPropertiesTypeConverter.ConvertFrom); } if (content.Contains("SystemData")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SystemDataTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemData = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData) content.GetValueForProperty("SystemData",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemData, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SystemDataTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Id")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Id, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Id = (string) content.GetValueForProperty("Id",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Id, global::System.Convert.ToString); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("SkuDisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuDisplayName = (string) content.GetValueForProperty("SkuDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuDisplayName = (string) content.GetValueForProperty("SkuDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuDisplayName, global::System.Convert.ToString); } if (content.Contains("SkuFamily")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuFamily, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuModel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("SkuModel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuModel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityType, global::System.Convert.ToString); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityUserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuTypeConverter.ConvertFrom); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("SystemDataCreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataCreatedBy = (string) content.GetValueForProperty("SystemDataCreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataCreatedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataCreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataCreatedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataCreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataCreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("DeliveryInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo) content.GetValueForProperty("DeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDeliveryInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DeliveryInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo) content.GetValueForProperty("DeliveryInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DeliveryInfo, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDeliveryInfoTypeConverter.ConvertFrom); } if (content.Contains("IsCancellable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsCancellable = (bool?) content.GetValueForProperty("IsCancellable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsCancellable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsCancellable = (bool?) content.GetValueForProperty("IsCancellable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsCancellable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsDeletable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsDeletable = (bool?) content.GetValueForProperty("IsDeletable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsDeletable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsDeletable = (bool?) content.GetValueForProperty("IsDeletable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsDeletable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IsShippingAddressEditable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsShippingAddressEditable = (bool?) content.GetValueForProperty("IsShippingAddressEditable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsShippingAddressEditable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsShippingAddressEditable = (bool?) content.GetValueForProperty("IsShippingAddressEditable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsShippingAddressEditable, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReverseShippingDetailsUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).ReverseShippingDetailsUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus?) content.GetValueForProperty("ReverseShippingDetailsUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).ReverseShippingDetailsUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).ReverseShippingDetailsUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus?) content.GetValueForProperty("ReverseShippingDetailsUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).ReverseShippingDetailsUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus.CreateFrom); } if (content.Contains("ReverseTransportPreferenceUpdate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).ReverseTransportPreferenceUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus?) content.GetValueForProperty("ReverseTransportPreferenceUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).ReverseTransportPreferenceUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).ReverseTransportPreferenceUpdate = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus?) content.GetValueForProperty("ReverseTransportPreferenceUpdate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).ReverseTransportPreferenceUpdate, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus.CreateFrom); } if (content.Contains("IsPrepareToShipEnabled")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsPrepareToShipEnabled = (bool?) content.GetValueForProperty("IsPrepareToShipEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsPrepareToShipEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsPrepareToShipEnabled = (bool?) content.GetValueForProperty("IsPrepareToShipEnabled",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsPrepareToShipEnabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); + } + if (content.Contains("DelayedStage")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DelayedStage = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("DelayedStage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DelayedStage, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); } if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).StartTime = (global::System.DateTime?) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDetailsTypeConverter.ConvertFrom); } if (content.Contains("CancellationReason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).CancellationReason = (string) content.GetValueForProperty("CancellationReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).CancellationReason, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).CancellationReason = (string) content.GetValueForProperty("CancellationReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).CancellationReason, global::System.Convert.ToString); } if (content.Contains("DeliveryType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).DeliveryType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType?) content.GetValueForProperty("DeliveryType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).DeliveryType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DeliveryType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType?) content.GetValueForProperty("DeliveryType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DeliveryType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType.CreateFrom); } if (content.Contains("IsCancellableWithoutFee")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsCancellableWithoutFee = (bool?) content.GetValueForProperty("IsCancellableWithoutFee",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).IsCancellableWithoutFee, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsCancellableWithoutFee = (bool?) content.GetValueForProperty("IsCancellableWithoutFee",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).IsCancellableWithoutFee, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + } + if (content.Contains("AllDevicesLost")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).AllDevicesLost = (bool?) content.GetValueForProperty("AllDevicesLost",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).AllDevicesLost, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("SystemDataCreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataCreatedByType = (string) content.GetValueForProperty("SystemDataCreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataCreatedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataLastModifiedBy = (string) content.GetValueForProperty("SystemDataLastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataLastModifiedBy, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataLastModifiedByType = (string) content.GetValueForProperty("SystemDataLastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataLastModifiedByType, global::System.Convert.ToString); } if (content.Contains("SystemDataLastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataLastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("SystemDataLastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).SystemDataLastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("ErrorDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).ErrorDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("ErrorDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).ErrorDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("DeliveryInfoScheduledDateTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).DeliveryInfoScheduledDateTime = (global::System.DateTime?) content.GetValueForProperty("DeliveryInfoScheduledDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal)this).DeliveryInfoScheduledDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DeliveryInfoScheduledDateTime = (global::System.DateTime?) content.GetValueForProperty("DeliveryInfoScheduledDateTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal)this).DeliveryInfoScheduledDateTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResource.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResource.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResource.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResource.TypeConverter.cs index fef9ab9ad23c..6a09a8e9ac30 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResource.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResource.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResource.cs similarity index 75% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResource.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResource.cs index 3f008033c91f..8313d230515b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResource.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResource.cs @@ -3,56 +3,66 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Job Resource. public partial class JobResource : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Resource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResource __resource = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Resource(); /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).AdditionalInfo; } + + /// Flag to indicate if all devices associated with the job are lost. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] + public bool? AllDevicesLost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).AllDevicesLost; } /// Reason for cancellation. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public string CancellationReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).CancellationReason; } + public string CancellationReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).CancellationReason; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).Code = value ?? null; } + + /// Name of the stage where delay might be present. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? DelayedStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).DelayedStage; } /// Scheduled date time. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public global::System.DateTime? DeliveryInfoScheduledDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).DeliveryInfoScheduledDateTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).DeliveryInfoScheduledDateTime = value ?? default(global::System.DateTime); } + public global::System.DateTime? DeliveryInfoScheduledDateTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).DeliveryInfoScheduledDateTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).DeliveryInfoScheduledDateTime = value ?? default(global::System.DateTime); } /// Delivery type of Job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.FormatTable(Index = 7)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType? DeliveryType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).DeliveryType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).DeliveryType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType? DeliveryType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).DeliveryType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).DeliveryType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType)""); } /// Details of a job run. This field will only be sent for expand details filter. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.FormatTable(Index = 8)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).Detail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).Detail = value ?? null /* model class */; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).ErrorDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).ErrorDetail; } /// Backing field for property. private string _id; @@ -65,52 +75,52 @@ public partial class JobResource : /// Msi identity of the resource [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).Identity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity Identity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).Identity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).Identity = value ?? null /* model class */; } /// Service Principal Id backing the Msi [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).IdentityPrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).IdentityPrincipalId; } /// Home Tenant Id [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).IdentityTenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).IdentityTenantId; } /// Identity type [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.FormatTable(Index = 6)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).IdentityType = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).IdentityType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).IdentityType = value ?? null; } /// User Assigned Identities [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).IdentityUserAssignedIdentity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).IdentityUserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).IdentityUserAssignedIdentity = value ?? null /* model class */; } /// Describes whether the job is cancellable or not. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public bool? IsCancellable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsCancellable; } + public bool? IsCancellable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsCancellable; } /// Flag to indicate cancellation of scheduled job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public bool? IsCancellableWithoutFee { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsCancellableWithoutFee; } + public bool? IsCancellableWithoutFee { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsCancellableWithoutFee; } /// Describes whether the job is deletable or not. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public bool? IsDeletable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsDeletable; } + public bool? IsDeletable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsDeletable; } /// Is Prepare To Ship Enabled on this job [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public bool? IsPrepareToShipEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsPrepareToShipEnabled; } + public bool? IsPrepareToShipEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsPrepareToShipEnabled; } /// Describes whether the shipping address is editable or not. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public bool? IsShippingAddressEditable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsShippingAddressEditable; } + public bool? IsShippingAddressEditable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsShippingAddressEditable; } /// /// The location of the resource. This will be one of the supported and registered Azure Regions (e.g. West US, East US, Southeast @@ -119,93 +129,99 @@ public partial class JobResource : /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.FormatTable(Index = 2)] - public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).Location = value ; } + public string Location { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).Location; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).Location = value ; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).Message = value ?? null; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).AdditionalInfo = value; } + + /// Internal Acessors for AllDevicesLost + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.AllDevicesLost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).AllDevicesLost; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).AllDevicesLost = value; } /// Internal Acessors for CancellationReason - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.CancellationReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).CancellationReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).CancellationReason = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.CancellationReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).CancellationReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).CancellationReason = value; } + + /// Internal Acessors for DelayedStage + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.DelayedStage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).DelayedStage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).DelayedStage = value; } /// Internal Acessors for DeliveryInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.DeliveryInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).DeliveryInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).DeliveryInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.DeliveryInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).DeliveryInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).DeliveryInfo = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).Error = value; } /// Internal Acessors for ErrorDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).ErrorDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.ErrorDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).ErrorDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).ErrorDetail = value; } /// Internal Acessors for Id - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.Id { get => this._id; set { {_id = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.Id { get => this._id; set { {_id = value;} } } /// Internal Acessors for IsCancellable - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.IsCancellable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsCancellable; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsCancellable = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.IsCancellable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsCancellable; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsCancellable = value; } /// Internal Acessors for IsCancellableWithoutFee - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.IsCancellableWithoutFee { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsCancellableWithoutFee; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsCancellableWithoutFee = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.IsCancellableWithoutFee { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsCancellableWithoutFee; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsCancellableWithoutFee = value; } /// Internal Acessors for IsDeletable - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.IsDeletable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsDeletable; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsDeletable = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.IsDeletable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsDeletable; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsDeletable = value; } /// Internal Acessors for IsPrepareToShipEnabled - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.IsPrepareToShipEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsPrepareToShipEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsPrepareToShipEnabled = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.IsPrepareToShipEnabled { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsPrepareToShipEnabled; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsPrepareToShipEnabled = value; } /// Internal Acessors for IsShippingAddressEditable - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.IsShippingAddressEditable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsShippingAddressEditable; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).IsShippingAddressEditable = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.IsShippingAddressEditable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsShippingAddressEditable; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).IsShippingAddressEditable = value; } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobProperties()); set { {_property = value;} } } /// Internal Acessors for ReverseShippingDetailsUpdate - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.ReverseShippingDetailsUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).ReverseShippingDetailsUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).ReverseShippingDetailsUpdate = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.ReverseShippingDetailsUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).ReverseShippingDetailsUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).ReverseShippingDetailsUpdate = value; } /// Internal Acessors for ReverseTransportPreferenceUpdate - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.ReverseTransportPreferenceUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).ReverseTransportPreferenceUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).ReverseTransportPreferenceUpdate = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.ReverseTransportPreferenceUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).ReverseTransportPreferenceUpdate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).ReverseTransportPreferenceUpdate = value; } /// Internal Acessors for StartTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).StartTime = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).StartTime; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).StartTime = value; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).Status = value; } /// Internal Acessors for SystemData - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SystemData()); set { {_systemData = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SystemData()); set { {_systemData = value;} } } /// Internal Acessors for SystemDataCreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).CreatedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).CreatedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).CreatedAt = value; } /// Internal Acessors for SystemDataCreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).CreatedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).CreatedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).CreatedBy = value; } /// Internal Acessors for SystemDataCreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).CreatedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).CreatedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).CreatedByType = value; } /// Internal Acessors for SystemDataLastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).LastModifiedAt = value; } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).LastModifiedAt; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).LastModifiedAt = value; } /// Internal Acessors for SystemDataLastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).LastModifiedBy = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).LastModifiedBy; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).LastModifiedBy = value; } /// Internal Acessors for SystemDataLastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).LastModifiedByType = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).LastModifiedByType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).LastModifiedByType = value; } /// Internal Acessors for Type - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceInternal.Type { get => this._type; set { {_type = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceInternal.Type { get => this._type; set { {_type = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).IdentityPrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).IdentityPrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).IdentityPrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).IdentityTenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).IdentityTenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).IdentityTenantId = value; } /// Backing field for property. private string _name; @@ -216,94 +232,102 @@ public partial class JobResource : public string Name { get => this._name; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties _property; /// Properties of a job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobProperties()); set => this._property = value; } /// The Editable status for Reverse Shipping Address and Contact Info [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus? ReverseShippingDetailsUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).ReverseShippingDetailsUpdate; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus? ReverseShippingDetailsUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).ReverseShippingDetailsUpdate; } /// The Editable status for Reverse Transport preferences [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus? ReverseTransportPreferenceUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).ReverseTransportPreferenceUpdate; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseTransportPreferenceEditStatus? ReverseTransportPreferenceUpdate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).ReverseTransportPreferenceUpdate; } /// The sku type. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).Sku = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku Sku { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).Sku; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).Sku = value ; } /// The display name of the sku. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public string SkuDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).SkuDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).SkuDisplayName = value ?? null; } + public string SkuDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).SkuDisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).SkuDisplayName = value ?? null; } /// The sku family. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).SkuFamily = value ?? null; } + public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).SkuFamily; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).SkuFamily = value ?? null; } + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? SkuModel { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).SkuModel; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).SkuModel = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName)""); } /// The sku name. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.FormatTable(Index = 5)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).SkuName = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).SkuName = value ; } /// Time at which the job was started in UTC ISO 8601 format. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).StartTime; } + public global::System.DateTime? StartTime { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).StartTime; } /// Name of the stage which is in progress. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.FormatTable(Index = 3)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).Status; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).Status; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData _systemData; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData _systemData; /// Metadata pertaining to creation and last modification of the resource. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SystemData()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData SystemData { get => (this._systemData = this._systemData ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SystemData()); } /// The timestamp of resource creation (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).CreatedAt; } + public global::System.DateTime? SystemDataCreatedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).CreatedAt; } /// A string identifier for the identity that created the resource [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).CreatedBy; } + public string SystemDataCreatedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).CreatedBy; } /// /// The type of identity that created the resource: user, application, managedIdentity /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).CreatedByType; } + public string SystemDataCreatedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).CreatedByType; } /// The timestamp of resource last modification (UTC) [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).LastModifiedAt; } + public global::System.DateTime? SystemDataLastModifiedAt { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).LastModifiedAt; } /// A string identifier for the identity that last modified the resource [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).LastModifiedBy; } + public string SystemDataLastModifiedBy { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).LastModifiedBy; } /// /// The type of identity that last modified the resource: user, application, managedIdentity /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)SystemData).LastModifiedByType; } + public string SystemDataLastModifiedByType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)SystemData).LastModifiedByType; } /// /// The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across @@ -311,17 +335,17 @@ public partial class JobResource : /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)__resource).Tag = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags Tag { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).Tag; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)__resource).Tag = value ?? null /* model class */; } /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.DoNotFormat] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).Target = value ?? null; } /// Type of the data transfer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] [Microsoft.Azure.PowerShell.Cmdlets.DataBox.FormatTable(Index = 4)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType TransferType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).TransferType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobPropertiesInternal)Property).TransferType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType TransferType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).TransferType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobPropertiesInternal)Property).TransferType = value ; } /// Backing field for property. private string _type; @@ -352,7 +376,7 @@ public JobResource() /// Job Resource. public partial interface IJobResource : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResource + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResource { /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -360,8 +384,16 @@ public partial interface IJobResource : ReadOnly = true, Description = @"Gets or sets additional error info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; } + /// Flag to indicate if all devices associated with the job are lost. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Flag to indicate if all devices associated with the job are lost.", + SerializedName = @"allDevicesLost", + PossibleTypes = new [] { typeof(bool) })] + bool? AllDevicesLost { get; } /// Reason for cancellation. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -378,6 +410,14 @@ public partial interface IJobResource : SerializedName = @"code", PossibleTypes = new [] { typeof(string) })] string Code { get; set; } + /// Name of the stage where delay might be present. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Name of the stage where delay might be present.", + SerializedName = @"delayedStage", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? DelayedStage { get; } /// Scheduled date time. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -400,16 +440,16 @@ public partial interface IJobResource : ReadOnly = false, Description = @"Details of a job run. This field will only be sent for expand details filter.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails Detail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails Detail { get; set; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = true, Description = @"Gets or sets details for the error.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] ErrorDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] ErrorDetail { get; } /// Id of the object. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -586,26 +626,30 @@ public partial interface IJobResource : } /// Job Resource. internal partial interface IJobResourceInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal { /// Gets or sets additional error info. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } + /// Flag to indicate if all devices associated with the job are lost. + bool? AllDevicesLost { get; set; } /// Reason for cancellation. string CancellationReason { get; set; } /// Error code. string Code { get; set; } + /// Name of the stage where delay might be present. + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? DelayedStage { get; set; } /// Delivery Info of Job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDeliveryInfo DeliveryInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDeliveryInfo DeliveryInfo { get; set; } /// Scheduled date time. global::System.DateTime? DeliveryInfoScheduledDateTime { get; set; } /// Delivery type of Job. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.JobDeliveryType? DeliveryType { get; set; } /// Details of a job run. This field will only be sent for expand details filter. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails Detail { get; set; } /// Top level error for the job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get; set; } /// Gets or sets details for the error. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] ErrorDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] ErrorDetail { get; set; } /// Id of the object. string Id { get; set; } /// Describes whether the job is cancellable or not. @@ -623,7 +667,7 @@ internal partial interface IJobResourceInternal : /// Name of the object. string Name { get; set; } /// Properties of a job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobProperties Property { get; set; } /// The Editable status for Reverse Shipping Address and Contact Info Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ReverseShippingDetailsEditStatus? ReverseShippingDetailsUpdate { get; set; } /// The Editable status for Reverse Transport preferences @@ -633,7 +677,7 @@ internal partial interface IJobResourceInternal : /// Name of the stage which is in progress. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? Status { get; set; } /// Metadata pertaining to creation and last modification of the resource. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData SystemData { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData SystemData { get; set; } /// The timestamp of resource creation (UTC) global::System.DateTime? SystemDataCreatedAt { get; set; } /// A string identifier for the identity that created the resource diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResource.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResource.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResource.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResource.json.cs index 1a47e26eebec..46787752de4f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResource.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobResource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new JobResource(json) : null; } @@ -77,9 +77,9 @@ internal JobResource(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.Jso { return; } - __resource = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Resource(json); - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobProperties.FromJson(__jsonProperties) : Property;} - {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SystemData.FromJson(__jsonSystemData) : SystemData;} + __resource = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Resource(json); + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobProperties.FromJson(__jsonProperties) : Property;} + {_systemData = If( json?.PropertyT("systemData"), out var __jsonSystemData) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SystemData.FromJson(__jsonSystemData) : SystemData;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_id = If( json?.PropertyT("id"), out var __jsonId) ? (string)__jsonId : (string)Id;} {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceList.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceList.PowerShell.cs similarity index 84% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceList.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceList.PowerShell.cs index a83516cf6955..0ac195520599 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceList.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class JobResourceList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobResourceList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobResourceList(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJob /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,17 +103,17 @@ internal JobResourceList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,11 +128,11 @@ internal JobResourceList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResourceTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResourceTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceList.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceList.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceList.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceList.TypeConverter.cs index 377096149047..aa6633a0cf51 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceList.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceList.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceList.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceList.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceList.cs index 1285cb6c4d76..dabf9e06c4a3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceList.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceList.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Job Resource Collection public partial class JobResourceList : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceList, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceList, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceListInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class JobResourceList : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource[] _value; /// List of job resources. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public JobResourceList() @@ -51,8 +51,8 @@ public partial interface IJobResourceList : ReadOnly = false, Description = @"List of job resources.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource[] Value { get; set; } } /// Job Resource Collection @@ -62,7 +62,7 @@ internal partial interface IJobResourceListInternal /// Link for the next set of job resources. string NextLink { get; set; } /// List of job resources. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceList.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceList.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceList.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceList.json.cs index a6e288ff1da3..4ad9de870e38 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceList.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobResourceList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new JobResourceList(json) : null; } @@ -77,7 +77,7 @@ internal JobResourceList(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResource.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResource.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameter.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameter.PowerShell.cs similarity index 71% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameter.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameter.PowerShell.cs index d88a64c334e3..35e176391d63 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameter.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameter.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class JobResourceUpdateParameter partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameter DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobResourceUpdateParameter(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameter DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobResourceUpdateParameter(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJob /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameter FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,149 +103,149 @@ internal JobResourceUpdateParameter(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UpdateJobPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UpdateJobPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityTypeConverter.ConvertFrom); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResourceUpdateParameterTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResourceUpdateParameterTagsTypeConverter.ConvertFrom); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UpdateJobDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UpdateJobDetailsTypeConverter.ConvertFrom); } if (content.Contains("DetailPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("DetailPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("DetailPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("DetailContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("DetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("DetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("DetailShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("DetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("DetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DetailKeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailKeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("DetailKeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailKeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailKeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("DetailKeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailKeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityType, global::System.Convert.ToString); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityUserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } if (content.Contains("DetailReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("DetailReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("DetailReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("DetailReturnToCustomerPackageDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails) content.GetValueForProperty("DetailReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails) content.GetValueForProperty("DetailReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetailsTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ReverseShippingDetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ReverseShippingDetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("PreferenceTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferenceEncryptionPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo) content.GetValueForProperty("ReverseShippingDetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo) content.GetValueForProperty("ReverseShippingDetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactInfoTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailIsUpdated = (bool?) content.GetValueForProperty("ReverseShippingDetailIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailIsUpdated = (bool?) content.GetValueForProperty("ReverseShippingDetailIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("PreferenceReverseTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferencePreferredDataCenterRegion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("PreferenceStorageAccountAccessTierPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); } if (content.Contains("EncryptionPreferenceDoubleEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); } if (content.Contains("EncryptionPreferenceHardwareEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); } if (content.Contains("ReturnToCustomerPackageDetailCarrierAccountNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailCarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailTrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); } if (content.Contains("ContactDetailContactName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailContactName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailContactName, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailPhone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailPhone, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhoneExtension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); } if (content.Contains("ContactDetailMobile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailMobile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailMobile, global::System.Convert.ToString); } if (content.Contains("TransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("TransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReverseTransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("ReverseTransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -260,143 +260,143 @@ internal JobResourceUpdateParameter(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UpdateJobPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UpdateJobPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityTypeConverter.ConvertFrom); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResourceUpdateParameterTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResourceUpdateParameterTagsTypeConverter.ConvertFrom); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UpdateJobDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UpdateJobDetailsTypeConverter.ConvertFrom); } if (content.Contains("DetailPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("DetailPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("DetailPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("DetailContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("DetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("DetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("DetailShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("DetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("DetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DetailKeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailKeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("DetailKeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailKeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailKeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("DetailKeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailKeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityType, global::System.Convert.ToString); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityUserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } if (content.Contains("DetailReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("DetailReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("DetailReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("DetailReturnToCustomerPackageDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails) content.GetValueForProperty("DetailReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).DetailReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails) content.GetValueForProperty("DetailReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).DetailReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetailsTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ReverseShippingDetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ReverseShippingDetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("PreferenceTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferenceEncryptionPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo) content.GetValueForProperty("ReverseShippingDetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo) content.GetValueForProperty("ReverseShippingDetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactInfoTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailIsUpdated = (bool?) content.GetValueForProperty("ReverseShippingDetailIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailIsUpdated = (bool?) content.GetValueForProperty("ReverseShippingDetailIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseShippingDetailIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("PreferenceReverseTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferencePreferredDataCenterRegion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("PreferenceStorageAccountAccessTierPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); } if (content.Contains("EncryptionPreferenceDoubleEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); } if (content.Contains("EncryptionPreferenceHardwareEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); } if (content.Contains("ReturnToCustomerPackageDetailCarrierAccountNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailCarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailTrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); } if (content.Contains("ContactDetailContactName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailContactName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailContactName, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailPhone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailPhone, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhoneExtension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); } if (content.Contains("ContactDetailMobile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ContactDetailMobile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ContactDetailMobile, global::System.Convert.ToString); } if (content.Contains("TransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("TransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReverseTransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("ReverseTransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameter.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameter.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameter.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameter.TypeConverter.cs index d2c13ef0b841..09af992b5b6e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameter.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameter.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameter ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameter ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameter).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameter).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameter.cs similarity index 80% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameter.cs index da75d5c552d4..914f88ffed3a 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameter.cs @@ -3,187 +3,187 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The JobResourceUpdateParameter. public partial class JobResourceUpdateParameter : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameter, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameter, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal { /// Contact name of the person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailContactName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ContactDetailContactName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ContactDetailContactName = value ?? null; } + public string ContactDetailContactName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ContactDetailContactName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ContactDetailContactName = value ?? null; } /// Mobile number of the contact person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailMobile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ContactDetailMobile; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ContactDetailMobile = value ?? null; } + public string ContactDetailMobile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ContactDetailMobile; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ContactDetailMobile = value ?? null; } /// Phone number of the contact person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailPhone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ContactDetailPhone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ContactDetailPhone = value ?? null; } + public string ContactDetailPhone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ContactDetailPhone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ContactDetailPhone = value ?? null; } /// Phone extension number of the contact person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailPhoneExtension { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ContactDetailPhoneExtension; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ContactDetailPhoneExtension = value ?? null; } + public string ContactDetailPhoneExtension { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ContactDetailPhoneExtension; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ContactDetailPhoneExtension = value ?? null; } /// Contact details for notification and shipping. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails DetailContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).DetailContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).DetailContactDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails DetailContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).DetailContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).DetailContactDetail = value ?? null /* model class */; } /// Key encryption key for the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey DetailKeyEncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).DetailKeyEncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).DetailKeyEncryptionKey = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey DetailKeyEncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).DetailKeyEncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).DetailKeyEncryptionKey = value ?? null /* model class */; } /// Shipping address of the customer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress DetailShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).DetailShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).DetailShippingAddress = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress DetailShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).DetailShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).DetailShippingAddress = value ?? null /* model class */; } /// Defines secondary layer of software-based encryption enablement. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption? EncryptionPreferenceDoubleEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).EncryptionPreferenceDoubleEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).EncryptionPreferenceDoubleEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption? EncryptionPreferenceDoubleEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).EncryptionPreferenceDoubleEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).EncryptionPreferenceDoubleEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption)""); } /// Defines Hardware level encryption (Only for disk) [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).EncryptionPreferenceHardwareEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).EncryptionPreferenceHardwareEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).EncryptionPreferenceHardwareEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).EncryptionPreferenceHardwareEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity _identity; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity _identity; /// Msi identity of the resource [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentity()); set => this._identity = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentity()); set => this._identity = value; } /// Service Principal Id backing the Msi [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).PrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).PrincipalId; } /// Home Tenant Id [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).TenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).TenantId; } /// Identity type [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).Type = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).Type = value ?? null; } /// User Assigned Identities [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).Detail = value; } /// Internal Acessors for DetailPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.DetailPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).DetailPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).DetailPreference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.DetailPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).DetailPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).DetailPreference = value; } /// Internal Acessors for DetailReturnToCustomerPackageDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.DetailReturnToCustomerPackageDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).DetailReturnToCustomerPackageDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).DetailReturnToCustomerPackageDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.DetailReturnToCustomerPackageDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).DetailReturnToCustomerPackageDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).DetailReturnToCustomerPackageDetail = value; } /// Internal Acessors for DetailReverseShippingDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.DetailReverseShippingDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).DetailReverseShippingDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).DetailReverseShippingDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.DetailReverseShippingDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).DetailReverseShippingDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).DetailReverseShippingDetail = value; } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentity()); set { {_identity = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).PrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).TenantId = value; } /// Internal Acessors for PreferenceEncryptionPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.PreferenceEncryptionPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).PreferenceEncryptionPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).PreferenceEncryptionPreference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.PreferenceEncryptionPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).PreferenceEncryptionPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).PreferenceEncryptionPreference = value; } /// Internal Acessors for PreferenceReverseTransportPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.PreferenceReverseTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).PreferenceReverseTransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).PreferenceReverseTransportPreference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.PreferenceReverseTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).PreferenceReverseTransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).PreferenceReverseTransportPreference = value; } /// Internal Acessors for PreferenceTransportPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.PreferenceTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).PreferenceTransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).PreferenceTransportPreference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.PreferenceTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).PreferenceTransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).PreferenceTransportPreference = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UpdateJobProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UpdateJobProperties()); set { {_property = value;} } } /// Internal Acessors for ReverseShippingDetailContactDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.ReverseShippingDetailContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReverseShippingDetailContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReverseShippingDetailContactDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.ReverseShippingDetailContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReverseShippingDetailContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReverseShippingDetailContactDetail = value; } /// Internal Acessors for ReverseShippingDetailIsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.ReverseShippingDetailIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReverseShippingDetailIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReverseShippingDetailIsUpdated = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.ReverseShippingDetailIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReverseShippingDetailIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReverseShippingDetailIsUpdated = value; } /// Internal Acessors for ReverseTransportPreferenceIsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReverseTransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReverseTransportPreferenceIsUpdated = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReverseTransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReverseTransportPreferenceIsUpdated = value; } /// Internal Acessors for TransportPreferenceIsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterInternal.TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).TransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).TransportPreferenceIsUpdated = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterInternal.TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).TransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).TransportPreferenceIsUpdated = value; } /// Preferred data center region. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] PreferencePreferredDataCenterRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).PreferencePreferredDataCenterRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).PreferencePreferredDataCenterRegion = value ?? null /* arrayOf */; } + public string[] PreferencePreferredDataCenterRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).PreferencePreferredDataCenterRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).PreferencePreferredDataCenterRegion = value ?? null /* arrayOf */; } /// Preferences related to the Access Tier of storage accounts. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] PreferenceStorageAccountAccessTierPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).PreferenceStorageAccountAccessTierPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).PreferenceStorageAccountAccessTierPreference = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] PreferenceStorageAccountAccessTierPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).PreferenceStorageAccountAccessTierPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).PreferenceStorageAccountAccessTierPreference = value ?? null /* arrayOf */; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties _property; /// Properties of a job to be updated. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UpdateJobProperties()); set => this._property = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UpdateJobProperties()); set => this._property = value; } /// Carrier Account Number of customer for customer disk. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ReturnToCustomerPackageDetailCarrierAccountNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReturnToCustomerPackageDetailCarrierAccountNumber; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReturnToCustomerPackageDetailCarrierAccountNumber = value ?? null; } + public string ReturnToCustomerPackageDetailCarrierAccountNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReturnToCustomerPackageDetailCarrierAccountNumber; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReturnToCustomerPackageDetailCarrierAccountNumber = value ?? null; } /// Name of the carrier. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ReturnToCustomerPackageDetailCarrierName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReturnToCustomerPackageDetailCarrierName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReturnToCustomerPackageDetailCarrierName = value ?? null; } + public string ReturnToCustomerPackageDetailCarrierName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReturnToCustomerPackageDetailCarrierName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReturnToCustomerPackageDetailCarrierName = value ?? null; } /// Tracking Id of shipment. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ReturnToCustomerPackageDetailTrackingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReturnToCustomerPackageDetailTrackingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReturnToCustomerPackageDetailTrackingId = value ?? null; } + public string ReturnToCustomerPackageDetailTrackingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReturnToCustomerPackageDetailTrackingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReturnToCustomerPackageDetailTrackingId = value ?? null; } /// /// A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared. /// Read only field /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? ReverseShippingDetailIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReverseShippingDetailIsUpdated; } + public bool? ReverseShippingDetailIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReverseShippingDetailIsUpdated; } /// Shipping address where customer wishes to receive the device. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ReverseShippingDetailShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReverseShippingDetailShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReverseShippingDetailShippingAddress = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ReverseShippingDetailShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReverseShippingDetailShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReverseShippingDetailShippingAddress = value ?? null /* model class */; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReverseTransportPreferenceIsUpdated; } + public bool? ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReverseTransportPreferenceIsUpdated; } /// Indicates Shipment Logistics type that the customer preferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? ReverseTransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReverseTransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).ReverseTransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? ReverseTransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReverseTransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).ReverseTransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags _tag; /// /// The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across /// resource groups). /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResourceUpdateParameterTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResourceUpdateParameterTags()); set => this._tag = value; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).TransportPreferenceIsUpdated; } + public bool? TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).TransportPreferenceIsUpdated; } /// Indicates Shipment Logistics type that the customer preferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? TransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).TransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)Property).TransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? TransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).TransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)Property).TransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } /// Creates an new instance. public JobResourceUpdateParameter() @@ -233,24 +233,24 @@ public partial interface IJobResourceUpdateParameter : ReadOnly = false, Description = @"Contact details for notification and shipping.", SerializedName = @"contactDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails DetailContactDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails DetailContactDetail { get; set; } /// Key encryption key for the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = false, Description = @"Key encryption key for the job.", SerializedName = @"keyEncryptionKey", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey DetailKeyEncryptionKey { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey DetailKeyEncryptionKey { get; set; } /// Shipping address of the customer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = false, Description = @"Shipping address of the customer.", SerializedName = @"shippingAddress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress DetailShippingAddress { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress DetailShippingAddress { get; set; } /// Defines secondary layer of software-based encryption enablement. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -297,8 +297,8 @@ public partial interface IJobResourceUpdateParameter : ReadOnly = false, Description = @"User Assigned Identities", SerializedName = @"userAssignedIdentities", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } /// Preferred data center region. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -357,8 +357,8 @@ public partial interface IJobResourceUpdateParameter : ReadOnly = false, Description = @"Shipping address where customer wishes to receive the device.", SerializedName = @"shippingAddress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ReverseShippingDetailShippingAddress { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ReverseShippingDetailShippingAddress { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// @@ -386,8 +386,8 @@ public partial interface IJobResourceUpdateParameter : ReadOnly = false, Description = @"The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups).", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags Tag { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// @@ -421,25 +421,25 @@ internal partial interface IJobResourceUpdateParameterInternal /// Phone extension number of the contact person. string ContactDetailPhoneExtension { get; set; } /// Details of a job to be updated. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails Detail { get; set; } /// Contact details for notification and shipping. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails DetailContactDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails DetailContactDetail { get; set; } /// Key encryption key for the job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey DetailKeyEncryptionKey { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey DetailKeyEncryptionKey { get; set; } /// Preferences related to the order - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences DetailPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences DetailPreference { get; set; } /// Return package details of job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails DetailReturnToCustomerPackageDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails DetailReturnToCustomerPackageDetail { get; set; } /// Reverse Shipping Address and contact details for a job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails DetailReverseShippingDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails DetailReverseShippingDetail { get; set; } /// Shipping address of the customer. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress DetailShippingAddress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress DetailShippingAddress { get; set; } /// Defines secondary layer of software-based encryption enablement. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption? EncryptionPreferenceDoubleEncryption { get; set; } /// Defines Hardware level encryption (Only for disk) Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get; set; } /// Msi identity of the resource - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity Identity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity Identity { get; set; } /// Service Principal Id backing the Msi string IdentityPrincipalId { get; set; } /// Home Tenant Id @@ -447,19 +447,19 @@ internal partial interface IJobResourceUpdateParameterInternal /// Identity type string IdentityType { get; set; } /// User Assigned Identities - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } /// Preferences related to the Encryption. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences PreferenceEncryptionPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences PreferenceEncryptionPreference { get; set; } /// Preferred data center region. string[] PreferencePreferredDataCenterRegion { get; set; } /// Optional Preferences related to the reverse shipment logistics of the sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences PreferenceReverseTransportPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences PreferenceReverseTransportPreference { get; set; } /// Preferences related to the Access Tier of storage accounts. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] PreferenceStorageAccountAccessTierPreference { get; set; } /// Preferences related to the shipment logistics of the sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences PreferenceTransportPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences PreferenceTransportPreference { get; set; } /// Properties of a job to be updated. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties Property { get; set; } /// Carrier Account Number of customer for customer disk. string ReturnToCustomerPackageDetailCarrierAccountNumber { get; set; } /// Name of the carrier. @@ -467,14 +467,14 @@ internal partial interface IJobResourceUpdateParameterInternal /// Tracking Id of shipment. string ReturnToCustomerPackageDetailTrackingId { get; set; } /// Contact Info. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo ReverseShippingDetailContactDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo ReverseShippingDetailContactDetail { get; set; } /// /// A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared. /// Read only field /// bool? ReverseShippingDetailIsUpdated { get; set; } /// Shipping address where customer wishes to receive the device. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ReverseShippingDetailShippingAddress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ReverseShippingDetailShippingAddress { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// @@ -485,7 +485,7 @@ internal partial interface IJobResourceUpdateParameterInternal /// The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across /// resource groups). /// - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags Tag { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameter.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameter.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameter.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameter.json.cs index 99bc01f3ab94..bca0b15086bf 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameter.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameter.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobResourceUpdateParameter partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameter. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameter. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameter. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameter. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameter FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new JobResourceUpdateParameter(json) : null; } @@ -77,9 +77,9 @@ internal JobResourceUpdateParameter(Microsoft.Azure.PowerShell.Cmdlets.DataBox.R { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UpdateJobProperties.FromJson(__jsonProperties) : Property;} - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentity.FromJson(__jsonIdentity) : Identity;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResourceUpdateParameterTags.FromJson(__jsonTags) : Tag;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UpdateJobProperties.FromJson(__jsonProperties) : Property;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentity.FromJson(__jsonIdentity) : Identity;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResourceUpdateParameterTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.PowerShell.cs similarity index 92% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.PowerShell.cs index 44f0fc17b58b..006c5c731278 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -58,29 +58,29 @@ public partial class JobResourceUpdateParameterTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobResourceUpdateParameterTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobResourceUpdateParameterTags(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJob /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,7 +112,7 @@ internal JobResourceUpdateParameterTags(global::System.Collections.IDictionary c } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.TypeConverter.cs index e6948f369913..bd44e9c8d389 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.cs index f375d5338fc8..44ededa55abf 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 /// resource groups). /// public partial class JobResourceUpdateParameterTags : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTagsInternal { /// Creates an new instance. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.dictionary.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.dictionary.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.dictionary.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.dictionary.cs index da063d17b3b7..f57bcb122f75 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.dictionary.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResourceUpdateParameterTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResourceUpdateParameterTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.json.cs index d3a3eb039575..2e7437e7d478 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobResourceUpdateParameterTags.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobResourceUpdateParameterTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -57,13 +57,13 @@ public partial class JobResourceUpdateParameterTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new JobResourceUpdateParameterTags(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobSecrets.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobSecrets.PowerShell.cs similarity index 74% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobSecrets.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobSecrets.PowerShell.cs index 94887121975f..2e6255ea54bb 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobSecrets.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobSecrets.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class JobSecrets partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobSecrets(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobSecrets(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJob /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,49 +103,49 @@ internal JobSecrets(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DcAccessSecurityCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCodeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCodeTypeConverter.ConvertFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } if (content.Contains("DcAccessSecurityCodeReverseDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCodeForwardDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -160,43 +160,43 @@ internal JobSecrets(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("DcAccessSecurityCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCodeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode) content.GetValueForProperty("DcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCodeTypeConverter.ConvertFrom); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } if (content.Contains("DcAccessSecurityCodeReverseDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCodeForwardDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobSecrets.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobSecrets.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobSecrets.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobSecrets.TypeConverter.cs index b2c9c41d7449..6b48f1356ed6 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobSecrets.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobSecrets.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobSecrets.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobSecrets.cs similarity index 80% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobSecrets.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobSecrets.cs index 5a844671f0c3..77ab239d32bb 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobSecrets.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobSecrets.cs @@ -3,69 +3,69 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The base class for the secrets public partial class JobSecrets : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal { /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Code = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode _dcAccessSecurityCode; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode _dcAccessSecurityCode; /// Dc Access Security Code for Customer Managed Shipping [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode DcAccessSecurityCode { get => (this._dcAccessSecurityCode = this._dcAccessSecurityCode ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCode()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode DcAccessSecurityCode { get => (this._dcAccessSecurityCode = this._dcAccessSecurityCode ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCode()); } /// Forward Dc access security code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DcAccessSecurityCodeForwardDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCodeInternal)DcAccessSecurityCode).ForwardDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCodeInternal)DcAccessSecurityCode).ForwardDcAccessCode = value ?? null; } + public string DcAccessSecurityCodeForwardDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCodeInternal)DcAccessSecurityCode).ForwardDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCodeInternal)DcAccessSecurityCode).ForwardDcAccessCode = value ?? null; } /// Reverse Dc access security code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DcAccessSecurityCodeReverseDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCodeInternal)DcAccessSecurityCode).ReverseDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCodeInternal)DcAccessSecurityCode).ReverseDcAccessCode = value ?? null; } + public string DcAccessSecurityCodeReverseDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCodeInternal)DcAccessSecurityCode).ReverseDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCodeInternal)DcAccessSecurityCode).ReverseDcAccessCode = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError _error; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError _error; /// Error while fetching the secrets. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError()); } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Message = value ?? null; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo = value; } /// Internal Acessors for DcAccessSecurityCode - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.DcAccessSecurityCode { get => (this._dcAccessSecurityCode = this._dcAccessSecurityCode ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCode()); set { {_dcAccessSecurityCode = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.DcAccessSecurityCode { get => (this._dcAccessSecurityCode = this._dcAccessSecurityCode ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCode()); set { {_dcAccessSecurityCode = value;} } } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError()); set { {_error = value;} } } /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Target = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator _type; @@ -90,8 +90,8 @@ public partial interface IJobSecrets : ReadOnly = true, Description = @"Gets or sets additional error info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -122,8 +122,8 @@ public partial interface IJobSecrets : ReadOnly = true, Description = @"Gets or sets details for the error.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -155,19 +155,19 @@ internal partial interface IJobSecretsInternal { /// Gets or sets additional error info. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } /// Error code. string Code { get; set; } /// Dc Access Security Code for Customer Managed Shipping - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode DcAccessSecurityCode { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode DcAccessSecurityCode { get; set; } /// Forward Dc access security code. string DcAccessSecurityCodeForwardDcAccessCode { get; set; } /// Reverse Dc access security code. string DcAccessSecurityCodeReverseDcAccessCode { get; set; } /// Gets or sets details for the error. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; set; } /// Error while fetching the secrets. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get; set; } /// The error message parsed from the body of the http error response. string Message { get; set; } /// Gets or sets the target of the error. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobSecrets.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobSecrets.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobSecrets.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobSecrets.json.cs index de034a242f15..3a97f1fa4f61 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobSecrets.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobSecrets.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class JobSecrets partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets interface is polymorphic, and the + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets interface is polymorphic, and the /// precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)) { @@ -104,8 +104,8 @@ internal JobSecrets(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.Json { return; } - {_dcAccessSecurityCode = If( json?.PropertyT("dcAccessSecurityCode"), out var __jsonDcAccessSecurityCode) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCode.FromJson(__jsonDcAccessSecurityCode) : DcAccessSecurityCode;} - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError.FromJson(__jsonError) : Error;} + {_dcAccessSecurityCode = If( json?.PropertyT("dcAccessSecurityCode"), out var __jsonDcAccessSecurityCode) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCode.FromJson(__jsonDcAccessSecurityCode) : DcAccessSecurityCode;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError.FromJson(__jsonError) : Error;} {_type = If( json?.PropertyT("jobSecretsType"), out var __jsonJobSecretsType) ? (string)__jsonJobSecretsType : (string)Type;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobStages.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobStages.PowerShell.cs similarity index 76% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobStages.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobStages.PowerShell.cs index 0817f6fc5a30..1b61117eaec3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobStages.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobStages.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class JobStages partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new JobStages(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new JobStages(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJob /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,29 +103,33 @@ internal JobStages(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("StageName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).StageName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("StageName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).StageName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).StageName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("StageName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).StageName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); } if (content.Contains("DisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).DisplayName, global::System.Convert.ToString); } if (content.Contains("StageStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).StageStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus?) content.GetValueForProperty("StageStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).StageStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).StageStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus?) content.GetValueForProperty("StageStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).StageStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus.CreateFrom); } if (content.Contains("StageTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).StageTime = (global::System.DateTime?) content.GetValueForProperty("StageTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).StageTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).StageTime = (global::System.DateTime?) content.GetValueForProperty("StageTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).StageTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("JobStageDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).JobStageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny) content.GetValueForProperty("JobStageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).JobStageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).JobStageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny) content.GetValueForProperty("JobStageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).JobStageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.AnyTypeConverter.ConvertFrom); + } + if (content.Contains("DelayInformation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).DelayInformation = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails[]) content.GetValueForProperty("DelayInformation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).DelayInformation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDelayDetailsTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,23 +144,27 @@ internal JobStages(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("StageName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).StageName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("StageName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).StageName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).StageName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName?) content.GetValueForProperty("StageName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).StageName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName.CreateFrom); } if (content.Contains("DisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).DisplayName, global::System.Convert.ToString); } if (content.Contains("StageStatus")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).StageStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus?) content.GetValueForProperty("StageStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).StageStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).StageStatus = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus?) content.GetValueForProperty("StageStatus",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).StageStatus, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus.CreateFrom); } if (content.Contains("StageTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).StageTime = (global::System.DateTime?) content.GetValueForProperty("StageTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).StageTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).StageTime = (global::System.DateTime?) content.GetValueForProperty("StageTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).StageTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("JobStageDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).JobStageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny) content.GetValueForProperty("JobStageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal)this).JobStageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).JobStageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny) content.GetValueForProperty("JobStageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).JobStageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.AnyTypeConverter.ConvertFrom); + } + if (content.Contains("DelayInformation")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).DelayInformation = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails[]) content.GetValueForProperty("DelayInformation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal)this).DelayInformation, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDelayDetailsTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobStages.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobStages.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobStages.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobStages.TypeConverter.cs index 2e56415ad996..9d298af107dd 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobStages.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobStages.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobStages.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobStages.cs similarity index 78% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobStages.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobStages.cs index eb083150b6b0..3dc749f30500 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobStages.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobStages.cs @@ -3,16 +3,23 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Job stages. public partial class JobStages : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal { + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails[] _delayInformation; + + /// Delay information for the job stages. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails[] DelayInformation { get => this._delayInformation; } + /// Backing field for property. private string _displayName; @@ -27,20 +34,23 @@ public partial class JobStages : [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny JobStageDetail { get => (this._jobStageDetail = this._jobStageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Any()); } + /// Internal Acessors for DelayInformation + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal.DelayInformation { get => this._delayInformation; set { {_delayInformation = value;} } } + /// Internal Acessors for DisplayName - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal.DisplayName { get => this._displayName; set { {_displayName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal.DisplayName { get => this._displayName; set { {_displayName = value;} } } /// Internal Acessors for JobStageDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal.JobStageDetail { get => (this._jobStageDetail = this._jobStageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Any()); set { {_jobStageDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal.JobStageDetail { get => (this._jobStageDetail = this._jobStageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Any()); set { {_jobStageDetail = value;} } } /// Internal Acessors for StageName - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal.StageName { get => this._stageName; set { {_stageName = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal.StageName { get => this._stageName; set { {_stageName = value;} } } /// Internal Acessors for StageStatus - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal.StageStatus { get => this._stageStatus; set { {_stageStatus = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal.StageStatus { get => this._stageStatus; set { {_stageStatus = value;} } } /// Internal Acessors for StageTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStagesInternal.StageTime { get => this._stageTime; set { {_stageTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStagesInternal.StageTime { get => this._stageTime; set { {_stageTime = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StageName? _stageName; @@ -73,6 +83,14 @@ public JobStages() public partial interface IJobStages : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable { + /// Delay information for the job stages. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Delay information for the job stages.", + SerializedName = @"delayInformation", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails[] DelayInformation { get; } /// Display name of the job stage. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -119,6 +137,8 @@ public partial interface IJobStages : internal partial interface IJobStagesInternal { + /// Delay information for the job stages. + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails[] DelayInformation { get; set; } /// Display name of the job stage. string DisplayName { get; set; } /// Job Stage Details diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobStages.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobStages.json.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobStages.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobStages.json.cs index 07d20842f979..6c951e8d8073 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/JobStages.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/JobStages.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class JobStages partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobStages FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobStages FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new JobStages(json) : null; } @@ -82,6 +82,7 @@ internal JobStages(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonO {_stageStatus = If( json?.PropertyT("stageStatus"), out var __jsonStageStatus) ? (string)__jsonStageStatus : (string)StageStatus;} {_stageTime = If( json?.PropertyT("stageTime"), out var __jsonStageTime) ? global::System.DateTime.TryParse((string)__jsonStageTime, global::System.Globalization.CultureInfo.InvariantCulture, global::System.Globalization.DateTimeStyles.AdjustToUniversal, out var __jsonStageTimeValue) ? __jsonStageTimeValue : StageTime : StageTime;} {_jobStageDetail = If( json?.PropertyT("jobStageDetails"), out var __jsonJobStageDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Any.FromJson(__jsonJobStageDetails) : JobStageDetail;} + {_delayInformation = If( json?.PropertyT("delayInformation"), out var __jsonDelayInformation) ? If( __jsonDelayInformation as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDelayDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobDelayDetails.FromJson(__u) )) ))() : null : DelayInformation;} AfterFromJson(json); } @@ -124,6 +125,18 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M { AddIf( null != this._jobStageDetail ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) this._jobStageDetail.ToJson(null,serializationMode) : null, "jobStageDetails" ,container.Add ); } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeReadOnly)) + { + if (null != this._delayInformation) + { + var __w = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.XNodeArray(); + foreach( var __x in this._delayInformation ) + { + AddIf(__x?.ToJson(null, serializationMode) ,__w.Add); + } + container.Add("delayInformation",__w); + } + } AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/KeyEncryptionKey.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/KeyEncryptionKey.PowerShell.cs similarity index 83% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/KeyEncryptionKey.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/KeyEncryptionKey.PowerShell.cs index 60ad9e2d9fad..13ccb635f4c9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/KeyEncryptionKey.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/KeyEncryptionKey.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class KeyEncryptionKey partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new KeyEncryptionKey(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new KeyEncryptionKey(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKey /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,25 +103,25 @@ internal KeyEncryptionKey(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("KekType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).KekType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.KekType) content.GetValueForProperty("KekType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).KekType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.KekType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).KekType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.KekType) content.GetValueForProperty("KekType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).KekType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.KekType.CreateFrom); } if (content.Contains("IdentityProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).IdentityProperty = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties) content.GetValueForProperty("IdentityProperty",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).IdentityProperty, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IdentityPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).IdentityProperty = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties) content.GetValueForProperty("IdentityProperty",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).IdentityProperty, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IdentityPropertiesTypeConverter.ConvertFrom); } if (content.Contains("KekUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).KekUrl = (string) content.GetValueForProperty("KekUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).KekUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).KekUrl = (string) content.GetValueForProperty("KekUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).KekUrl, global::System.Convert.ToString); } if (content.Contains("KekVaultResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).KekVaultResourceId = (string) content.GetValueForProperty("KekVaultResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).KekVaultResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).KekVaultResourceId = (string) content.GetValueForProperty("KekVaultResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).KekVaultResourceId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,19 +136,19 @@ internal KeyEncryptionKey(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("KekType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).KekType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.KekType) content.GetValueForProperty("KekType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).KekType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.KekType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).KekType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.KekType) content.GetValueForProperty("KekType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).KekType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.KekType.CreateFrom); } if (content.Contains("IdentityProperty")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).IdentityProperty = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties) content.GetValueForProperty("IdentityProperty",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).IdentityProperty, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IdentityPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).IdentityProperty = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties) content.GetValueForProperty("IdentityProperty",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).IdentityProperty, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IdentityPropertiesTypeConverter.ConvertFrom); } if (content.Contains("KekUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).KekUrl = (string) content.GetValueForProperty("KekUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).KekUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).KekUrl = (string) content.GetValueForProperty("KekUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).KekUrl, global::System.Convert.ToString); } if (content.Contains("KekVaultResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).KekVaultResourceId = (string) content.GetValueForProperty("KekVaultResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal)this).KekVaultResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).KekVaultResourceId = (string) content.GetValueForProperty("KekVaultResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal)this).KekVaultResourceId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/KeyEncryptionKey.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/KeyEncryptionKey.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/KeyEncryptionKey.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/KeyEncryptionKey.TypeConverter.cs index dd687df3a444..efed07423aa2 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/KeyEncryptionKey.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/KeyEncryptionKey.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/KeyEncryptionKey.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/KeyEncryptionKey.cs similarity index 93% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/KeyEncryptionKey.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/KeyEncryptionKey.cs index 44c9abbf4121..b91025dd1ac3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/KeyEncryptionKey.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/KeyEncryptionKey.cs @@ -3,22 +3,22 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Encryption key containing details about key to encrypt different keys. public partial class KeyEncryptionKey : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKeyInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKeyInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties _identityProperty; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties _identityProperty; /// Managed identity properties used for key encryption. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties IdentityProperty { get => (this._identityProperty = this._identityProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IdentityProperties()); set => this._identityProperty = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties IdentityProperty { get => (this._identityProperty = this._identityProperty ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IdentityProperties()); set => this._identityProperty = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.KekType _kekType; @@ -57,8 +57,8 @@ public partial interface IKeyEncryptionKey : ReadOnly = false, Description = @"Managed identity properties used for key encryption.", SerializedName = @"identityProperties", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties IdentityProperty { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties IdentityProperty { get; set; } /// Type of encryption key used for key encryption. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, @@ -90,7 +90,7 @@ internal partial interface IKeyEncryptionKeyInternal { /// Managed identity properties used for key encryption. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IIdentityProperties IdentityProperty { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IIdentityProperties IdentityProperty { get; set; } /// Type of encryption key used for key encryption. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.KekType KekType { get; set; } /// Key encryption key. It is required in case of Customer managed KekType. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/KeyEncryptionKey.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/KeyEncryptionKey.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/KeyEncryptionKey.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/KeyEncryptionKey.json.cs index d2f979992878..d5148d79d051 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/KeyEncryptionKey.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/KeyEncryptionKey.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class KeyEncryptionKey partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new KeyEncryptionKey(json) : null; } @@ -78,7 +78,7 @@ internal KeyEncryptionKey(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Jso return; } {_kekType = If( json?.PropertyT("kekType"), out var __jsonKekType) ? (string)__jsonKekType : (string)KekType;} - {_identityProperty = If( json?.PropertyT("identityProperties"), out var __jsonIdentityProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IdentityProperties.FromJson(__jsonIdentityProperties) : IdentityProperty;} + {_identityProperty = If( json?.PropertyT("identityProperties"), out var __jsonIdentityProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IdentityProperties.FromJson(__jsonIdentityProperties) : IdentityProperty;} {_kekUrl = If( json?.PropertyT("kekUrl"), out var __jsonKekUrl) ? (string)__jsonKekUrl : (string)KekUrl;} {_kekVaultResourceId = If( json?.PropertyT("kekVaultResourceID"), out var __jsonKekVaultResourceId) ? (string)__jsonKekVaultResourceId : (string)KekVaultResourceId;} AfterFromJson(json); diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/LastMitigationActionOnJob.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/LastMitigationActionOnJob.PowerShell.cs similarity index 87% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/LastMitigationActionOnJob.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/LastMitigationActionOnJob.PowerShell.cs index 36cf2a4491f1..e45d3f57b076 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/LastMitigationActionOnJob.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/LastMitigationActionOnJob.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class LastMitigationActionOnJob partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new LastMitigationActionOnJob(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new LastMitigationActionOnJob(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILas /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,21 +103,21 @@ internal LastMitigationActionOnJob(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("ActionDateTimeInUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJobInternal)this).ActionDateTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("ActionDateTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJobInternal)this).ActionDateTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJobInternal)this).ActionDateTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("ActionDateTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJobInternal)this).ActionDateTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("IsPerformedByCustomer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJobInternal)this).IsPerformedByCustomer = (bool?) content.GetValueForProperty("IsPerformedByCustomer",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJobInternal)this).IsPerformedByCustomer, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJobInternal)this).IsPerformedByCustomer = (bool?) content.GetValueForProperty("IsPerformedByCustomer",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJobInternal)this).IsPerformedByCustomer, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("CustomerResolution")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJobInternal)this).CustomerResolution = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode?) content.GetValueForProperty("CustomerResolution",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJobInternal)this).CustomerResolution, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJobInternal)this).CustomerResolution = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode?) content.GetValueForProperty("CustomerResolution",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJobInternal)this).CustomerResolution, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,15 +132,15 @@ internal LastMitigationActionOnJob(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("ActionDateTimeInUtc")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJobInternal)this).ActionDateTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("ActionDateTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJobInternal)this).ActionDateTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJobInternal)this).ActionDateTimeInUtc = (global::System.DateTime?) content.GetValueForProperty("ActionDateTimeInUtc",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJobInternal)this).ActionDateTimeInUtc, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("IsPerformedByCustomer")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJobInternal)this).IsPerformedByCustomer = (bool?) content.GetValueForProperty("IsPerformedByCustomer",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJobInternal)this).IsPerformedByCustomer, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJobInternal)this).IsPerformedByCustomer = (bool?) content.GetValueForProperty("IsPerformedByCustomer",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJobInternal)this).IsPerformedByCustomer, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("CustomerResolution")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJobInternal)this).CustomerResolution = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode?) content.GetValueForProperty("CustomerResolution",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJobInternal)this).CustomerResolution, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJobInternal)this).CustomerResolution = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode?) content.GetValueForProperty("CustomerResolution",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJobInternal)this).CustomerResolution, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/LastMitigationActionOnJob.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/LastMitigationActionOnJob.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/LastMitigationActionOnJob.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/LastMitigationActionOnJob.TypeConverter.cs index 2b810a4427b1..8cf65a5fb292 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/LastMitigationActionOnJob.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/LastMitigationActionOnJob.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/LastMitigationActionOnJob.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/LastMitigationActionOnJob.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/LastMitigationActionOnJob.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/LastMitigationActionOnJob.cs index f39b27020759..3a8f2cce2d66 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/LastMitigationActionOnJob.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/LastMitigationActionOnJob.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Last Mitigation Action Performed On Job public partial class LastMitigationActionOnJob : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJobInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJobInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/LastMitigationActionOnJob.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/LastMitigationActionOnJob.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/LastMitigationActionOnJob.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/LastMitigationActionOnJob.json.cs index 9ea09f9f7dd4..cbd38e849a8d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/LastMitigationActionOnJob.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/LastMitigationActionOnJob.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class LastMitigationActionOnJob partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ILastMitigationActionOnJob FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ILastMitigationActionOnJob FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new LastMitigationActionOnJob(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ManagedDiskDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ManagedDiskDetails.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ManagedDiskDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ManagedDiskDetails.PowerShell.cs index 9d4851bf8f5b..72448ac01b65 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ManagedDiskDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ManagedDiskDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ManagedDiskDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ManagedDiskDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ManagedDiskDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMan /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,25 +103,25 @@ internal ManagedDiskDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetailsInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetailsInternal)this).ResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetailsInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetailsInternal)this).ResourceGroupId, global::System.Convert.ToString); } if (content.Contains("StagingStorageAccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetailsInternal)this).StagingStorageAccountId = (string) content.GetValueForProperty("StagingStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetailsInternal)this).StagingStorageAccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetailsInternal)this).StagingStorageAccountId = (string) content.GetValueForProperty("StagingStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetailsInternal)this).StagingStorageAccountId, global::System.Convert.ToString); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("SharePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).SharePassword = (string) content.GetValueForProperty("SharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).SharePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).SharePassword = (string) content.GetValueForProperty("SharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).SharePassword, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,19 +136,19 @@ internal ManagedDiskDetails(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("ResourceGroupId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetailsInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetailsInternal)this).ResourceGroupId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetailsInternal)this).ResourceGroupId = (string) content.GetValueForProperty("ResourceGroupId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetailsInternal)this).ResourceGroupId, global::System.Convert.ToString); } if (content.Contains("StagingStorageAccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetailsInternal)this).StagingStorageAccountId = (string) content.GetValueForProperty("StagingStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetailsInternal)this).StagingStorageAccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetailsInternal)this).StagingStorageAccountId = (string) content.GetValueForProperty("StagingStorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetailsInternal)this).StagingStorageAccountId, global::System.Convert.ToString); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("SharePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).SharePassword = (string) content.GetValueForProperty("SharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).SharePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).SharePassword = (string) content.GetValueForProperty("SharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).SharePassword, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ManagedDiskDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ManagedDiskDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ManagedDiskDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ManagedDiskDetails.TypeConverter.cs index 426aee3e9361..f0d02a34c24c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ManagedDiskDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ManagedDiskDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ManagedDiskDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ManagedDiskDetails.cs similarity index 91% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ManagedDiskDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ManagedDiskDetails.cs index d7095bf66987..19672f2cf7c1 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ManagedDiskDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ManagedDiskDetails.cs @@ -3,25 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Details of the managed disks. public partial class ManagedDiskDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails __dataAccountDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails __dataAccountDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetails(); /// Account Type of the data to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType DataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)__dataAccountDetails).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)__dataAccountDetails).DataAccountType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType DataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)__dataAccountDetails).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)__dataAccountDetails).DataAccountType = value ; } /// Backing field for property. private string _resourceGroupId; @@ -38,7 +38,7 @@ public partial class ManagedDiskDetails : /// numbers and these characters : @#\-$%^!+=;:_()]+ /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string SharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)__dataAccountDetails).SharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)__dataAccountDetails).SharePassword = value ?? null; } + public string SharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)__dataAccountDetails).SharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)__dataAccountDetails).SharePassword = value ?? null; } /// Backing field for property. private string _stagingStorageAccountId; @@ -70,7 +70,7 @@ public ManagedDiskDetails() /// Details of the managed disks. public partial interface IManagedDiskDetails : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails { /// Resource Group Id of the compute disks. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -94,7 +94,7 @@ public partial interface IManagedDiskDetails : } /// Details of the managed disks. internal partial interface IManagedDiskDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal { /// Resource Group Id of the compute disks. string ResourceGroupId { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ManagedDiskDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ManagedDiskDetails.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ManagedDiskDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ManagedDiskDetails.json.cs index c8870397fd6a..fe842efcba64 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ManagedDiskDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ManagedDiskDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ManagedDiskDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IManagedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IManagedDiskDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ManagedDiskDetails(json) : null; } @@ -77,7 +77,7 @@ internal ManagedDiskDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.J { return; } - __dataAccountDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetails(json); + __dataAccountDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetails(json); {_resourceGroupId = If( json?.PropertyT("resourceGroupId"), out var __jsonResourceGroupId) ? (string)__jsonResourceGroupId : (string)ResourceGroupId;} {_stagingStorageAccountId = If( json?.PropertyT("stagingStorageAccountId"), out var __jsonStagingStorageAccountId) ? (string)__jsonStagingStorageAccountId : (string)StagingStorageAccountId;} AfterFromJson(json); diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MarkDevicesShippedRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MarkDevicesShippedRequest.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MarkDevicesShippedRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MarkDevicesShippedRequest.PowerShell.cs index 1a9484a6c39b..5d73cd57cecd 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MarkDevicesShippedRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MarkDevicesShippedRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class MarkDevicesShippedRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MarkDevicesShippedRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MarkDevicesShippedRequest(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMar /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,21 +103,21 @@ internal MarkDevicesShippedRequest(global::System.Collections.IDictionary conten // actually deserialize if (content.Contains("DeliverToDcPackageDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo) content.GetValueForProperty("DeliverToDcPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo) content.GetValueForProperty("DeliverToDcPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierInfoTypeConverter.ConvertFrom); } if (content.Contains("DeliverToDcPackageDetailCarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailCarrierName = (string) content.GetValueForProperty("DeliverToDcPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailCarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailCarrierName = (string) content.GetValueForProperty("DeliverToDcPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailCarrierName, global::System.Convert.ToString); } if (content.Contains("DeliverToDcPackageDetailTrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailTrackingId = (string) content.GetValueForProperty("DeliverToDcPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailTrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailTrackingId = (string) content.GetValueForProperty("DeliverToDcPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailTrackingId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,15 +132,15 @@ internal MarkDevicesShippedRequest(global::System.Management.Automation.PSObject // actually deserialize if (content.Contains("DeliverToDcPackageDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo) content.GetValueForProperty("DeliverToDcPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo) content.GetValueForProperty("DeliverToDcPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierInfoTypeConverter.ConvertFrom); } if (content.Contains("DeliverToDcPackageDetailCarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailCarrierName = (string) content.GetValueForProperty("DeliverToDcPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailCarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailCarrierName = (string) content.GetValueForProperty("DeliverToDcPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailCarrierName, global::System.Convert.ToString); } if (content.Contains("DeliverToDcPackageDetailTrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailTrackingId = (string) content.GetValueForProperty("DeliverToDcPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailTrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailTrackingId = (string) content.GetValueForProperty("DeliverToDcPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequestInternal)this).DeliverToDcPackageDetailTrackingId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MarkDevicesShippedRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MarkDevicesShippedRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MarkDevicesShippedRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MarkDevicesShippedRequest.TypeConverter.cs index 27a70ae229b9..52eecb912156 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MarkDevicesShippedRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MarkDevicesShippedRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MarkDevicesShippedRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MarkDevicesShippedRequest.cs similarity index 83% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MarkDevicesShippedRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MarkDevicesShippedRequest.cs index 5b1d7b592172..f9d5fa8dfc71 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MarkDevicesShippedRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MarkDevicesShippedRequest.cs @@ -3,33 +3,33 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The request body to provide the delivery package details of job public partial class MarkDevicesShippedRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequestInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo _deliverToDcPackageDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo _deliverToDcPackageDetail; /// Delivery package details [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo DeliverToDcPackageDetail { get => (this._deliverToDcPackageDetail = this._deliverToDcPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierInfo()); set => this._deliverToDcPackageDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo DeliverToDcPackageDetail { get => (this._deliverToDcPackageDetail = this._deliverToDcPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierInfo()); set => this._deliverToDcPackageDetail = value; } /// Name of the carrier. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DeliverToDcPackageDetailCarrierName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).CarrierName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).CarrierName = value ?? null; } + public string DeliverToDcPackageDetailCarrierName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).CarrierName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).CarrierName = value ?? null; } /// Tracking Id of shipment. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DeliverToDcPackageDetailTrackingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).TrackingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).TrackingId = value ?? null; } + public string DeliverToDcPackageDetailTrackingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).TrackingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)DeliverToDcPackageDetail).TrackingId = value ?? null; } /// Internal Acessors for DeliverToDcPackageDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequestInternal.DeliverToDcPackageDetail { get => (this._deliverToDcPackageDetail = this._deliverToDcPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierInfo()); set { {_deliverToDcPackageDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequestInternal.DeliverToDcPackageDetail { get => (this._deliverToDcPackageDetail = this._deliverToDcPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierInfo()); set { {_deliverToDcPackageDetail = value;} } } /// Creates an new instance. public MarkDevicesShippedRequest() @@ -64,7 +64,7 @@ internal partial interface IMarkDevicesShippedRequestInternal { /// Delivery package details - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo DeliverToDcPackageDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo DeliverToDcPackageDetail { get; set; } /// Name of the carrier. string DeliverToDcPackageDetailCarrierName { get; set; } /// Tracking Id of shipment. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MarkDevicesShippedRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MarkDevicesShippedRequest.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MarkDevicesShippedRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MarkDevicesShippedRequest.json.cs index d4ee7f334859..338a23566958 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MarkDevicesShippedRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MarkDevicesShippedRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MarkDevicesShippedRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMarkDevicesShippedRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMarkDevicesShippedRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new MarkDevicesShippedRequest(json) : null; } @@ -77,7 +77,7 @@ internal MarkDevicesShippedRequest(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Ru { return; } - {_deliverToDcPackageDetail = If( json?.PropertyT("deliverToDcPackageDetails"), out var __jsonDeliverToDcPackageDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierInfo.FromJson(__jsonDeliverToDcPackageDetails) : DeliverToDcPackageDetail;} + {_deliverToDcPackageDetail = If( json?.PropertyT("deliverToDcPackageDetails"), out var __jsonDeliverToDcPackageDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierInfo.FromJson(__jsonDeliverToDcPackageDetails) : DeliverToDcPackageDetail;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequest.PowerShell.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequest.PowerShell.cs index b16b3d6fc7f4..96d0576ead7f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class MitigateJobRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MitigateJobRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MitigateJobRequest(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMit /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,17 +103,17 @@ internal MitigateJobRequest(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CustomerResolutionCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestInternal)this).CustomerResolutionCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode?) content.GetValueForProperty("CustomerResolutionCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestInternal)this).CustomerResolutionCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestInternal)this).CustomerResolutionCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode?) content.GetValueForProperty("CustomerResolutionCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestInternal)this).CustomerResolutionCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom); } if (content.Contains("SerialNumberCustomerResolutionMap")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestInternal)this).SerialNumberCustomerResolutionMap = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap) content.GetValueForProperty("SerialNumberCustomerResolutionMap",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestInternal)this).SerialNumberCustomerResolutionMap, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.MitigateJobRequestSerialNumberCustomerResolutionMapTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestInternal)this).SerialNumberCustomerResolutionMap = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap) content.GetValueForProperty("SerialNumberCustomerResolutionMap",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestInternal)this).SerialNumberCustomerResolutionMap, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.MitigateJobRequestSerialNumberCustomerResolutionMapTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,11 +128,11 @@ internal MitigateJobRequest(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("CustomerResolutionCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestInternal)this).CustomerResolutionCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode?) content.GetValueForProperty("CustomerResolutionCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestInternal)this).CustomerResolutionCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestInternal)this).CustomerResolutionCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode?) content.GetValueForProperty("CustomerResolutionCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestInternal)this).CustomerResolutionCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode.CreateFrom); } if (content.Contains("SerialNumberCustomerResolutionMap")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestInternal)this).SerialNumberCustomerResolutionMap = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap) content.GetValueForProperty("SerialNumberCustomerResolutionMap",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestInternal)this).SerialNumberCustomerResolutionMap, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.MitigateJobRequestSerialNumberCustomerResolutionMapTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestInternal)this).SerialNumberCustomerResolutionMap = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap) content.GetValueForProperty("SerialNumberCustomerResolutionMap",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestInternal)this).SerialNumberCustomerResolutionMap, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.MitigateJobRequestSerialNumberCustomerResolutionMapTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequest.TypeConverter.cs index 7398aaccaf41..99d065219aa3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequest.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequest.cs index 1f40d70c02ec..3c743bf92408 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequest.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The Mitigate Job captured from request body for Mitigate API public partial class MitigateJobRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestInternal { /// Backing field for property. @@ -21,13 +21,13 @@ public partial class MitigateJobRequest : public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.CustomerResolutionCode? CustomerResolutionCode { get => this._customerResolutionCode; set => this._customerResolutionCode = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap _serialNumberCustomerResolutionMap; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap _serialNumberCustomerResolutionMap; /// /// Serial number and the customer resolution code corresponding to each serial number /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap SerialNumberCustomerResolutionMap { get => (this._serialNumberCustomerResolutionMap = this._serialNumberCustomerResolutionMap ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.MitigateJobRequestSerialNumberCustomerResolutionMap()); set => this._serialNumberCustomerResolutionMap = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap SerialNumberCustomerResolutionMap { get => (this._serialNumberCustomerResolutionMap = this._serialNumberCustomerResolutionMap ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.MitigateJobRequestSerialNumberCustomerResolutionMap()); set => this._serialNumberCustomerResolutionMap = value; } /// Creates an new instance. public MitigateJobRequest() @@ -55,8 +55,8 @@ public partial interface IMitigateJobRequest : ReadOnly = false, Description = @"Serial number and the customer resolution code corresponding to each serial number", SerializedName = @"serialNumberCustomerResolutionMap", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap SerialNumberCustomerResolutionMap { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap SerialNumberCustomerResolutionMap { get; set; } } /// The Mitigate Job captured from request body for Mitigate API @@ -68,7 +68,7 @@ internal partial interface IMitigateJobRequestInternal /// /// Serial number and the customer resolution code corresponding to each serial number /// - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap SerialNumberCustomerResolutionMap { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap SerialNumberCustomerResolutionMap { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequest.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequest.json.cs index 4f4c5d992636..d17eb9d5f638 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class MitigateJobRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new MitigateJobRequest(json) : null; } @@ -78,7 +78,7 @@ internal MitigateJobRequest(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.J return; } {_customerResolutionCode = If( json?.PropertyT("customerResolutionCode"), out var __jsonCustomerResolutionCode) ? (string)__jsonCustomerResolutionCode : (string)CustomerResolutionCode;} - {_serialNumberCustomerResolutionMap = If( json?.PropertyT("serialNumberCustomerResolutionMap"), out var __jsonSerialNumberCustomerResolutionMap) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.MitigateJobRequestSerialNumberCustomerResolutionMap.FromJson(__jsonSerialNumberCustomerResolutionMap) : SerialNumberCustomerResolutionMap;} + {_serialNumberCustomerResolutionMap = If( json?.PropertyT("serialNumberCustomerResolutionMap"), out var __jsonSerialNumberCustomerResolutionMap) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.MitigateJobRequestSerialNumberCustomerResolutionMap.FromJson(__jsonSerialNumberCustomerResolutionMap) : SerialNumberCustomerResolutionMap;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.PowerShell.cs similarity index 93% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.PowerShell.cs index 89756ad642e6..02d7bcedb371 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -57,29 +57,29 @@ public partial class MitigateJobRequestSerialNumberCustomerResolutionMap partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new MitigateJobRequestSerialNumberCustomerResolutionMap(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new MitigateJobRequestSerialNumberCustomerResolutionMap(content); } @@ -92,10 +92,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMit /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -114,7 +114,7 @@ internal MitigateJobRequestSerialNumberCustomerResolutionMap(global::System.Coll } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.TypeConverter.cs index 151e15c55824..7f6bd3f5cd0c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.cs similarity index 92% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.cs index 91365c279c4e..b68c6902b804 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -11,8 +11,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 /// Serial number and the customer resolution code corresponding to each serial number /// public partial class MitigateJobRequestSerialNumberCustomerResolutionMap : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMapInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMapInternal { /// diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.dictionary.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.dictionary.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.dictionary.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.dictionary.cs index 6aa42bb84be8..ef531e1fe614 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.dictionary.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.MitigateJobRequestSerialNumberCustomerResolutionMap source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.MitigateJobRequestSerialNumberCustomerResolutionMap source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.json.cs index 2464fea3656d..c446692a804b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/MitigateJobRequestSerialNumberCustomerResolutionMap.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/MitigateJobRequestSerialNumberCustomerResolutionMap.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class MitigateJobRequestSerialNumberCustomerResolutionMap partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IMitigateJobRequestSerialNumberCustomerResolutionMap FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IMitigateJobRequestSerialNumberCustomerResolutionMap FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new MitigateJobRequestSerialNumberCustomerResolutionMap(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/NotificationPreference.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/NotificationPreference.PowerShell.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/NotificationPreference.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/NotificationPreference.PowerShell.cs index 168ad9108353..c015c21df379 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/NotificationPreference.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/NotificationPreference.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class NotificationPreference partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new NotificationPreference(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new NotificationPreference(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INot /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,17 +103,17 @@ internal NotificationPreference(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("StageName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreferenceInternal)this).StageName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.NotificationStageName) content.GetValueForProperty("StageName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreferenceInternal)this).StageName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.NotificationStageName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreferenceInternal)this).StageName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.NotificationStageName) content.GetValueForProperty("StageName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreferenceInternal)this).StageName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.NotificationStageName.CreateFrom); } if (content.Contains("SendNotification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreferenceInternal)this).SendNotification = (bool) content.GetValueForProperty("SendNotification",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreferenceInternal)this).SendNotification, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreferenceInternal)this).SendNotification = (bool) content.GetValueForProperty("SendNotification",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreferenceInternal)this).SendNotification, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,11 +128,11 @@ internal NotificationPreference(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("StageName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreferenceInternal)this).StageName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.NotificationStageName) content.GetValueForProperty("StageName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreferenceInternal)this).StageName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.NotificationStageName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreferenceInternal)this).StageName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.NotificationStageName) content.GetValueForProperty("StageName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreferenceInternal)this).StageName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.NotificationStageName.CreateFrom); } if (content.Contains("SendNotification")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreferenceInternal)this).SendNotification = (bool) content.GetValueForProperty("SendNotification",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreferenceInternal)this).SendNotification, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreferenceInternal)this).SendNotification = (bool) content.GetValueForProperty("SendNotification",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreferenceInternal)this).SendNotification, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/NotificationPreference.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/NotificationPreference.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/NotificationPreference.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/NotificationPreference.TypeConverter.cs index efeeeffed7b1..cd3a091e3324 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/NotificationPreference.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/NotificationPreference.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/NotificationPreference.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/NotificationPreference.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/NotificationPreference.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/NotificationPreference.cs index 0e64bf0a155d..7af127e904d0 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/NotificationPreference.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/NotificationPreference.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Notification preference for a job stage. public partial class NotificationPreference : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreferenceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreferenceInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/NotificationPreference.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/NotificationPreference.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/NotificationPreference.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/NotificationPreference.json.cs index e9d1b098ac8c..9d00a4bb331c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/NotificationPreference.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/NotificationPreference.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class NotificationPreference partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.INotificationPreference FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.INotificationPreference FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new NotificationPreference(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Operation.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Operation.PowerShell.cs similarity index 79% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Operation.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Operation.PowerShell.cs index b584c8920f0d..2e9439048ec8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Operation.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Operation.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class Operation partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Operation(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Operation(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOpe /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,45 +103,45 @@ internal Operation(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.OperationDisplayTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Origin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Origin, global::System.Convert.ToString); } if (content.Contains("IsDataAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -156,39 +156,39 @@ internal Operation(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Display")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.OperationDisplayTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Display = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay) content.GetValueForProperty("Display",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Display, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.OperationDisplayTypeConverter.ConvertFrom); } if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Name, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Name = (string) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Name, global::System.Convert.ToString); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.AnyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.AnyTypeConverter.ConvertFrom); } if (content.Contains("Origin")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).Origin, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Origin = (string) content.GetValueForProperty("Origin",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).Origin, global::System.Convert.ToString); } if (content.Contains("IsDataAction")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).IsDataAction = (bool?) content.GetValueForProperty("IsDataAction",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).IsDataAction, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("DisplayProvider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayProvider = (string) content.GetValueForProperty("DisplayProvider",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayProvider, global::System.Convert.ToString); } if (content.Contains("DisplayResource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayResource = (string) content.GetValueForProperty("DisplayResource",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayResource, global::System.Convert.ToString); } if (content.Contains("DisplayOperation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayOperation = (string) content.GetValueForProperty("DisplayOperation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayOperation, global::System.Convert.ToString); } if (content.Contains("DisplayDescription")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayDescription = (string) content.GetValueForProperty("DisplayDescription",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal)this).DisplayDescription, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Operation.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Operation.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Operation.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Operation.TypeConverter.cs index f9c3b0aaa67e..3e7dd1804535 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Operation.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Operation.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Operation.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Operation.cs similarity index 89% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Operation.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Operation.cs index f84a5546d12f..cec51e304f0c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Operation.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Operation.cs @@ -3,38 +3,38 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Operation entity. public partial class Operation : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay _display; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay _display; /// Operation display values. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.OperationDisplay()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.OperationDisplay()); } /// Localized description of the operation for display purpose. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)Display).Description = value ?? null; } + public string DisplayDescription { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)Display).Description; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)Display).Description = value ?? null; } /// Localized name of the operation for display purpose. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)Display).Operation = value ?? null; } + public string DisplayOperation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)Display).Operation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)Display).Operation = value ?? null; } /// Provider name. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)Display).Provider = value ?? null; } + public string DisplayProvider { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)Display).Provider; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)Display).Provider = value ?? null; } /// Resource name. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)Display).Resource = value ?? null; } + public string DisplayResource { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)Display).Resource; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)Display).Resource = value ?? null; } /// Backing field for property. private bool? _isDataAction; @@ -44,16 +44,16 @@ public partial class Operation : public bool? IsDataAction { get => this._isDataAction; set => this._isDataAction = value; } /// Internal Acessors for Display - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.OperationDisplay()); set { {_display = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal.Display { get => (this._display = this._display ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.OperationDisplay()); set { {_display = value;} } } /// Internal Acessors for Name - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal.Name { get => this._name; set { {_name = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal.Name { get => this._name; set { {_name = value;} } } /// Internal Acessors for Origin - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal.Origin { get => this._origin; set { {_origin = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Any()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.IAny Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Any()); set { {_property = value;} } } /// Backing field for property. private string _name; @@ -161,7 +161,7 @@ internal partial interface IOperationInternal { /// Operation display values. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay Display { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay Display { get; set; } /// Localized description of the operation for display purpose. string DisplayDescription { get; set; } /// Localized name of the operation for display purpose. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Operation.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Operation.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Operation.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Operation.json.cs index a38a5040161b..c8cfa34cc97c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Operation.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Operation.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Operation partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new Operation(json) : null; } @@ -77,7 +77,7 @@ internal Operation(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonO { return; } - {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.OperationDisplay.FromJson(__jsonDisplay) : Display;} + {_display = If( json?.PropertyT("display"), out var __jsonDisplay) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.OperationDisplay.FromJson(__jsonDisplay) : Display;} {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Any.FromJson(__jsonProperties) : Property;} {_origin = If( json?.PropertyT("origin"), out var __jsonOrigin) ? (string)__jsonOrigin : (string)Origin;} diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationDisplay.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationDisplay.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationDisplay.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationDisplay.PowerShell.cs index 40fab47b7f49..e846c38206a7 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationDisplay.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationDisplay.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class OperationDisplay partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationDisplay(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationDisplay(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOpe /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,25 +103,25 @@ internal OperationDisplay(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,19 +136,19 @@ internal OperationDisplay(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Provider")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Provider = (string) content.GetValueForProperty("Provider",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Provider, global::System.Convert.ToString); } if (content.Contains("Resource")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Resource = (string) content.GetValueForProperty("Resource",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Resource, global::System.Convert.ToString); } if (content.Contains("Operation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Operation = (string) content.GetValueForProperty("Operation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Operation, global::System.Convert.ToString); } if (content.Contains("Description")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Description = (string) content.GetValueForProperty("Description",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal)this).Description, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationDisplay.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationDisplay.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationDisplay.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationDisplay.TypeConverter.cs index 91076f3e319c..4e82f553c0bc 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationDisplay.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationDisplay.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationDisplay.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationDisplay.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationDisplay.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationDisplay.cs index 780bf889be43..bc172157b457 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationDisplay.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationDisplay.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Operation display public partial class OperationDisplay : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplayInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplayInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationDisplay.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationDisplay.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationDisplay.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationDisplay.json.cs index 13b31962c315..1810633b4dd9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationDisplay.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationDisplay.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OperationDisplay partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationDisplay FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new OperationDisplay(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationList.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationList.PowerShell.cs similarity index 84% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationList.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationList.PowerShell.cs index 00d4bf99a988..a26bd524b463 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationList.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class OperationList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new OperationList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new OperationList(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOpe /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,17 +103,17 @@ internal OperationList(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.OperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,11 +128,11 @@ internal OperationList(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.OperationTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.OperationTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationList.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationList.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationList.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationList.TypeConverter.cs index 5a8ac739f61d..149fb0ff3763 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationList.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationList.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationList.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationList.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationList.cs index f73326a8bc1a..abc86b766606 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationList.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationList.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Operation Collection. public partial class OperationList : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationList, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationList, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationListInternal { /// Internal Acessors for Value - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationListInternal.Value { get => this._value; set { {_value = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationListInternal.Value { get => this._value; set { {_value = value;} } } /// Backing field for property. private string _nextLink; @@ -24,11 +24,11 @@ public partial class OperationList : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation[] _value; /// List of operations. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation[] Value { get => this._value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation[] Value { get => this._value; } /// Creates an new instance. public OperationList() @@ -54,8 +54,8 @@ public partial interface IOperationList : ReadOnly = true, Description = @"List of operations.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation[] Value { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation[] Value { get; } } /// Operation Collection. @@ -65,7 +65,7 @@ internal partial interface IOperationListInternal /// Link for the next set of operations. string NextLink { get; set; } /// List of operations. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationList.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationList.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationList.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationList.json.cs index b861b1e4ef96..9b29f5240fa4 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/OperationList.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/OperationList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class OperationList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new OperationList(json) : null; } @@ -77,7 +77,7 @@ internal OperationList(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.J { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Operation.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Operation.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierDetails.PowerShell.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierDetails.PowerShell.cs index ca580c6c9168..313a09fdf09c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class PackageCarrierDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PackageCarrierDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PackageCarrierDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPac /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,21 +103,21 @@ internal PackageCarrierDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CarrierAccountNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)this).CarrierAccountNumber = (string) content.GetValueForProperty("CarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)this).CarrierAccountNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)this).CarrierAccountNumber = (string) content.GetValueForProperty("CarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)this).CarrierAccountNumber, global::System.Convert.ToString); } if (content.Contains("CarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)this).CarrierName = (string) content.GetValueForProperty("CarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)this).CarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)this).CarrierName = (string) content.GetValueForProperty("CarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)this).CarrierName, global::System.Convert.ToString); } if (content.Contains("TrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)this).TrackingId = (string) content.GetValueForProperty("TrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)this).TrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)this).TrackingId = (string) content.GetValueForProperty("TrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)this).TrackingId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,15 +132,15 @@ internal PackageCarrierDetails(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("CarrierAccountNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)this).CarrierAccountNumber = (string) content.GetValueForProperty("CarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)this).CarrierAccountNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)this).CarrierAccountNumber = (string) content.GetValueForProperty("CarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)this).CarrierAccountNumber, global::System.Convert.ToString); } if (content.Contains("CarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)this).CarrierName = (string) content.GetValueForProperty("CarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)this).CarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)this).CarrierName = (string) content.GetValueForProperty("CarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)this).CarrierName, global::System.Convert.ToString); } if (content.Contains("TrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)this).TrackingId = (string) content.GetValueForProperty("TrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)this).TrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)this).TrackingId = (string) content.GetValueForProperty("TrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)this).TrackingId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierDetails.TypeConverter.cs index 1a4f2fd0e305..6e531d1151e8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierDetails.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierDetails.cs index fddb2353e287..6fa91b183281 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Package carrier details. public partial class PackageCarrierDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierDetails.json.cs index 1534e102e0c8..79235fe4163b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class PackageCarrierDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new PackageCarrierDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierInfo.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierInfo.PowerShell.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierInfo.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierInfo.PowerShell.cs index 889e735f04dd..1c35753b01bf 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierInfo.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierInfo.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class PackageCarrierInfo partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PackageCarrierInfo(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PackageCarrierInfo(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPac /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,17 +103,17 @@ internal PackageCarrierInfo(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)this).CarrierName = (string) content.GetValueForProperty("CarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)this).CarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)this).CarrierName = (string) content.GetValueForProperty("CarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)this).CarrierName, global::System.Convert.ToString); } if (content.Contains("TrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)this).TrackingId = (string) content.GetValueForProperty("TrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)this).TrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)this).TrackingId = (string) content.GetValueForProperty("TrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)this).TrackingId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,11 +128,11 @@ internal PackageCarrierInfo(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("CarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)this).CarrierName = (string) content.GetValueForProperty("CarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)this).CarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)this).CarrierName = (string) content.GetValueForProperty("CarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)this).CarrierName, global::System.Convert.ToString); } if (content.Contains("TrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)this).TrackingId = (string) content.GetValueForProperty("TrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal)this).TrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)this).TrackingId = (string) content.GetValueForProperty("TrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal)this).TrackingId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierInfo.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierInfo.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierInfo.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierInfo.TypeConverter.cs index 0aed248139aa..794fffdd24a4 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierInfo.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierInfo.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierInfo.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierInfo.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierInfo.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierInfo.cs index 9475e4730597..e75f1f97dc30 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierInfo.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierInfo.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// package carrier info public partial class PackageCarrierInfo : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfoInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfoInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierInfo.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierInfo.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierInfo.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierInfo.json.cs index f11a9031bc3c..4f8ccccbbcae 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageCarrierInfo.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageCarrierInfo.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class PackageCarrierInfo partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierInfo FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new PackageCarrierInfo(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageShippingDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageShippingDetails.PowerShell.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageShippingDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageShippingDetails.PowerShell.cs index e1c932be0863..fefe55806272 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageShippingDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageShippingDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class PackageShippingDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PackageShippingDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PackageShippingDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPac /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,21 +103,21 @@ internal PackageShippingDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("TrackingUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal)this).TrackingUrl = (string) content.GetValueForProperty("TrackingUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal)this).TrackingUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal)this).TrackingUrl = (string) content.GetValueForProperty("TrackingUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal)this).TrackingUrl, global::System.Convert.ToString); } if (content.Contains("CarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal)this).CarrierName = (string) content.GetValueForProperty("CarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal)this).CarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal)this).CarrierName = (string) content.GetValueForProperty("CarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal)this).CarrierName, global::System.Convert.ToString); } if (content.Contains("TrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal)this).TrackingId = (string) content.GetValueForProperty("TrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal)this).TrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal)this).TrackingId = (string) content.GetValueForProperty("TrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal)this).TrackingId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,15 +132,15 @@ internal PackageShippingDetails(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("TrackingUrl")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal)this).TrackingUrl = (string) content.GetValueForProperty("TrackingUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal)this).TrackingUrl, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal)this).TrackingUrl = (string) content.GetValueForProperty("TrackingUrl",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal)this).TrackingUrl, global::System.Convert.ToString); } if (content.Contains("CarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal)this).CarrierName = (string) content.GetValueForProperty("CarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal)this).CarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal)this).CarrierName = (string) content.GetValueForProperty("CarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal)this).CarrierName, global::System.Convert.ToString); } if (content.Contains("TrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal)this).TrackingId = (string) content.GetValueForProperty("TrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal)this).TrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal)this).TrackingId = (string) content.GetValueForProperty("TrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal)this).TrackingId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageShippingDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageShippingDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageShippingDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageShippingDetails.TypeConverter.cs index 9ac656d9d84c..cb94bb0efc1e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageShippingDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageShippingDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageShippingDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageShippingDetails.cs similarity index 93% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageShippingDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageShippingDetails.cs index 58f621f9e2a5..dacd8359def8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageShippingDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageShippingDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// package shipping details public partial class PackageShippingDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal { /// Backing field for property. @@ -21,13 +21,13 @@ public partial class PackageShippingDetails : public string CarrierName { get => this._carrierName; } /// Internal Acessors for CarrierName - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal.CarrierName { get => this._carrierName; set { {_carrierName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal.CarrierName { get => this._carrierName; set { {_carrierName = value;} } } /// Internal Acessors for TrackingId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal.TrackingId { get => this._trackingId; set { {_trackingId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal.TrackingId { get => this._trackingId; set { {_trackingId = value;} } } /// Internal Acessors for TrackingUrl - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetailsInternal.TrackingUrl { get => this._trackingUrl; set { {_trackingUrl = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetailsInternal.TrackingUrl { get => this._trackingUrl; set { {_trackingUrl = value;} } } /// Backing field for property. private string _trackingId; diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageShippingDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageShippingDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageShippingDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageShippingDetails.json.cs index 758da848350c..0f34a6493fbf 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PackageShippingDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PackageShippingDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class PackageShippingDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageShippingDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageShippingDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new PackageShippingDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Preferences.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Preferences.PowerShell.cs similarity index 79% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Preferences.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Preferences.PowerShell.cs index c4d51681cbf9..b19bb8017a73 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Preferences.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Preferences.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class Preferences partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Preferences(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Preferences(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPre /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,53 +103,53 @@ internal Preferences(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("TransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).TransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("TransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).TransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).TransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("TransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).TransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).ReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("ReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).ReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).ReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("ReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).ReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("EncryptionPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).EncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences) content.GetValueForProperty("EncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).EncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).EncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences) content.GetValueForProperty("EncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).EncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferredDataCenterRegion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).PreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).PreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).PreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).PreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("StorageAccountAccessTierPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).StorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("StorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).StorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).StorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("StorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).StorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); } if (content.Contains("EncryptionPreferenceDoubleEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); } if (content.Contains("EncryptionPreferenceHardwareEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); } if (content.Contains("TransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("TransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReverseTransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("ReverseTransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -164,47 +164,47 @@ internal Preferences(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("TransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).TransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("TransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).TransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).TransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("TransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).TransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).ReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("ReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).ReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).ReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("ReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).ReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("EncryptionPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).EncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences) content.GetValueForProperty("EncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).EncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).EncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences) content.GetValueForProperty("EncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).EncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferredDataCenterRegion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).PreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).PreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).PreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).PreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("StorageAccountAccessTierPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).StorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("StorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).StorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).StorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("StorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).StorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); } if (content.Contains("EncryptionPreferenceDoubleEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); } if (content.Contains("EncryptionPreferenceHardwareEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); } if (content.Contains("TransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("TransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReverseTransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("ReverseTransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Preferences.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Preferences.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Preferences.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Preferences.TypeConverter.cs index 5d7dc0322703..b4a274dba539 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Preferences.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Preferences.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Preferences.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Preferences.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Preferences.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Preferences.cs index 5761e534c586..9bca074b0791 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Preferences.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Preferences.cs @@ -3,45 +3,45 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Preferences related to the order public partial class Preferences : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences _encryptionPreference; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences _encryptionPreference; /// Preferences related to the Encryption. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences EncryptionPreference { get => (this._encryptionPreference = this._encryptionPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferences()); set => this._encryptionPreference = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences EncryptionPreference { get => (this._encryptionPreference = this._encryptionPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferences()); set => this._encryptionPreference = value; } /// Defines secondary layer of software-based encryption enablement. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption? EncryptionPreferenceDoubleEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferencesInternal)EncryptionPreference).DoubleEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferencesInternal)EncryptionPreference).DoubleEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption? EncryptionPreferenceDoubleEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferencesInternal)EncryptionPreference).DoubleEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferencesInternal)EncryptionPreference).DoubleEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption)""); } /// Defines Hardware level encryption (Only for disk) [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferencesInternal)EncryptionPreference).HardwareEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferencesInternal)EncryptionPreference).HardwareEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferencesInternal)EncryptionPreference).HardwareEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferencesInternal)EncryptionPreference).HardwareEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption)""); } /// Internal Acessors for EncryptionPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal.EncryptionPreference { get => (this._encryptionPreference = this._encryptionPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferences()); set { {_encryptionPreference = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal.EncryptionPreference { get => (this._encryptionPreference = this._encryptionPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferences()); set { {_encryptionPreference = value;} } } /// Internal Acessors for ReverseTransportPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal.ReverseTransportPreference { get => (this._reverseTransportPreference = this._reverseTransportPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferences()); set { {_reverseTransportPreference = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal.ReverseTransportPreference { get => (this._reverseTransportPreference = this._reverseTransportPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferences()); set { {_reverseTransportPreference = value;} } } /// Internal Acessors for ReverseTransportPreferenceIsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal.ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)ReverseTransportPreference).IsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)ReverseTransportPreference).IsUpdated = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal.ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)ReverseTransportPreference).IsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)ReverseTransportPreference).IsUpdated = value; } /// Internal Acessors for TransportPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal.TransportPreference { get => (this._transportPreference = this._transportPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferences()); set { {_transportPreference = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal.TransportPreference { get => (this._transportPreference = this._transportPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferences()); set { {_transportPreference = value;} } } /// Internal Acessors for TransportPreferenceIsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal.TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)TransportPreference).IsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)TransportPreference).IsUpdated = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal.TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)TransportPreference).IsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)TransportPreference).IsUpdated = value; } /// Backing field for property. private string[] _preferredDataCenterRegion; @@ -51,21 +51,21 @@ public partial class Preferences : public string[] PreferredDataCenterRegion { get => this._preferredDataCenterRegion; set => this._preferredDataCenterRegion = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences _reverseTransportPreference; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences _reverseTransportPreference; /// Optional Preferences related to the reverse shipment logistics of the sku. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences ReverseTransportPreference { get => (this._reverseTransportPreference = this._reverseTransportPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferences()); set => this._reverseTransportPreference = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences ReverseTransportPreference { get => (this._reverseTransportPreference = this._reverseTransportPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferences()); set => this._reverseTransportPreference = value; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)ReverseTransportPreference).IsUpdated; } + public bool? ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)ReverseTransportPreference).IsUpdated; } /// Indicates Shipment Logistics type that the customer preferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? ReverseTransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)ReverseTransportPreference).PreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)ReverseTransportPreference).PreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? ReverseTransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)ReverseTransportPreference).PreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)ReverseTransportPreference).PreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] _storageAccountAccessTierPreference; @@ -75,21 +75,21 @@ public partial class Preferences : public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] StorageAccountAccessTierPreference { get => this._storageAccountAccessTierPreference; set => this._storageAccountAccessTierPreference = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences _transportPreference; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences _transportPreference; /// Preferences related to the shipment logistics of the sku. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences TransportPreference { get => (this._transportPreference = this._transportPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferences()); set => this._transportPreference = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences TransportPreference { get => (this._transportPreference = this._transportPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferences()); set => this._transportPreference = value; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)TransportPreference).IsUpdated; } + public bool? TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)TransportPreference).IsUpdated; } /// Indicates Shipment Logistics type that the customer preferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? TransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)TransportPreference).PreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)TransportPreference).PreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? TransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)TransportPreference).PreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)TransportPreference).PreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } /// Creates an new instance. public Preferences() @@ -176,7 +176,7 @@ internal partial interface IPreferencesInternal { /// Preferences related to the Encryption. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences EncryptionPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences EncryptionPreference { get; set; } /// Defines secondary layer of software-based encryption enablement. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption? EncryptionPreferenceDoubleEncryption { get; set; } /// Defines Hardware level encryption (Only for disk) @@ -184,7 +184,7 @@ internal partial interface IPreferencesInternal /// Preferred data center region. string[] PreferredDataCenterRegion { get; set; } /// Optional Preferences related to the reverse shipment logistics of the sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences ReverseTransportPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences ReverseTransportPreference { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// @@ -194,7 +194,7 @@ internal partial interface IPreferencesInternal /// Preferences related to the Access Tier of storage accounts. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] StorageAccountAccessTierPreference { get; set; } /// Preferences related to the shipment logistics of the sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences TransportPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences TransportPreference { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Preferences.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Preferences.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Preferences.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Preferences.json.cs index 0b8a3ecd46d5..163a618ee458 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Preferences.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Preferences.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Preferences partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new Preferences(json) : null; } @@ -77,9 +77,9 @@ internal Preferences(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.Jso { return; } - {_transportPreference = If( json?.PropertyT("transportPreferences"), out var __jsonTransportPreferences) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferences.FromJson(__jsonTransportPreferences) : TransportPreference;} - {_reverseTransportPreference = If( json?.PropertyT("reverseTransportPreferences"), out var __jsonReverseTransportPreferences) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferences.FromJson(__jsonReverseTransportPreferences) : ReverseTransportPreference;} - {_encryptionPreference = If( json?.PropertyT("encryptionPreferences"), out var __jsonEncryptionPreferences) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferences.FromJson(__jsonEncryptionPreferences) : EncryptionPreference;} + {_transportPreference = If( json?.PropertyT("transportPreferences"), out var __jsonTransportPreferences) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferences.FromJson(__jsonTransportPreferences) : TransportPreference;} + {_reverseTransportPreference = If( json?.PropertyT("reverseTransportPreferences"), out var __jsonReverseTransportPreferences) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferences.FromJson(__jsonReverseTransportPreferences) : ReverseTransportPreference;} + {_encryptionPreference = If( json?.PropertyT("encryptionPreferences"), out var __jsonEncryptionPreferences) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferences.FromJson(__jsonEncryptionPreferences) : EncryptionPreference;} {_preferredDataCenterRegion = If( json?.PropertyT("preferredDataCenterRegion"), out var __jsonPreferredDataCenterRegion) ? If( __jsonPreferredDataCenterRegion as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(string) (__u is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString __t ? (string)(__t.ToString()) : null)) ))() : null : PreferredDataCenterRegion;} {_storageAccountAccessTierPreference = If( json?.PropertyT("storageAccountAccessTierPreferences"), out var __jsonStorageAccountAccessTierPreferences) ? If( __jsonStorageAccountAccessTierPreferences as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier) (__p is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString __o ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier)(__o.ToString()) : ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier)""))) ))() : null : StorageAccountAccessTierPreference;} AfterFromJson(json); diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationRequest.PowerShell.cs similarity index 76% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationRequest.PowerShell.cs index c23ff8acbbca..da65044bf9c1 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class PreferencesValidationRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PreferencesValidationRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PreferencesValidationRequest(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPre /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,65 +105,69 @@ internal PreferencesValidationRequest(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Preference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("DeviceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } if (content.Contains("PreferenceTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferenceEncryptionPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferenceReverseTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferencePreferredDataCenterRegion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("PreferenceStorageAccountAccessTierPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); } if (content.Contains("EncryptionPreferenceDoubleEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); } if (content.Contains("EncryptionPreferenceHardwareEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); } if (content.Contains("TransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("TransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReverseTransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("ReverseTransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -178,59 +182,63 @@ internal PreferencesValidationRequest(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Preference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("DeviceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } if (content.Contains("PreferenceTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferenceEncryptionPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferenceReverseTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferencePreferredDataCenterRegion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("PreferenceStorageAccountAccessTierPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); } if (content.Contains("EncryptionPreferenceDoubleEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); } if (content.Contains("EncryptionPreferenceHardwareEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); } if (content.Contains("TransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("TransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReverseTransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("ReverseTransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationRequest.TypeConverter.cs index 9b45d4a50b1f..88a81399d102 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationRequest.cs similarity index 77% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationRequest.cs index f27ce81ff41c..19120c06630c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationRequest.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Request to validate preference of transport and data center. public partial class PreferencesValidationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest(); /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName _deviceType; @@ -28,68 +28,78 @@ public partial class PreferencesValidationRequest : /// Defines secondary layer of software-based encryption enablement. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption? EncryptionPreferenceDoubleEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).EncryptionPreferenceDoubleEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).EncryptionPreferenceDoubleEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption? EncryptionPreferenceDoubleEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).EncryptionPreferenceDoubleEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).EncryptionPreferenceDoubleEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption)""); } /// Defines Hardware level encryption (Only for disk) [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).EncryptionPreferenceHardwareEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).EncryptionPreferenceHardwareEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).EncryptionPreferenceHardwareEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).EncryptionPreferenceHardwareEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption)""); } /// Internal Acessors for Preference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal.Preference { get => (this._preference = this._preference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Preferences()); set { {_preference = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal.Preference { get => (this._preference = this._preference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Preferences()); set { {_preference = value;} } } /// Internal Acessors for PreferenceEncryptionPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal.PreferenceEncryptionPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).EncryptionPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).EncryptionPreference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal.PreferenceEncryptionPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).EncryptionPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).EncryptionPreference = value; } /// Internal Acessors for PreferenceReverseTransportPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal.PreferenceReverseTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).ReverseTransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).ReverseTransportPreference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal.PreferenceReverseTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).ReverseTransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).ReverseTransportPreference = value; } /// Internal Acessors for PreferenceTransportPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal.PreferenceTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).TransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).TransportPreference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal.PreferenceTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).TransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).TransportPreference = value; } /// Internal Acessors for ReverseTransportPreferenceIsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal.ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).ReverseTransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).ReverseTransportPreferenceIsUpdated = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal.ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).ReverseTransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).ReverseTransportPreferenceIsUpdated = value; } /// Internal Acessors for TransportPreferenceIsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequestInternal.TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).TransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).TransportPreferenceIsUpdated = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequestInternal.TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).TransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).TransportPreferenceIsUpdated = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? _model; + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get => this._model; set => this._model = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences _preference; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences _preference; /// Preference of transport and data center. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Preference { get => (this._preference = this._preference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Preferences()); set => this._preference = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Preference { get => (this._preference = this._preference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Preferences()); set => this._preference = value; } /// Preferred data center region. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] PreferencePreferredDataCenterRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).PreferredDataCenterRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).PreferredDataCenterRegion = value ?? null /* arrayOf */; } + public string[] PreferencePreferredDataCenterRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).PreferredDataCenterRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).PreferredDataCenterRegion = value ?? null /* arrayOf */; } /// Preferences related to the Access Tier of storage accounts. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] PreferenceStorageAccountAccessTierPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).StorageAccountAccessTierPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).StorageAccountAccessTierPreference = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] PreferenceStorageAccountAccessTierPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).StorageAccountAccessTierPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).StorageAccountAccessTierPreference = value ?? null /* arrayOf */; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).ReverseTransportPreferenceIsUpdated; } + public bool? ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).ReverseTransportPreferenceIsUpdated; } /// Indicates Shipment Logistics type that the customer preferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? ReverseTransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).ReverseTransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).ReverseTransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? ReverseTransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).ReverseTransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).ReverseTransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).TransportPreferenceIsUpdated; } + public bool? TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).TransportPreferenceIsUpdated; } /// Indicates Shipment Logistics type that the customer preferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? TransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).TransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).TransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? TransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).TransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).TransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } /// Identifies the type of validation request. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)__validationInputRequest).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)__validationInputRequest).ValidationType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)__validationInputRequest).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)__validationInputRequest).ValidationType = value ; } /// Creates an new instance. public PreferencesValidationRequest() @@ -112,7 +122,7 @@ public PreferencesValidationRequest() /// Request to validate preference of transport and data center. public partial interface IPreferencesValidationRequest : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest { /// Device type to be used for the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -138,6 +148,17 @@ public partial interface IPreferencesValidationRequest : SerializedName = @"hardwareEncryption", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption) })] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// Preferred data center region. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -194,7 +215,7 @@ public partial interface IPreferencesValidationRequest : } /// Request to validate preference of transport and data center. internal partial interface IPreferencesValidationRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal { /// Device type to be used for the job. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName DeviceType { get; set; } @@ -202,18 +223,23 @@ internal partial interface IPreferencesValidationRequestInternal : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption? EncryptionPreferenceDoubleEncryption { get; set; } /// Defines Hardware level encryption (Only for disk) Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// Preference of transport and data center. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Preference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Preference { get; set; } /// Preferences related to the Encryption. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences PreferenceEncryptionPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences PreferenceEncryptionPreference { get; set; } /// Preferred data center region. string[] PreferencePreferredDataCenterRegion { get; set; } /// Optional Preferences related to the reverse shipment logistics of the sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences PreferenceReverseTransportPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences PreferenceReverseTransportPreference { get; set; } /// Preferences related to the Access Tier of storage accounts. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] PreferenceStorageAccountAccessTierPreference { get; set; } /// Preferences related to the shipment logistics of the sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences PreferenceTransportPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences PreferenceTransportPreference { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationRequest.json.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationRequest.json.cs index 49a143c17d87..e4365f9a767b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class PreferencesValidationRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new PreferencesValidationRequest(json) : null; } @@ -77,9 +77,10 @@ internal PreferencesValidationRequest(Microsoft.Azure.PowerShell.Cmdlets.DataBox { return; } - __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest(json); - {_preference = If( json?.PropertyT("preference"), out var __jsonPreference) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Preferences.FromJson(__jsonPreference) : Preference;} + __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest(json); + {_preference = If( json?.PropertyT("preference"), out var __jsonPreference) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Preferences.FromJson(__jsonPreference) : Preference;} {_deviceType = If( json?.PropertyT("deviceType"), out var __jsonDeviceType) ? (string)__jsonDeviceType : (string)DeviceType;} + {_model = If( json?.PropertyT("model"), out var __jsonModel) ? (string)__jsonModel : (string)Model;} AfterFromJson(json); } @@ -105,6 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M __validationInputRequest?.ToJson(container, serializationMode); AddIf( null != this._preference ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) this._preference.ToJson(null,serializationMode) : null, "preference" ,container.Add ); AddIf( null != (((object)this._deviceType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._deviceType.ToString()) : null, "deviceType" ,container.Add ); + AddIf( null != (((object)this._model)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._model.ToString()) : null, "model" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationResponseProperties.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationResponseProperties.PowerShell.cs similarity index 77% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationResponseProperties.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationResponseProperties.PowerShell.cs index 6d383b1fd829..5d1070951e6a 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationResponseProperties.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationResponseProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class PreferencesValidationResponseProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new PreferencesValidationResponseProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new PreferencesValidationResponseProperties(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPre /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,41 +108,41 @@ internal PreferencesValidationResponseProperties(global::System.Collections.IDic // actually deserialize if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -157,35 +157,35 @@ internal PreferencesValidationResponseProperties(global::System.Management.Autom // actually deserialize if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationResponseProperties.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationResponseProperties.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationResponseProperties.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationResponseProperties.TypeConverter.cs index 403402b291da..7f390b8d0140 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationResponseProperties.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationResponseProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponseProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponseProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponseProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponseProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationResponseProperties.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationResponseProperties.cs similarity index 78% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationResponseProperties.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationResponseProperties.cs index 9813624de6ad..315bbb6377b7 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationResponseProperties.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationResponseProperties.cs @@ -3,53 +3,53 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Properties of data center and transport preference validation response. public partial class PreferencesValidationResponseProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponseProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponsePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponseProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponsePropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse(); /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Code = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail; } /// Error code and message of validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Message = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponsePropertiesInternal.Status { get => this._status; set { {_status = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponsePropertiesInternal.Status { get => this._status; set { {_status = value;} } } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? _status; @@ -60,11 +60,11 @@ public partial class PreferencesValidationResponseProperties : /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Target = value ?? null; } /// Identifies the type of validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).ValidationType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).ValidationType = value ; } /// Creates an new instance. public PreferencesValidationResponseProperties() @@ -87,7 +87,7 @@ public PreferencesValidationResponseProperties() /// Properties of data center and transport preference validation response. public partial interface IPreferencesValidationResponseProperties : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse { /// Validation status of requested data center and transport. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -101,7 +101,7 @@ public partial interface IPreferencesValidationResponseProperties : } /// Properties of data center and transport preference validation response. internal partial interface IPreferencesValidationResponsePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal { /// Validation status of requested data center and transport. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Status { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationResponseProperties.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationResponseProperties.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationResponseProperties.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationResponseProperties.json.cs index a25679eb467a..036d0f94a403 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/PreferencesValidationResponseProperties.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/PreferencesValidationResponseProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class PreferencesValidationResponseProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponseProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponseProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponseProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponseProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesValidationResponseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesValidationResponseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new PreferencesValidationResponseProperties(json) : null; } @@ -77,7 +77,7 @@ internal PreferencesValidationResponseProperties(Microsoft.Azure.PowerShell.Cmdl { return; } - __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse(json); + __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse(json); {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationRequest.PowerShell.cs similarity index 57% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationRequest.PowerShell.cs index c923d83532c7..3b19e67052ab 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class RegionConfigurationRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RegionConfigurationRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RegionConfigurationRequest(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReg /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,45 +103,69 @@ internal RegionConfigurationRequest(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("ScheduleAvailabilityRequest")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequest = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest) content.GetValueForProperty("ScheduleAvailabilityRequest",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequest, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequest = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest) content.GetValueForProperty("ScheduleAvailabilityRequest",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequest, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityRequestTypeConverter.ConvertFrom); } if (content.Contains("TransportAvailabilityRequest")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequest = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest) content.GetValueForProperty("TransportAvailabilityRequest",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequest, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequest = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest) content.GetValueForProperty("TransportAvailabilityRequest",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequest, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityRequestTypeConverter.ConvertFrom); } if (content.Contains("DatacenterAddressRequest")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequest = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest) content.GetValueForProperty("DatacenterAddressRequest",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequest, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequest = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest) content.GetValueForProperty("DatacenterAddressRequest",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequest, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressRequestTypeConverter.ConvertFrom); + } + if (content.Contains("DeviceCapabilityRequest")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DeviceCapabilityRequest = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest) content.GetValueForProperty("DeviceCapabilityRequest",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DeviceCapabilityRequest, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityRequestTypeConverter.ConvertFrom); } if (content.Contains("ScheduleAvailabilityRequestStorageLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestStorageLocation = (string) content.GetValueForProperty("ScheduleAvailabilityRequestStorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestStorageLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestStorageLocation = (string) content.GetValueForProperty("ScheduleAvailabilityRequestStorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestStorageLocation, global::System.Convert.ToString); } if (content.Contains("ScheduleAvailabilityRequestSkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestSkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("ScheduleAvailabilityRequestSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestSkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestSkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("ScheduleAvailabilityRequestSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestSkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("ScheduleAvailabilityRequestCountry")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestCountry = (string) content.GetValueForProperty("ScheduleAvailabilityRequestCountry",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestCountry, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestCountry = (string) content.GetValueForProperty("ScheduleAvailabilityRequestCountry",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestCountry, global::System.Convert.ToString); } if (content.Contains("TransportAvailabilityRequestSkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequestSkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName?) content.GetValueForProperty("TransportAvailabilityRequestSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequestSkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequestSkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName?) content.GetValueForProperty("TransportAvailabilityRequestSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequestSkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("DatacenterAddressRequestStorageLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestStorageLocation = (string) content.GetValueForProperty("DatacenterAddressRequestStorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestStorageLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestStorageLocation = (string) content.GetValueForProperty("DatacenterAddressRequestStorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestStorageLocation, global::System.Convert.ToString); } if (content.Contains("DatacenterAddressRequestSkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestSkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DatacenterAddressRequestSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestSkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestSkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DatacenterAddressRequestSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestSkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("DeviceCapabilityRequestSkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DeviceCapabilityRequestSkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName?) content.GetValueForProperty("DeviceCapabilityRequestSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DeviceCapabilityRequestSkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("ScheduleAvailabilityRequestModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestModel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("ScheduleAvailabilityRequestModel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestModel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); + } + if (content.Contains("TransportAvailabilityRequestModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequestModel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("TransportAvailabilityRequestModel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequestModel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); + } + if (content.Contains("DatacenterAddressRequestModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestModel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("DatacenterAddressRequestModel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestModel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); + } + if (content.Contains("DeviceCapabilityRequestModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DeviceCapabilityRequestModel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("DeviceCapabilityRequestModel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DeviceCapabilityRequestModel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -156,39 +180,63 @@ internal RegionConfigurationRequest(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("ScheduleAvailabilityRequest")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequest = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest) content.GetValueForProperty("ScheduleAvailabilityRequest",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequest, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequest = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest) content.GetValueForProperty("ScheduleAvailabilityRequest",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequest, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityRequestTypeConverter.ConvertFrom); } if (content.Contains("TransportAvailabilityRequest")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequest = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest) content.GetValueForProperty("TransportAvailabilityRequest",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequest, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequest = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest) content.GetValueForProperty("TransportAvailabilityRequest",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequest, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityRequestTypeConverter.ConvertFrom); } if (content.Contains("DatacenterAddressRequest")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequest = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressRequest) content.GetValueForProperty("DatacenterAddressRequest",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequest, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressRequestTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequest = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest) content.GetValueForProperty("DatacenterAddressRequest",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequest, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressRequestTypeConverter.ConvertFrom); + } + if (content.Contains("DeviceCapabilityRequest")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DeviceCapabilityRequest = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest) content.GetValueForProperty("DeviceCapabilityRequest",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DeviceCapabilityRequest, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityRequestTypeConverter.ConvertFrom); } if (content.Contains("ScheduleAvailabilityRequestStorageLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestStorageLocation = (string) content.GetValueForProperty("ScheduleAvailabilityRequestStorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestStorageLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestStorageLocation = (string) content.GetValueForProperty("ScheduleAvailabilityRequestStorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestStorageLocation, global::System.Convert.ToString); } if (content.Contains("ScheduleAvailabilityRequestSkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestSkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("ScheduleAvailabilityRequestSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestSkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestSkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("ScheduleAvailabilityRequestSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestSkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("ScheduleAvailabilityRequestCountry")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestCountry = (string) content.GetValueForProperty("ScheduleAvailabilityRequestCountry",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestCountry, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestCountry = (string) content.GetValueForProperty("ScheduleAvailabilityRequestCountry",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestCountry, global::System.Convert.ToString); } if (content.Contains("TransportAvailabilityRequestSkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequestSkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName?) content.GetValueForProperty("TransportAvailabilityRequestSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequestSkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequestSkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName?) content.GetValueForProperty("TransportAvailabilityRequestSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequestSkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("DatacenterAddressRequestStorageLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestStorageLocation = (string) content.GetValueForProperty("DatacenterAddressRequestStorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestStorageLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestStorageLocation = (string) content.GetValueForProperty("DatacenterAddressRequestStorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestStorageLocation, global::System.Convert.ToString); } if (content.Contains("DatacenterAddressRequestSkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestSkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DatacenterAddressRequestSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestSkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestSkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DatacenterAddressRequestSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestSkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("DeviceCapabilityRequestSkuName")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DeviceCapabilityRequestSkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName?) content.GetValueForProperty("DeviceCapabilityRequestSkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DeviceCapabilityRequestSkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("ScheduleAvailabilityRequestModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestModel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("ScheduleAvailabilityRequestModel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).ScheduleAvailabilityRequestModel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); + } + if (content.Contains("TransportAvailabilityRequestModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequestModel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("TransportAvailabilityRequestModel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).TransportAvailabilityRequestModel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); + } + if (content.Contains("DatacenterAddressRequestModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestModel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("DatacenterAddressRequestModel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DatacenterAddressRequestModel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); + } + if (content.Contains("DeviceCapabilityRequestModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DeviceCapabilityRequestModel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("DeviceCapabilityRequestModel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal)this).DeviceCapabilityRequestModel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationRequest.TypeConverter.cs index a49d1e67ba6b..6176a65bbaca 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationRequest.cs new file mode 100644 index 000000000000..86ee9c12ec4a --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationRequest.cs @@ -0,0 +1,284 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 +{ + using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; + + /// Request body to get the configuration for the region. + public partial class RegionConfigurationRequest : + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal + { + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest _datacenterAddressRequest; + + /// Request body to get the datacenter address for given sku. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest DatacenterAddressRequest { get => (this._datacenterAddressRequest = this._datacenterAddressRequest ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressRequest()); set => this._datacenterAddressRequest = value; } + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? DatacenterAddressRequestModel { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)DatacenterAddressRequest).Model; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)DatacenterAddressRequest).Model = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName)""); } + + /// Sku Name for which the data center address requested. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? DatacenterAddressRequestSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)DatacenterAddressRequest).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)DatacenterAddressRequest).SkuName = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName)""); } + + /// + /// Storage location. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public string DatacenterAddressRequestStorageLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)DatacenterAddressRequest).StorageLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequestInternal)DatacenterAddressRequest).StorageLocation = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest _deviceCapabilityRequest; + + /// Request body to get the device capabilities for a given sku. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest DeviceCapabilityRequest { get => (this._deviceCapabilityRequest = this._deviceCapabilityRequest ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityRequest()); set => this._deviceCapabilityRequest = value; } + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? DeviceCapabilityRequestModel { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequestInternal)DeviceCapabilityRequest).Model; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequestInternal)DeviceCapabilityRequest).Model = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName)""); } + + /// Type of the device. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? DeviceCapabilityRequestSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequestInternal)DeviceCapabilityRequest).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequestInternal)DeviceCapabilityRequest).SkuName = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName)""); } + + /// Internal Acessors for DatacenterAddressRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal.DatacenterAddressRequest { get => (this._datacenterAddressRequest = this._datacenterAddressRequest ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressRequest()); set { {_datacenterAddressRequest = value;} } } + + /// Internal Acessors for DeviceCapabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal.DeviceCapabilityRequest { get => (this._deviceCapabilityRequest = this._deviceCapabilityRequest ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityRequest()); set { {_deviceCapabilityRequest = value;} } } + + /// Internal Acessors for ScheduleAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal.ScheduleAvailabilityRequest { get => (this._scheduleAvailabilityRequest = this._scheduleAvailabilityRequest ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityRequest()); set { {_scheduleAvailabilityRequest = value;} } } + + /// Internal Acessors for TransportAvailabilityRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequestInternal.TransportAvailabilityRequest { get => (this._transportAvailabilityRequest = this._transportAvailabilityRequest ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityRequest()); set { {_transportAvailabilityRequest = value;} } } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest _scheduleAvailabilityRequest; + + /// Request body to get the availability for scheduling orders. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest ScheduleAvailabilityRequest { get => (this._scheduleAvailabilityRequest = this._scheduleAvailabilityRequest ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityRequest()); set => this._scheduleAvailabilityRequest = value; } + + /// Country in which storage location should be supported. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public string ScheduleAvailabilityRequestCountry { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)ScheduleAvailabilityRequest).Country; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)ScheduleAvailabilityRequest).Country = value ?? null; } + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? ScheduleAvailabilityRequestModel { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)ScheduleAvailabilityRequest).Model; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)ScheduleAvailabilityRequest).Model = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName)""); } + + /// Sku Name for which the order is to be scheduled. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? ScheduleAvailabilityRequestSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)ScheduleAvailabilityRequest).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)ScheduleAvailabilityRequest).SkuName = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName)""); } + + /// + /// Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public string ScheduleAvailabilityRequestStorageLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)ScheduleAvailabilityRequest).StorageLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)ScheduleAvailabilityRequest).StorageLocation = value ?? null; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest _transportAvailabilityRequest; + + /// Request body to get the transport availability for given sku. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest TransportAvailabilityRequest { get => (this._transportAvailabilityRequest = this._transportAvailabilityRequest ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityRequest()); set => this._transportAvailabilityRequest = value; } + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? TransportAvailabilityRequestModel { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequestInternal)TransportAvailabilityRequest).Model; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequestInternal)TransportAvailabilityRequest).Model = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName)""); } + + /// Type of the device. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? TransportAvailabilityRequestSkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequestInternal)TransportAvailabilityRequest).SkuName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequestInternal)TransportAvailabilityRequest).SkuName = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName)""); } + + /// Creates an new instance. + public RegionConfigurationRequest() + { + + } + } + /// Request body to get the configuration for the region. + public partial interface IRegionConfigurationRequest : + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable + { + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? DatacenterAddressRequestModel { get; set; } + /// Sku Name for which the data center address requested. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sku Name for which the data center address requested.", + SerializedName = @"skuName", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? DatacenterAddressRequestSkuName { get; set; } + /// + /// Storage location. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Storage location. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01", + SerializedName = @"storageLocation", + PossibleTypes = new [] { typeof(string) })] + string DatacenterAddressRequestStorageLocation { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? DeviceCapabilityRequestModel { get; set; } + /// Type of the device. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of the device.", + SerializedName = @"skuName", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? DeviceCapabilityRequestSkuName { get; set; } + /// Country in which storage location should be supported. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Country in which storage location should be supported.", + SerializedName = @"country", + PossibleTypes = new [] { typeof(string) })] + string ScheduleAvailabilityRequestCountry { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? ScheduleAvailabilityRequestModel { get; set; } + /// Sku Name for which the order is to be scheduled. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Sku Name for which the order is to be scheduled.", + SerializedName = @"skuName", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? ScheduleAvailabilityRequestSkuName { get; set; } + /// + /// Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01", + SerializedName = @"storageLocation", + PossibleTypes = new [] { typeof(string) })] + string ScheduleAvailabilityRequestStorageLocation { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? TransportAvailabilityRequestModel { get; set; } + /// Type of the device. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"Type of the device.", + SerializedName = @"skuName", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? TransportAvailabilityRequestSkuName { get; set; } + + } + /// Request body to get the configuration for the region. + internal partial interface IRegionConfigurationRequestInternal + + { + /// Request body to get the datacenter address for given sku. + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressRequest DatacenterAddressRequest { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? DatacenterAddressRequestModel { get; set; } + /// Sku Name for which the data center address requested. + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? DatacenterAddressRequestSkuName { get; set; } + /// + /// Storage location. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 + /// + string DatacenterAddressRequestStorageLocation { get; set; } + /// Request body to get the device capabilities for a given sku. + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityRequest DeviceCapabilityRequest { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? DeviceCapabilityRequestModel { get; set; } + /// Type of the device. + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? DeviceCapabilityRequestSkuName { get; set; } + /// Request body to get the availability for scheduling orders. + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest ScheduleAvailabilityRequest { get; set; } + /// Country in which storage location should be supported. + string ScheduleAvailabilityRequestCountry { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? ScheduleAvailabilityRequestModel { get; set; } + /// Sku Name for which the order is to be scheduled. + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? ScheduleAvailabilityRequestSkuName { get; set; } + /// + /// Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 + /// + string ScheduleAvailabilityRequestStorageLocation { get; set; } + /// Request body to get the transport availability for given sku. + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest TransportAvailabilityRequest { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? TransportAvailabilityRequestModel { get; set; } + /// Type of the device. + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? TransportAvailabilityRequestSkuName { get; set; } + + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationRequest.json.cs similarity index 89% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationRequest.json.cs index 93dc0641a0cf..9c54df0c33bd 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RegionConfigurationRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new RegionConfigurationRequest(json) : null; } @@ -77,9 +77,10 @@ internal RegionConfigurationRequest(Microsoft.Azure.PowerShell.Cmdlets.DataBox.R { return; } - {_scheduleAvailabilityRequest = If( json?.PropertyT("scheduleAvailabilityRequest"), out var __jsonScheduleAvailabilityRequest) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityRequest.FromJson(__jsonScheduleAvailabilityRequest) : ScheduleAvailabilityRequest;} - {_transportAvailabilityRequest = If( json?.PropertyT("transportAvailabilityRequest"), out var __jsonTransportAvailabilityRequest) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityRequest.FromJson(__jsonTransportAvailabilityRequest) : TransportAvailabilityRequest;} - {_datacenterAddressRequest = If( json?.PropertyT("datacenterAddressRequest"), out var __jsonDatacenterAddressRequest) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressRequest.FromJson(__jsonDatacenterAddressRequest) : DatacenterAddressRequest;} + {_scheduleAvailabilityRequest = If( json?.PropertyT("scheduleAvailabilityRequest"), out var __jsonScheduleAvailabilityRequest) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityRequest.FromJson(__jsonScheduleAvailabilityRequest) : ScheduleAvailabilityRequest;} + {_transportAvailabilityRequest = If( json?.PropertyT("transportAvailabilityRequest"), out var __jsonTransportAvailabilityRequest) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityRequest.FromJson(__jsonTransportAvailabilityRequest) : TransportAvailabilityRequest;} + {_datacenterAddressRequest = If( json?.PropertyT("datacenterAddressRequest"), out var __jsonDatacenterAddressRequest) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressRequest.FromJson(__jsonDatacenterAddressRequest) : DatacenterAddressRequest;} + {_deviceCapabilityRequest = If( json?.PropertyT("deviceCapabilityRequest"), out var __jsonDeviceCapabilityRequest) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityRequest.FromJson(__jsonDeviceCapabilityRequest) : DeviceCapabilityRequest;} AfterFromJson(json); } @@ -105,6 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M AddIf( null != this._scheduleAvailabilityRequest ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) this._scheduleAvailabilityRequest.ToJson(null,serializationMode) : null, "scheduleAvailabilityRequest" ,container.Add ); AddIf( null != this._transportAvailabilityRequest ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) this._transportAvailabilityRequest.ToJson(null,serializationMode) : null, "transportAvailabilityRequest" ,container.Add ); AddIf( null != this._datacenterAddressRequest ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) this._datacenterAddressRequest.ToJson(null,serializationMode) : null, "datacenterAddressRequest" ,container.Add ); + AddIf( null != this._deviceCapabilityRequest ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) this._deviceCapabilityRequest.ToJson(null,serializationMode) : null, "deviceCapabilityRequest" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationResponse.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationResponse.PowerShell.cs similarity index 69% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationResponse.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationResponse.PowerShell.cs index a72f52d0c869..547906b3642d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationResponse.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class RegionConfigurationResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new RegionConfigurationResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new RegionConfigurationResponse(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReg /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,41 +105,49 @@ internal RegionConfigurationResponse(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("ScheduleAvailabilityResponse")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponse = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse) content.GetValueForProperty("ScheduleAvailabilityResponse",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponse, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponse = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse) content.GetValueForProperty("ScheduleAvailabilityResponse",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponse, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityResponseTypeConverter.ConvertFrom); } if (content.Contains("TransportAvailabilityResponse")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponse = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse) content.GetValueForProperty("TransportAvailabilityResponse",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponse, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponse = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse) content.GetValueForProperty("TransportAvailabilityResponse",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponse, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityResponseTypeConverter.ConvertFrom); } if (content.Contains("DatacenterAddressResponse")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponse = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddressResponse",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponse, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponse = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddressResponse",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponse, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponseTypeConverter.ConvertFrom); + } + if (content.Contains("DeviceCapabilityResponse")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DeviceCapabilityResponse = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse) content.GetValueForProperty("DeviceCapabilityResponse",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DeviceCapabilityResponse, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityResponseTypeConverter.ConvertFrom); } if (content.Contains("ScheduleAvailabilityResponseAvailableDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponseAvailableDate = (global::System.DateTime[]) content.GetValueForProperty("ScheduleAvailabilityResponseAvailableDate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponseAvailableDate, __y => TypeConverterExtensions.SelectToArray(__y, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponseAvailableDate = (global::System.DateTime[]) content.GetValueForProperty("ScheduleAvailabilityResponseAvailableDate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponseAvailableDate, __y => TypeConverterExtensions.SelectToArray(__y, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified))); } if (content.Contains("TransportAvailabilityResponseTransportAvailabilityDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponseTransportAvailabilityDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails[]) content.GetValueForProperty("TransportAvailabilityResponseTransportAvailabilityDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponseTransportAvailabilityDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponseTransportAvailabilityDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails[]) content.GetValueForProperty("TransportAvailabilityResponseTransportAvailabilityDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponseTransportAvailabilityDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DatacenterAddressResponseDatacenterAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressResponseDatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressResponseDatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); } if (content.Contains("DatacenterAddressResponseSupportedCarriersForReturnShipment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseSupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("DatacenterAddressResponseSupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseSupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseSupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("DatacenterAddressResponseSupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseSupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DatacenterAddressResponseDataCenterAzureLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDataCenterAzureLocation = (string) content.GetValueForProperty("DatacenterAddressResponseDataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDataCenterAzureLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDataCenterAzureLocation = (string) content.GetValueForProperty("DatacenterAddressResponseDataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDataCenterAzureLocation, global::System.Convert.ToString); + } + if (content.Contains("DeviceCapabilityResponseDeviceCapabilityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DeviceCapabilityResponseDeviceCapabilityDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails[]) content.GetValueForProperty("DeviceCapabilityResponseDeviceCapabilityDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DeviceCapabilityResponseDeviceCapabilityDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityDetailsTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -154,35 +162,43 @@ internal RegionConfigurationResponse(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("ScheduleAvailabilityResponse")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponse = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse) content.GetValueForProperty("ScheduleAvailabilityResponse",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponse, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponse = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse) content.GetValueForProperty("ScheduleAvailabilityResponse",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponse, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityResponseTypeConverter.ConvertFrom); } if (content.Contains("TransportAvailabilityResponse")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponse = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse) content.GetValueForProperty("TransportAvailabilityResponse",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponse, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponse = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse) content.GetValueForProperty("TransportAvailabilityResponse",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponse, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityResponseTypeConverter.ConvertFrom); } if (content.Contains("DatacenterAddressResponse")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponse = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddressResponse",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponse, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponseTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponse = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse) content.GetValueForProperty("DatacenterAddressResponse",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponse, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponseTypeConverter.ConvertFrom); + } + if (content.Contains("DeviceCapabilityResponse")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DeviceCapabilityResponse = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse) content.GetValueForProperty("DeviceCapabilityResponse",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DeviceCapabilityResponse, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityResponseTypeConverter.ConvertFrom); } if (content.Contains("ScheduleAvailabilityResponseAvailableDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponseAvailableDate = (global::System.DateTime[]) content.GetValueForProperty("ScheduleAvailabilityResponseAvailableDate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponseAvailableDate, __y => TypeConverterExtensions.SelectToArray(__y, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponseAvailableDate = (global::System.DateTime[]) content.GetValueForProperty("ScheduleAvailabilityResponseAvailableDate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).ScheduleAvailabilityResponseAvailableDate, __y => TypeConverterExtensions.SelectToArray(__y, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified))); } if (content.Contains("TransportAvailabilityResponseTransportAvailabilityDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponseTransportAvailabilityDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails[]) content.GetValueForProperty("TransportAvailabilityResponseTransportAvailabilityDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponseTransportAvailabilityDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponseTransportAvailabilityDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails[]) content.GetValueForProperty("TransportAvailabilityResponseTransportAvailabilityDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).TransportAvailabilityResponseTransportAvailabilityDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityDetailsTypeConverter.ConvertFrom)); } if (content.Contains("DatacenterAddressResponseDatacenterAddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressResponseDatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDatacenterAddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType) content.GetValueForProperty("DatacenterAddressResponseDatacenterAddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDatacenterAddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType.CreateFrom); } if (content.Contains("DatacenterAddressResponseSupportedCarriersForReturnShipment")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseSupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("DatacenterAddressResponseSupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseSupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseSupportedCarriersForReturnShipment = (string[]) content.GetValueForProperty("DatacenterAddressResponseSupportedCarriersForReturnShipment",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseSupportedCarriersForReturnShipment, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DatacenterAddressResponseDataCenterAzureLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDataCenterAzureLocation = (string) content.GetValueForProperty("DatacenterAddressResponseDataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDataCenterAzureLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDataCenterAzureLocation = (string) content.GetValueForProperty("DatacenterAddressResponseDataCenterAzureLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DatacenterAddressResponseDataCenterAzureLocation, global::System.Convert.ToString); + } + if (content.Contains("DeviceCapabilityResponseDeviceCapabilityDetail")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DeviceCapabilityResponseDeviceCapabilityDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails[]) content.GetValueForProperty("DeviceCapabilityResponseDeviceCapabilityDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal)this).DeviceCapabilityResponseDeviceCapabilityDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityDetailsTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationResponse.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationResponse.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationResponse.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationResponse.TypeConverter.cs index 986adb432965..b71683e22f63 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationResponse.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationResponse.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationResponse.cs similarity index 64% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationResponse.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationResponse.cs index cba4593f2c80..1e2fa106ca69 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationResponse.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationResponse.cs @@ -3,79 +3,96 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Configuration response specific to a region. public partial class RegionConfigurationResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse _datacenterAddressResponse; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse _datacenterAddressResponse; /// Datacenter address for given sku in a region. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse DatacenterAddressResponse { get => (this._datacenterAddressResponse = this._datacenterAddressResponse ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponse()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse DatacenterAddressResponse { get => (this._datacenterAddressResponse = this._datacenterAddressResponse ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponse()); } /// Azure Location where the Data Center serves primarily. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DatacenterAddressResponseDataCenterAzureLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).DataCenterAzureLocation; } + public string DatacenterAddressResponseDataCenterAzureLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).DataCenterAzureLocation; } /// Data center address type [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType? DatacenterAddressResponseDatacenterAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).DatacenterAddressType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).DatacenterAddressType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType? DatacenterAddressResponseDatacenterAddressType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).DatacenterAddressType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).DatacenterAddressType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType)""); } /// List of supported carriers for return shipment. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] DatacenterAddressResponseSupportedCarriersForReturnShipment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).SupportedCarriersForReturnShipment; } + public string[] DatacenterAddressResponseSupportedCarriersForReturnShipment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).SupportedCarriersForReturnShipment; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse _deviceCapabilityResponse; + + /// Device capabilities available for a given sku in a region. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse DeviceCapabilityResponse { get => (this._deviceCapabilityResponse = this._deviceCapabilityResponse ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityResponse()); } + + /// List of device capabilities available for a given region and a given sku + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails[] DeviceCapabilityResponseDeviceCapabilityDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponseInternal)DeviceCapabilityResponse).DeviceCapabilityDetail; } /// Internal Acessors for DatacenterAddressResponse - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal.DatacenterAddressResponse { get => (this._datacenterAddressResponse = this._datacenterAddressResponse ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponse()); set { {_datacenterAddressResponse = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal.DatacenterAddressResponse { get => (this._datacenterAddressResponse = this._datacenterAddressResponse ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponse()); set { {_datacenterAddressResponse = value;} } } /// Internal Acessors for DatacenterAddressResponseDataCenterAzureLocation - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal.DatacenterAddressResponseDataCenterAzureLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).DataCenterAzureLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).DataCenterAzureLocation = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal.DatacenterAddressResponseDataCenterAzureLocation { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).DataCenterAzureLocation; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).DataCenterAzureLocation = value; } /// /// Internal Acessors for DatacenterAddressResponseSupportedCarriersForReturnShipment /// - string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal.DatacenterAddressResponseSupportedCarriersForReturnShipment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).SupportedCarriersForReturnShipment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).SupportedCarriersForReturnShipment = value; } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal.DatacenterAddressResponseSupportedCarriersForReturnShipment { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).SupportedCarriersForReturnShipment; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponseInternal)DatacenterAddressResponse).SupportedCarriersForReturnShipment = value; } + + /// Internal Acessors for DeviceCapabilityResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal.DeviceCapabilityResponse { get => (this._deviceCapabilityResponse = this._deviceCapabilityResponse ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityResponse()); set { {_deviceCapabilityResponse = value;} } } + + /// Internal Acessors for DeviceCapabilityResponseDeviceCapabilityDetail + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal.DeviceCapabilityResponseDeviceCapabilityDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponseInternal)DeviceCapabilityResponse).DeviceCapabilityDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponseInternal)DeviceCapabilityResponse).DeviceCapabilityDetail = value; } /// Internal Acessors for ScheduleAvailabilityResponse - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal.ScheduleAvailabilityResponse { get => (this._scheduleAvailabilityResponse = this._scheduleAvailabilityResponse ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityResponse()); set { {_scheduleAvailabilityResponse = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal.ScheduleAvailabilityResponse { get => (this._scheduleAvailabilityResponse = this._scheduleAvailabilityResponse ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityResponse()); set { {_scheduleAvailabilityResponse = value;} } } /// Internal Acessors for ScheduleAvailabilityResponseAvailableDate - global::System.DateTime[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal.ScheduleAvailabilityResponseAvailableDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponseInternal)ScheduleAvailabilityResponse).AvailableDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponseInternal)ScheduleAvailabilityResponse).AvailableDate = value; } + global::System.DateTime[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal.ScheduleAvailabilityResponseAvailableDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponseInternal)ScheduleAvailabilityResponse).AvailableDate; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponseInternal)ScheduleAvailabilityResponse).AvailableDate = value; } /// Internal Acessors for TransportAvailabilityResponse - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal.TransportAvailabilityResponse { get => (this._transportAvailabilityResponse = this._transportAvailabilityResponse ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityResponse()); set { {_transportAvailabilityResponse = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal.TransportAvailabilityResponse { get => (this._transportAvailabilityResponse = this._transportAvailabilityResponse ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityResponse()); set { {_transportAvailabilityResponse = value;} } } /// Internal Acessors for TransportAvailabilityResponseTransportAvailabilityDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponseInternal.TransportAvailabilityResponseTransportAvailabilityDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponseInternal)TransportAvailabilityResponse).TransportAvailabilityDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponseInternal)TransportAvailabilityResponse).TransportAvailabilityDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponseInternal.TransportAvailabilityResponseTransportAvailabilityDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponseInternal)TransportAvailabilityResponse).TransportAvailabilityDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponseInternal)TransportAvailabilityResponse).TransportAvailabilityDetail = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse _scheduleAvailabilityResponse; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse _scheduleAvailabilityResponse; /// Schedule availability for given sku in a region. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse ScheduleAvailabilityResponse { get => (this._scheduleAvailabilityResponse = this._scheduleAvailabilityResponse ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityResponse()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse ScheduleAvailabilityResponse { get => (this._scheduleAvailabilityResponse = this._scheduleAvailabilityResponse ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityResponse()); } /// List of dates available to schedule [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public global::System.DateTime[] ScheduleAvailabilityResponseAvailableDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponseInternal)ScheduleAvailabilityResponse).AvailableDate; } + public global::System.DateTime[] ScheduleAvailabilityResponseAvailableDate { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponseInternal)ScheduleAvailabilityResponse).AvailableDate; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse _transportAvailabilityResponse; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse _transportAvailabilityResponse; /// Transport options available for given sku in a region. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse TransportAvailabilityResponse { get => (this._transportAvailabilityResponse = this._transportAvailabilityResponse ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityResponse()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse TransportAvailabilityResponse { get => (this._transportAvailabilityResponse = this._transportAvailabilityResponse ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityResponse()); } /// List of transport availability details for given region [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails[] TransportAvailabilityResponseTransportAvailabilityDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponseInternal)TransportAvailabilityResponse).TransportAvailabilityDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails[] TransportAvailabilityResponseTransportAvailabilityDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponseInternal)TransportAvailabilityResponse).TransportAvailabilityDetail; } /// Creates an new instance. public RegionConfigurationResponse() @@ -111,6 +128,14 @@ public partial interface IRegionConfigurationResponse : SerializedName = @"supportedCarriersForReturnShipment", PossibleTypes = new [] { typeof(string) })] string[] DatacenterAddressResponseSupportedCarriersForReturnShipment { get; } + /// List of device capabilities available for a given region and a given sku + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"List of device capabilities available for a given region and a given sku", + SerializedName = @"deviceCapabilityDetails", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails[] DeviceCapabilityResponseDeviceCapabilityDetail { get; } /// List of dates available to schedule [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -125,8 +150,8 @@ public partial interface IRegionConfigurationResponse : ReadOnly = true, Description = @"List of transport availability details for given region", SerializedName = @"transportAvailabilityDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails[] TransportAvailabilityResponseTransportAvailabilityDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails[] TransportAvailabilityResponseTransportAvailabilityDetail { get; } } /// Configuration response specific to a region. @@ -134,21 +159,25 @@ internal partial interface IRegionConfigurationResponseInternal { /// Datacenter address for given sku in a region. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDatacenterAddressResponse DatacenterAddressResponse { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDatacenterAddressResponse DatacenterAddressResponse { get; set; } /// Azure Location where the Data Center serves primarily. string DatacenterAddressResponseDataCenterAzureLocation { get; set; } /// Data center address type Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DatacenterAddressType? DatacenterAddressResponseDatacenterAddressType { get; set; } /// List of supported carriers for return shipment. string[] DatacenterAddressResponseSupportedCarriersForReturnShipment { get; set; } + /// Device capabilities available for a given sku in a region. + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityResponse DeviceCapabilityResponse { get; set; } + /// List of device capabilities available for a given region and a given sku + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDeviceCapabilityDetails[] DeviceCapabilityResponseDeviceCapabilityDetail { get; set; } /// Schedule availability for given sku in a region. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse ScheduleAvailabilityResponse { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse ScheduleAvailabilityResponse { get; set; } /// List of dates available to schedule global::System.DateTime[] ScheduleAvailabilityResponseAvailableDate { get; set; } /// Transport options available for given sku in a region. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse TransportAvailabilityResponse { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse TransportAvailabilityResponse { get; set; } /// List of transport availability details for given region - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails[] TransportAvailabilityResponseTransportAvailabilityDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails[] TransportAvailabilityResponseTransportAvailabilityDetail { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationResponse.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationResponse.json.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationResponse.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationResponse.json.cs index 786034ac5b4e..6d6f19d609d5 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/RegionConfigurationResponse.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/RegionConfigurationResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class RegionConfigurationResponse partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRegionConfigurationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IRegionConfigurationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new RegionConfigurationResponse(json) : null; } @@ -77,9 +77,10 @@ internal RegionConfigurationResponse(Microsoft.Azure.PowerShell.Cmdlets.DataBox. { return; } - {_scheduleAvailabilityResponse = If( json?.PropertyT("scheduleAvailabilityResponse"), out var __jsonScheduleAvailabilityResponse) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ScheduleAvailabilityResponse.FromJson(__jsonScheduleAvailabilityResponse) : ScheduleAvailabilityResponse;} - {_transportAvailabilityResponse = If( json?.PropertyT("transportAvailabilityResponse"), out var __jsonTransportAvailabilityResponse) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityResponse.FromJson(__jsonTransportAvailabilityResponse) : TransportAvailabilityResponse;} - {_datacenterAddressResponse = If( json?.PropertyT("datacenterAddressResponse"), out var __jsonDatacenterAddressResponse) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DatacenterAddressResponse.FromJson(__jsonDatacenterAddressResponse) : DatacenterAddressResponse;} + {_scheduleAvailabilityResponse = If( json?.PropertyT("scheduleAvailabilityResponse"), out var __jsonScheduleAvailabilityResponse) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ScheduleAvailabilityResponse.FromJson(__jsonScheduleAvailabilityResponse) : ScheduleAvailabilityResponse;} + {_transportAvailabilityResponse = If( json?.PropertyT("transportAvailabilityResponse"), out var __jsonTransportAvailabilityResponse) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityResponse.FromJson(__jsonTransportAvailabilityResponse) : TransportAvailabilityResponse;} + {_datacenterAddressResponse = If( json?.PropertyT("datacenterAddressResponse"), out var __jsonDatacenterAddressResponse) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DatacenterAddressResponse.FromJson(__jsonDatacenterAddressResponse) : DatacenterAddressResponse;} + {_deviceCapabilityResponse = If( json?.PropertyT("deviceCapabilityResponse"), out var __jsonDeviceCapabilityResponse) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DeviceCapabilityResponse.FromJson(__jsonDeviceCapabilityResponse) : DeviceCapabilityResponse;} AfterFromJson(json); } @@ -114,6 +115,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M { AddIf( null != this._datacenterAddressResponse ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) this._datacenterAddressResponse.ToJson(null,serializationMode) : null, "datacenterAddressResponse" ,container.Add ); } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != this._deviceCapabilityResponse ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) this._deviceCapabilityResponse.ToJson(null,serializationMode) : null, "deviceCapabilityResponse" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Resource.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Resource.PowerShell.cs similarity index 70% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Resource.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Resource.PowerShell.cs index cd5a51d5a0c6..6a479ef92cf4 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Resource.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Resource.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class Resource partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResource DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Resource(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResource DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Resource(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResource FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,53 +103,57 @@ internal Resource(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuTypeConverter.ConvertFrom); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("SkuDisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuDisplayName = (string) content.GetValueForProperty("SkuDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuDisplayName = (string) content.GetValueForProperty("SkuDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuDisplayName, global::System.Convert.ToString); } if (content.Contains("SkuFamily")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuFamily, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuModel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("SkuModel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuModel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityType, global::System.Convert.ToString); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityUserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -164,47 +168,51 @@ internal Resource(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuTypeConverter.ConvertFrom); } if (content.Contains("Identity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Identity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity) content.GetValueForProperty("Identity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Identity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityTypeConverter.ConvertFrom); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Location, global::System.Convert.ToString); } if (content.Contains("Tag")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceTagsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Tag = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags) content.GetValueForProperty("Tag",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).Tag, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceTagsTypeConverter.ConvertFrom); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("SkuDisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuDisplayName = (string) content.GetValueForProperty("SkuDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuDisplayName = (string) content.GetValueForProperty("SkuDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuDisplayName, global::System.Convert.ToString); } if (content.Contains("SkuFamily")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).SkuFamily, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuModel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("SkuModel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).SkuModel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("IdentityType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityType = (string) content.GetValueForProperty("IdentityType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityType, global::System.Convert.ToString); } if (content.Contains("IdentityPrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityPrincipalId = (string) content.GetValueForProperty("IdentityPrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityPrincipalId, global::System.Convert.ToString); } if (content.Contains("IdentityTenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityTenantId = (string) content.GetValueForProperty("IdentityTenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityTenantId, global::System.Convert.ToString); } if (content.Contains("IdentityUserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityUserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("IdentityUserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal)this).IdentityUserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Resource.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Resource.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Resource.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Resource.TypeConverter.cs index 7b5286c83f67..0fe30045ed43 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Resource.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Resource.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResource ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResource ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResource).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResource).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Resource.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Resource.cs similarity index 72% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Resource.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Resource.cs index 6464193af8f9..66e39135a806 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Resource.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Resource.cs @@ -3,38 +3,38 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Model of the Resource. public partial class Resource : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResource, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResource, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity _identity; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity _identity; /// Msi identity of the resource [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentity()); set => this._identity = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentity()); set => this._identity = value; } /// Service Principal Id backing the Msi [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).PrincipalId; } + public string IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).PrincipalId; } /// Home Tenant Id [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).TenantId; } + public string IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).TenantId; } /// Identity type [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).Type = value ?? null; } + public string IdentityType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).Type = value ?? null; } /// User Assigned Identities [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).UserAssignedIdentity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).UserAssignedIdentity = value ?? null /* model class */; } /// Backing field for property. private string _location; @@ -48,45 +48,52 @@ public partial class Resource : public string Location { get => this._location; set => this._location = value; } /// Internal Acessors for Identity - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentity()); set { {_identity = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal.Identity { get => (this._identity = this._identity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentity()); set { {_identity = value;} } } /// Internal Acessors for IdentityPrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).PrincipalId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal.IdentityPrincipalId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).PrincipalId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).PrincipalId = value; } /// Internal Acessors for IdentityTenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)Identity).TenantId = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal.IdentityTenantId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).TenantId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)Identity).TenantId = value; } /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Sku()); set { {_sku = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Sku()); set { {_sku = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku _sku; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku _sku; /// The sku type. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Sku()); set => this._sku = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Sku()); set => this._sku = value; } /// The display name of the sku. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string SkuDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)Sku).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)Sku).DisplayName = value ?? null; } + public string SkuDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).DisplayName = value ?? null; } /// The sku family. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)Sku).Family = value ?? null; } + public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).Family = value ?? null; } + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? SkuModel { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).Model; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).Model = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName)""); } /// The sku name. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)Sku).Name = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).Name = value ; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags _tag; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags _tag; /// /// The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across /// resource groups). /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceTags()); set => this._tag = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags Tag { get => (this._tag = this._tag ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceTags()); set => this._tag = value; } /// Creates an new instance. public Resource() @@ -128,8 +135,8 @@ public partial interface IResource : ReadOnly = false, Description = @"User Assigned Identities", SerializedName = @"userAssignedIdentities", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } /// /// The location of the resource. This will be one of the supported and registered Azure Regions (e.g. West US, East US, Southeast /// Asia, etc.). The region of a resource cannot be changed once it is created, but if an identical region is specified on @@ -158,6 +165,17 @@ public partial interface IResource : SerializedName = @"family", PossibleTypes = new [] { typeof(string) })] string SkuFamily { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? SkuModel { get; set; } /// The sku name. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, @@ -175,8 +193,8 @@ public partial interface IResource : ReadOnly = false, Description = @"The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups).", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags Tag { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags Tag { get; set; } } /// Model of the Resource. @@ -184,7 +202,7 @@ internal partial interface IResourceInternal { /// Msi identity of the resource - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity Identity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity Identity { get; set; } /// Service Principal Id backing the Msi string IdentityPrincipalId { get; set; } /// Home Tenant Id @@ -192,7 +210,7 @@ internal partial interface IResourceInternal /// Identity type string IdentityType { get; set; } /// User Assigned Identities - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities IdentityUserAssignedIdentity { get; set; } /// /// The location of the resource. This will be one of the supported and registered Azure Regions (e.g. West US, East US, Southeast /// Asia, etc.). The region of a resource cannot be changed once it is created, but if an identical region is specified on @@ -200,18 +218,23 @@ internal partial interface IResourceInternal /// string Location { get; set; } /// The sku type. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku Sku { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku Sku { get; set; } /// The display name of the sku. string SkuDisplayName { get; set; } /// The sku family. string SkuFamily { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? SkuModel { get; set; } /// The sku name. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName SkuName { get; set; } /// /// The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across /// resource groups). /// - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags Tag { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags Tag { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Resource.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Resource.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Resource.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Resource.json.cs index b2f78570bab3..0274b60f3f89 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Resource.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Resource.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Resource partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResource. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResource. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResource. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResource. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResource FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new Resource(json) : null; } @@ -77,10 +77,10 @@ internal Resource(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonOb { return; } - {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Sku.FromJson(__jsonSku) : Sku;} - {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentity.FromJson(__jsonIdentity) : Identity;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Sku.FromJson(__jsonSku) : Sku;} + {_identity = If( json?.PropertyT("identity"), out var __jsonIdentity) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentity.FromJson(__jsonIdentity) : Identity;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} - {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceTags.FromJson(__jsonTags) : Tag;} + {_tag = If( json?.PropertyT("tags"), out var __jsonTags) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceTags.FromJson(__jsonTags) : Tag;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentity.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentity.PowerShell.cs similarity index 83% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentity.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentity.PowerShell.cs index 07da34d8d842..4c0fe423c45f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentity.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentity.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ResourceIdentity partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceIdentity(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceIdentity(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,25 +103,25 @@ internal ResourceIdentity(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("TenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).TenantId, global::System.Convert.ToString); } if (content.Contains("UserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -136,19 +136,19 @@ internal ResourceIdentity(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).Type, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).Type = (string) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).Type, global::System.Convert.ToString); } if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("TenantId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).TenantId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).TenantId = (string) content.GetValueForProperty("TenantId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).TenantId, global::System.Convert.ToString); } if (content.Contains("UserAssignedIdentity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).UserAssignedIdentity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities) content.GetValueForProperty("UserAssignedIdentity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal)this).UserAssignedIdentity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityUserAssignedIdentitiesTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentity.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentity.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentity.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentity.TypeConverter.cs index a307dad4b84f..90ccbc9ababc 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentity.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentity.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentity.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentity.cs similarity index 89% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentity.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentity.cs index 5f118314bebc..81aa989bf779 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentity.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentity.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Msi identity details of the resource public partial class ResourceIdentity : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal { /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } /// Internal Acessors for TenantId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityInternal.TenantId { get => this._tenantId; set { {_tenantId = value;} } } /// Backing field for property. private string _principalId; @@ -41,11 +41,11 @@ public partial class ResourceIdentity : public string Type { get => this._type; set => this._type = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities _userAssignedIdentity; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities _userAssignedIdentity; /// User Assigned Identities [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities UserAssignedIdentity { get => (this._userAssignedIdentity = this._userAssignedIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityUserAssignedIdentities()); set => this._userAssignedIdentity = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities UserAssignedIdentity { get => (this._userAssignedIdentity = this._userAssignedIdentity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityUserAssignedIdentities()); set => this._userAssignedIdentity = value; } /// Creates an new instance. public ResourceIdentity() @@ -87,8 +87,8 @@ public partial interface IResourceIdentity : ReadOnly = false, Description = @"User Assigned Identities", SerializedName = @"userAssignedIdentities", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities UserAssignedIdentity { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities UserAssignedIdentity { get; set; } } /// Msi identity details of the resource @@ -102,7 +102,7 @@ internal partial interface IResourceIdentityInternal /// Identity type string Type { get; set; } /// User Assigned Identities - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities UserAssignedIdentity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities UserAssignedIdentity { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentity.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentity.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentity.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentity.json.cs index fcf95b654dbc..195dae073589 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentity.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentity.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResourceIdentity partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ResourceIdentity(json) : null; } @@ -80,7 +80,7 @@ internal ResourceIdentity(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Jso {_type = If( json?.PropertyT("type"), out var __jsonType) ? (string)__jsonType : (string)Type;} {_principalId = If( json?.PropertyT("principalId"), out var __jsonPrincipalId) ? (string)__jsonPrincipalId : (string)PrincipalId;} {_tenantId = If( json?.PropertyT("tenantId"), out var __jsonTenantId) ? (string)__jsonTenantId : (string)TenantId;} - {_userAssignedIdentity = If( json?.PropertyT("userAssignedIdentities"), out var __jsonUserAssignedIdentities) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityUserAssignedIdentities.FromJson(__jsonUserAssignedIdentities) : UserAssignedIdentity;} + {_userAssignedIdentity = If( json?.PropertyT("userAssignedIdentities"), out var __jsonUserAssignedIdentities) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityUserAssignedIdentities.FromJson(__jsonUserAssignedIdentities) : UserAssignedIdentity;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.PowerShell.cs similarity index 92% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.PowerShell.cs index a456f33ffe0c..d02bfb018683 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ResourceIdentityUserAssignedIdentities partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceIdentityUserAssignedIdentities(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceIdentityUserAssignedIdentities(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRes /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -112,7 +112,7 @@ internal ResourceIdentityUserAssignedIdentities(global::System.Collections.IDict } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.TypeConverter.cs index 0e74b9c87f18..99440fe81db4 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.cs index aed5905d3b16..924f1194691c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// User Assigned Identities public partial class ResourceIdentityUserAssignedIdentities : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentitiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentitiesInternal { /// Creates an new instance. @@ -22,7 +22,7 @@ public ResourceIdentityUserAssignedIdentities() /// User Assigned Identities public partial interface IResourceIdentityUserAssignedIdentities : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray { } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.dictionary.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.dictionary.cs similarity index 82% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.dictionary.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.dictionary.cs index 22b6b7573b6b..b568bfb9cd12 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.dictionary.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.dictionary.cs @@ -3,28 +3,28 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; public partial class ResourceIdentityUserAssignedIdentities : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray { - protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); + protected global::System.Collections.Generic.Dictionary __additionalProperties = new global::System.Collections.Generic.Dictionary(); - global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } + global::System.Collections.Generic.IDictionary Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.AdditionalProperties { get => __additionalProperties; } - int Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } + int Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Count { get => __additionalProperties.Count; } - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Keys { get => __additionalProperties.Keys; } - global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } + global::System.Collections.Generic.IEnumerable Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray.Values { get => __additionalProperties.Values; } - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentity this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentity this[global::System.String index] { get => __additionalProperties[index]; set => __additionalProperties[index] = value; } /// /// - public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentity value) => __additionalProperties.Add( key, value); + public void Add(global::System.String key, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentity value) => __additionalProperties.Add( key, value); public void Clear() => __additionalProperties.Clear(); @@ -40,7 +40,7 @@ public void CopyFrom(global::System.Collections.IDictionary source) { if ((null != property.Key && null != property.Value)) { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); } } } @@ -55,7 +55,7 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) { if ((null != property.Key && null != property.Value)) { - this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); + this.__additionalProperties.Add(property.Key.ToString(), global::System.Management.Automation.LanguagePrimitives.ConvertTo( property.Value)); } } } @@ -66,10 +66,10 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// /// - public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentity value) => __additionalProperties.TryGetValue( key, out value); + public bool TryGetValue(global::System.String key, out Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentity value) => __additionalProperties.TryGetValue( key, out value); /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceIdentityUserAssignedIdentities source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceIdentityUserAssignedIdentities source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.json.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.json.cs index 01847b213829..9fa0b7468c8f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceIdentityUserAssignedIdentities.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceIdentityUserAssignedIdentities.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ResourceIdentityUserAssignedIdentities partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ResourceIdentityUserAssignedIdentities(json) : null; } @@ -78,7 +78,7 @@ internal ResourceIdentityUserAssignedIdentities(Microsoft.Azure.PowerShell.Cmdle { return; } - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UserAssignedIdentity.FromJson(j) ,exclusions ); + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.JsonSerializable.FromJson( json, ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray)this).AdditionalProperties, (j) => Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UserAssignedIdentity.FromJson(j) ,exclusions ); AfterFromJson(json); } @@ -102,7 +102,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M { return container; } - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray)this).AdditionalProperties, container); + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.JsonSerializable.ToJson( ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IAssociativeArray)this).AdditionalProperties, container); AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.PowerShell.cs similarity index 92% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.PowerShell.cs index 78786d8c3db4..93ec583d5023 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -58,27 +58,27 @@ public partial class ResourceTags partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ResourceTags(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ResourceTags(content); } @@ -88,10 +88,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRes /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,7 +110,7 @@ internal ResourceTags(global::System.Collections.IDictionary content) } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.TypeConverter.cs index 2e80da2ebda4..8c494df63b89 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.cs index 7b76633eb112..f8865577f438 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -12,8 +12,8 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 /// resource groups). /// public partial class ResourceTags : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTagsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTagsInternal { /// Creates an new instance. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.dictionary.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.dictionary.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.dictionary.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.dictionary.cs index 10643a3a0f3e..c34f99d450f8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.dictionary.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.dictionary.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -70,6 +70,6 @@ public void CopyFrom(global::System.Management.Automation.PSObject source) /// - public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ResourceTags source) => source.__additionalProperties; + public static implicit operator global::System.Collections.Generic.Dictionary(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ResourceTags source) => source.__additionalProperties; } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.json.cs index 4506d75baad6..baa0485af1e7 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ResourceTags.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ResourceTags.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -57,13 +57,13 @@ public partial class ResourceTags partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ResourceTags(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ReverseShippingDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ReverseShippingDetails.PowerShell.cs similarity index 78% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ReverseShippingDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ReverseShippingDetails.PowerShell.cs index e2f6dad8c5b0..17695b259465 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ReverseShippingDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ReverseShippingDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ReverseShippingDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ReverseShippingDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ReverseShippingDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IRev /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,37 +103,37 @@ internal ReverseShippingDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactInfoTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("IsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).IsUpdated = (bool?) content.GetValueForProperty("IsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).IsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).IsUpdated = (bool?) content.GetValueForProperty("IsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).IsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ContactDetailContactName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailContactName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailContactName, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailPhone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailPhone, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhoneExtension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); } if (content.Contains("ContactDetailMobile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailMobile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailMobile, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -148,31 +148,31 @@ internal ReverseShippingDetails(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("ContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactInfoTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("IsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).IsUpdated = (bool?) content.GetValueForProperty("IsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).IsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).IsUpdated = (bool?) content.GetValueForProperty("IsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).IsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ContactDetailContactName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailContactName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailContactName, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailPhone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailPhone, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhoneExtension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); } if (content.Contains("ContactDetailMobile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)this).ContactDetailMobile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)this).ContactDetailMobile, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ReverseShippingDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ReverseShippingDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ReverseShippingDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ReverseShippingDetails.TypeConverter.cs index 682e6ed376c5..1f8c50a54cab 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ReverseShippingDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ReverseShippingDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ReverseShippingDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ReverseShippingDetails.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ReverseShippingDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ReverseShippingDetails.cs index af8e653db8c0..778f134b6da2 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ReverseShippingDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ReverseShippingDetails.cs @@ -3,38 +3,38 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Reverse Shipping Address and contact details for a job. public partial class ReverseShippingDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo _contactDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo _contactDetail; /// Contact Info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo ContactDetail { get => (this._contactDetail = this._contactDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactInfo()); set => this._contactDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo ContactDetail { get => (this._contactDetail = this._contactDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactInfo()); set => this._contactDetail = value; } /// Contact name of the person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailContactName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)ContactDetail).ContactName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)ContactDetail).ContactName = value ?? null; } + public string ContactDetailContactName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)ContactDetail).ContactName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)ContactDetail).ContactName = value ?? null; } /// Mobile number of the contact person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailMobile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)ContactDetail).Mobile; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)ContactDetail).Mobile = value ?? null; } + public string ContactDetailMobile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)ContactDetail).Mobile; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)ContactDetail).Mobile = value ?? null; } /// Phone number of the contact person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailPhone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)ContactDetail).Phone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)ContactDetail).Phone = value ?? null; } + public string ContactDetailPhone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)ContactDetail).Phone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)ContactDetail).Phone = value ?? null; } /// Phone extension number of the contact person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailPhoneExtension { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)ContactDetail).PhoneExtension; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfoInternal)ContactDetail).PhoneExtension = value ?? null; } + public string ContactDetailPhoneExtension { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)ContactDetail).PhoneExtension; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfoInternal)ContactDetail).PhoneExtension = value ?? null; } /// Backing field for property. private bool? _isUpdated; @@ -47,17 +47,17 @@ public partial class ReverseShippingDetails : public bool? IsUpdated { get => this._isUpdated; } /// Internal Acessors for ContactDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal.ContactDetail { get => (this._contactDetail = this._contactDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactInfo()); set { {_contactDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal.ContactDetail { get => (this._contactDetail = this._contactDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactInfo()); set { {_contactDetail = value;} } } /// Internal Acessors for IsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal.IsUpdated { get => this._isUpdated; set { {_isUpdated = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal.IsUpdated { get => this._isUpdated; set { {_isUpdated = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress _shippingAddress; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress _shippingAddress; /// Shipping address where customer wishes to receive the device. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get => (this._shippingAddress = this._shippingAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress()); set => this._shippingAddress = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get => (this._shippingAddress = this._shippingAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress()); set => this._shippingAddress = value; } /// Creates an new instance. public ReverseShippingDetails() @@ -119,8 +119,8 @@ public partial interface IReverseShippingDetails : ReadOnly = false, Description = @"Shipping address where customer wishes to receive the device.", SerializedName = @"shippingAddress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get; set; } } /// Reverse Shipping Address and contact details for a job. @@ -128,7 +128,7 @@ internal partial interface IReverseShippingDetailsInternal { /// Contact Info. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo ContactDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo ContactDetail { get; set; } /// Contact name of the person. string ContactDetailContactName { get; set; } /// Mobile number of the contact person. @@ -143,7 +143,7 @@ internal partial interface IReverseShippingDetailsInternal /// bool? IsUpdated { get; set; } /// Shipping address where customer wishes to receive the device. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ReverseShippingDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ReverseShippingDetails.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ReverseShippingDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ReverseShippingDetails.json.cs index f55b7b380b2b..6fb274a37053 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ReverseShippingDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ReverseShippingDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ReverseShippingDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ReverseShippingDetails(json) : null; } @@ -77,8 +77,8 @@ internal ReverseShippingDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runti { return; } - {_contactDetail = If( json?.PropertyT("contactDetails"), out var __jsonContactDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactInfo.FromJson(__jsonContactDetails) : ContactDetail;} - {_shippingAddress = If( json?.PropertyT("shippingAddress"), out var __jsonShippingAddress) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress.FromJson(__jsonShippingAddress) : ShippingAddress;} + {_contactDetail = If( json?.PropertyT("contactDetails"), out var __jsonContactDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactInfo.FromJson(__jsonContactDetails) : ContactDetail;} + {_shippingAddress = If( json?.PropertyT("shippingAddress"), out var __jsonShippingAddress) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress.FromJson(__jsonShippingAddress) : ShippingAddress;} {_isUpdated = If( json?.PropertyT("isUpdated"), out var __jsonIsUpdated) ? (bool?)__jsonIsUpdated : IsUpdated;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityRequest.PowerShell.cs similarity index 79% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityRequest.PowerShell.cs index dcad7f5691fc..cbe6a8d065c2 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ScheduleAvailabilityRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ScheduleAvailabilityRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ScheduleAvailabilityRequest(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISch /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,21 +105,25 @@ internal ScheduleAvailabilityRequest(global::System.Collections.IDictionary cont // actually deserialize if (content.Contains("StorageLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -134,15 +138,19 @@ internal ScheduleAvailabilityRequest(global::System.Management.Automation.PSObje // actually deserialize if (content.Contains("StorageLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation = (string) content.GetValueForProperty("StorageLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).StorageLocation, global::System.Convert.ToString); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Country, global::System.Convert.ToString); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityRequest.TypeConverter.cs index f7ddd887c480..1cb363f3f83b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityRequest.cs similarity index 69% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityRequest.cs index 6ad1a17ebc6b..48a87c342eac 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityRequest.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Request body to get the availability for scheduling orders. public partial class ScheduleAvailabilityRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequestInternal { /// Backing field for property. @@ -20,6 +20,16 @@ public partial class ScheduleAvailabilityRequest : [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] public string Country { get => this._country; set => this._country = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? _model; + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get => this._model; set => this._model = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName _skuName; @@ -54,6 +64,17 @@ public partial interface IScheduleAvailabilityRequest : SerializedName = @"country", PossibleTypes = new [] { typeof(string) })] string Country { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// Sku Name for which the order is to be scheduled. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, @@ -80,6 +101,11 @@ internal partial interface IScheduleAvailabilityRequestInternal { /// Country in which storage location should be supported. string Country { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// Sku Name for which the order is to be scheduled. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName SkuName { get; set; } /// diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityRequest.json.cs similarity index 92% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityRequest.json.cs index f0b21512df76..bf4a51762a88 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class ScheduleAvailabilityRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)) { @@ -103,6 +103,7 @@ internal ScheduleAvailabilityRequest(Microsoft.Azure.PowerShell.Cmdlets.DataBox. {_storageLocation = If( json?.PropertyT("storageLocation"), out var __jsonStorageLocation) ? (string)__jsonStorageLocation : (string)StorageLocation;} {_skuName = If( json?.PropertyT("skuName"), out var __jsonSkuName) ? (string)__jsonSkuName : (string)SkuName;} {_country = If( json?.PropertyT("country"), out var __jsonCountry) ? (string)__jsonCountry : (string)Country;} + {_model = If( json?.PropertyT("model"), out var __jsonModel) ? (string)__jsonModel : (string)Model;} AfterFromJson(json); } @@ -128,6 +129,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M AddIf( null != (((object)this._storageLocation)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._storageLocation.ToString()) : null, "storageLocation" ,container.Add ); AddIf( null != (((object)this._skuName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._skuName.ToString()) : null, "skuName" ,container.Add ); AddIf( null != (((object)this._country)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._country.ToString()) : null, "country" ,container.Add ); + AddIf( null != (((object)this._model)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._model.ToString()) : null, "model" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityResponse.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityResponse.PowerShell.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityResponse.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityResponse.PowerShell.cs index d59a592e2870..c9b443f5d6f0 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityResponse.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ScheduleAvailabilityResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ScheduleAvailabilityResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ScheduleAvailabilityResponse(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISch /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,13 +105,13 @@ internal ScheduleAvailabilityResponse(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("AvailableDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponseInternal)this).AvailableDate = (global::System.DateTime[]) content.GetValueForProperty("AvailableDate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponseInternal)this).AvailableDate, __y => TypeConverterExtensions.SelectToArray(__y, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponseInternal)this).AvailableDate = (global::System.DateTime[]) content.GetValueForProperty("AvailableDate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponseInternal)this).AvailableDate, __y => TypeConverterExtensions.SelectToArray(__y, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -126,7 +126,7 @@ internal ScheduleAvailabilityResponse(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("AvailableDate")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponseInternal)this).AvailableDate = (global::System.DateTime[]) content.GetValueForProperty("AvailableDate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponseInternal)this).AvailableDate, __y => TypeConverterExtensions.SelectToArray(__y, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponseInternal)this).AvailableDate = (global::System.DateTime[]) content.GetValueForProperty("AvailableDate",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponseInternal)this).AvailableDate, __y => TypeConverterExtensions.SelectToArray(__y, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified))); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityResponse.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityResponse.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityResponse.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityResponse.TypeConverter.cs index a45befd4c4c0..da727b2474d7 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityResponse.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityResponse.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityResponse.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityResponse.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityResponse.cs index 24ce6e718959..ee41847393eb 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityResponse.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityResponse.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Schedule availability for given sku in a region. public partial class ScheduleAvailabilityResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponseInternal { /// Backing field for property. @@ -21,7 +21,7 @@ public partial class ScheduleAvailabilityResponse : public global::System.DateTime[] AvailableDate { get => this._availableDate; } /// Internal Acessors for AvailableDate - global::System.DateTime[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponseInternal.AvailableDate { get => this._availableDate; set { {_availableDate = value;} } } + global::System.DateTime[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponseInternal.AvailableDate { get => this._availableDate; set { {_availableDate = value;} } } /// Creates an new instance. public ScheduleAvailabilityResponse() diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityResponse.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityResponse.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityResponse.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityResponse.json.cs index 3077c8a2ec13..91b33844f9c8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ScheduleAvailabilityResponse.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ScheduleAvailabilityResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ScheduleAvailabilityResponse partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IScheduleAvailabilityResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IScheduleAvailabilityResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ScheduleAvailabilityResponse(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShareCredentialDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShareCredentialDetails.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShareCredentialDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShareCredentialDetails.PowerShell.cs index 2363895bd591..9a50e1d23bec 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShareCredentialDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShareCredentialDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ShareCredentialDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ShareCredentialDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ShareCredentialDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISha /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,29 +103,29 @@ internal ShareCredentialDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ShareName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).ShareName = (string) content.GetValueForProperty("ShareName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).ShareName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).ShareName = (string) content.GetValueForProperty("ShareName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).ShareName, global::System.Convert.ToString); } if (content.Contains("ShareType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).ShareType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ShareDestinationFormatType?) content.GetValueForProperty("ShareType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).ShareType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ShareDestinationFormatType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).ShareType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ShareDestinationFormatType?) content.GetValueForProperty("ShareType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).ShareType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ShareDestinationFormatType.CreateFrom); } if (content.Contains("UserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).UserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).UserName, global::System.Convert.ToString); } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).Password, global::System.Convert.ToString); } if (content.Contains("SupportedAccessProtocol")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).SupportedAccessProtocol = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AccessProtocol[]) content.GetValueForProperty("SupportedAccessProtocol",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).SupportedAccessProtocol, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AccessProtocol.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).SupportedAccessProtocol = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AccessProtocol[]) content.GetValueForProperty("SupportedAccessProtocol",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).SupportedAccessProtocol, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AccessProtocol.CreateFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -140,23 +140,23 @@ internal ShareCredentialDetails(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("ShareName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).ShareName = (string) content.GetValueForProperty("ShareName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).ShareName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).ShareName = (string) content.GetValueForProperty("ShareName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).ShareName, global::System.Convert.ToString); } if (content.Contains("ShareType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).ShareType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ShareDestinationFormatType?) content.GetValueForProperty("ShareType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).ShareType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ShareDestinationFormatType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).ShareType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ShareDestinationFormatType?) content.GetValueForProperty("ShareType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).ShareType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ShareDestinationFormatType.CreateFrom); } if (content.Contains("UserName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).UserName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).UserName = (string) content.GetValueForProperty("UserName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).UserName, global::System.Convert.ToString); } if (content.Contains("Password")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).Password, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).Password = (string) content.GetValueForProperty("Password",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).Password, global::System.Convert.ToString); } if (content.Contains("SupportedAccessProtocol")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).SupportedAccessProtocol = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AccessProtocol[]) content.GetValueForProperty("SupportedAccessProtocol",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal)this).SupportedAccessProtocol, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AccessProtocol.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).SupportedAccessProtocol = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AccessProtocol[]) content.GetValueForProperty("SupportedAccessProtocol",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal)this).SupportedAccessProtocol, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AccessProtocol.CreateFrom)); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShareCredentialDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShareCredentialDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShareCredentialDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShareCredentialDetails.TypeConverter.cs index 305b6328d7de..e96f3f30ea6e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShareCredentialDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShareCredentialDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShareCredentialDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShareCredentialDetails.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShareCredentialDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShareCredentialDetails.cs index aecbfd0c737d..63a5c37ea22c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShareCredentialDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShareCredentialDetails.cs @@ -3,30 +3,30 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Credential details of the shares in account. public partial class ShareCredentialDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal { /// Internal Acessors for Password - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal.Password { get => this._password; set { {_password = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal.Password { get => this._password; set { {_password = value;} } } /// Internal Acessors for ShareName - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal.ShareName { get => this._shareName; set { {_shareName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal.ShareName { get => this._shareName; set { {_shareName = value;} } } /// Internal Acessors for ShareType - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ShareDestinationFormatType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal.ShareType { get => this._shareType; set { {_shareType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ShareDestinationFormatType? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal.ShareType { get => this._shareType; set { {_shareType = value;} } } /// Internal Acessors for SupportedAccessProtocol - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AccessProtocol[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal.SupportedAccessProtocol { get => this._supportedAccessProtocol; set { {_supportedAccessProtocol = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AccessProtocol[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal.SupportedAccessProtocol { get => this._supportedAccessProtocol; set { {_supportedAccessProtocol = value;} } } /// Internal Acessors for UserName - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetailsInternal.UserName { get => this._userName; set { {_userName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetailsInternal.UserName { get => this._userName; set { {_userName = value;} } } /// Backing field for property. private string _password; diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShareCredentialDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShareCredentialDetails.json.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShareCredentialDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShareCredentialDetails.json.cs index ce157f23c50c..22a8f6e0e2fa 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShareCredentialDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShareCredentialDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ShareCredentialDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShareCredentialDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShareCredentialDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ShareCredentialDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpRequest.PowerShell.cs similarity index 87% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpRequest.PowerShell.cs index cda64ff91af3..a023b05b6b57 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ShipmentPickUpRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ShipmentPickUpRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ShipmentPickUpRequest(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShi /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,21 +103,21 @@ internal ShipmentPickUpRequest(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequestInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequestInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequestInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequestInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequestInternal)this).EndTime = (global::System.DateTime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequestInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequestInternal)this).EndTime = (global::System.DateTime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequestInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ShipmentLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequestInternal)this).ShipmentLocation = (string) content.GetValueForProperty("ShipmentLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequestInternal)this).ShipmentLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequestInternal)this).ShipmentLocation = (string) content.GetValueForProperty("ShipmentLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequestInternal)this).ShipmentLocation, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,15 +132,15 @@ internal ShipmentPickUpRequest(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("StartTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequestInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequestInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequestInternal)this).StartTime = (global::System.DateTime) content.GetValueForProperty("StartTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequestInternal)this).StartTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("EndTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequestInternal)this).EndTime = (global::System.DateTime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequestInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequestInternal)this).EndTime = (global::System.DateTime) content.GetValueForProperty("EndTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequestInternal)this).EndTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("ShipmentLocation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequestInternal)this).ShipmentLocation = (string) content.GetValueForProperty("ShipmentLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequestInternal)this).ShipmentLocation, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequestInternal)this).ShipmentLocation = (string) content.GetValueForProperty("ShipmentLocation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequestInternal)this).ShipmentLocation, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpRequest.TypeConverter.cs index 6298b56e0207..edf59264db32 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpRequest.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpRequest.cs index 7481d4877677..fb2ea9d2fff3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpRequest.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Shipment pick up request details. public partial class ShipmentPickUpRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequestInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpRequest.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpRequest.json.cs index 533a615a8043..6620c3bbda25 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ShipmentPickUpRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ShipmentPickUpRequest(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpResponse.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpResponse.PowerShell.cs similarity index 87% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpResponse.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpResponse.PowerShell.cs index 36ff0b51ae33..7c5995b325f9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpResponse.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ShipmentPickUpResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ShipmentPickUpResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ShipmentPickUpResponse(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShi /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,17 +103,17 @@ internal ShipmentPickUpResponse(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ConfirmationNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponseInternal)this).ConfirmationNumber = (string) content.GetValueForProperty("ConfirmationNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponseInternal)this).ConfirmationNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponseInternal)this).ConfirmationNumber = (string) content.GetValueForProperty("ConfirmationNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponseInternal)this).ConfirmationNumber, global::System.Convert.ToString); } if (content.Contains("ReadyByTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponseInternal)this).ReadyByTime = (global::System.DateTime?) content.GetValueForProperty("ReadyByTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponseInternal)this).ReadyByTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponseInternal)this).ReadyByTime = (global::System.DateTime?) content.GetValueForProperty("ReadyByTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponseInternal)this).ReadyByTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,11 +128,11 @@ internal ShipmentPickUpResponse(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("ConfirmationNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponseInternal)this).ConfirmationNumber = (string) content.GetValueForProperty("ConfirmationNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponseInternal)this).ConfirmationNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponseInternal)this).ConfirmationNumber = (string) content.GetValueForProperty("ConfirmationNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponseInternal)this).ConfirmationNumber, global::System.Convert.ToString); } if (content.Contains("ReadyByTime")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponseInternal)this).ReadyByTime = (global::System.DateTime?) content.GetValueForProperty("ReadyByTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponseInternal)this).ReadyByTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponseInternal)this).ReadyByTime = (global::System.DateTime?) content.GetValueForProperty("ReadyByTime",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponseInternal)this).ReadyByTime, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpResponse.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpResponse.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpResponse.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpResponse.TypeConverter.cs index 70b89e22667e..96b713933c08 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpResponse.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpResponse.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpResponse.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpResponse.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpResponse.cs index 72cbc7976c51..e4f44b7ea843 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpResponse.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpResponse.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Shipment pick up response. public partial class ShipmentPickUpResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponseInternal { /// Backing field for property. @@ -21,10 +21,10 @@ public partial class ShipmentPickUpResponse : public string ConfirmationNumber { get => this._confirmationNumber; } /// Internal Acessors for ConfirmationNumber - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponseInternal.ConfirmationNumber { get => this._confirmationNumber; set { {_confirmationNumber = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponseInternal.ConfirmationNumber { get => this._confirmationNumber; set { {_confirmationNumber = value;} } } /// Internal Acessors for ReadyByTime - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponseInternal.ReadyByTime { get => this._readyByTime; set { {_readyByTime = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponseInternal.ReadyByTime { get => this._readyByTime; set { {_readyByTime = value;} } } /// Backing field for property. private global::System.DateTime? _readyByTime; diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpResponse.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpResponse.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpResponse.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpResponse.json.cs index db8e5293bd80..b4fe1947b249 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShipmentPickUpResponse.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShipmentPickUpResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ShipmentPickUpResponse partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShipmentPickUpResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShipmentPickUpResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ShipmentPickUpResponse(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShippingAddress.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShippingAddress.PowerShell.cs similarity index 79% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShippingAddress.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShippingAddress.PowerShell.cs index a563914270dc..144d293eb0e4 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShippingAddress.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShippingAddress.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ShippingAddress partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ShippingAddress(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ShippingAddress(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShi /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,57 +103,57 @@ internal ShippingAddress(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("StreetAddress1")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StreetAddress1 = (string) content.GetValueForProperty("StreetAddress1",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StreetAddress1, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StreetAddress1 = (string) content.GetValueForProperty("StreetAddress1",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StreetAddress1, global::System.Convert.ToString); } if (content.Contains("StreetAddress2")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StreetAddress2 = (string) content.GetValueForProperty("StreetAddress2",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StreetAddress2, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StreetAddress2 = (string) content.GetValueForProperty("StreetAddress2",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StreetAddress2, global::System.Convert.ToString); } if (content.Contains("StreetAddress3")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StreetAddress3 = (string) content.GetValueForProperty("StreetAddress3",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StreetAddress3, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StreetAddress3 = (string) content.GetValueForProperty("StreetAddress3",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StreetAddress3, global::System.Convert.ToString); } if (content.Contains("City")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).City = (string) content.GetValueForProperty("City",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).City, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).City = (string) content.GetValueForProperty("City",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).City, global::System.Convert.ToString); } if (content.Contains("StateOrProvince")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StateOrProvince = (string) content.GetValueForProperty("StateOrProvince",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StateOrProvince, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StateOrProvince = (string) content.GetValueForProperty("StateOrProvince",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StateOrProvince, global::System.Convert.ToString); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).Country, global::System.Convert.ToString); } if (content.Contains("PostalCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).PostalCode = (string) content.GetValueForProperty("PostalCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).PostalCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).PostalCode = (string) content.GetValueForProperty("PostalCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).PostalCode, global::System.Convert.ToString); } if (content.Contains("ZipExtendedCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).ZipExtendedCode = (string) content.GetValueForProperty("ZipExtendedCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).ZipExtendedCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).ZipExtendedCode = (string) content.GetValueForProperty("ZipExtendedCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).ZipExtendedCode, global::System.Convert.ToString); } if (content.Contains("CompanyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).CompanyName = (string) content.GetValueForProperty("CompanyName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).CompanyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).CompanyName = (string) content.GetValueForProperty("CompanyName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).CompanyName, global::System.Convert.ToString); } if (content.Contains("AddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).AddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressType?) content.GetValueForProperty("AddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).AddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).AddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressType?) content.GetValueForProperty("AddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).AddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressType.CreateFrom); } if (content.Contains("SkipAddressValidation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).SkipAddressValidation = (bool?) content.GetValueForProperty("SkipAddressValidation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).SkipAddressValidation, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).SkipAddressValidation = (bool?) content.GetValueForProperty("SkipAddressValidation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).SkipAddressValidation, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TaxIdentificationNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).TaxIdentificationNumber = (string) content.GetValueForProperty("TaxIdentificationNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).TaxIdentificationNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).TaxIdentificationNumber = (string) content.GetValueForProperty("TaxIdentificationNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).TaxIdentificationNumber, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -168,51 +168,51 @@ internal ShippingAddress(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("StreetAddress1")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StreetAddress1 = (string) content.GetValueForProperty("StreetAddress1",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StreetAddress1, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StreetAddress1 = (string) content.GetValueForProperty("StreetAddress1",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StreetAddress1, global::System.Convert.ToString); } if (content.Contains("StreetAddress2")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StreetAddress2 = (string) content.GetValueForProperty("StreetAddress2",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StreetAddress2, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StreetAddress2 = (string) content.GetValueForProperty("StreetAddress2",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StreetAddress2, global::System.Convert.ToString); } if (content.Contains("StreetAddress3")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StreetAddress3 = (string) content.GetValueForProperty("StreetAddress3",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StreetAddress3, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StreetAddress3 = (string) content.GetValueForProperty("StreetAddress3",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StreetAddress3, global::System.Convert.ToString); } if (content.Contains("City")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).City = (string) content.GetValueForProperty("City",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).City, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).City = (string) content.GetValueForProperty("City",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).City, global::System.Convert.ToString); } if (content.Contains("StateOrProvince")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StateOrProvince = (string) content.GetValueForProperty("StateOrProvince",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).StateOrProvince, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StateOrProvince = (string) content.GetValueForProperty("StateOrProvince",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).StateOrProvince, global::System.Convert.ToString); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).Country, global::System.Convert.ToString); } if (content.Contains("PostalCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).PostalCode = (string) content.GetValueForProperty("PostalCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).PostalCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).PostalCode = (string) content.GetValueForProperty("PostalCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).PostalCode, global::System.Convert.ToString); } if (content.Contains("ZipExtendedCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).ZipExtendedCode = (string) content.GetValueForProperty("ZipExtendedCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).ZipExtendedCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).ZipExtendedCode = (string) content.GetValueForProperty("ZipExtendedCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).ZipExtendedCode, global::System.Convert.ToString); } if (content.Contains("CompanyName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).CompanyName = (string) content.GetValueForProperty("CompanyName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).CompanyName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).CompanyName = (string) content.GetValueForProperty("CompanyName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).CompanyName, global::System.Convert.ToString); } if (content.Contains("AddressType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).AddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressType?) content.GetValueForProperty("AddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).AddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).AddressType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressType?) content.GetValueForProperty("AddressType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).AddressType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.AddressType.CreateFrom); } if (content.Contains("SkipAddressValidation")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).SkipAddressValidation = (bool?) content.GetValueForProperty("SkipAddressValidation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).SkipAddressValidation, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).SkipAddressValidation = (bool?) content.GetValueForProperty("SkipAddressValidation",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).SkipAddressValidation, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TaxIdentificationNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).TaxIdentificationNumber = (string) content.GetValueForProperty("TaxIdentificationNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal)this).TaxIdentificationNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).TaxIdentificationNumber = (string) content.GetValueForProperty("TaxIdentificationNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal)this).TaxIdentificationNumber, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShippingAddress.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShippingAddress.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShippingAddress.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShippingAddress.TypeConverter.cs index 77e1b3aa2c89..a44fe13d21e7 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShippingAddress.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShippingAddress.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShippingAddress.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShippingAddress.cs similarity index 99% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShippingAddress.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShippingAddress.cs index dca4554af82d..0979126c09c3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShippingAddress.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShippingAddress.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Shipping address where customer wishes to receive the device. public partial class ShippingAddress : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddressInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddressInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShippingAddress.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShippingAddress.json.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShippingAddress.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShippingAddress.json.cs index d9ffd6cce5bc..4e68f1e2d178 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ShippingAddress.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ShippingAddress.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ShippingAddress partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ShippingAddress(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Sku.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Sku.PowerShell.cs similarity index 79% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Sku.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Sku.PowerShell.cs index c2e602938b67..198d70bad228 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Sku.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Sku.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class Sku partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new Sku(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new Sku(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,21 +103,25 @@ internal Sku(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("DisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).DisplayName, global::System.Convert.ToString); } if (content.Contains("Family")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)this).Family = (string) content.GetValueForProperty("Family",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)this).Family, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).Family = (string) content.GetValueForProperty("Family",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).Family, global::System.Convert.ToString); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,15 +136,19 @@ internal Sku(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Name")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).Name = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("Name",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).Name, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("DisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)this).DisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).DisplayName = (string) content.GetValueForProperty("DisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).DisplayName, global::System.Convert.ToString); } if (content.Contains("Family")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)this).Family = (string) content.GetValueForProperty("Family",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)this).Family, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).Family = (string) content.GetValueForProperty("Family",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).Family, global::System.Convert.ToString); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Sku.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Sku.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Sku.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Sku.TypeConverter.cs index a3db475609a0..c46c4a982eba 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Sku.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Sku.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Sku.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Sku.cs similarity index 64% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Sku.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Sku.cs index 0da171630683..862648ab9d4d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Sku.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Sku.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// The Sku. public partial class Sku : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal { /// Backing field for property. @@ -27,6 +27,16 @@ public partial class Sku : [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] public string Family { get => this._family; set => this._family = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? _model; + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get => this._model; set => this._model = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName _name; @@ -60,6 +70,17 @@ public partial interface ISku : SerializedName = @"family", PossibleTypes = new [] { typeof(string) })] string Family { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// The sku name. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, @@ -78,6 +99,11 @@ internal partial interface ISkuInternal string DisplayName { get; set; } /// The sku family. string Family { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// The sku name. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName Name { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Sku.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Sku.json.cs similarity index 92% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Sku.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Sku.json.cs index dfbe397dd013..835a1120fc44 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/Sku.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/Sku.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class Sku partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new Sku(json) : null; } @@ -80,6 +80,7 @@ internal Sku(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject {_name = If( json?.PropertyT("name"), out var __jsonName) ? (string)__jsonName : (string)Name;} {_displayName = If( json?.PropertyT("displayName"), out var __jsonDisplayName) ? (string)__jsonDisplayName : (string)DisplayName;} {_family = If( json?.PropertyT("family"), out var __jsonFamily) ? (string)__jsonFamily : (string)Family;} + {_model = If( json?.PropertyT("model"), out var __jsonModel) ? (string)__jsonModel : (string)Model;} AfterFromJson(json); } @@ -105,6 +106,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M AddIf( null != (((object)this._name)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._name.ToString()) : null, "name" ,container.Add ); AddIf( null != (((object)this._displayName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._displayName.ToString()) : null, "displayName" ,container.Add ); AddIf( null != (((object)this._family)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._family.ToString()) : null, "family" ,container.Add ); + AddIf( null != (((object)this._model)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._model.ToString()) : null, "model" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationRequest.PowerShell.cs similarity index 79% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationRequest.PowerShell.cs index 268848eb62f3..a65cf74c03a6 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class SkuAvailabilityValidationRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SkuAvailabilityValidationRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SkuAvailabilityValidationRequest(content); } @@ -87,10 +87,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -105,29 +105,33 @@ internal SkuAvailabilityValidationRequest(global::System.Collections.IDictionary // actually deserialize if (content.Contains("DeviceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).Country, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -142,23 +146,27 @@ internal SkuAvailabilityValidationRequest(global::System.Management.Automation.P // actually deserialize if (content.Contains("DeviceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("TransferType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).TransferType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType) content.GetValueForProperty("TransferType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).TransferType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType.CreateFrom); } if (content.Contains("Country")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).Country, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).Country = (string) content.GetValueForProperty("Country",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).Country, global::System.Convert.ToString); } if (content.Contains("Location")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal)this).Location, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).Location = (string) content.GetValueForProperty("Location",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).Location, global::System.Convert.ToString); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationRequest.TypeConverter.cs index 71dd581b9075..ba3b3929e47b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -107,14 +107,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationRequest.cs similarity index 76% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationRequest.cs index 6ae9aa4eacc5..49996d5527cf 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationRequest.cs @@ -3,21 +3,21 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Request to validate sku availability. public partial class SkuAvailabilityValidationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest(); /// Backing field for property. private string _country; @@ -44,6 +44,16 @@ public partial class SkuAvailabilityValidationRequest : [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] public string Location { get => this._location; set => this._location = value; } + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? _model; + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get => this._model; set => this._model = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType _transferType; @@ -53,7 +63,7 @@ public partial class SkuAvailabilityValidationRequest : /// Identifies the type of validation request. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)__validationInputRequest).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)__validationInputRequest).ValidationType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)__validationInputRequest).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)__validationInputRequest).ValidationType = value ; } /// Creates an new instance. public SkuAvailabilityValidationRequest() @@ -76,7 +86,7 @@ public SkuAvailabilityValidationRequest() /// Request to validate sku availability. public partial interface ISkuAvailabilityValidationRequest : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest { /// /// ISO country code. Country for hardware shipment. For codes check: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements @@ -106,6 +116,17 @@ public partial interface ISkuAvailabilityValidationRequest : SerializedName = @"location", PossibleTypes = new [] { typeof(string) })] string Location { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// Type of the transfer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, @@ -118,7 +139,7 @@ public partial interface ISkuAvailabilityValidationRequest : } /// Request to validate sku availability. internal partial interface ISkuAvailabilityValidationRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal { /// /// ISO country code. Country for hardware shipment. For codes check: https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements @@ -130,6 +151,11 @@ internal partial interface ISkuAvailabilityValidationRequestInternal : /// Location for data transfer. For locations check: https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01 /// string Location { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// Type of the transfer. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferType TransferType { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationRequest.json.cs similarity index 92% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationRequest.json.cs index 20566755c990..48e473a343a6 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SkuAvailabilityValidationRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new SkuAvailabilityValidationRequest(json) : null; } @@ -77,11 +77,12 @@ internal SkuAvailabilityValidationRequest(Microsoft.Azure.PowerShell.Cmdlets.Dat { return; } - __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest(json); + __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest(json); {_deviceType = If( json?.PropertyT("deviceType"), out var __jsonDeviceType) ? (string)__jsonDeviceType : (string)DeviceType;} {_transferType = If( json?.PropertyT("transferType"), out var __jsonTransferType) ? (string)__jsonTransferType : (string)TransferType;} {_country = If( json?.PropertyT("country"), out var __jsonCountry) ? (string)__jsonCountry : (string)Country;} {_location = If( json?.PropertyT("location"), out var __jsonLocation) ? (string)__jsonLocation : (string)Location;} + {_model = If( json?.PropertyT("model"), out var __jsonModel) ? (string)__jsonModel : (string)Model;} AfterFromJson(json); } @@ -109,6 +110,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M AddIf( null != (((object)this._transferType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._transferType.ToString()) : null, "transferType" ,container.Add ); AddIf( null != (((object)this._country)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._country.ToString()) : null, "country" ,container.Add ); AddIf( null != (((object)this._location)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._location.ToString()) : null, "location" ,container.Add ); + AddIf( null != (((object)this._model)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._model.ToString()) : null, "model" ,container.Add ); AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationResponseProperties.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationResponseProperties.PowerShell.cs similarity index 77% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationResponseProperties.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationResponseProperties.PowerShell.cs index 3909246cc555..d99a05eb8ece 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationResponseProperties.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationResponseProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class SkuAvailabilityValidationResponseProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SkuAvailabilityValidationResponseProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SkuAvailabilityValidationResponseProperties(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,41 +108,41 @@ internal SkuAvailabilityValidationResponseProperties(global::System.Collections. // actually deserialize if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -157,35 +157,35 @@ internal SkuAvailabilityValidationResponseProperties(global::System.Management.A // actually deserialize if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationResponseProperties.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationResponseProperties.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationResponseProperties.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationResponseProperties.TypeConverter.cs index f6a03fd94df0..d380ec6b8efc 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationResponseProperties.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationResponseProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponseProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponseProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponseProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponseProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationResponseProperties.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationResponseProperties.cs similarity index 77% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationResponseProperties.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationResponseProperties.cs index 76ded7f5f110..3c8353ff80a7 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationResponseProperties.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationResponseProperties.cs @@ -3,53 +3,53 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Properties of sku availability validation response. public partial class SkuAvailabilityValidationResponseProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponseProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponsePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponseProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponsePropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse(); /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Code = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail; } /// Error code and message of validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Message = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponsePropertiesInternal.Status { get => this._status; set { {_status = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponsePropertiesInternal.Status { get => this._status; set { {_status = value;} } } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? _status; @@ -60,11 +60,11 @@ public partial class SkuAvailabilityValidationResponseProperties : /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Target = value ?? null; } /// Identifies the type of validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).ValidationType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).ValidationType = value ; } /// /// Creates an new instance. @@ -89,7 +89,7 @@ public SkuAvailabilityValidationResponseProperties() /// Properties of sku availability validation response. public partial interface ISkuAvailabilityValidationResponseProperties : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse { /// Sku availability validation status. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -103,7 +103,7 @@ public partial interface ISkuAvailabilityValidationResponseProperties : } /// Properties of sku availability validation response. internal partial interface ISkuAvailabilityValidationResponsePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal { /// Sku availability validation status. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Status { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationResponseProperties.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationResponseProperties.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationResponseProperties.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationResponseProperties.json.cs index 2814e48cfeab..eb5eaa2c847e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuAvailabilityValidationResponseProperties.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuAvailabilityValidationResponseProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SkuAvailabilityValidationResponseProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponseProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponseProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponseProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponseProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuAvailabilityValidationResponseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuAvailabilityValidationResponseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new SkuAvailabilityValidationResponseProperties(json) : null; } @@ -77,7 +77,7 @@ internal SkuAvailabilityValidationResponseProperties(Microsoft.Azure.PowerShell. { return; } - __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse(json); + __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse(json); {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCapacity.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCapacity.PowerShell.cs similarity index 80% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCapacity.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCapacity.PowerShell.cs index ef0c050fa4b2..a01f88b41134 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCapacity.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCapacity.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SkuCapacity partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SkuCapacity(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SkuCapacity(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,17 +103,21 @@ internal SkuCapacity(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Usable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal)this).Usable = (string) content.GetValueForProperty("Usable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal)this).Usable, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)this).Usable = (string) content.GetValueForProperty("Usable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)this).Usable, global::System.Convert.ToString); } if (content.Contains("Maximum")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal)this).Maximum = (string) content.GetValueForProperty("Maximum",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal)this).Maximum, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)this).Maximum = (string) content.GetValueForProperty("Maximum",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)this).Maximum, global::System.Convert.ToString); + } + if (content.Contains("IndividualSkuUsable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)this).IndividualSkuUsable = (string) content.GetValueForProperty("IndividualSkuUsable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)this).IndividualSkuUsable, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -128,11 +132,15 @@ internal SkuCapacity(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Usable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal)this).Usable = (string) content.GetValueForProperty("Usable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal)this).Usable, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)this).Usable = (string) content.GetValueForProperty("Usable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)this).Usable, global::System.Convert.ToString); } if (content.Contains("Maximum")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal)this).Maximum = (string) content.GetValueForProperty("Maximum",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal)this).Maximum, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)this).Maximum = (string) content.GetValueForProperty("Maximum",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)this).Maximum, global::System.Convert.ToString); + } + if (content.Contains("IndividualSkuUsable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)this).IndividualSkuUsable = (string) content.GetValueForProperty("IndividualSkuUsable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)this).IndividualSkuUsable, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCapacity.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCapacity.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCapacity.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCapacity.TypeConverter.cs index 8aa7f91fd6cc..67bfba8eb41e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCapacity.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCapacity.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCapacity.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCapacity.cs similarity index 68% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCapacity.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCapacity.cs index 25ed283a9603..00cc3766b421 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCapacity.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCapacity.cs @@ -3,16 +3,23 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Capacity of the sku. public partial class SkuCapacity : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal { + /// Backing field for property. + private string _individualSkuUsable; + + /// Maximum capacity per device in TB. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public string IndividualSkuUsable { get => this._individualSkuUsable; } + /// Backing field for property. private string _maximum; @@ -20,11 +27,14 @@ public partial class SkuCapacity : [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] public string Maximum { get => this._maximum; } + /// Internal Acessors for IndividualSkuUsable + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal.IndividualSkuUsable { get => this._individualSkuUsable; set { {_individualSkuUsable = value;} } } + /// Internal Acessors for Maximum - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal.Maximum { get => this._maximum; set { {_maximum = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal.Maximum { get => this._maximum; set { {_maximum = value;} } } /// Internal Acessors for Usable - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal.Usable { get => this._usable; set { {_usable = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal.Usable { get => this._usable; set { {_usable = value;} } } /// Backing field for property. private string _usable; @@ -43,6 +53,14 @@ public SkuCapacity() public partial interface ISkuCapacity : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable { + /// Maximum capacity per device in TB. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Maximum capacity per device in TB.", + SerializedName = @"individualSkuUsable", + PossibleTypes = new [] { typeof(string) })] + string IndividualSkuUsable { get; } /// Maximum capacity in TB. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -65,6 +83,8 @@ public partial interface ISkuCapacity : internal partial interface ISkuCapacityInternal { + /// Maximum capacity per device in TB. + string IndividualSkuUsable { get; set; } /// Maximum capacity in TB. string Maximum { get; set; } /// Usable capacity in TB. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCapacity.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCapacity.json.cs similarity index 89% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCapacity.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCapacity.json.cs index a069f0018196..59b0b217ce1c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCapacity.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCapacity.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SkuCapacity partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new SkuCapacity(json) : null; } @@ -79,6 +79,7 @@ internal SkuCapacity(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.Jso } {_usable = If( json?.PropertyT("usable"), out var __jsonUsable) ? (string)__jsonUsable : (string)Usable;} {_maximum = If( json?.PropertyT("maximum"), out var __jsonMaximum) ? (string)__jsonMaximum : (string)Maximum;} + {_individualSkuUsable = If( json?.PropertyT("individualSkuUsable"), out var __jsonIndividualSkuUsable) ? (string)__jsonIndividualSkuUsable : (string)IndividualSkuUsable;} AfterFromJson(json); } @@ -109,6 +110,10 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M { AddIf( null != (((object)this._maximum)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._maximum.ToString()) : null, "maximum" ,container.Add ); } + if (serializationMode.HasFlag(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeReadOnly)) + { + AddIf( null != (((object)this._individualSkuUsable)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._individualSkuUsable.ToString()) : null, "individualSkuUsable" ,container.Add ); + } AfterToJson(ref container); return container; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCost.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCost.PowerShell.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCost.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCost.PowerShell.cs index cc9360a81953..027be5413a74 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCost.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCost.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SkuCost partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SkuCost(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SkuCost(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,21 +103,21 @@ internal SkuCost(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("MeterId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal)this).MeterId = (string) content.GetValueForProperty("MeterId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal)this).MeterId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal)this).MeterId = (string) content.GetValueForProperty("MeterId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal)this).MeterId, global::System.Convert.ToString); } if (content.Contains("MeterType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal)this).MeterType = (string) content.GetValueForProperty("MeterType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal)this).MeterType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal)this).MeterType = (string) content.GetValueForProperty("MeterType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal)this).MeterType, global::System.Convert.ToString); } if (content.Contains("Multiplier")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal)this).Multiplier = (double?) content.GetValueForProperty("Multiplier",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal)this).Multiplier, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal)this).Multiplier = (double?) content.GetValueForProperty("Multiplier",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal)this).Multiplier, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,15 +132,15 @@ internal SkuCost(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("MeterId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal)this).MeterId = (string) content.GetValueForProperty("MeterId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal)this).MeterId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal)this).MeterId = (string) content.GetValueForProperty("MeterId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal)this).MeterId, global::System.Convert.ToString); } if (content.Contains("MeterType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal)this).MeterType = (string) content.GetValueForProperty("MeterType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal)this).MeterType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal)this).MeterType = (string) content.GetValueForProperty("MeterType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal)this).MeterType, global::System.Convert.ToString); } if (content.Contains("Multiplier")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal)this).Multiplier = (double?) content.GetValueForProperty("Multiplier",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal)this).Multiplier, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal)this).Multiplier = (double?) content.GetValueForProperty("Multiplier",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal)this).Multiplier, (__y)=> (double) global::System.Convert.ChangeType(__y, typeof(double))); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCost.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCost.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCost.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCost.TypeConverter.cs index cb29a2ad2ee4..797174b7df83 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCost.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCost.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCost.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCost.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCost.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCost.cs index aa17c825db55..60e08ccf9a0a 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCost.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCost.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Describes metadata for retrieving price info. public partial class SkuCost : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal { /// Backing field for property. @@ -28,13 +28,13 @@ public partial class SkuCost : public string MeterType { get => this._meterType; } /// Internal Acessors for MeterId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal.MeterId { get => this._meterId; set { {_meterId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal.MeterId { get => this._meterId; set { {_meterId = value;} } } /// Internal Acessors for MeterType - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal.MeterType { get => this._meterType; set { {_meterType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal.MeterType { get => this._meterType; set { {_meterType = value;} } } /// Internal Acessors for Multiplier - double? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCostInternal.Multiplier { get => this._multiplier; set { {_multiplier = value;} } } + double? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCostInternal.Multiplier { get => this._multiplier; set { {_multiplier = value;} } } /// Backing field for property. private double? _multiplier; diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCost.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCost.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCost.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCost.json.cs index 1522aa528736..1ae4d7bcb9ca 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuCost.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuCost.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SkuCost partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new SkuCost(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuInformation.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuInformation.PowerShell.cs similarity index 67% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuInformation.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuInformation.PowerShell.cs index baf2113c4142..a7d0499082c5 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuInformation.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuInformation.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SkuInformation partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SkuInformation(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SkuInformation(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,73 +103,81 @@ internal SkuInformation(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuTypeConverter.ConvertFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Enabled")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Enabled = (bool?) content.GetValueForProperty("Enabled",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Enabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Enabled = (bool?) content.GetValueForProperty("Enabled",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Enabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("SkuDisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).SkuDisplayName = (string) content.GetValueForProperty("SkuDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).SkuDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuDisplayName = (string) content.GetValueForProperty("SkuDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuDisplayName, global::System.Convert.ToString); } if (content.Contains("SkuFamily")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).SkuFamily, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuModel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("SkuModel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuModel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("Capacity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Capacity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Capacity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCapacityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Capacity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Capacity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCapacityTypeConverter.ConvertFrom); } if (content.Contains("DataLocationToServiceLocationMap")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).DataLocationToServiceLocationMap = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap[]) content.GetValueForProperty("DataLocationToServiceLocationMap",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).DataLocationToServiceLocationMap, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataLocationToServiceLocationMapTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).DataLocationToServiceLocationMap = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap[]) content.GetValueForProperty("DataLocationToServiceLocationMap",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).DataLocationToServiceLocationMap, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataLocationToServiceLocationMapTypeConverter.ConvertFrom)); } if (content.Contains("Cost")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Cost = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost[]) content.GetValueForProperty("Cost",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Cost, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCostTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Cost = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost[]) content.GetValueForProperty("Cost",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Cost, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCostTypeConverter.ConvertFrom)); } if (content.Contains("ApiVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).ApiVersion = (string[]) content.GetValueForProperty("ApiVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).ApiVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).ApiVersion = (string[]) content.GetValueForProperty("ApiVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).ApiVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DisabledReason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).DisabledReason = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason?) content.GetValueForProperty("DisabledReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).DisabledReason, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).DisabledReason = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason?) content.GetValueForProperty("DisabledReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).DisabledReason, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason.CreateFrom); } if (content.Contains("DisabledReasonMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).DisabledReasonMessage = (string) content.GetValueForProperty("DisabledReasonMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).DisabledReasonMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).DisabledReasonMessage = (string) content.GetValueForProperty("DisabledReasonMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).DisabledReasonMessage, global::System.Convert.ToString); } if (content.Contains("RequiredFeature")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).RequiredFeature = (string) content.GetValueForProperty("RequiredFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).RequiredFeature, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).RequiredFeature = (string) content.GetValueForProperty("RequiredFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).RequiredFeature, global::System.Convert.ToString); } if (content.Contains("CountriesWithinCommerceBoundary")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).CountriesWithinCommerceBoundary = (string[]) content.GetValueForProperty("CountriesWithinCommerceBoundary",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).CountriesWithinCommerceBoundary, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CountriesWithinCommerceBoundary = (string[]) content.GetValueForProperty("CountriesWithinCommerceBoundary",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CountriesWithinCommerceBoundary, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("CapacityUsable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).CapacityUsable = (string) content.GetValueForProperty("CapacityUsable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).CapacityUsable, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CapacityUsable = (string) content.GetValueForProperty("CapacityUsable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CapacityUsable, global::System.Convert.ToString); } if (content.Contains("CapacityMaximum")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).CapacityMaximum = (string) content.GetValueForProperty("CapacityMaximum",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).CapacityMaximum, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CapacityMaximum = (string) content.GetValueForProperty("CapacityMaximum",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CapacityMaximum, global::System.Convert.ToString); + } + if (content.Contains("CapacityIndividualSkuUsable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CapacityIndividualSkuUsable = (string) content.GetValueForProperty("CapacityIndividualSkuUsable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CapacityIndividualSkuUsable, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -184,67 +192,75 @@ internal SkuInformation(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Sku")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Sku = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku) content.GetValueForProperty("Sku",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Sku, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuTypeConverter.ConvertFrom); } if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuPropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuPropertiesTypeConverter.ConvertFrom); } if (content.Contains("Enabled")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Enabled = (bool?) content.GetValueForProperty("Enabled",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Enabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Enabled = (bool?) content.GetValueForProperty("Enabled",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Enabled, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); } if (content.Contains("SkuDisplayName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).SkuDisplayName = (string) content.GetValueForProperty("SkuDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).SkuDisplayName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuDisplayName = (string) content.GetValueForProperty("SkuDisplayName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuDisplayName, global::System.Convert.ToString); } if (content.Contains("SkuFamily")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).SkuFamily, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuFamily = (string) content.GetValueForProperty("SkuFamily",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuFamily, global::System.Convert.ToString); + } + if (content.Contains("SkuModel")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuModel = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("SkuModel",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).SkuModel, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("Capacity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Capacity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Capacity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCapacityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Capacity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Capacity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCapacityTypeConverter.ConvertFrom); } if (content.Contains("DataLocationToServiceLocationMap")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).DataLocationToServiceLocationMap = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap[]) content.GetValueForProperty("DataLocationToServiceLocationMap",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).DataLocationToServiceLocationMap, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataLocationToServiceLocationMapTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).DataLocationToServiceLocationMap = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap[]) content.GetValueForProperty("DataLocationToServiceLocationMap",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).DataLocationToServiceLocationMap, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataLocationToServiceLocationMapTypeConverter.ConvertFrom)); } if (content.Contains("Cost")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Cost = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost[]) content.GetValueForProperty("Cost",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).Cost, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCostTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Cost = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost[]) content.GetValueForProperty("Cost",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).Cost, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCostTypeConverter.ConvertFrom)); } if (content.Contains("ApiVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).ApiVersion = (string[]) content.GetValueForProperty("ApiVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).ApiVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).ApiVersion = (string[]) content.GetValueForProperty("ApiVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).ApiVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DisabledReason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).DisabledReason = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason?) content.GetValueForProperty("DisabledReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).DisabledReason, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).DisabledReason = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason?) content.GetValueForProperty("DisabledReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).DisabledReason, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason.CreateFrom); } if (content.Contains("DisabledReasonMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).DisabledReasonMessage = (string) content.GetValueForProperty("DisabledReasonMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).DisabledReasonMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).DisabledReasonMessage = (string) content.GetValueForProperty("DisabledReasonMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).DisabledReasonMessage, global::System.Convert.ToString); } if (content.Contains("RequiredFeature")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).RequiredFeature = (string) content.GetValueForProperty("RequiredFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).RequiredFeature, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).RequiredFeature = (string) content.GetValueForProperty("RequiredFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).RequiredFeature, global::System.Convert.ToString); } if (content.Contains("CountriesWithinCommerceBoundary")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).CountriesWithinCommerceBoundary = (string[]) content.GetValueForProperty("CountriesWithinCommerceBoundary",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).CountriesWithinCommerceBoundary, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CountriesWithinCommerceBoundary = (string[]) content.GetValueForProperty("CountriesWithinCommerceBoundary",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CountriesWithinCommerceBoundary, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("CapacityUsable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).CapacityUsable = (string) content.GetValueForProperty("CapacityUsable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).CapacityUsable, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CapacityUsable = (string) content.GetValueForProperty("CapacityUsable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CapacityUsable, global::System.Convert.ToString); } if (content.Contains("CapacityMaximum")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).CapacityMaximum = (string) content.GetValueForProperty("CapacityMaximum",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal)this).CapacityMaximum, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CapacityMaximum = (string) content.GetValueForProperty("CapacityMaximum",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CapacityMaximum, global::System.Convert.ToString); + } + if (content.Contains("CapacityIndividualSkuUsable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CapacityIndividualSkuUsable = (string) content.GetValueForProperty("CapacityIndividualSkuUsable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal)this).CapacityIndividualSkuUsable, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuInformation.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuInformation.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuInformation.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuInformation.TypeConverter.cs index b8c6c930300d..12c600c8ae25 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuInformation.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuInformation.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuInformation.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuInformation.cs similarity index 67% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuInformation.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuInformation.cs index 65ef315e4537..8515e5fc1e31 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuInformation.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuInformation.cs @@ -3,47 +3,51 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Information of the sku. public partial class SkuInformation : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal { /// Api versions that support this Sku. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] ApiVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).ApiVersion; } + public string[] ApiVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).ApiVersion; } + + /// Maximum capacity per device in TB. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public string CapacityIndividualSkuUsable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).CapacityIndividualSkuUsable; } /// Maximum capacity in TB. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string CapacityMaximum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).CapacityMaximum; } + public string CapacityMaximum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).CapacityMaximum; } /// Usable capacity in TB. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string CapacityUsable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).CapacityUsable; } + public string CapacityUsable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).CapacityUsable; } /// Cost of the Sku. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost[] Cost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).Cost; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost[] Cost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).Cost; } /// List of all the Countries in the SKU specific commerce boundary [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] CountriesWithinCommerceBoundary { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).CountriesWithinCommerceBoundary; } + public string[] CountriesWithinCommerceBoundary { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).CountriesWithinCommerceBoundary; } /// The map of data location to service location. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap[] DataLocationToServiceLocationMap { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).DataLocationToServiceLocationMap; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap[] DataLocationToServiceLocationMap { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).DataLocationToServiceLocationMap; } /// Reason why the Sku is disabled. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason? DisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).DisabledReason; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason? DisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).DisabledReason; } /// Message for why the Sku is disabled. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).DisabledReasonMessage; } + public string DisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).DisabledReasonMessage; } /// Backing field for property. private bool? _enabled; @@ -53,73 +57,83 @@ public partial class SkuInformation : public bool? Enabled { get => this._enabled; } /// Internal Acessors for ApiVersion - string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal.ApiVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).ApiVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).ApiVersion = value; } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal.ApiVersion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).ApiVersion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).ApiVersion = value; } /// Internal Acessors for Capacity - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal.Capacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).Capacity = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal.Capacity { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).Capacity; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).Capacity = value; } + + /// Internal Acessors for CapacityIndividualSkuUsable + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal.CapacityIndividualSkuUsable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).CapacityIndividualSkuUsable; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).CapacityIndividualSkuUsable = value; } /// Internal Acessors for CapacityMaximum - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal.CapacityMaximum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).CapacityMaximum; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).CapacityMaximum = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal.CapacityMaximum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).CapacityMaximum; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).CapacityMaximum = value; } /// Internal Acessors for CapacityUsable - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal.CapacityUsable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).CapacityUsable; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).CapacityUsable = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal.CapacityUsable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).CapacityUsable; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).CapacityUsable = value; } /// Internal Acessors for Cost - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal.Cost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).Cost; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).Cost = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal.Cost { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).Cost; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).Cost = value; } /// Internal Acessors for CountriesWithinCommerceBoundary - string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal.CountriesWithinCommerceBoundary { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).CountriesWithinCommerceBoundary; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).CountriesWithinCommerceBoundary = value; } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal.CountriesWithinCommerceBoundary { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).CountriesWithinCommerceBoundary; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).CountriesWithinCommerceBoundary = value; } /// Internal Acessors for DataLocationToServiceLocationMap - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal.DataLocationToServiceLocationMap { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).DataLocationToServiceLocationMap; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).DataLocationToServiceLocationMap = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal.DataLocationToServiceLocationMap { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).DataLocationToServiceLocationMap; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).DataLocationToServiceLocationMap = value; } /// Internal Acessors for DisabledReason - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal.DisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).DisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).DisabledReason = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal.DisabledReason { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).DisabledReason; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).DisabledReason = value; } /// Internal Acessors for DisabledReasonMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal.DisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).DisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).DisabledReasonMessage = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal.DisabledReasonMessage { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).DisabledReasonMessage; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).DisabledReasonMessage = value; } /// Internal Acessors for Enabled - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal.Enabled { get => this._enabled; set { {_enabled = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal.Enabled { get => this._enabled; set { {_enabled = value;} } } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuProperties()); set { {_property = value;} } } /// Internal Acessors for RequiredFeature - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal.RequiredFeature { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).RequiredFeature; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).RequiredFeature = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal.RequiredFeature { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).RequiredFeature; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).RequiredFeature = value; } /// Internal Acessors for Sku - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformationInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Sku()); set { {_sku = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformationInternal.Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Sku()); set { {_sku = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties _property; /// Properties of the sku. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuProperties()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuProperties()); } /// Required feature to access the sku. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string RequiredFeature { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)Property).RequiredFeature; } + public string RequiredFeature { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)Property).RequiredFeature; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku _sku; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku _sku; /// The Sku. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Sku()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku Sku { get => (this._sku = this._sku ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Sku()); } /// The display name of the sku. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string SkuDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)Sku).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)Sku).DisplayName = value ?? null; } + public string SkuDisplayName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).DisplayName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).DisplayName = value ?? null; } /// The sku family. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)Sku).Family = value ?? null; } + public string SkuFamily { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).Family; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).Family = value ?? null; } + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? SkuModel { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).Model; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).Model = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName)""); } /// The sku name. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInternal)Sku).Name = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? SkuName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).Name; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInternal)Sku).Name = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName)""); } /// Creates an new instance. public SkuInformation() @@ -139,6 +153,14 @@ public partial interface ISkuInformation : SerializedName = @"apiVersions", PossibleTypes = new [] { typeof(string) })] string[] ApiVersion { get; } + /// Maximum capacity per device in TB. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Maximum capacity per device in TB.", + SerializedName = @"individualSkuUsable", + PossibleTypes = new [] { typeof(string) })] + string CapacityIndividualSkuUsable { get; } /// Maximum capacity in TB. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -161,8 +183,8 @@ public partial interface ISkuInformation : ReadOnly = true, Description = @"Cost of the Sku.", SerializedName = @"costs", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost[] Cost { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost[] Cost { get; } /// List of all the Countries in the SKU specific commerce boundary [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -177,8 +199,8 @@ public partial interface ISkuInformation : ReadOnly = true, Description = @"The map of data location to service location.", SerializedName = @"dataLocationToServiceLocationMap", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap[] DataLocationToServiceLocationMap { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap[] DataLocationToServiceLocationMap { get; } /// Reason why the Sku is disabled. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -227,6 +249,17 @@ public partial interface ISkuInformation : SerializedName = @"family", PossibleTypes = new [] { typeof(string) })] string SkuFamily { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? SkuModel { get; set; } /// The sku name. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -244,17 +277,19 @@ internal partial interface ISkuInformationInternal /// Api versions that support this Sku. string[] ApiVersion { get; set; } /// Capacity of the Sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity Capacity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity Capacity { get; set; } + /// Maximum capacity per device in TB. + string CapacityIndividualSkuUsable { get; set; } /// Maximum capacity in TB. string CapacityMaximum { get; set; } /// Usable capacity in TB. string CapacityUsable { get; set; } /// Cost of the Sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost[] Cost { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost[] Cost { get; set; } /// List of all the Countries in the SKU specific commerce boundary string[] CountriesWithinCommerceBoundary { get; set; } /// The map of data location to service location. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap[] DataLocationToServiceLocationMap { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap[] DataLocationToServiceLocationMap { get; set; } /// Reason why the Sku is disabled. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason? DisabledReason { get; set; } /// Message for why the Sku is disabled. @@ -262,15 +297,20 @@ internal partial interface ISkuInformationInternal /// The sku is enabled or not. bool? Enabled { get; set; } /// Properties of the sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties Property { get; set; } /// Required feature to access the sku. string RequiredFeature { get; set; } /// The Sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku Sku { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISku Sku { get; set; } /// The display name of the sku. string SkuDisplayName { get; set; } /// The sku family. string SkuFamily { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? SkuModel { get; set; } /// The sku name. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? SkuName { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuInformation.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuInformation.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuInformation.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuInformation.json.cs index 8e673b9dd62f..891210dbaab3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuInformation.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuInformation.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SkuInformation partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuInformation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuInformation FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new SkuInformation(json) : null; } @@ -77,8 +77,8 @@ internal SkuInformation(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json. { return; } - {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Sku.FromJson(__jsonSku) : Sku;} - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuProperties.FromJson(__jsonProperties) : Property;} + {_sku = If( json?.PropertyT("sku"), out var __jsonSku) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Sku.FromJson(__jsonSku) : Sku;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuProperties.FromJson(__jsonProperties) : Property;} {_enabled = If( json?.PropertyT("enabled"), out var __jsonEnabled) ? (bool?)__jsonEnabled : Enabled;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuProperties.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuProperties.PowerShell.cs similarity index 72% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuProperties.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuProperties.PowerShell.cs index 2397736d4ab7..f90b9b4f29fc 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuProperties.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SkuProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SkuProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SkuProperties(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISku /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,49 +103,53 @@ internal SkuProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Capacity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).Capacity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).Capacity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCapacityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).Capacity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).Capacity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCapacityTypeConverter.ConvertFrom); } if (content.Contains("DataLocationToServiceLocationMap")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).DataLocationToServiceLocationMap = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap[]) content.GetValueForProperty("DataLocationToServiceLocationMap",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).DataLocationToServiceLocationMap, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataLocationToServiceLocationMapTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).DataLocationToServiceLocationMap = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap[]) content.GetValueForProperty("DataLocationToServiceLocationMap",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).DataLocationToServiceLocationMap, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataLocationToServiceLocationMapTypeConverter.ConvertFrom)); } if (content.Contains("Cost")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).Cost = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost[]) content.GetValueForProperty("Cost",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).Cost, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCostTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).Cost = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost[]) content.GetValueForProperty("Cost",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).Cost, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCostTypeConverter.ConvertFrom)); } if (content.Contains("ApiVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).ApiVersion = (string[]) content.GetValueForProperty("ApiVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).ApiVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).ApiVersion = (string[]) content.GetValueForProperty("ApiVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).ApiVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DisabledReason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).DisabledReason = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason?) content.GetValueForProperty("DisabledReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).DisabledReason, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).DisabledReason = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason?) content.GetValueForProperty("DisabledReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).DisabledReason, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason.CreateFrom); } if (content.Contains("DisabledReasonMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).DisabledReasonMessage = (string) content.GetValueForProperty("DisabledReasonMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).DisabledReasonMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).DisabledReasonMessage = (string) content.GetValueForProperty("DisabledReasonMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).DisabledReasonMessage, global::System.Convert.ToString); } if (content.Contains("RequiredFeature")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).RequiredFeature = (string) content.GetValueForProperty("RequiredFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).RequiredFeature, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).RequiredFeature = (string) content.GetValueForProperty("RequiredFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).RequiredFeature, global::System.Convert.ToString); } if (content.Contains("CountriesWithinCommerceBoundary")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).CountriesWithinCommerceBoundary = (string[]) content.GetValueForProperty("CountriesWithinCommerceBoundary",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).CountriesWithinCommerceBoundary, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CountriesWithinCommerceBoundary = (string[]) content.GetValueForProperty("CountriesWithinCommerceBoundary",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CountriesWithinCommerceBoundary, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("CapacityUsable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).CapacityUsable = (string) content.GetValueForProperty("CapacityUsable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).CapacityUsable, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CapacityUsable = (string) content.GetValueForProperty("CapacityUsable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CapacityUsable, global::System.Convert.ToString); } if (content.Contains("CapacityMaximum")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).CapacityMaximum = (string) content.GetValueForProperty("CapacityMaximum",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).CapacityMaximum, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CapacityMaximum = (string) content.GetValueForProperty("CapacityMaximum",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CapacityMaximum, global::System.Convert.ToString); + } + if (content.Contains("CapacityIndividualSkuUsable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CapacityIndividualSkuUsable = (string) content.GetValueForProperty("CapacityIndividualSkuUsable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CapacityIndividualSkuUsable, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -160,43 +164,47 @@ internal SkuProperties(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("Capacity")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).Capacity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).Capacity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCapacityTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).Capacity = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity) content.GetValueForProperty("Capacity",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).Capacity, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCapacityTypeConverter.ConvertFrom); } if (content.Contains("DataLocationToServiceLocationMap")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).DataLocationToServiceLocationMap = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap[]) content.GetValueForProperty("DataLocationToServiceLocationMap",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).DataLocationToServiceLocationMap, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataLocationToServiceLocationMapTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).DataLocationToServiceLocationMap = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap[]) content.GetValueForProperty("DataLocationToServiceLocationMap",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).DataLocationToServiceLocationMap, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataLocationToServiceLocationMapTypeConverter.ConvertFrom)); } if (content.Contains("Cost")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).Cost = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost[]) content.GetValueForProperty("Cost",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).Cost, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCostTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).Cost = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost[]) content.GetValueForProperty("Cost",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).Cost, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCostTypeConverter.ConvertFrom)); } if (content.Contains("ApiVersion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).ApiVersion = (string[]) content.GetValueForProperty("ApiVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).ApiVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).ApiVersion = (string[]) content.GetValueForProperty("ApiVersion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).ApiVersion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("DisabledReason")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).DisabledReason = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason?) content.GetValueForProperty("DisabledReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).DisabledReason, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).DisabledReason = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason?) content.GetValueForProperty("DisabledReason",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).DisabledReason, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason.CreateFrom); } if (content.Contains("DisabledReasonMessage")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).DisabledReasonMessage = (string) content.GetValueForProperty("DisabledReasonMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).DisabledReasonMessage, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).DisabledReasonMessage = (string) content.GetValueForProperty("DisabledReasonMessage",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).DisabledReasonMessage, global::System.Convert.ToString); } if (content.Contains("RequiredFeature")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).RequiredFeature = (string) content.GetValueForProperty("RequiredFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).RequiredFeature, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).RequiredFeature = (string) content.GetValueForProperty("RequiredFeature",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).RequiredFeature, global::System.Convert.ToString); } if (content.Contains("CountriesWithinCommerceBoundary")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).CountriesWithinCommerceBoundary = (string[]) content.GetValueForProperty("CountriesWithinCommerceBoundary",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).CountriesWithinCommerceBoundary, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CountriesWithinCommerceBoundary = (string[]) content.GetValueForProperty("CountriesWithinCommerceBoundary",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CountriesWithinCommerceBoundary, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("CapacityUsable")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).CapacityUsable = (string) content.GetValueForProperty("CapacityUsable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).CapacityUsable, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CapacityUsable = (string) content.GetValueForProperty("CapacityUsable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CapacityUsable, global::System.Convert.ToString); } if (content.Contains("CapacityMaximum")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).CapacityMaximum = (string) content.GetValueForProperty("CapacityMaximum",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal)this).CapacityMaximum, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CapacityMaximum = (string) content.GetValueForProperty("CapacityMaximum",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CapacityMaximum, global::System.Convert.ToString); + } + if (content.Contains("CapacityIndividualSkuUsable")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CapacityIndividualSkuUsable = (string) content.GetValueForProperty("CapacityIndividualSkuUsable",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal)this).CapacityIndividualSkuUsable, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuProperties.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuProperties.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuProperties.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuProperties.TypeConverter.cs index 955f725086a9..45fafa643ab5 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuProperties.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuProperties.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuProperties.cs similarity index 78% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuProperties.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuProperties.cs index 88640c5ac635..7647cd60e9bc 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuProperties.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Properties of the sku. public partial class SkuProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal { /// Backing field for property. @@ -21,26 +21,30 @@ public partial class SkuProperties : public string[] ApiVersion { get => this._apiVersion; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity _capacity; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity _capacity; /// Capacity of the Sku. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity Capacity { get => (this._capacity = this._capacity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCapacity()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity Capacity { get => (this._capacity = this._capacity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCapacity()); } + + /// Maximum capacity per device in TB. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] + public string CapacityIndividualSkuUsable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)Capacity).IndividualSkuUsable; } /// Maximum capacity in TB. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string CapacityMaximum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal)Capacity).Maximum; } + public string CapacityMaximum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)Capacity).Maximum; } /// Usable capacity in TB. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string CapacityUsable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal)Capacity).Usable; } + public string CapacityUsable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)Capacity).Usable; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost[] _cost; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost[] _cost; /// Cost of the Sku. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost[] Cost { get => this._cost; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost[] Cost { get => this._cost; } /// Backing field for property. private string[] _countriesWithinCommerceBoundary; @@ -50,11 +54,11 @@ public partial class SkuProperties : public string[] CountriesWithinCommerceBoundary { get => this._countriesWithinCommerceBoundary; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap[] _dataLocationToServiceLocationMap; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap[] _dataLocationToServiceLocationMap; /// The map of data location to service location. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap[] DataLocationToServiceLocationMap { get => this._dataLocationToServiceLocationMap; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap[] DataLocationToServiceLocationMap { get => this._dataLocationToServiceLocationMap; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason? _disabledReason; @@ -71,34 +75,37 @@ public partial class SkuProperties : public string DisabledReasonMessage { get => this._disabledReasonMessage; } /// Internal Acessors for ApiVersion - string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal.ApiVersion { get => this._apiVersion; set { {_apiVersion = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal.ApiVersion { get => this._apiVersion; set { {_apiVersion = value;} } } /// Internal Acessors for Capacity - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal.Capacity { get => (this._capacity = this._capacity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCapacity()); set { {_capacity = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal.Capacity { get => (this._capacity = this._capacity ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCapacity()); set { {_capacity = value;} } } + + /// Internal Acessors for CapacityIndividualSkuUsable + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal.CapacityIndividualSkuUsable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)Capacity).IndividualSkuUsable; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)Capacity).IndividualSkuUsable = value; } /// Internal Acessors for CapacityMaximum - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal.CapacityMaximum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal)Capacity).Maximum; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal)Capacity).Maximum = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal.CapacityMaximum { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)Capacity).Maximum; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)Capacity).Maximum = value; } /// Internal Acessors for CapacityUsable - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal.CapacityUsable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal)Capacity).Usable; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacityInternal)Capacity).Usable = value; } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal.CapacityUsable { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)Capacity).Usable; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacityInternal)Capacity).Usable = value; } /// Internal Acessors for Cost - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal.Cost { get => this._cost; set { {_cost = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal.Cost { get => this._cost; set { {_cost = value;} } } /// Internal Acessors for CountriesWithinCommerceBoundary - string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal.CountriesWithinCommerceBoundary { get => this._countriesWithinCommerceBoundary; set { {_countriesWithinCommerceBoundary = value;} } } + string[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal.CountriesWithinCommerceBoundary { get => this._countriesWithinCommerceBoundary; set { {_countriesWithinCommerceBoundary = value;} } } /// Internal Acessors for DataLocationToServiceLocationMap - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal.DataLocationToServiceLocationMap { get => this._dataLocationToServiceLocationMap; set { {_dataLocationToServiceLocationMap = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal.DataLocationToServiceLocationMap { get => this._dataLocationToServiceLocationMap; set { {_dataLocationToServiceLocationMap = value;} } } /// Internal Acessors for DisabledReason - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal.DisabledReason { get => this._disabledReason; set { {_disabledReason = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal.DisabledReason { get => this._disabledReason; set { {_disabledReason = value;} } } /// Internal Acessors for DisabledReasonMessage - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal.DisabledReasonMessage { get => this._disabledReasonMessage; set { {_disabledReasonMessage = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal.DisabledReasonMessage { get => this._disabledReasonMessage; set { {_disabledReasonMessage = value;} } } /// Internal Acessors for RequiredFeature - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuPropertiesInternal.RequiredFeature { get => this._requiredFeature; set { {_requiredFeature = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuPropertiesInternal.RequiredFeature { get => this._requiredFeature; set { {_requiredFeature = value;} } } /// Backing field for property. private string _requiredFeature; @@ -125,6 +132,14 @@ public partial interface ISkuProperties : SerializedName = @"apiVersions", PossibleTypes = new [] { typeof(string) })] string[] ApiVersion { get; } + /// Maximum capacity per device in TB. + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = true, + Description = @"Maximum capacity per device in TB.", + SerializedName = @"individualSkuUsable", + PossibleTypes = new [] { typeof(string) })] + string CapacityIndividualSkuUsable { get; } /// Maximum capacity in TB. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -147,8 +162,8 @@ public partial interface ISkuProperties : ReadOnly = true, Description = @"Cost of the Sku.", SerializedName = @"costs", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost[] Cost { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost[] Cost { get; } /// List of all the Countries in the SKU specific commerce boundary [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -163,8 +178,8 @@ public partial interface ISkuProperties : ReadOnly = true, Description = @"The map of data location to service location.", SerializedName = @"dataLocationToServiceLocationMap", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap[] DataLocationToServiceLocationMap { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap[] DataLocationToServiceLocationMap { get; } /// Reason why the Sku is disabled. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -198,17 +213,19 @@ internal partial interface ISkuPropertiesInternal /// Api versions that support this Sku. string[] ApiVersion { get; set; } /// Capacity of the Sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCapacity Capacity { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCapacity Capacity { get; set; } + /// Maximum capacity per device in TB. + string CapacityIndividualSkuUsable { get; set; } /// Maximum capacity in TB. string CapacityMaximum { get; set; } /// Usable capacity in TB. string CapacityUsable { get; set; } /// Cost of the Sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost[] Cost { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost[] Cost { get; set; } /// List of all the Countries in the SKU specific commerce boundary string[] CountriesWithinCommerceBoundary { get; set; } /// The map of data location to service location. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap[] DataLocationToServiceLocationMap { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap[] DataLocationToServiceLocationMap { get; set; } /// Reason why the Sku is disabled. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuDisabledReason? DisabledReason { get; set; } /// Message for why the Sku is disabled. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuProperties.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuProperties.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuProperties.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuProperties.json.cs index d66707baeef0..8add9035a7b9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SkuProperties.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SkuProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SkuProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new SkuProperties(json) : null; } @@ -77,9 +77,9 @@ internal SkuProperties(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.J { return; } - {_capacity = If( json?.PropertyT("capacity"), out var __jsonCapacity) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCapacity.FromJson(__jsonCapacity) : Capacity;} - {_dataLocationToServiceLocationMap = If( json?.PropertyT("dataLocationToServiceLocationMap"), out var __jsonDataLocationToServiceLocationMap) ? If( __jsonDataLocationToServiceLocationMap as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataLocationToServiceLocationMap) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataLocationToServiceLocationMap.FromJson(__u) )) ))() : null : DataLocationToServiceLocationMap;} - {_cost = If( json?.PropertyT("costs"), out var __jsonCosts) ? If( __jsonCosts as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISkuCost) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.SkuCost.FromJson(__p) )) ))() : null : Cost;} + {_capacity = If( json?.PropertyT("capacity"), out var __jsonCapacity) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCapacity.FromJson(__jsonCapacity) : Capacity;} + {_dataLocationToServiceLocationMap = If( json?.PropertyT("dataLocationToServiceLocationMap"), out var __jsonDataLocationToServiceLocationMap) ? If( __jsonDataLocationToServiceLocationMap as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataLocationToServiceLocationMap) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataLocationToServiceLocationMap.FromJson(__u) )) ))() : null : DataLocationToServiceLocationMap;} + {_cost = If( json?.PropertyT("costs"), out var __jsonCosts) ? If( __jsonCosts as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __q) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__q, (__p)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISkuCost) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.SkuCost.FromJson(__p) )) ))() : null : Cost;} {_apiVersion = If( json?.PropertyT("apiVersions"), out var __jsonApiVersions) ? If( __jsonApiVersions as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __l) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__l, (__k)=>(string) (__k is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString __j ? (string)(__j.ToString()) : null)) ))() : null : ApiVersion;} {_disabledReason = If( json?.PropertyT("disabledReason"), out var __jsonDisabledReason) ? (string)__jsonDisabledReason : (string)DisabledReason;} {_disabledReasonMessage = If( json?.PropertyT("disabledReasonMessage"), out var __jsonDisabledReasonMessage) ? (string)__jsonDisabledReasonMessage : (string)DisabledReasonMessage;} diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/StorageAccountDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/StorageAccountDetails.PowerShell.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/StorageAccountDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/StorageAccountDetails.PowerShell.cs index 644ead732c51..0e884112a8b3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/StorageAccountDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/StorageAccountDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class StorageAccountDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IStorageAccountDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IStorageAccountDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new StorageAccountDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IStorageAccountDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IStorageAccountDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new StorageAccountDetails(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISto /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IStorageAccountDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IStorageAccountDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,21 +103,21 @@ internal StorageAccountDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("StorageAccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IStorageAccountDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IStorageAccountDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IStorageAccountDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IStorageAccountDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("SharePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).SharePassword = (string) content.GetValueForProperty("SharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).SharePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).SharePassword = (string) content.GetValueForProperty("SharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).SharePassword, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -132,15 +132,15 @@ internal StorageAccountDetails(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("StorageAccountId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IStorageAccountDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IStorageAccountDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IStorageAccountDetailsInternal)this).StorageAccountId = (string) content.GetValueForProperty("StorageAccountId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IStorageAccountDetailsInternal)this).StorageAccountId, global::System.Convert.ToString); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("SharePassword")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).SharePassword = (string) content.GetValueForProperty("SharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)this).SharePassword, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).SharePassword = (string) content.GetValueForProperty("SharePassword",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)this).SharePassword, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/StorageAccountDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/StorageAccountDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/StorageAccountDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/StorageAccountDetails.TypeConverter.cs index bd41638b46ee..c091c8c99752 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/StorageAccountDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/StorageAccountDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IStorageAccountDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IStorageAccountDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IStorageAccountDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IStorageAccountDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/StorageAccountDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/StorageAccountDetails.cs similarity index 89% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/StorageAccountDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/StorageAccountDetails.cs index 06be14e507da..0061a443d634 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/StorageAccountDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/StorageAccountDetails.cs @@ -3,25 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Details for the storage account. public partial class StorageAccountDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IStorageAccountDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IStorageAccountDetailsInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IStorageAccountDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IStorageAccountDetailsInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails __dataAccountDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetails(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails __dataAccountDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetails(); /// Account Type of the data to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType DataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)__dataAccountDetails).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)__dataAccountDetails).DataAccountType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType DataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)__dataAccountDetails).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)__dataAccountDetails).DataAccountType = value ; } /// /// Password for all the shares to be created on the device. Should not be passed for TransferType:ExportFromAzure jobs. If @@ -31,7 +31,7 @@ public partial class StorageAccountDetails : /// numbers and these characters : @#\-$%^!+=;:_()]+ /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string SharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)__dataAccountDetails).SharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal)__dataAccountDetails).SharePassword = value ?? null; } + public string SharePassword { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)__dataAccountDetails).SharePassword; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal)__dataAccountDetails).SharePassword = value ?? null; } /// Backing field for property. private string _storageAccountId; @@ -61,7 +61,7 @@ public StorageAccountDetails() /// Details for the storage account. public partial interface IStorageAccountDetails : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetails + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetails { /// Storage Account Resource Id. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -75,7 +75,7 @@ public partial interface IStorageAccountDetails : } /// Details for the storage account. internal partial interface IStorageAccountDetailsInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDataAccountDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDataAccountDetailsInternal { /// Storage Account Resource Id. string StorageAccountId { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/StorageAccountDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/StorageAccountDetails.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/StorageAccountDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/StorageAccountDetails.json.cs index 4c774fd3f873..b2a85fa20df9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/StorageAccountDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/StorageAccountDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class StorageAccountDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IStorageAccountDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IStorageAccountDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IStorageAccountDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IStorageAccountDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IStorageAccountDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IStorageAccountDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new StorageAccountDetails(json) : null; } @@ -77,7 +77,7 @@ internal StorageAccountDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtim { return; } - __dataAccountDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DataAccountDetails(json); + __dataAccountDetails = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DataAccountDetails(json); {_storageAccountId = If( json?.PropertyT("storageAccountId"), out var __jsonStorageAccountId) ? (string)__jsonStorageAccountId : (string)StorageAccountId;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationRequest.PowerShell.cs similarity index 91% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationRequest.PowerShell.cs index 3161904302d1..fd4d5efa8969 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class SubscriptionIsAllowedToCreateJobValidationRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SubscriptionIsAllowedToCreateJobValidationRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SubscriptionIsAllowedToCreateJobValidationRequest(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISub /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,13 +108,13 @@ internal SubscriptionIsAllowedToCreateJobValidationRequest(global::System.Collec // actually deserialize if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -129,7 +129,7 @@ internal SubscriptionIsAllowedToCreateJobValidationRequest(global::System.Manage // actually deserialize if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationRequest.TypeConverter.cs index 127a76a5b9e0..cc2a5fb006ef 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is no suitable /// conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationRequest.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationRequest.cs index 1eb361ff27cf..8e84c10861f8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationRequest.cs @@ -3,25 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Request to validate subscription permission to create jobs. public partial class SubscriptionIsAllowedToCreateJobValidationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationRequestInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationRequestInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest(); /// Identifies the type of validation request. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)__validationInputRequest).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)__validationInputRequest).ValidationType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)__validationInputRequest).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)__validationInputRequest).ValidationType = value ; } /// /// Creates an new instance. @@ -46,13 +46,13 @@ public SubscriptionIsAllowedToCreateJobValidationRequest() /// Request to validate subscription permission to create jobs. public partial interface ISubscriptionIsAllowedToCreateJobValidationRequest : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest { } /// Request to validate subscription permission to create jobs. internal partial interface ISubscriptionIsAllowedToCreateJobValidationRequestInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal { } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationRequest.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationRequest.json.cs index cf04e8b7ccf5..ade62c6f5c81 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SubscriptionIsAllowedToCreateJobValidationRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new SubscriptionIsAllowedToCreateJobValidationRequest(json) : null; } @@ -78,7 +78,7 @@ internal SubscriptionIsAllowedToCreateJobValidationRequest(Microsoft.Azure.Power { return; } - __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest(json); + __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest(json); AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.PowerShell.cs similarity index 78% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.PowerShell.cs index b22242a2bffe..e9435a4aae8b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class SubscriptionIsAllowedToCreateJobValidationResponsePropertie partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SubscriptionIsAllowedToCreateJobValidationResponseProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SubscriptionIsAllowedToCreateJobValidationResponseProperties(content); } @@ -90,10 +90,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISub /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,41 +108,41 @@ internal SubscriptionIsAllowedToCreateJobValidationResponseProperties(global::Sy // actually deserialize if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -157,35 +157,35 @@ internal SubscriptionIsAllowedToCreateJobValidationResponseProperties(global::Sy // actually deserialize if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); } if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.TypeConverter.cs index ccb72fc78046..baca89333103 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -112,14 +112,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// an instance of , or null if there is /// no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs similarity index 78% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs index d6d95b8434eb..a3b8eb47eb36 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs @@ -3,53 +3,53 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Properties of subscription permission to create job validation response. public partial class SubscriptionIsAllowedToCreateJobValidationResponseProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponsePropertiesInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponsePropertiesInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse(); /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Code = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail; } /// Error code and message of validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Message = value ?? null; } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponsePropertiesInternal.Status { get => this._status; set { {_status = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponsePropertiesInternal.Status { get => this._status; set { {_status = value;} } } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).AdditionalInfo = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.Error { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Error = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? _status; @@ -60,11 +60,11 @@ public partial class SubscriptionIsAllowedToCreateJobValidationResponsePropertie /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).Target = value ?? null; } /// Identifies the type of validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)__validationInputResponse).ValidationType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)__validationInputResponse).ValidationType = value ; } /// /// Creates an new instance. @@ -89,7 +89,7 @@ public SubscriptionIsAllowedToCreateJobValidationResponseProperties() /// Properties of subscription permission to create job validation response. public partial interface ISubscriptionIsAllowedToCreateJobValidationResponseProperties : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse { /// Validation status of subscription permission to create job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -103,7 +103,7 @@ public partial interface ISubscriptionIsAllowedToCreateJobValidationResponseProp } /// Properties of subscription permission to create job validation response. internal partial interface ISubscriptionIsAllowedToCreateJobValidationResponsePropertiesInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal { /// Validation status of subscription permission to create job. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationStatus? Status { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.json.cs index cafbea15077a..1c82ab786990 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SubscriptionIsAllowedToCreateJobValidationResponseProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SubscriptionIsAllowedToCreateJobValidationResponsePropertie partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISubscriptionIsAllowedToCreateJobValidationResponseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new SubscriptionIsAllowedToCreateJobValidationResponseProperties(json) : null; } @@ -78,7 +78,7 @@ internal SubscriptionIsAllowedToCreateJobValidationResponseProperties(Microsoft. { return; } - __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse(json); + __validationInputResponse = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse(json); {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SystemData.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SystemData.PowerShell.cs similarity index 83% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SystemData.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SystemData.PowerShell.cs index 987b43b0fb7f..4e27e6de06ad 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SystemData.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SystemData.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class SystemData partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new SystemData(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new SystemData(content); } @@ -85,10 +85,10 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISys /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -103,33 +103,33 @@ internal SystemData(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).CreatedByType = (string) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).CreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).CreatedByType = (string) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).CreatedByType, global::System.Convert.ToString); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).LastModifiedByType = (string) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).LastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).LastModifiedByType = (string) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).LastModifiedByType, global::System.Convert.ToString); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -144,27 +144,27 @@ internal SystemData(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("CreatedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).CreatedBy = (string) content.GetValueForProperty("CreatedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).CreatedBy, global::System.Convert.ToString); } if (content.Contains("CreatedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).CreatedByType = (string) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).CreatedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).CreatedByType = (string) content.GetValueForProperty("CreatedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).CreatedByType, global::System.Convert.ToString); } if (content.Contains("CreatedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).CreatedAt = (global::System.DateTime?) content.GetValueForProperty("CreatedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).CreatedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } if (content.Contains("LastModifiedBy")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).LastModifiedBy = (string) content.GetValueForProperty("LastModifiedBy",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).LastModifiedBy, global::System.Convert.ToString); } if (content.Contains("LastModifiedByType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).LastModifiedByType = (string) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).LastModifiedByType, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).LastModifiedByType = (string) content.GetValueForProperty("LastModifiedByType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).LastModifiedByType, global::System.Convert.ToString); } if (content.Contains("LastModifiedAt")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).LastModifiedAt = (global::System.DateTime?) content.GetValueForProperty("LastModifiedAt",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal)this).LastModifiedAt, (v) => v is global::System.DateTime _v ? _v : global::System.Xml.XmlConvert.ToDateTime( v.ToString() , global::System.Xml.XmlDateTimeSerializationMode.Unspecified)); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SystemData.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SystemData.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SystemData.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SystemData.TypeConverter.cs index fd5828ef21e6..a8e55ba5d869 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SystemData.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SystemData.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -105,14 +105,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SystemData.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SystemData.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SystemData.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SystemData.cs index d4d83d48462c..43503274fe9c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SystemData.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SystemData.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Provides details about resource creation and update time public partial class SystemData : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal { /// Backing field for property. @@ -60,22 +60,22 @@ public partial class SystemData : public string LastModifiedByType { get => this._lastModifiedByType; } /// Internal Acessors for CreatedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal.CreatedAt { get => this._createdAt; set { {_createdAt = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal.CreatedAt { get => this._createdAt; set { {_createdAt = value;} } } /// Internal Acessors for CreatedBy - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal.CreatedBy { get => this._createdBy; set { {_createdBy = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal.CreatedBy { get => this._createdBy; set { {_createdBy = value;} } } /// Internal Acessors for CreatedByType - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal.CreatedByType { get => this._createdByType; set { {_createdByType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal.CreatedByType { get => this._createdByType; set { {_createdByType = value;} } } /// Internal Acessors for LastModifiedAt - global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal.LastModifiedAt { get => this._lastModifiedAt; set { {_lastModifiedAt = value;} } } + global::System.DateTime? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal.LastModifiedAt { get => this._lastModifiedAt; set { {_lastModifiedAt = value;} } } /// Internal Acessors for LastModifiedBy - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal.LastModifiedBy { get => this._lastModifiedBy; set { {_lastModifiedBy = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal.LastModifiedBy { get => this._lastModifiedBy; set { {_lastModifiedBy = value;} } } /// Internal Acessors for LastModifiedByType - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemDataInternal.LastModifiedByType { get => this._lastModifiedByType; set { {_lastModifiedByType = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemDataInternal.LastModifiedByType { get => this._lastModifiedByType; set { {_lastModifiedByType = value;} } } /// Creates an new instance. public SystemData() diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SystemData.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SystemData.json.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SystemData.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SystemData.json.cs index 6ac86260e5e1..ac08977b7783 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/SystemData.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/SystemData.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class SystemData partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ISystemData FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new SystemData(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferAllDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferAllDetails.PowerShell.cs similarity index 87% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferAllDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferAllDetails.PowerShell.cs index 471d62c7e0b5..83ae7048c3dc 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferAllDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferAllDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class TransferAllDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TransferAllDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TransferAllDetails(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,21 +108,21 @@ internal TransferAllDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("TransferAllBlob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)this).TransferAllBlob = (bool?) content.GetValueForProperty("TransferAllBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)this).TransferAllBlob, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)this).TransferAllBlob = (bool?) content.GetValueForProperty("TransferAllBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)this).TransferAllBlob, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TransferAllFile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)this).TransferAllFile = (bool?) content.GetValueForProperty("TransferAllFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)this).TransferAllFile, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)this).TransferAllFile = (bool?) content.GetValueForProperty("TransferAllFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)this).TransferAllFile, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -137,15 +137,15 @@ internal TransferAllDetails(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("TransferAllBlob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)this).TransferAllBlob = (bool?) content.GetValueForProperty("TransferAllBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)this).TransferAllBlob, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)this).TransferAllBlob = (bool?) content.GetValueForProperty("TransferAllBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)this).TransferAllBlob, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("TransferAllFile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)this).TransferAllFile = (bool?) content.GetValueForProperty("TransferAllFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)this).TransferAllFile, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)this).TransferAllFile = (bool?) content.GetValueForProperty("TransferAllFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)this).TransferAllFile, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferAllDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferAllDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferAllDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferAllDetails.TypeConverter.cs index c44c957edf62..dd4f0365d30a 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferAllDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferAllDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferAllDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferAllDetails.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferAllDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferAllDetails.cs index a825cf136ff3..b5057f27ffa6 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferAllDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferAllDetails.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Details to transfer all data. public partial class TransferAllDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferAllDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferAllDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferAllDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferAllDetails.json.cs index ed168917e163..f2ce6402594b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferAllDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferAllDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TransferAllDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new TransferAllDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfiguration.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfiguration.PowerShell.cs similarity index 83% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfiguration.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfiguration.PowerShell.cs index 737e3140d4a2..ad6d07da7ace 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfiguration.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfiguration.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class TransferConfiguration partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TransferConfiguration(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TransferConfiguration(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,21 +108,21 @@ internal TransferConfiguration(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferConfigurationType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferConfigurationType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferConfigurationType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferConfigurationType.CreateFrom); } if (content.Contains("TransferFilterDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationInternal)this).TransferFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails) content.GetValueForProperty("TransferFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationInternal)this).TransferFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfigurationTransferFilterDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationInternal)this).TransferFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails) content.GetValueForProperty("TransferFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationInternal)this).TransferFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfigurationTransferFilterDetailsTypeConverter.ConvertFrom); } if (content.Contains("TransferAllDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationInternal)this).TransferAllDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails) content.GetValueForProperty("TransferAllDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationInternal)this).TransferAllDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfigurationTransferAllDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationInternal)this).TransferAllDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails) content.GetValueForProperty("TransferAllDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationInternal)this).TransferAllDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfigurationTransferAllDetailsTypeConverter.ConvertFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -137,15 +137,15 @@ internal TransferConfiguration(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("Type")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferConfigurationType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferConfigurationType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationInternal)this).Type = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferConfigurationType) content.GetValueForProperty("Type",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationInternal)this).Type, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferConfigurationType.CreateFrom); } if (content.Contains("TransferFilterDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationInternal)this).TransferFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails) content.GetValueForProperty("TransferFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationInternal)this).TransferFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfigurationTransferFilterDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationInternal)this).TransferFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails) content.GetValueForProperty("TransferFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationInternal)this).TransferFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfigurationTransferFilterDetailsTypeConverter.ConvertFrom); } if (content.Contains("TransferAllDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationInternal)this).TransferAllDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails) content.GetValueForProperty("TransferAllDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationInternal)this).TransferAllDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfigurationTransferAllDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationInternal)this).TransferAllDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails) content.GetValueForProperty("TransferAllDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationInternal)this).TransferAllDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfigurationTransferAllDetailsTypeConverter.ConvertFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfiguration.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfiguration.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfiguration.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfiguration.TypeConverter.cs index eab29e1c31b0..1880421e7aba 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfiguration.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfiguration.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfiguration.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfiguration.cs similarity index 87% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfiguration.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfiguration.cs index 7b8966cfac69..c0b4cf8e5adf 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfiguration.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfiguration.cs @@ -3,35 +3,35 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Configuration for defining the transfer of data. public partial class TransferConfiguration : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails _transferAllDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails _transferAllDetail; /// /// Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType /// is given as TransferAll /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails TransferAllDetail { get => (this._transferAllDetail = this._transferAllDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfigurationTransferAllDetails()); set => this._transferAllDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails TransferAllDetail { get => (this._transferAllDetail = this._transferAllDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfigurationTransferAllDetails()); set => this._transferAllDetail = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails _transferFilterDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails _transferFilterDetail; /// /// Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as /// TransferUsingFilter. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails TransferFilterDetail { get => (this._transferFilterDetail = this._transferFilterDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfigurationTransferFilterDetails()); set => this._transferFilterDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails TransferFilterDetail { get => (this._transferFilterDetail = this._transferFilterDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfigurationTransferFilterDetails()); set => this._transferFilterDetail = value; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferConfigurationType _type; @@ -59,8 +59,8 @@ public partial interface ITransferConfiguration : ReadOnly = false, Description = @"Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType is given as TransferAll", SerializedName = @"transferAllDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails TransferAllDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails TransferAllDetail { get; set; } /// /// Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as /// TransferUsingFilter. @@ -70,8 +70,8 @@ public partial interface ITransferConfiguration : ReadOnly = false, Description = @"Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as TransferUsingFilter.", SerializedName = @"transferFilterDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails TransferFilterDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails TransferFilterDetail { get; set; } /// Type of the configuration for transfer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, @@ -90,12 +90,12 @@ internal partial interface ITransferConfigurationInternal /// Map of filter type and the details to transfer all data. This field is required only if the TransferConfigurationType /// is given as TransferAll /// - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails TransferAllDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails TransferAllDetail { get; set; } /// /// Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as /// TransferUsingFilter. /// - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails TransferFilterDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails TransferFilterDetail { get; set; } /// Type of the configuration for transfer. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransferConfigurationType Type { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfiguration.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfiguration.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfiguration.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfiguration.json.cs index 0d8e5be10912..9679e0888388 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfiguration.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfiguration.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TransferConfiguration partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfiguration FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new TransferConfiguration(json) : null; } @@ -104,8 +104,8 @@ internal TransferConfiguration(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtim return; } {_type = If( json?.PropertyT("transferConfigurationType"), out var __jsonTransferConfigurationType) ? (string)__jsonTransferConfigurationType : (string)Type;} - {_transferFilterDetail = If( json?.PropertyT("transferFilterDetails"), out var __jsonTransferFilterDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfigurationTransferFilterDetails.FromJson(__jsonTransferFilterDetails) : TransferFilterDetail;} - {_transferAllDetail = If( json?.PropertyT("transferAllDetails"), out var __jsonTransferAllDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferConfigurationTransferAllDetails.FromJson(__jsonTransferAllDetails) : TransferAllDetail;} + {_transferFilterDetail = If( json?.PropertyT("transferFilterDetails"), out var __jsonTransferFilterDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfigurationTransferFilterDetails.FromJson(__jsonTransferFilterDetails) : TransferFilterDetail;} + {_transferAllDetail = If( json?.PropertyT("transferAllDetails"), out var __jsonTransferAllDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferConfigurationTransferAllDetails.FromJson(__jsonTransferAllDetails) : TransferAllDetail;} AfterFromJson(json); } } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferAllDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferAllDetails.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferAllDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferAllDetails.PowerShell.cs index a808f4bec09f..ecffba89fe5b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferAllDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferAllDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -58,29 +58,29 @@ public partial class TransferConfigurationTransferAllDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TransferConfigurationTransferAllDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TransferConfigurationTransferAllDetails(content); } @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -101,7 +101,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -116,25 +116,25 @@ internal TransferConfigurationTransferAllDetails(global::System.Collections.IDic // actually deserialize if (content.Contains("Include")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).Include = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails) content.GetValueForProperty("Include",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).Include, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferAllDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).Include = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails) content.GetValueForProperty("Include",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).Include, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferAllDetailsTypeConverter.ConvertFrom); } if (content.Contains("IncludeDataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("IncludeDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("IncludeDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("IncludeTransferAllBlob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllBlob = (bool?) content.GetValueForProperty("IncludeTransferAllBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllBlob, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllBlob = (bool?) content.GetValueForProperty("IncludeTransferAllBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllBlob, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IncludeTransferAllFile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllFile = (bool?) content.GetValueForProperty("IncludeTransferAllFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllFile, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllFile = (bool?) content.GetValueForProperty("IncludeTransferAllFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllFile, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -149,19 +149,19 @@ internal TransferConfigurationTransferAllDetails(global::System.Management.Autom // actually deserialize if (content.Contains("Include")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).Include = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails) content.GetValueForProperty("Include",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).Include, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferAllDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).Include = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails) content.GetValueForProperty("Include",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).Include, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferAllDetailsTypeConverter.ConvertFrom); } if (content.Contains("IncludeDataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("IncludeDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("IncludeDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("IncludeTransferAllBlob")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllBlob = (bool?) content.GetValueForProperty("IncludeTransferAllBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllBlob, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllBlob = (bool?) content.GetValueForProperty("IncludeTransferAllBlob",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllBlob, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("IncludeTransferAllFile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllFile = (bool?) content.GetValueForProperty("IncludeTransferAllFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllFile, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllFile = (bool?) content.GetValueForProperty("IncludeTransferAllFile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal)this).IncludeTransferAllFile, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferAllDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferAllDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferAllDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferAllDetails.TypeConverter.cs index cceb4a50391b..70c579354043 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferAllDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferAllDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferAllDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferAllDetails.cs similarity index 86% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferAllDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferAllDetails.cs index 6807ed03df94..44ed8e051c13 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferAllDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferAllDetails.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -12,31 +12,31 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 /// is given as TransferAll /// public partial class TransferConfigurationTransferAllDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails _include; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails _include; /// Details to transfer all data. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails Include { get => (this._include = this._include ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferAllDetails()); set => this._include = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails Include { get => (this._include = this._include ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferAllDetails()); set => this._include = value; } /// Type of the account of data [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? IncludeDataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)Include).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)Include).DataAccountType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? IncludeDataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)Include).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)Include).DataAccountType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType)""); } /// To indicate if all Azure blobs have to be transferred [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? IncludeTransferAllBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)Include).TransferAllBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)Include).TransferAllBlob = value ?? default(bool); } + public bool? IncludeTransferAllBlob { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)Include).TransferAllBlob; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)Include).TransferAllBlob = value ?? default(bool); } /// To indicate if all Azure Files have to be transferred [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? IncludeTransferAllFile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)Include).TransferAllFile; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetailsInternal)Include).TransferAllFile = value ?? default(bool); } + public bool? IncludeTransferAllFile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)Include).TransferAllFile; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetailsInternal)Include).TransferAllFile = value ?? default(bool); } /// Internal Acessors for Include - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetailsInternal.Include { get => (this._include = this._include ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferAllDetails()); set { {_include = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetailsInternal.Include { get => (this._include = this._include ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferAllDetails()); set { {_include = value;} } } /// Creates an new instance. public TransferConfigurationTransferAllDetails() @@ -81,7 +81,7 @@ internal partial interface ITransferConfigurationTransferAllDetailsInternal { /// Details to transfer all data. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferAllDetails Include { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferAllDetails Include { get; set; } /// Type of the account of data Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? IncludeDataAccountType { get; set; } /// To indicate if all Azure blobs have to be transferred diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferAllDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferAllDetails.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferAllDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferAllDetails.json.cs index 03e10ce37986..9bdf8a8ca6cd 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferAllDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferAllDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -57,13 +57,13 @@ public partial class TransferConfigurationTransferAllDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferAllDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferAllDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new TransferConfigurationTransferAllDetails(json) : null; } @@ -106,7 +106,7 @@ internal TransferConfigurationTransferAllDetails(Microsoft.Azure.PowerShell.Cmdl { return; } - {_include = If( json?.PropertyT("include"), out var __jsonInclude) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferAllDetails.FromJson(__jsonInclude) : Include;} + {_include = If( json?.PropertyT("include"), out var __jsonInclude) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferAllDetails.FromJson(__jsonInclude) : Include;} AfterFromJson(json); } } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferFilterDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferFilterDetails.PowerShell.cs similarity index 79% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferFilterDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferFilterDetails.PowerShell.cs index d045d8b4c196..2b4c29612718 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferFilterDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferFilterDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -58,29 +58,29 @@ public partial class TransferConfigurationTransferFilterDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TransferConfigurationTransferFilterDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TransferConfigurationTransferFilterDetails(content); } @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra /// /// an instance of the model class. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -101,7 +101,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -116,53 +116,53 @@ internal TransferConfigurationTransferFilterDetails(global::System.Collections.I // actually deserialize if (content.Contains("Include")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).Include = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails) content.GetValueForProperty("Include",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).Include, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferFilterDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).Include = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails) content.GetValueForProperty("Include",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).Include, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferFilterDetailsTypeConverter.ConvertFrom); } if (content.Contains("IncludeBlobFilterDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeBlobFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails) content.GetValueForProperty("IncludeBlobFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeBlobFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.BlobFilterDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeBlobFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails) content.GetValueForProperty("IncludeBlobFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeBlobFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.BlobFilterDetailsTypeConverter.ConvertFrom); } if (content.Contains("IncludeAzureFileFilterDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeAzureFileFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails) content.GetValueForProperty("IncludeAzureFileFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeAzureFileFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AzureFileFilterDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeAzureFileFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails) content.GetValueForProperty("IncludeAzureFileFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeAzureFileFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AzureFileFilterDetailsTypeConverter.ConvertFrom); } if (content.Contains("IncludeDataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("IncludeDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("IncludeDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("IncludeFilterFileDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeFilterFileDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails[]) content.GetValueForProperty("IncludeFilterFileDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeFilterFileDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.FilterFileDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeFilterFileDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails[]) content.GetValueForProperty("IncludeFilterFileDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeFilterFileDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.FilterFileDetailsTypeConverter.ConvertFrom)); } if (content.Contains("BlobFilterDetailContainerList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailContainerList = (string[]) content.GetValueForProperty("BlobFilterDetailContainerList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailContainerList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailContainerList = (string[]) content.GetValueForProperty("BlobFilterDetailContainerList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailContainerList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("BlobFilterDetailBlobPrefixList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("BlobFilterDetailBlobPathList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("AzureFileFilterDetailFilePrefixList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("AzureFileFilterDetailFilePathList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("AzureFileFilterDetailFileShareList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFileShareList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFileShareList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -177,47 +177,47 @@ internal TransferConfigurationTransferFilterDetails(global::System.Management.Au // actually deserialize if (content.Contains("Include")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).Include = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails) content.GetValueForProperty("Include",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).Include, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferFilterDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).Include = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails) content.GetValueForProperty("Include",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).Include, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferFilterDetailsTypeConverter.ConvertFrom); } if (content.Contains("IncludeBlobFilterDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeBlobFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails) content.GetValueForProperty("IncludeBlobFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeBlobFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.BlobFilterDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeBlobFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails) content.GetValueForProperty("IncludeBlobFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeBlobFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.BlobFilterDetailsTypeConverter.ConvertFrom); } if (content.Contains("IncludeAzureFileFilterDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeAzureFileFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails) content.GetValueForProperty("IncludeAzureFileFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeAzureFileFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AzureFileFilterDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeAzureFileFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails) content.GetValueForProperty("IncludeAzureFileFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeAzureFileFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AzureFileFilterDetailsTypeConverter.ConvertFrom); } if (content.Contains("IncludeDataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("IncludeDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeDataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("IncludeDataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeDataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("IncludeFilterFileDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeFilterFileDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails[]) content.GetValueForProperty("IncludeFilterFileDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeFilterFileDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.FilterFileDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeFilterFileDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails[]) content.GetValueForProperty("IncludeFilterFileDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).IncludeFilterFileDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.FilterFileDetailsTypeConverter.ConvertFrom)); } if (content.Contains("BlobFilterDetailContainerList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailContainerList = (string[]) content.GetValueForProperty("BlobFilterDetailContainerList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailContainerList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailContainerList = (string[]) content.GetValueForProperty("BlobFilterDetailContainerList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailContainerList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("BlobFilterDetailBlobPrefixList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("BlobFilterDetailBlobPathList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("AzureFileFilterDetailFilePrefixList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("AzureFileFilterDetailFilePathList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("AzureFileFilterDetailFileShareList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFileShareList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFileShareList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferFilterDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferFilterDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferFilterDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferFilterDetails.TypeConverter.cs index 3e579d016e28..867b9a618cfa 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferFilterDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferFilterDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -110,14 +110,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferFilterDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferFilterDetails.cs similarity index 82% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferFilterDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferFilterDetails.cs index a720bd9cdc3d..54ad5da9b195 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferFilterDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferFilterDetails.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -12,57 +12,57 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 /// TransferUsingFilter. /// public partial class TransferConfigurationTransferFilterDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal { /// List of full path of the files to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] AzureFileFilterDetailFilePathList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetailFilePathList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetailFilePathList = value ?? null /* arrayOf */; } + public string[] AzureFileFilterDetailFilePathList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetailFilePathList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetailFilePathList = value ?? null /* arrayOf */; } /// Prefix list of the Azure files to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] AzureFileFilterDetailFilePrefixList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetailFilePrefixList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetailFilePrefixList = value ?? null /* arrayOf */; } + public string[] AzureFileFilterDetailFilePrefixList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetailFilePrefixList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetailFilePrefixList = value ?? null /* arrayOf */; } /// List of file shares to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] AzureFileFilterDetailFileShareList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetailFileShareList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetailFileShareList = value ?? null /* arrayOf */; } + public string[] AzureFileFilterDetailFileShareList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetailFileShareList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetailFileShareList = value ?? null /* arrayOf */; } /// List of full path of the blobs to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] BlobFilterDetailBlobPathList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).BlobFilterDetailBlobPathList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).BlobFilterDetailBlobPathList = value ?? null /* arrayOf */; } + public string[] BlobFilterDetailBlobPathList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).BlobFilterDetailBlobPathList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).BlobFilterDetailBlobPathList = value ?? null /* arrayOf */; } /// Prefix list of the Azure blobs to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] BlobFilterDetailBlobPrefixList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).BlobFilterDetailBlobPrefixList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).BlobFilterDetailBlobPrefixList = value ?? null /* arrayOf */; } + public string[] BlobFilterDetailBlobPrefixList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).BlobFilterDetailBlobPrefixList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).BlobFilterDetailBlobPrefixList = value ?? null /* arrayOf */; } /// List of blob containers to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] BlobFilterDetailContainerList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).BlobFilterDetailContainerList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).BlobFilterDetailContainerList = value ?? null /* arrayOf */; } + public string[] BlobFilterDetailContainerList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).BlobFilterDetailContainerList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).BlobFilterDetailContainerList = value ?? null /* arrayOf */; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails _include; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails _include; /// Details of the filtering the transfer of data. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails Include { get => (this._include = this._include ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferFilterDetails()); set => this._include = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails Include { get => (this._include = this._include ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferFilterDetails()); set => this._include = value; } /// Type of the account of data. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? IncludeDataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).DataAccountType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? IncludeDataAccountType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).DataAccountType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).DataAccountType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType)""); } /// Details of the filter files to be used for data transfer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails[] IncludeFilterFileDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).FilterFileDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).FilterFileDetail = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails[] IncludeFilterFileDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).FilterFileDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).FilterFileDetail = value ?? null /* arrayOf */; } /// Internal Acessors for Include - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal.Include { get => (this._include = this._include ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferFilterDetails()); set { {_include = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal.Include { get => (this._include = this._include ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferFilterDetails()); set { {_include = value;} } } /// Internal Acessors for IncludeAzureFileFilterDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal.IncludeAzureFileFilterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal.IncludeAzureFileFilterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).AzureFileFilterDetail = value; } /// Internal Acessors for IncludeBlobFilterDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetailsInternal.IncludeBlobFilterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).BlobFilterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)Include).BlobFilterDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetailsInternal.IncludeBlobFilterDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).BlobFilterDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)Include).BlobFilterDetail = value; } /// /// Creates an new instance. @@ -139,8 +139,8 @@ public partial interface ITransferConfigurationTransferFilterDetails : ReadOnly = false, Description = @"Details of the filter files to be used for data transfer.", SerializedName = @"filterFileDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails[] IncludeFilterFileDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails[] IncludeFilterFileDetail { get; set; } } /// Map of filter type and the details to filter. This field is required only if the TransferConfigurationType is given as @@ -161,15 +161,15 @@ internal partial interface ITransferConfigurationTransferFilterDetailsInternal /// List of blob containers to be transferred. string[] BlobFilterDetailContainerList { get; set; } /// Details of the filtering the transfer of data. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails Include { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails Include { get; set; } /// Filter details to transfer Azure files. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails IncludeAzureFileFilterDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails IncludeAzureFileFilterDetail { get; set; } /// Filter details to transfer blobs. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails IncludeBlobFilterDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails IncludeBlobFilterDetail { get; set; } /// Type of the account of data. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType? IncludeDataAccountType { get; set; } /// Details of the filter files to be used for data transfer. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails[] IncludeFilterFileDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails[] IncludeFilterFileDetail { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferFilterDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferFilterDetails.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferFilterDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferFilterDetails.json.cs index 206f37919f08..df4950418f2e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferConfigurationTransferFilterDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferConfigurationTransferFilterDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -57,13 +57,13 @@ public partial class TransferConfigurationTransferFilterDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferConfigurationTransferFilterDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferConfigurationTransferFilterDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new TransferConfigurationTransferFilterDetails(json) : null; } @@ -106,7 +106,7 @@ internal TransferConfigurationTransferFilterDetails(Microsoft.Azure.PowerShell.C { return; } - {_include = If( json?.PropertyT("include"), out var __jsonInclude) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransferFilterDetails.FromJson(__jsonInclude) : Include;} + {_include = If( json?.PropertyT("include"), out var __jsonInclude) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransferFilterDetails.FromJson(__jsonInclude) : Include;} AfterFromJson(json); } } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferFilterDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferFilterDetails.PowerShell.cs similarity index 78% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferFilterDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferFilterDetails.PowerShell.cs index e795dc8e617e..a3cf48cce4c5 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferFilterDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferFilterDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class TransferFilterDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TransferFilterDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TransferFilterDetails(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,49 +108,49 @@ internal TransferFilterDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("BlobFilterDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails) content.GetValueForProperty("BlobFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.BlobFilterDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails) content.GetValueForProperty("BlobFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.BlobFilterDetailsTypeConverter.ConvertFrom); } if (content.Contains("AzureFileFilterDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails) content.GetValueForProperty("AzureFileFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AzureFileFilterDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails) content.GetValueForProperty("AzureFileFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AzureFileFilterDetailsTypeConverter.ConvertFrom); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("FilterFileDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).FilterFileDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails[]) content.GetValueForProperty("FilterFileDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).FilterFileDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.FilterFileDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).FilterFileDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails[]) content.GetValueForProperty("FilterFileDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).FilterFileDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.FilterFileDetailsTypeConverter.ConvertFrom)); } if (content.Contains("BlobFilterDetailContainerList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetailContainerList = (string[]) content.GetValueForProperty("BlobFilterDetailContainerList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetailContainerList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetailContainerList = (string[]) content.GetValueForProperty("BlobFilterDetailContainerList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetailContainerList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("BlobFilterDetailBlobPrefixList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("BlobFilterDetailBlobPathList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("AzureFileFilterDetailFilePrefixList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("AzureFileFilterDetailFilePathList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("AzureFileFilterDetailFileShareList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFileShareList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFileShareList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -165,43 +165,43 @@ internal TransferFilterDetails(global::System.Management.Automation.PSObject con // actually deserialize if (content.Contains("BlobFilterDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails) content.GetValueForProperty("BlobFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.BlobFilterDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails) content.GetValueForProperty("BlobFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.BlobFilterDetailsTypeConverter.ConvertFrom); } if (content.Contains("AzureFileFilterDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails) content.GetValueForProperty("AzureFileFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AzureFileFilterDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails) content.GetValueForProperty("AzureFileFilterDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AzureFileFilterDetailsTypeConverter.ConvertFrom); } if (content.Contains("DataAccountType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).DataAccountType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType) content.GetValueForProperty("DataAccountType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).DataAccountType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType.CreateFrom); } if (content.Contains("FilterFileDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).FilterFileDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails[]) content.GetValueForProperty("FilterFileDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).FilterFileDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.FilterFileDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).FilterFileDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails[]) content.GetValueForProperty("FilterFileDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).FilterFileDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.FilterFileDetailsTypeConverter.ConvertFrom)); } if (content.Contains("BlobFilterDetailContainerList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetailContainerList = (string[]) content.GetValueForProperty("BlobFilterDetailContainerList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetailContainerList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetailContainerList = (string[]) content.GetValueForProperty("BlobFilterDetailContainerList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetailContainerList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("BlobFilterDetailBlobPrefixList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("BlobFilterDetailBlobPathList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList = (string[]) content.GetValueForProperty("BlobFilterDetailBlobPathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).BlobFilterDetailBlobPathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("AzureFileFilterDetailFilePrefixList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePrefixList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePrefixList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("AzureFileFilterDetailFilePathList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFilePathList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFilePathList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("AzureFileFilterDetailFileShareList")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFileShareList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList = (string[]) content.GetValueForProperty("AzureFileFilterDetailFileShareList",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal)this).AzureFileFilterDetailFileShareList, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferFilterDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferFilterDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferFilterDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferFilterDetails.TypeConverter.cs index 6a4be88ad39d..acd8b69bbc18 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferFilterDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferFilterDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferFilterDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferFilterDetails.cs similarity index 84% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferFilterDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferFilterDetails.cs index 991723492fe2..4c4773a0c30d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferFilterDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferFilterDetails.cs @@ -3,53 +3,53 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Details of the filtering the transfer of data. public partial class TransferFilterDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails _azureFileFilterDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails _azureFileFilterDetail; /// Filter details to transfer Azure files. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails AzureFileFilterDetail { get => (this._azureFileFilterDetail = this._azureFileFilterDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AzureFileFilterDetails()); set => this._azureFileFilterDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails AzureFileFilterDetail { get => (this._azureFileFilterDetail = this._azureFileFilterDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AzureFileFilterDetails()); set => this._azureFileFilterDetail = value; } /// List of full path of the files to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] AzureFileFilterDetailFilePathList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)AzureFileFilterDetail).FilePathList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)AzureFileFilterDetail).FilePathList = value ?? null /* arrayOf */; } + public string[] AzureFileFilterDetailFilePathList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)AzureFileFilterDetail).FilePathList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)AzureFileFilterDetail).FilePathList = value ?? null /* arrayOf */; } /// Prefix list of the Azure files to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] AzureFileFilterDetailFilePrefixList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)AzureFileFilterDetail).FilePrefixList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)AzureFileFilterDetail).FilePrefixList = value ?? null /* arrayOf */; } + public string[] AzureFileFilterDetailFilePrefixList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)AzureFileFilterDetail).FilePrefixList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)AzureFileFilterDetail).FilePrefixList = value ?? null /* arrayOf */; } /// List of file shares to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] AzureFileFilterDetailFileShareList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)AzureFileFilterDetail).FileShareList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetailsInternal)AzureFileFilterDetail).FileShareList = value ?? null /* arrayOf */; } + public string[] AzureFileFilterDetailFileShareList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)AzureFileFilterDetail).FileShareList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetailsInternal)AzureFileFilterDetail).FileShareList = value ?? null /* arrayOf */; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails _blobFilterDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails _blobFilterDetail; /// Filter details to transfer blobs. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails BlobFilterDetail { get => (this._blobFilterDetail = this._blobFilterDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.BlobFilterDetails()); set => this._blobFilterDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails BlobFilterDetail { get => (this._blobFilterDetail = this._blobFilterDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.BlobFilterDetails()); set => this._blobFilterDetail = value; } /// List of full path of the blobs to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] BlobFilterDetailBlobPathList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)BlobFilterDetail).BlobPathList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)BlobFilterDetail).BlobPathList = value ?? null /* arrayOf */; } + public string[] BlobFilterDetailBlobPathList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)BlobFilterDetail).BlobPathList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)BlobFilterDetail).BlobPathList = value ?? null /* arrayOf */; } /// Prefix list of the Azure blobs to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] BlobFilterDetailBlobPrefixList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)BlobFilterDetail).BlobPrefixList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)BlobFilterDetail).BlobPrefixList = value ?? null /* arrayOf */; } + public string[] BlobFilterDetailBlobPrefixList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)BlobFilterDetail).BlobPrefixList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)BlobFilterDetail).BlobPrefixList = value ?? null /* arrayOf */; } /// List of blob containers to be transferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] BlobFilterDetailContainerList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)BlobFilterDetail).ContainerList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetailsInternal)BlobFilterDetail).ContainerList = value ?? null /* arrayOf */; } + public string[] BlobFilterDetailContainerList { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)BlobFilterDetail).ContainerList; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetailsInternal)BlobFilterDetail).ContainerList = value ?? null /* arrayOf */; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType _dataAccountType; @@ -59,17 +59,17 @@ public partial class TransferFilterDetails : public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType DataAccountType { get => this._dataAccountType; set => this._dataAccountType = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails[] _filterFileDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails[] _filterFileDetail; /// Details of the filter files to be used for data transfer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails[] FilterFileDetail { get => this._filterFileDetail; set => this._filterFileDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails[] FilterFileDetail { get => this._filterFileDetail; set => this._filterFileDetail = value; } /// Internal Acessors for AzureFileFilterDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal.AzureFileFilterDetail { get => (this._azureFileFilterDetail = this._azureFileFilterDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AzureFileFilterDetails()); set { {_azureFileFilterDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal.AzureFileFilterDetail { get => (this._azureFileFilterDetail = this._azureFileFilterDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AzureFileFilterDetails()); set { {_azureFileFilterDetail = value;} } } /// Internal Acessors for BlobFilterDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetailsInternal.BlobFilterDetail { get => (this._blobFilterDetail = this._blobFilterDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.BlobFilterDetails()); set { {_blobFilterDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetailsInternal.BlobFilterDetail { get => (this._blobFilterDetail = this._blobFilterDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.BlobFilterDetails()); set { {_blobFilterDetail = value;} } } /// Creates an new instance. public TransferFilterDetails() @@ -143,8 +143,8 @@ public partial interface ITransferFilterDetails : ReadOnly = false, Description = @"Details of the filter files to be used for data transfer.", SerializedName = @"filterFileDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails[] FilterFileDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails[] FilterFileDetail { get; set; } } /// Details of the filtering the transfer of data. @@ -152,7 +152,7 @@ internal partial interface ITransferFilterDetailsInternal { /// Filter details to transfer Azure files. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAzureFileFilterDetails AzureFileFilterDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAzureFileFilterDetails AzureFileFilterDetail { get; set; } /// List of full path of the files to be transferred. string[] AzureFileFilterDetailFilePathList { get; set; } /// Prefix list of the Azure files to be transferred. @@ -160,7 +160,7 @@ internal partial interface ITransferFilterDetailsInternal /// List of file shares to be transferred. string[] AzureFileFilterDetailFileShareList { get; set; } /// Filter details to transfer blobs. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IBlobFilterDetails BlobFilterDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IBlobFilterDetails BlobFilterDetail { get; set; } /// List of full path of the blobs to be transferred. string[] BlobFilterDetailBlobPathList { get; set; } /// Prefix list of the Azure blobs to be transferred. @@ -170,7 +170,7 @@ internal partial interface ITransferFilterDetailsInternal /// Type of the account of data. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataAccountType DataAccountType { get; set; } /// Details of the filter files to be used for data transfer. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails[] FilterFileDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails[] FilterFileDetail { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferFilterDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferFilterDetails.json.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferFilterDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferFilterDetails.json.cs index 144ef1f4e8dc..428ba498bb49 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransferFilterDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransferFilterDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TransferFilterDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransferFilterDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransferFilterDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new TransferFilterDetails(json) : null; } @@ -112,10 +112,10 @@ internal TransferFilterDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtim { return; } - {_blobFilterDetail = If( json?.PropertyT("blobFilterDetails"), out var __jsonBlobFilterDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.BlobFilterDetails.FromJson(__jsonBlobFilterDetails) : BlobFilterDetail;} - {_azureFileFilterDetail = If( json?.PropertyT("azureFileFilterDetails"), out var __jsonAzureFileFilterDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AzureFileFilterDetails.FromJson(__jsonAzureFileFilterDetails) : AzureFileFilterDetail;} + {_blobFilterDetail = If( json?.PropertyT("blobFilterDetails"), out var __jsonBlobFilterDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.BlobFilterDetails.FromJson(__jsonBlobFilterDetails) : BlobFilterDetail;} + {_azureFileFilterDetail = If( json?.PropertyT("azureFileFilterDetails"), out var __jsonAzureFileFilterDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AzureFileFilterDetails.FromJson(__jsonAzureFileFilterDetails) : AzureFileFilterDetail;} {_dataAccountType = If( json?.PropertyT("dataAccountType"), out var __jsonDataAccountType) ? (string)__jsonDataAccountType : (string)DataAccountType;} - {_filterFileDetail = If( json?.PropertyT("filterFileDetails"), out var __jsonFilterFileDetails) ? If( __jsonFilterFileDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IFilterFileDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.FilterFileDetails.FromJson(__u) )) ))() : null : FilterFileDetail;} + {_filterFileDetail = If( json?.PropertyT("filterFileDetails"), out var __jsonFilterFileDetails) ? If( __jsonFilterFileDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IFilterFileDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.FilterFileDetails.FromJson(__u) )) ))() : null : FilterFileDetail;} AfterFromJson(json); } } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityDetails.PowerShell.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityDetails.PowerShell.cs index ceffe96f96aa..d5996bcf2cf2 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class TransportAvailabilityDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TransportAvailabilityDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TransportAvailabilityDetails(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,13 +110,13 @@ internal TransportAvailabilityDetails(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("ShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetailsInternal)this).ShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes?) content.GetValueForProperty("ShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetailsInternal)this).ShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetailsInternal)this).ShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes?) content.GetValueForProperty("ShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetailsInternal)this).ShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,7 +131,7 @@ internal TransportAvailabilityDetails(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("ShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetailsInternal)this).ShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes?) content.GetValueForProperty("ShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetailsInternal)this).ShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetailsInternal)this).ShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes?) content.GetValueForProperty("ShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetailsInternal)this).ShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityDetails.TypeConverter.cs index 09297b125979..1a25b3bc8d11 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityDetails.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityDetails.cs index d315f07f3d2b..65f82c33e104 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityDetails.cs @@ -3,18 +3,18 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Transport options availability details for given region. public partial class TransportAvailabilityDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetailsInternal { /// Internal Acessors for ShipmentType - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetailsInternal.ShipmentType { get => this._shipmentType; set { {_shipmentType = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetailsInternal.ShipmentType { get => this._shipmentType; set { {_shipmentType = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? _shipmentType; diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityDetails.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityDetails.json.cs index a6d6c3ff9f6b..400973403f1b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TransportAvailabilityDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new TransportAvailabilityDetails(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityRequest.PowerShell.cs similarity index 81% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityRequest.PowerShell.cs index 60dc13b371ac..4bbb2b95ad45 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class TransportAvailabilityRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TransportAvailabilityRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TransportAvailabilityRequest(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,13 +110,17 @@ internal TransportAvailabilityRequest(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName?) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName?) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,7 +135,11 @@ internal TransportAvailabilityRequest(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("SkuName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName?) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequestInternal)this).SkuName = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName?) content.GetValueForProperty("SkuName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequestInternal)this).SkuName, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequestInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequestInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityRequest.TypeConverter.cs index ca11eb5974ef..42c3b65c1ce9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityRequest.cs similarity index 53% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityRequest.cs index d7936062d92f..64f14353d99d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityRequest.cs @@ -3,16 +3,26 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Request body to get the transport availability for given sku. public partial class TransportAvailabilityRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequestInternal { + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? _model; + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get => this._model; set => this._model = value; } + /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? _skuName; @@ -30,6 +40,17 @@ public TransportAvailabilityRequest() public partial interface ITransportAvailabilityRequest : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable { + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// Type of the device. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -44,6 +65,11 @@ public partial interface ITransportAvailabilityRequest : internal partial interface ITransportAvailabilityRequestInternal { + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// Type of the device. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName? SkuName { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityRequest.json.cs similarity index 91% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityRequest.json.cs index fd5422409628..7ee8ad5da468 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TransportAvailabilityRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new TransportAvailabilityRequest(json) : null; } @@ -85,6 +85,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M return container; } AddIf( null != (((object)this._skuName)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._skuName.ToString()) : null, "skuName" ,container.Add ); + AddIf( null != (((object)this._model)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._model.ToString()) : null, "model" ,container.Add ); AfterToJson(ref container); return container; } @@ -102,6 +103,7 @@ internal TransportAvailabilityRequest(Microsoft.Azure.PowerShell.Cmdlets.DataBox return; } {_skuName = If( json?.PropertyT("skuName"), out var __jsonSkuName) ? (string)__jsonSkuName : (string)SkuName;} + {_model = If( json?.PropertyT("model"), out var __jsonModel) ? (string)__jsonModel : (string)Model;} AfterFromJson(json); } } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityResponse.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityResponse.PowerShell.cs similarity index 87% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityResponse.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityResponse.PowerShell.cs index 0ce3ca18ace1..a46744f645e9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityResponse.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class TransportAvailabilityResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TransportAvailabilityResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TransportAvailabilityResponse(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,13 +110,13 @@ internal TransportAvailabilityResponse(global::System.Collections.IDictionary co // actually deserialize if (content.Contains("TransportAvailabilityDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponseInternal)this).TransportAvailabilityDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails[]) content.GetValueForProperty("TransportAvailabilityDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponseInternal)this).TransportAvailabilityDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponseInternal)this).TransportAvailabilityDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails[]) content.GetValueForProperty("TransportAvailabilityDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponseInternal)this).TransportAvailabilityDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityDetailsTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -131,7 +131,7 @@ internal TransportAvailabilityResponse(global::System.Management.Automation.PSOb // actually deserialize if (content.Contains("TransportAvailabilityDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponseInternal)this).TransportAvailabilityDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails[]) content.GetValueForProperty("TransportAvailabilityDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponseInternal)this).TransportAvailabilityDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityDetailsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponseInternal)this).TransportAvailabilityDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails[]) content.GetValueForProperty("TransportAvailabilityDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponseInternal)this).TransportAvailabilityDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityDetailsTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityResponse.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityResponse.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityResponse.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityResponse.TypeConverter.cs index 8df43ddd4f73..72cce591904d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityResponse.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityResponse.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityResponse.cs similarity index 83% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityResponse.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityResponse.cs index ee5cb1106065..f924d928ac2a 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityResponse.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityResponse.cs @@ -3,25 +3,25 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Transport options available for given sku in a region. public partial class TransportAvailabilityResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponseInternal { /// Internal Acessors for TransportAvailabilityDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponseInternal.TransportAvailabilityDetail { get => this._transportAvailabilityDetail; set { {_transportAvailabilityDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponseInternal.TransportAvailabilityDetail { get => this._transportAvailabilityDetail; set { {_transportAvailabilityDetail = value;} } } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails[] _transportAvailabilityDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails[] _transportAvailabilityDetail; /// List of transport availability details for given region [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails[] TransportAvailabilityDetail { get => this._transportAvailabilityDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails[] TransportAvailabilityDetail { get => this._transportAvailabilityDetail; } /// Creates an new instance. public TransportAvailabilityResponse() @@ -39,8 +39,8 @@ public partial interface ITransportAvailabilityResponse : ReadOnly = true, Description = @"List of transport availability details for given region", SerializedName = @"transportAvailabilityDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails[] TransportAvailabilityDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails[] TransportAvailabilityDetail { get; } } /// Transport options available for given sku in a region. @@ -48,7 +48,7 @@ internal partial interface ITransportAvailabilityResponseInternal { /// List of transport availability details for given region - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails[] TransportAvailabilityDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails[] TransportAvailabilityDetail { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityResponse.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityResponse.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityResponse.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityResponse.json.cs index 110733e15fc1..f6661f8608da 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportAvailabilityResponse.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportAvailabilityResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TransportAvailabilityResponse partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new TransportAvailabilityResponse(json) : null; } @@ -112,7 +112,7 @@ internal TransportAvailabilityResponse(Microsoft.Azure.PowerShell.Cmdlets.DataBo { return; } - {_transportAvailabilityDetail = If( json?.PropertyT("transportAvailabilityDetails"), out var __jsonTransportAvailabilityDetails) ? If( __jsonTransportAvailabilityDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportAvailabilityDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportAvailabilityDetails.FromJson(__u) )) ))() : null : TransportAvailabilityDetail;} + {_transportAvailabilityDetail = If( json?.PropertyT("transportAvailabilityDetails"), out var __jsonTransportAvailabilityDetails) ? If( __jsonTransportAvailabilityDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportAvailabilityDetails) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportAvailabilityDetails.FromJson(__u) )) ))() : null : TransportAvailabilityDetail;} AfterFromJson(json); } } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportPreferences.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportPreferences.PowerShell.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportPreferences.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportPreferences.PowerShell.cs index 1b9ef7774926..a3fddbe9a4c6 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportPreferences.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportPreferences.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class TransportPreferences partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new TransportPreferences(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new TransportPreferences(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITra public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,17 +108,17 @@ internal TransportPreferences(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("PreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)this).PreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("PreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)this).PreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)this).PreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("PreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)this).PreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("IsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)this).IsUpdated = (bool?) content.GetValueForProperty("IsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)this).IsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)this).IsUpdated = (bool?) content.GetValueForProperty("IsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)this).IsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -133,11 +133,11 @@ internal TransportPreferences(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("PreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)this).PreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("PreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)this).PreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)this).PreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("PreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)this).PreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("IsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)this).IsUpdated = (bool?) content.GetValueForProperty("IsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)this).IsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)this).IsUpdated = (bool?) content.GetValueForProperty("IsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)this).IsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportPreferences.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportPreferences.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportPreferences.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportPreferences.TypeConverter.cs index 67b5e7951ee0..f791f7271a4f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportPreferences.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportPreferences.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportPreferences.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportPreferences.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportPreferences.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportPreferences.cs index daa216dbc491..e06b7ce680ed 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportPreferences.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportPreferences.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Preferences related to the shipment logistics of the sku public partial class TransportPreferences : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal { /// Backing field for property. @@ -23,7 +23,7 @@ public partial class TransportPreferences : public bool? IsUpdated { get => this._isUpdated; } /// Internal Acessors for IsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal.IsUpdated { get => this._isUpdated; set { {_isUpdated = value;} } } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal.IsUpdated { get => this._isUpdated; set { {_isUpdated = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes _preferredShipmentType; diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportPreferences.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportPreferences.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportPreferences.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportPreferences.json.cs index da17d112f7d2..b758d9c2d910 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/TransportPreferences.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/TransportPreferences.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class TransportPreferences partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new TransportPreferences(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentials.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentials.PowerShell.cs similarity index 74% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentials.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentials.PowerShell.cs index 863cb74b2f3f..460d61988ecf 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentials.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentials.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class UnencryptedCredentials partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UnencryptedCredentials(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UnencryptedCredentials(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUne /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUne public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,57 +108,57 @@ internal UnencryptedCredentials(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("JobSecret")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets) content.GetValueForProperty("JobSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecret, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobSecretsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets) content.GetValueForProperty("JobSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecret, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobSecretsTypeConverter.ConvertFrom); } if (content.Contains("JobName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobName, global::System.Convert.ToString); } if (content.Contains("JobSecretDcAccessSecurityCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecretDcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode) content.GetValueForProperty("JobSecretDcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecretDcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCodeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecretDcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode) content.GetValueForProperty("JobSecretDcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecretDcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCodeTypeConverter.ConvertFrom); } if (content.Contains("JobSecretError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecretError = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("JobSecretError",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecretError, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecretError = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("JobSecretError",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecretError, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("JobSecretJobSecretsType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecretJobSecretsType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("JobSecretJobSecretsType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecretJobSecretsType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecretJobSecretsType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("JobSecretJobSecretsType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecretJobSecretsType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } if (content.Contains("DcAccessSecurityCodeReverseDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCodeForwardDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -173,51 +173,51 @@ internal UnencryptedCredentials(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("JobSecret")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets) content.GetValueForProperty("JobSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecret, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobSecretsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecret = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets) content.GetValueForProperty("JobSecret",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecret, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobSecretsTypeConverter.ConvertFrom); } if (content.Contains("JobName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobName = (string) content.GetValueForProperty("JobName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobName, global::System.Convert.ToString); } if (content.Contains("JobSecretDcAccessSecurityCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecretDcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode) content.GetValueForProperty("JobSecretDcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecretDcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.DcAccessSecurityCodeTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecretDcAccessSecurityCode = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode) content.GetValueForProperty("JobSecretDcAccessSecurityCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecretDcAccessSecurityCode, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.DcAccessSecurityCodeTypeConverter.ConvertFrom); } if (content.Contains("JobSecretError")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecretError = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("JobSecretError",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecretError, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecretError = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("JobSecretError",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecretError, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("JobSecretJobSecretsType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecretJobSecretsType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("JobSecretJobSecretsType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).JobSecretJobSecretsType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecretJobSecretsType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator) content.GetValueForProperty("JobSecretJobSecretsType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).JobSecretJobSecretsType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator.CreateFrom); } if (content.Contains("DcAccessSecurityCodeReverseDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeReverseDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeReverseDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeReverseDcAccessCode, global::System.Convert.ToString); } if (content.Contains("DcAccessSecurityCodeForwardDcAccessCode")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeForwardDcAccessCode = (string) content.GetValueForProperty("DcAccessSecurityCodeForwardDcAccessCode",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).DcAccessSecurityCodeForwardDcAccessCode, global::System.Convert.ToString); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentials.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentials.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentials.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentials.TypeConverter.cs index 7d2fda8a699d..d7af9ec04429 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentials.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentials.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentials.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentials.cs similarity index 78% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentials.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentials.cs index 8622c413219e..3b5b6598c601 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentials.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentials.cs @@ -3,35 +3,35 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Unencrypted credentials for accessing device. public partial class UnencryptedCredentials : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal { /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).AdditionalInfo; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).Code = value ?? null; } /// Forward Dc access security code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DcAccessSecurityCodeForwardDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).DcAccessSecurityCodeForwardDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).DcAccessSecurityCodeForwardDcAccessCode = value ?? null; } + public string DcAccessSecurityCodeForwardDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).DcAccessSecurityCodeForwardDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).DcAccessSecurityCodeForwardDcAccessCode = value ?? null; } /// Reverse Dc access security code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string DcAccessSecurityCodeReverseDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).DcAccessSecurityCodeReverseDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).DcAccessSecurityCodeReverseDcAccessCode = value ?? null; } + public string DcAccessSecurityCodeReverseDcAccessCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).DcAccessSecurityCodeReverseDcAccessCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).DcAccessSecurityCodeReverseDcAccessCode = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).Detail; } /// Backing field for property. private string _jobName; @@ -41,41 +41,41 @@ public partial class UnencryptedCredentials : public string JobName { get => this._jobName; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets _jobSecret; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets _jobSecret; /// Secrets related to this job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets JobSecret { get => (this._jobSecret = this._jobSecret ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobSecrets()); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets JobSecret { get => (this._jobSecret = this._jobSecret ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobSecrets()); } /// Used to indicate what type of job secrets object. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator? JobSecretJobSecretsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator? JobSecretJobSecretsType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).Type; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).Type = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator)""); } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).Message = value ?? null; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).AdditionalInfo = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).Detail = value; } /// Internal Acessors for JobName - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal.JobName { get => this._jobName; set { {_jobName = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal.JobName { get => this._jobName; set { {_jobName = value;} } } /// Internal Acessors for JobSecret - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal.JobSecret { get => (this._jobSecret = this._jobSecret ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobSecrets()); set { {_jobSecret = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal.JobSecret { get => (this._jobSecret = this._jobSecret ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobSecrets()); set { {_jobSecret = value;} } } /// Internal Acessors for JobSecretDcAccessSecurityCode - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal.JobSecretDcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).DcAccessSecurityCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).DcAccessSecurityCode = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal.JobSecretDcAccessSecurityCode { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).DcAccessSecurityCode; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).DcAccessSecurityCode = value; } /// Internal Acessors for JobSecretError - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsInternal.JobSecretError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).Error = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsInternal.JobSecretError { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).Error; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).Error = value; } /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecretsInternal)JobSecret).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecretsInternal)JobSecret).Target = value ?? null; } /// Creates an new instance. public UnencryptedCredentials() @@ -93,8 +93,8 @@ public partial interface IUnencryptedCredentials : ReadOnly = true, Description = @"Gets or sets additional error info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -125,8 +125,8 @@ public partial interface IUnencryptedCredentials : ReadOnly = true, Description = @"Gets or sets details for the error.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; } /// Name of the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -166,7 +166,7 @@ internal partial interface IUnencryptedCredentialsInternal { /// Gets or sets additional error info. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } /// Error code. string Code { get; set; } /// Forward Dc access security code. @@ -174,15 +174,15 @@ internal partial interface IUnencryptedCredentialsInternal /// Reverse Dc access security code. string DcAccessSecurityCodeReverseDcAccessCode { get; set; } /// Gets or sets details for the error. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; set; } /// Name of the job. string JobName { get; set; } /// Secrets related to this job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobSecrets JobSecret { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobSecrets JobSecret { get; set; } /// Dc Access Security Code for Customer Managed Shipping - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IDcAccessSecurityCode JobSecretDcAccessSecurityCode { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IDcAccessSecurityCode JobSecretDcAccessSecurityCode { get; set; } /// Error while fetching the secrets. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError JobSecretError { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError JobSecretError { get; set; } /// Used to indicate what type of job secrets object. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ClassDiscriminator? JobSecretJobSecretsType { get; set; } /// The error message parsed from the body of the http error response. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentials.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentials.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentials.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentials.json.cs index aced12349317..2191bd196937 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentials.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentials.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UnencryptedCredentials partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new UnencryptedCredentials(json) : null; } @@ -108,7 +108,7 @@ internal UnencryptedCredentials(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runti { return; } - {_jobSecret = If( json?.PropertyT("jobSecrets"), out var __jsonJobSecrets) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobSecrets.FromJson(__jsonJobSecrets) : JobSecret;} + {_jobSecret = If( json?.PropertyT("jobSecrets"), out var __jsonJobSecrets) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobSecrets.FromJson(__jsonJobSecrets) : JobSecret;} {_jobName = If( json?.PropertyT("jobName"), out var __jsonJobName) ? (string)__jsonJobName : (string)JobName;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentialsList.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentialsList.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentialsList.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentialsList.PowerShell.cs index c1a260719ae1..9b2e92433be9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentialsList.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentialsList.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class UnencryptedCredentialsList partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsList DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsList DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UnencryptedCredentialsList(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsList DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UnencryptedCredentialsList(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUne /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsList FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUne public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,17 +108,17 @@ internal UnencryptedCredentialsList(global::System.Collections.IDictionary conte // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UnencryptedCredentialsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UnencryptedCredentialsTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -133,11 +133,11 @@ internal UnencryptedCredentialsList(global::System.Management.Automation.PSObjec // actually deserialize if (content.Contains("Value")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UnencryptedCredentialsTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsListInternal)this).Value = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials[]) content.GetValueForProperty("Value",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsListInternal)this).Value, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UnencryptedCredentialsTypeConverter.ConvertFrom)); } if (content.Contains("NextLink")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsListInternal)this).NextLink, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsListInternal)this).NextLink = (string) content.GetValueForProperty("NextLink",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsListInternal)this).NextLink, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentialsList.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentialsList.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentialsList.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentialsList.TypeConverter.cs index d7360e29880a..bc7e9531a3f1 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentialsList.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentialsList.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsList ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsList ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsList).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsList).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentialsList.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentialsList.cs similarity index 89% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentialsList.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentialsList.cs index 5c1985a09f58..7352fcbc64b4 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentialsList.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentialsList.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// List of unencrypted credentials for accessing device. public partial class UnencryptedCredentialsList : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsList, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsListInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsList, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsListInternal { /// Backing field for property. @@ -21,11 +21,11 @@ public partial class UnencryptedCredentialsList : public string NextLink { get => this._nextLink; set => this._nextLink = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials[] _value; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials[] _value; /// List of unencrypted credentials. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials[] Value { get => this._value; set => this._value = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials[] Value { get => this._value; set => this._value = value; } /// Creates an new instance. public UnencryptedCredentialsList() @@ -51,8 +51,8 @@ public partial interface IUnencryptedCredentialsList : ReadOnly = false, Description = @"List of unencrypted credentials.", SerializedName = @"value", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials[] Value { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials[] Value { get; set; } } /// List of unencrypted credentials for accessing device. @@ -62,7 +62,7 @@ internal partial interface IUnencryptedCredentialsListInternal /// Link for the next set of unencrypted credentials. string NextLink { get; set; } /// List of unencrypted credentials. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials[] Value { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials[] Value { get; set; } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentialsList.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentialsList.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentialsList.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentialsList.json.cs index 592f4a3eaa38..4cc8c3b84183 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UnencryptedCredentialsList.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UnencryptedCredentialsList.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UnencryptedCredentialsList partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsList. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsList. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsList. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsList. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsList FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new UnencryptedCredentialsList(json) : null; } @@ -110,7 +110,7 @@ internal UnencryptedCredentialsList(Microsoft.Azure.PowerShell.Cmdlets.DataBox.R { return; } - {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UnencryptedCredentials.FromJson(__u) )) ))() : null : Value;} + {_value = If( json?.PropertyT("value"), out var __jsonValue) ? If( __jsonValue as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UnencryptedCredentials.FromJson(__u) )) ))() : null : Value;} {_nextLink = If( json?.PropertyT("nextLink"), out var __jsonNextLink) ? (string)__jsonNextLink : (string)NextLink;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobDetails.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobDetails.PowerShell.cs similarity index 73% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobDetails.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobDetails.PowerShell.cs index 55b51b97a38a..10d4560a7324 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobDetails.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobDetails.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class UpdateJobDetails partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UpdateJobDetails(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UpdateJobDetails(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpd /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpd public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,117 +108,117 @@ internal UpdateJobDetails(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("Preference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReturnToCustomerPackageDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails) content.GetValueForProperty("ReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails) content.GetValueForProperty("ReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetailsTypeConverter.ConvertFrom); } if (content.Contains("ContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("KeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ReverseShippingDetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ReverseShippingDetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("PreferenceTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferenceEncryptionPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo) content.GetValueForProperty("ReverseShippingDetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo) content.GetValueForProperty("ReverseShippingDetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactInfoTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetailIsUpdated = (bool?) content.GetValueForProperty("ReverseShippingDetailIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetailIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetailIsUpdated = (bool?) content.GetValueForProperty("ReverseShippingDetailIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetailIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("PreferenceReverseTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferencePreferredDataCenterRegion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("PreferenceStorageAccountAccessTierPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); } if (content.Contains("EncryptionPreferenceDoubleEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); } if (content.Contains("EncryptionPreferenceHardwareEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); } if (content.Contains("ReturnToCustomerPackageDetailCarrierAccountNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailCarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailTrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); } if (content.Contains("ContactDetailContactName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailContactName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailContactName, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailPhone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailPhone, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhoneExtension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); } if (content.Contains("ContactDetailMobile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailMobile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailMobile, global::System.Convert.ToString); } if (content.Contains("TransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("TransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReverseTransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("ReverseTransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -233,111 +233,111 @@ internal UpdateJobDetails(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("ReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("ReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("Preference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).Preference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("Preference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).Preference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReturnToCustomerPackageDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails) content.GetValueForProperty("ReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails) content.GetValueForProperty("ReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetailsTypeConverter.ConvertFrom); } if (content.Contains("ContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("ContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("KeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).KeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("KeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).KeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ReverseShippingDetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ReverseShippingDetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("PreferenceTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferenceEncryptionPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo) content.GetValueForProperty("ReverseShippingDetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo) content.GetValueForProperty("ReverseShippingDetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactInfoTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetailIsUpdated = (bool?) content.GetValueForProperty("ReverseShippingDetailIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseShippingDetailIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetailIsUpdated = (bool?) content.GetValueForProperty("ReverseShippingDetailIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseShippingDetailIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("PreferenceReverseTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferencePreferredDataCenterRegion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("PreferenceStorageAccountAccessTierPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); } if (content.Contains("EncryptionPreferenceDoubleEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); } if (content.Contains("EncryptionPreferenceHardwareEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); } if (content.Contains("ReturnToCustomerPackageDetailCarrierAccountNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailCarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailTrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); } if (content.Contains("ContactDetailContactName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailContactName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailContactName, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailPhone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailPhone, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhoneExtension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); } if (content.Contains("ContactDetailMobile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ContactDetailMobile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ContactDetailMobile, global::System.Convert.ToString); } if (content.Contains("TransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("TransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReverseTransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("ReverseTransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobDetails.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobDetails.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobDetails.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobDetails.TypeConverter.cs index f835e4cfc43d..286407425feb 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobDetails.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobDetails.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobDetails.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobDetails.cs similarity index 81% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobDetails.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobDetails.cs index 3415458fcac0..35c98006900b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobDetails.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobDetails.cs @@ -3,162 +3,162 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Job details for update. public partial class UpdateJobDetails : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails _contactDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails _contactDetail; /// Contact details for notification and shipping. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails ContactDetail { get => (this._contactDetail = this._contactDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetails()); set => this._contactDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails ContactDetail { get => (this._contactDetail = this._contactDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetails()); set => this._contactDetail = value; } /// Contact name of the person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailContactName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailContactName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailContactName = value ?? null; } + public string ContactDetailContactName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailContactName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailContactName = value ?? null; } /// Mobile number of the contact person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailMobile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailMobile; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailMobile = value ?? null; } + public string ContactDetailMobile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailMobile; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailMobile = value ?? null; } /// Phone number of the contact person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailPhone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailPhone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailPhone = value ?? null; } + public string ContactDetailPhone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailPhone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailPhone = value ?? null; } /// Phone extension number of the contact person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailPhoneExtension { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailPhoneExtension; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailPhoneExtension = value ?? null; } + public string ContactDetailPhoneExtension { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailPhoneExtension; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetailPhoneExtension = value ?? null; } /// Defines secondary layer of software-based encryption enablement. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption? EncryptionPreferenceDoubleEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).EncryptionPreferenceDoubleEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).EncryptionPreferenceDoubleEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption? EncryptionPreferenceDoubleEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).EncryptionPreferenceDoubleEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).EncryptionPreferenceDoubleEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption)""); } /// Defines Hardware level encryption (Only for disk) [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).EncryptionPreferenceHardwareEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).EncryptionPreferenceHardwareEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).EncryptionPreferenceHardwareEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).EncryptionPreferenceHardwareEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey _keyEncryptionKey; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey _keyEncryptionKey; /// Key encryption key for the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey KeyEncryptionKey { get => (this._keyEncryptionKey = this._keyEncryptionKey ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKey()); set => this._keyEncryptionKey = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey KeyEncryptionKey { get => (this._keyEncryptionKey = this._keyEncryptionKey ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKey()); set => this._keyEncryptionKey = value; } /// Internal Acessors for Preference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal.Preference { get => (this._preference = this._preference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Preferences()); set { {_preference = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal.Preference { get => (this._preference = this._preference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Preferences()); set { {_preference = value;} } } /// Internal Acessors for PreferenceEncryptionPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal.PreferenceEncryptionPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).EncryptionPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).EncryptionPreference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal.PreferenceEncryptionPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).EncryptionPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).EncryptionPreference = value; } /// Internal Acessors for PreferenceReverseTransportPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal.PreferenceReverseTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).ReverseTransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).ReverseTransportPreference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal.PreferenceReverseTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).ReverseTransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).ReverseTransportPreference = value; } /// Internal Acessors for PreferenceTransportPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal.PreferenceTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).TransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).TransportPreference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal.PreferenceTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).TransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).TransportPreference = value; } /// Internal Acessors for ReturnToCustomerPackageDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal.ReturnToCustomerPackageDetail { get => (this._returnToCustomerPackageDetail = this._returnToCustomerPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetails()); set { {_returnToCustomerPackageDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal.ReturnToCustomerPackageDetail { get => (this._returnToCustomerPackageDetail = this._returnToCustomerPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetails()); set { {_returnToCustomerPackageDetail = value;} } } /// Internal Acessors for ReverseShippingDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal.ReverseShippingDetail { get => (this._reverseShippingDetail = this._reverseShippingDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetails()); set { {_reverseShippingDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal.ReverseShippingDetail { get => (this._reverseShippingDetail = this._reverseShippingDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetails()); set { {_reverseShippingDetail = value;} } } /// Internal Acessors for ReverseShippingDetailContactDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal.ReverseShippingDetailContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal.ReverseShippingDetailContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).ContactDetail = value; } /// Internal Acessors for ReverseShippingDetailIsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal.ReverseShippingDetailIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).IsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).IsUpdated = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal.ReverseShippingDetailIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).IsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).IsUpdated = value; } /// Internal Acessors for ReverseTransportPreferenceIsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal.ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).ReverseTransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).ReverseTransportPreferenceIsUpdated = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal.ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).ReverseTransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).ReverseTransportPreferenceIsUpdated = value; } /// Internal Acessors for TransportPreferenceIsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal.TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).TransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).TransportPreferenceIsUpdated = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal.TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).TransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).TransportPreferenceIsUpdated = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences _preference; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences _preference; /// Preferences related to the order [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Preference { get => (this._preference = this._preference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Preferences()); set => this._preference = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Preference { get => (this._preference = this._preference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Preferences()); set => this._preference = value; } /// Preferred data center region. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] PreferencePreferredDataCenterRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).PreferredDataCenterRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).PreferredDataCenterRegion = value ?? null /* arrayOf */; } + public string[] PreferencePreferredDataCenterRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).PreferredDataCenterRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).PreferredDataCenterRegion = value ?? null /* arrayOf */; } /// Preferences related to the Access Tier of storage accounts. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] PreferenceStorageAccountAccessTierPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).StorageAccountAccessTierPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).StorageAccountAccessTierPreference = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] PreferenceStorageAccountAccessTierPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).StorageAccountAccessTierPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).StorageAccountAccessTierPreference = value ?? null /* arrayOf */; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails _returnToCustomerPackageDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails _returnToCustomerPackageDetail; /// Return package details of job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails ReturnToCustomerPackageDetail { get => (this._returnToCustomerPackageDetail = this._returnToCustomerPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetails()); set => this._returnToCustomerPackageDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails ReturnToCustomerPackageDetail { get => (this._returnToCustomerPackageDetail = this._returnToCustomerPackageDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetails()); set => this._returnToCustomerPackageDetail = value; } /// Carrier Account Number of customer for customer disk. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ReturnToCustomerPackageDetailCarrierAccountNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierAccountNumber; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierAccountNumber = value ?? null; } + public string ReturnToCustomerPackageDetailCarrierAccountNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierAccountNumber; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierAccountNumber = value ?? null; } /// Name of the carrier. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ReturnToCustomerPackageDetailCarrierName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierName = value ?? null; } + public string ReturnToCustomerPackageDetailCarrierName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).CarrierName = value ?? null; } /// Tracking Id of shipment. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ReturnToCustomerPackageDetailTrackingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).TrackingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).TrackingId = value ?? null; } + public string ReturnToCustomerPackageDetailTrackingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).TrackingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetailsInternal)ReturnToCustomerPackageDetail).TrackingId = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails _reverseShippingDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails _reverseShippingDetail; /// Reverse Shipping Address and contact details for a job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails ReverseShippingDetail { get => (this._reverseShippingDetail = this._reverseShippingDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetails()); set => this._reverseShippingDetail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails ReverseShippingDetail { get => (this._reverseShippingDetail = this._reverseShippingDetail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetails()); set => this._reverseShippingDetail = value; } /// /// A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared. /// Read only field /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? ReverseShippingDetailIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).IsUpdated; } + public bool? ReverseShippingDetailIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).IsUpdated; } /// Shipping address where customer wishes to receive the device. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ReverseShippingDetailShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).ShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetailsInternal)ReverseShippingDetail).ShippingAddress = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ReverseShippingDetailShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).ShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetailsInternal)ReverseShippingDetail).ShippingAddress = value ?? null /* model class */; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).ReverseTransportPreferenceIsUpdated; } + public bool? ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).ReverseTransportPreferenceIsUpdated; } /// Indicates Shipment Logistics type that the customer preferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? ReverseTransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).ReverseTransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).ReverseTransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? ReverseTransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).ReverseTransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).ReverseTransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress _shippingAddress; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress _shippingAddress; /// Shipping address of the customer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get => (this._shippingAddress = this._shippingAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress()); set => this._shippingAddress = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get => (this._shippingAddress = this._shippingAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress()); set => this._shippingAddress = value; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).TransportPreferenceIsUpdated; } + public bool? TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).TransportPreferenceIsUpdated; } /// Indicates Shipment Logistics type that the customer preferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? TransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).TransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferencesInternal)Preference).TransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? TransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).TransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferencesInternal)Preference).TransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } /// Creates an new instance. public UpdateJobDetails() @@ -176,8 +176,8 @@ public partial interface IUpdateJobDetails : ReadOnly = false, Description = @"Contact details for notification and shipping.", SerializedName = @"contactDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails ContactDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails ContactDetail { get; set; } /// Contact name of the person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -232,8 +232,8 @@ public partial interface IUpdateJobDetails : ReadOnly = false, Description = @"Key encryption key for the job.", SerializedName = @"keyEncryptionKey", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey KeyEncryptionKey { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey KeyEncryptionKey { get; set; } /// Preferred data center region. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -292,8 +292,8 @@ public partial interface IUpdateJobDetails : ReadOnly = false, Description = @"Shipping address where customer wishes to receive the device.", SerializedName = @"shippingAddress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ReverseShippingDetailShippingAddress { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ReverseShippingDetailShippingAddress { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// @@ -318,8 +318,8 @@ public partial interface IUpdateJobDetails : ReadOnly = false, Description = @"Shipping address of the customer.", SerializedName = @"shippingAddress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// @@ -345,7 +345,7 @@ internal partial interface IUpdateJobDetailsInternal { /// Contact details for notification and shipping. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails ContactDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails ContactDetail { get; set; } /// Contact name of the person. string ContactDetailContactName { get; set; } /// Mobile number of the contact person. @@ -359,21 +359,21 @@ internal partial interface IUpdateJobDetailsInternal /// Defines Hardware level encryption (Only for disk) Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get; set; } /// Key encryption key for the job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey KeyEncryptionKey { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey KeyEncryptionKey { get; set; } /// Preferences related to the order - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Preference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Preference { get; set; } /// Preferences related to the Encryption. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences PreferenceEncryptionPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences PreferenceEncryptionPreference { get; set; } /// Preferred data center region. string[] PreferencePreferredDataCenterRegion { get; set; } /// Optional Preferences related to the reverse shipment logistics of the sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences PreferenceReverseTransportPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences PreferenceReverseTransportPreference { get; set; } /// Preferences related to the Access Tier of storage accounts. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] PreferenceStorageAccountAccessTierPreference { get; set; } /// Preferences related to the shipment logistics of the sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences PreferenceTransportPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences PreferenceTransportPreference { get; set; } /// Return package details of job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails ReturnToCustomerPackageDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails ReturnToCustomerPackageDetail { get; set; } /// Carrier Account Number of customer for customer disk. string ReturnToCustomerPackageDetailCarrierAccountNumber { get; set; } /// Name of the carrier. @@ -381,16 +381,16 @@ internal partial interface IUpdateJobDetailsInternal /// Tracking Id of shipment. string ReturnToCustomerPackageDetailTrackingId { get; set; } /// Reverse Shipping Address and contact details for a job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails ReverseShippingDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails ReverseShippingDetail { get; set; } /// Contact Info. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo ReverseShippingDetailContactDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo ReverseShippingDetailContactDetail { get; set; } /// /// A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared. /// Read only field /// bool? ReverseShippingDetailIsUpdated { get; set; } /// Shipping address where customer wishes to receive the device. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ReverseShippingDetailShippingAddress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ReverseShippingDetailShippingAddress { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// @@ -398,7 +398,7 @@ internal partial interface IUpdateJobDetailsInternal /// Indicates Shipment Logistics type that the customer preferred. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? ReverseTransportPreferencePreferredShipmentType { get; set; } /// Shipping address of the customer. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobDetails.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobDetails.json.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobDetails.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobDetails.json.cs index fb4f3638eac9..99d7be9e9628 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobDetails.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobDetails.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateJobDetails partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new UpdateJobDetails(json) : null; } @@ -106,12 +106,12 @@ internal UpdateJobDetails(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Jso { return; } - {_reverseShippingDetail = If( json?.PropertyT("reverseShippingDetails"), out var __jsonReverseShippingDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetails.FromJson(__jsonReverseShippingDetails) : ReverseShippingDetail;} - {_preference = If( json?.PropertyT("preferences"), out var __jsonPreferences) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.Preferences.FromJson(__jsonPreferences) : Preference;} - {_returnToCustomerPackageDetail = If( json?.PropertyT("returnToCustomerPackageDetails"), out var __jsonReturnToCustomerPackageDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetails.FromJson(__jsonReturnToCustomerPackageDetails) : ReturnToCustomerPackageDetail;} - {_contactDetail = If( json?.PropertyT("contactDetails"), out var __jsonContactDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetails.FromJson(__jsonContactDetails) : ContactDetail;} - {_shippingAddress = If( json?.PropertyT("shippingAddress"), out var __jsonShippingAddress) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress.FromJson(__jsonShippingAddress) : ShippingAddress;} - {_keyEncryptionKey = If( json?.PropertyT("keyEncryptionKey"), out var __jsonKeyEncryptionKey) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKey.FromJson(__jsonKeyEncryptionKey) : KeyEncryptionKey;} + {_reverseShippingDetail = If( json?.PropertyT("reverseShippingDetails"), out var __jsonReverseShippingDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetails.FromJson(__jsonReverseShippingDetails) : ReverseShippingDetail;} + {_preference = If( json?.PropertyT("preferences"), out var __jsonPreferences) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.Preferences.FromJson(__jsonPreferences) : Preference;} + {_returnToCustomerPackageDetail = If( json?.PropertyT("returnToCustomerPackageDetails"), out var __jsonReturnToCustomerPackageDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetails.FromJson(__jsonReturnToCustomerPackageDetails) : ReturnToCustomerPackageDetail;} + {_contactDetail = If( json?.PropertyT("contactDetails"), out var __jsonContactDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetails.FromJson(__jsonContactDetails) : ContactDetail;} + {_shippingAddress = If( json?.PropertyT("shippingAddress"), out var __jsonShippingAddress) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress.FromJson(__jsonShippingAddress) : ShippingAddress;} + {_keyEncryptionKey = If( json?.PropertyT("keyEncryptionKey"), out var __jsonKeyEncryptionKey) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKey.FromJson(__jsonKeyEncryptionKey) : KeyEncryptionKey;} AfterFromJson(json); } } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobProperties.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobProperties.PowerShell.cs similarity index 72% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobProperties.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobProperties.PowerShell.cs index a85c9e2e8d33..43a864243d08 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobProperties.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class UpdateJobProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UpdateJobProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UpdateJobProperties(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpd /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpd public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,121 +108,121 @@ internal UpdateJobProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UpdateJobDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UpdateJobDetailsTypeConverter.ConvertFrom); } if (content.Contains("DetailPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("DetailPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("DetailPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("DetailContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("DetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("DetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("DetailShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("DetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("DetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DetailKeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailKeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("DetailKeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailKeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailKeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("DetailKeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailKeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("DetailReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("DetailReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("DetailReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("DetailReturnToCustomerPackageDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails) content.GetValueForProperty("DetailReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails) content.GetValueForProperty("DetailReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetailsTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ReverseShippingDetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ReverseShippingDetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("PreferenceTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferenceEncryptionPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo) content.GetValueForProperty("ReverseShippingDetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo) content.GetValueForProperty("ReverseShippingDetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactInfoTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailIsUpdated = (bool?) content.GetValueForProperty("ReverseShippingDetailIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailIsUpdated = (bool?) content.GetValueForProperty("ReverseShippingDetailIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("PreferenceReverseTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferencePreferredDataCenterRegion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("PreferenceStorageAccountAccessTierPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); } if (content.Contains("EncryptionPreferenceDoubleEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); } if (content.Contains("EncryptionPreferenceHardwareEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); } if (content.Contains("ReturnToCustomerPackageDetailCarrierAccountNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailCarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailTrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); } if (content.Contains("ContactDetailContactName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailContactName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailContactName, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailPhone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailPhone, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhoneExtension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); } if (content.Contains("ContactDetailMobile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailMobile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailMobile, global::System.Convert.ToString); } if (content.Contains("TransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("TransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReverseTransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("ReverseTransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -237,115 +237,115 @@ internal UpdateJobProperties(global::System.Management.Automation.PSObject conte // actually deserialize if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UpdateJobDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).Detail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UpdateJobDetailsTypeConverter.ConvertFrom); } if (content.Contains("DetailPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences) content.GetValueForProperty("DetailPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences) content.GetValueForProperty("DetailPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PreferencesTypeConverter.ConvertFrom); } if (content.Contains("DetailContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) content.GetValueForProperty("DetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) content.GetValueForProperty("DetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactDetailsTypeConverter.ConvertFrom); } if (content.Contains("DetailShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("DetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("DetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DetailKeyEncryptionKey")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailKeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) content.GetValueForProperty("DetailKeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailKeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.KeyEncryptionKeyTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailKeyEncryptionKey = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) content.GetValueForProperty("DetailKeyEncryptionKey",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailKeyEncryptionKey, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.KeyEncryptionKeyTypeConverter.ConvertFrom); } if (content.Contains("DetailReverseShippingDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails) content.GetValueForProperty("DetailReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ReverseShippingDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailReverseShippingDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails) content.GetValueForProperty("DetailReverseShippingDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailReverseShippingDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ReverseShippingDetailsTypeConverter.ConvertFrom); } if (content.Contains("DetailReturnToCustomerPackageDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails) content.GetValueForProperty("DetailReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).DetailReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.PackageCarrierDetailsTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailReturnToCustomerPackageDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails) content.GetValueForProperty("DetailReturnToCustomerPackageDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).DetailReturnToCustomerPackageDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.PackageCarrierDetailsTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ReverseShippingDetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ReverseShippingDetailShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("PreferenceTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferenceEncryptionPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.EncryptionPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceEncryptionPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences) content.GetValueForProperty("PreferenceEncryptionPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceEncryptionPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.EncryptionPreferencesTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailContactDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo) content.GetValueForProperty("ReverseShippingDetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ContactInfoTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailContactDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo) content.GetValueForProperty("ReverseShippingDetailContactDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailContactDetail, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ContactInfoTypeConverter.ConvertFrom); } if (content.Contains("ReverseShippingDetailIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailIsUpdated = (bool?) content.GetValueForProperty("ReverseShippingDetailIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailIsUpdated = (bool?) content.GetValueForProperty("ReverseShippingDetailIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseShippingDetailIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("PreferenceReverseTransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceReverseTransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("PreferenceReverseTransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceReverseTransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("PreferencePreferredDataCenterRegion")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferencePreferredDataCenterRegion = (string[]) content.GetValueForProperty("PreferencePreferredDataCenterRegion",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferencePreferredDataCenterRegion, __y => TypeConverterExtensions.SelectToArray(__y, global::System.Convert.ToString)); } if (content.Contains("PreferenceStorageAccountAccessTierPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceStorageAccountAccessTierPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[]) content.GetValueForProperty("PreferenceStorageAccountAccessTierPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).PreferenceStorageAccountAccessTierPreference, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier.CreateFrom)); } if (content.Contains("EncryptionPreferenceDoubleEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceDoubleEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption?) content.GetValueForProperty("EncryptionPreferenceDoubleEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceDoubleEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption.CreateFrom); } if (content.Contains("EncryptionPreferenceHardwareEncryption")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceHardwareEncryption = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption?) content.GetValueForProperty("EncryptionPreferenceHardwareEncryption",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).EncryptionPreferenceHardwareEncryption, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption.CreateFrom); } if (content.Contains("ReturnToCustomerPackageDetailCarrierAccountNumber")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierAccountNumber",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierAccountNumber, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailCarrierName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierName = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailCarrierName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailCarrierName, global::System.Convert.ToString); } if (content.Contains("ReturnToCustomerPackageDetailTrackingId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailTrackingId = (string) content.GetValueForProperty("ReturnToCustomerPackageDetailTrackingId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReturnToCustomerPackageDetailTrackingId, global::System.Convert.ToString); } if (content.Contains("ContactDetailContactName")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailContactName, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailContactName = (string) content.GetValueForProperty("ContactDetailContactName",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailContactName, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhone")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailPhone, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailPhone = (string) content.GetValueForProperty("ContactDetailPhone",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailPhone, global::System.Convert.ToString); } if (content.Contains("ContactDetailPhoneExtension")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailPhoneExtension = (string) content.GetValueForProperty("ContactDetailPhoneExtension",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailPhoneExtension, global::System.Convert.ToString); } if (content.Contains("ContactDetailMobile")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ContactDetailMobile, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailMobile = (string) content.GetValueForProperty("ContactDetailMobile",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ContactDetailMobile, global::System.Convert.ToString); } if (content.Contains("TransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("TransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } if (content.Contains("ReverseTransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("ReverseTransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("ReverseTransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("ReverseTransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal)this).ReverseTransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobProperties.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobProperties.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobProperties.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobProperties.TypeConverter.cs index 02ff3423f0e2..21e941847b8f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobProperties.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobProperties.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobProperties.cs similarity index 81% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobProperties.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobProperties.cs index 52f458c7dbb7..630274ee1a18 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobProperties.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobProperties.cs @@ -3,142 +3,142 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Job Properties for update public partial class UpdateJobProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal { /// Contact name of the person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailContactName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ContactDetailContactName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ContactDetailContactName = value ?? null; } + public string ContactDetailContactName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ContactDetailContactName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ContactDetailContactName = value ?? null; } /// Mobile number of the contact person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailMobile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ContactDetailMobile; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ContactDetailMobile = value ?? null; } + public string ContactDetailMobile { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ContactDetailMobile; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ContactDetailMobile = value ?? null; } /// Phone number of the contact person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailPhone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ContactDetailPhone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ContactDetailPhone = value ?? null; } + public string ContactDetailPhone { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ContactDetailPhone; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ContactDetailPhone = value ?? null; } /// Phone extension number of the contact person. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ContactDetailPhoneExtension { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ContactDetailPhoneExtension; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ContactDetailPhoneExtension = value ?? null; } + public string ContactDetailPhoneExtension { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ContactDetailPhoneExtension; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ContactDetailPhoneExtension = value ?? null; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails _detail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails _detail; /// Details of a job to be updated. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails Detail { get => (this._detail = this._detail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UpdateJobDetails()); set => this._detail = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails Detail { get => (this._detail = this._detail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UpdateJobDetails()); set => this._detail = value; } /// Contact details for notification and shipping. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails DetailContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ContactDetail = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails DetailContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ContactDetail = value ?? null /* model class */; } /// Key encryption key for the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey DetailKeyEncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).KeyEncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).KeyEncryptionKey = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey DetailKeyEncryptionKey { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).KeyEncryptionKey; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).KeyEncryptionKey = value ?? null /* model class */; } /// Shipping address of the customer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress DetailShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ShippingAddress = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress DetailShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ShippingAddress = value ?? null /* model class */; } /// Defines secondary layer of software-based encryption enablement. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption? EncryptionPreferenceDoubleEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).EncryptionPreferenceDoubleEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).EncryptionPreferenceDoubleEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption? EncryptionPreferenceDoubleEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).EncryptionPreferenceDoubleEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).EncryptionPreferenceDoubleEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption)""); } /// Defines Hardware level encryption (Only for disk) [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).EncryptionPreferenceHardwareEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).EncryptionPreferenceHardwareEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).EncryptionPreferenceHardwareEncryption; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).EncryptionPreferenceHardwareEncryption = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption)""); } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal.Detail { get => (this._detail = this._detail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UpdateJobDetails()); set { {_detail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal.Detail { get => (this._detail = this._detail ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UpdateJobDetails()); set { {_detail = value;} } } /// Internal Acessors for DetailPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal.DetailPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).Preference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).Preference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal.DetailPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).Preference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).Preference = value; } /// Internal Acessors for DetailReturnToCustomerPackageDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal.DetailReturnToCustomerPackageDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal.DetailReturnToCustomerPackageDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetail = value; } /// Internal Acessors for DetailReverseShippingDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal.DetailReverseShippingDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal.DetailReverseShippingDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetail = value; } /// Internal Acessors for PreferenceEncryptionPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal.PreferenceEncryptionPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).PreferenceEncryptionPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).PreferenceEncryptionPreference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal.PreferenceEncryptionPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).PreferenceEncryptionPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).PreferenceEncryptionPreference = value; } /// Internal Acessors for PreferenceReverseTransportPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal.PreferenceReverseTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).PreferenceReverseTransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).PreferenceReverseTransportPreference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal.PreferenceReverseTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).PreferenceReverseTransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).PreferenceReverseTransportPreference = value; } /// Internal Acessors for PreferenceTransportPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal.PreferenceTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).PreferenceTransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).PreferenceTransportPreference = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal.PreferenceTransportPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).PreferenceTransportPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).PreferenceTransportPreference = value; } /// Internal Acessors for ReverseShippingDetailContactDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal.ReverseShippingDetailContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetailContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetailContactDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal.ReverseShippingDetailContactDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetailContactDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetailContactDetail = value; } /// Internal Acessors for ReverseShippingDetailIsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal.ReverseShippingDetailIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetailIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetailIsUpdated = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal.ReverseShippingDetailIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetailIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetailIsUpdated = value; } /// Internal Acessors for ReverseTransportPreferenceIsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal.ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReverseTransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReverseTransportPreferenceIsUpdated = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal.ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReverseTransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReverseTransportPreferenceIsUpdated = value; } /// Internal Acessors for TransportPreferenceIsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobPropertiesInternal.TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).TransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).TransportPreferenceIsUpdated = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobPropertiesInternal.TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).TransportPreferenceIsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).TransportPreferenceIsUpdated = value; } /// Preferred data center region. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string[] PreferencePreferredDataCenterRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).PreferencePreferredDataCenterRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).PreferencePreferredDataCenterRegion = value ?? null /* arrayOf */; } + public string[] PreferencePreferredDataCenterRegion { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).PreferencePreferredDataCenterRegion; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).PreferencePreferredDataCenterRegion = value ?? null /* arrayOf */; } /// Preferences related to the Access Tier of storage accounts. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] PreferenceStorageAccountAccessTierPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).PreferenceStorageAccountAccessTierPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).PreferenceStorageAccountAccessTierPreference = value ?? null /* arrayOf */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] PreferenceStorageAccountAccessTierPreference { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).PreferenceStorageAccountAccessTierPreference; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).PreferenceStorageAccountAccessTierPreference = value ?? null /* arrayOf */; } /// Carrier Account Number of customer for customer disk. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ReturnToCustomerPackageDetailCarrierAccountNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetailCarrierAccountNumber; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetailCarrierAccountNumber = value ?? null; } + public string ReturnToCustomerPackageDetailCarrierAccountNumber { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetailCarrierAccountNumber; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetailCarrierAccountNumber = value ?? null; } /// Name of the carrier. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ReturnToCustomerPackageDetailCarrierName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetailCarrierName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetailCarrierName = value ?? null; } + public string ReturnToCustomerPackageDetailCarrierName { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetailCarrierName; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetailCarrierName = value ?? null; } /// Tracking Id of shipment. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string ReturnToCustomerPackageDetailTrackingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetailTrackingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetailTrackingId = value ?? null; } + public string ReturnToCustomerPackageDetailTrackingId { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetailTrackingId; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReturnToCustomerPackageDetailTrackingId = value ?? null; } /// /// A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared. /// Read only field /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? ReverseShippingDetailIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetailIsUpdated; } + public bool? ReverseShippingDetailIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetailIsUpdated; } /// Shipping address where customer wishes to receive the device. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ReverseShippingDetailShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetailShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetailShippingAddress = value ?? null /* model class */; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ReverseShippingDetailShippingAddress { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetailShippingAddress; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReverseShippingDetailShippingAddress = value ?? null /* model class */; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReverseTransportPreferenceIsUpdated; } + public bool? ReverseTransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReverseTransportPreferenceIsUpdated; } /// Indicates Shipment Logistics type that the customer preferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? ReverseTransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReverseTransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).ReverseTransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? ReverseTransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReverseTransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).ReverseTransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).TransportPreferenceIsUpdated; } + public bool? TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).TransportPreferenceIsUpdated; } /// Indicates Shipment Logistics type that the customer preferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? TransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).TransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetailsInternal)Detail).TransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? TransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).TransportPreferencePreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetailsInternal)Detail).TransportPreferencePreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } /// Creates an new instance. public UpdateJobProperties() @@ -188,24 +188,24 @@ public partial interface IUpdateJobProperties : ReadOnly = false, Description = @"Contact details for notification and shipping.", SerializedName = @"contactDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails DetailContactDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails DetailContactDetail { get; set; } /// Key encryption key for the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = false, Description = @"Key encryption key for the job.", SerializedName = @"keyEncryptionKey", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey DetailKeyEncryptionKey { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey DetailKeyEncryptionKey { get; set; } /// Shipping address of the customer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, ReadOnly = false, Description = @"Shipping address of the customer.", SerializedName = @"shippingAddress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress DetailShippingAddress { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress DetailShippingAddress { get; set; } /// Defines secondary layer of software-based encryption enablement. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -280,8 +280,8 @@ public partial interface IUpdateJobProperties : ReadOnly = false, Description = @"Shipping address where customer wishes to receive the device.", SerializedName = @"shippingAddress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ReverseShippingDetailShippingAddress { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ReverseShippingDetailShippingAddress { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// @@ -333,33 +333,33 @@ internal partial interface IUpdateJobPropertiesInternal /// Phone extension number of the contact person. string ContactDetailPhoneExtension { get; set; } /// Details of a job to be updated. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobDetails Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobDetails Detail { get; set; } /// Contact details for notification and shipping. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails DetailContactDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails DetailContactDetail { get; set; } /// Key encryption key for the job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey DetailKeyEncryptionKey { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey DetailKeyEncryptionKey { get; set; } /// Preferences related to the order - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPreferences DetailPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPreferences DetailPreference { get; set; } /// Return package details of job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IPackageCarrierDetails DetailReturnToCustomerPackageDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IPackageCarrierDetails DetailReturnToCustomerPackageDetail { get; set; } /// Reverse Shipping Address and contact details for a job. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IReverseShippingDetails DetailReverseShippingDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IReverseShippingDetails DetailReverseShippingDetail { get; set; } /// Shipping address of the customer. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress DetailShippingAddress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress DetailShippingAddress { get; set; } /// Defines secondary layer of software-based encryption enablement. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DoubleEncryption? EncryptionPreferenceDoubleEncryption { get; set; } /// Defines Hardware level encryption (Only for disk) Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption? EncryptionPreferenceHardwareEncryption { get; set; } /// Preferences related to the Encryption. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IEncryptionPreferences PreferenceEncryptionPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IEncryptionPreferences PreferenceEncryptionPreference { get; set; } /// Preferred data center region. string[] PreferencePreferredDataCenterRegion { get; set; } /// Optional Preferences related to the reverse shipment logistics of the sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences PreferenceReverseTransportPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences PreferenceReverseTransportPreference { get; set; } /// Preferences related to the Access Tier of storage accounts. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.StorageAccountAccessTier[] PreferenceStorageAccountAccessTierPreference { get; set; } /// Preferences related to the shipment logistics of the sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences PreferenceTransportPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences PreferenceTransportPreference { get; set; } /// Carrier Account Number of customer for customer disk. string ReturnToCustomerPackageDetailCarrierAccountNumber { get; set; } /// Name of the carrier. @@ -367,14 +367,14 @@ internal partial interface IUpdateJobPropertiesInternal /// Tracking Id of shipment. string ReturnToCustomerPackageDetailTrackingId { get; set; } /// Contact Info. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactInfo ReverseShippingDetailContactDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactInfo ReverseShippingDetailContactDetail { get; set; } /// /// A flag to indicate whether Reverse Shipping details are updated or not after device has been prepared. /// Read only field /// bool? ReverseShippingDetailIsUpdated { get; set; } /// Shipping address where customer wishes to receive the device. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ReverseShippingDetailShippingAddress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ReverseShippingDetailShippingAddress { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobProperties.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobProperties.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobProperties.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobProperties.json.cs index f15841bc937f..1c397d7739eb 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UpdateJobProperties.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UpdateJobProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UpdateJobProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUpdateJobProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUpdateJobProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new UpdateJobProperties(json) : null; } @@ -101,7 +101,7 @@ internal UpdateJobProperties(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime. { return; } - {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.UpdateJobDetails.FromJson(__jsonDetails) : Detail;} + {_detail = If( json?.PropertyT("details"), out var __jsonDetails) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.UpdateJobDetails.FromJson(__jsonDetails) : Detail;} AfterFromJson(json); } } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedIdentity.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedIdentity.PowerShell.cs similarity index 88% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedIdentity.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedIdentity.PowerShell.cs index 9400c3cdbf83..037874142934 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedIdentity.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedIdentity.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class UserAssignedIdentity partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentity DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UserAssignedIdentity(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentity DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UserAssignedIdentity(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUse /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentity FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUse public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,17 +108,17 @@ internal UserAssignedIdentity(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentityInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("ClientId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentityInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentityInternal)this).ClientId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentityInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentityInternal)this).ClientId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -133,11 +133,11 @@ internal UserAssignedIdentity(global::System.Management.Automation.PSObject cont // actually deserialize if (content.Contains("PrincipalId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentityInternal)this).PrincipalId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentityInternal)this).PrincipalId = (string) content.GetValueForProperty("PrincipalId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentityInternal)this).PrincipalId, global::System.Convert.ToString); } if (content.Contains("ClientId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentityInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentityInternal)this).ClientId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentityInternal)this).ClientId = (string) content.GetValueForProperty("ClientId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentityInternal)this).ClientId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedIdentity.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedIdentity.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedIdentity.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedIdentity.TypeConverter.cs index 10fb8f4790f9..116929c5342c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedIdentity.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedIdentity.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentity ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentity ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentity).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentity).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedIdentity.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedIdentity.cs similarity index 94% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedIdentity.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedIdentity.cs index e130aa2090d9..c90170082c7f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedIdentity.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedIdentity.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Class defining User assigned identity details. public partial class UserAssignedIdentity : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentity, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentityInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentity, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentityInternal { /// Backing field for property. @@ -21,10 +21,10 @@ public partial class UserAssignedIdentity : public string ClientId { get => this._clientId; } /// Internal Acessors for ClientId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentityInternal.ClientId { get => this._clientId; set { {_clientId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentityInternal.ClientId { get => this._clientId; set { {_clientId = value;} } } /// Internal Acessors for PrincipalId - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentityInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentityInternal.PrincipalId { get => this._principalId; set { {_principalId = value;} } } /// Backing field for property. private string _principalId; diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedIdentity.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedIdentity.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedIdentity.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedIdentity.json.cs index 62c52ac70d7b..c3c838514de2 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedIdentity.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedIdentity.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UserAssignedIdentity partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentity. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentity. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentity. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentity. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedIdentity FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new UserAssignedIdentity(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedProperties.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedProperties.PowerShell.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedProperties.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedProperties.PowerShell.cs index 433bbb6d24a1..b9c52459df6f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedProperties.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class UserAssignedProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new UserAssignedProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new UserAssignedProperties(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUse /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUse public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,13 +108,13 @@ internal UserAssignedProperties(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedPropertiesInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedPropertiesInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedPropertiesInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedPropertiesInternal)this).ResourceId, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -129,7 +129,7 @@ internal UserAssignedProperties(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("ResourceId")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedPropertiesInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedPropertiesInternal)this).ResourceId, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedPropertiesInternal)this).ResourceId = (string) content.GetValueForProperty("ResourceId",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedPropertiesInternal)this).ResourceId, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedProperties.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedProperties.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedProperties.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedProperties.TypeConverter.cs index 146e816f1030..157d0a474952 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedProperties.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedProperties.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedProperties.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedProperties.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedProperties.cs index b8b48334712c..a586ff3e170b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedProperties.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedProperties.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// User assigned identity properties. public partial class UserAssignedProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedPropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedPropertiesInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedProperties.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedProperties.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedProperties.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedProperties.json.cs index deb01c8d6cf8..c03e405007d9 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/UserAssignedProperties.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/UserAssignedProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class UserAssignedProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUserAssignedProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUserAssignedProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new UserAssignedProperties(json) : null; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidateAddress.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidateAddress.PowerShell.cs similarity index 76% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidateAddress.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidateAddress.PowerShell.cs index 498eb491f8df..f35f2baf9d51 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidateAddress.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidateAddress.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -57,27 +57,27 @@ public partial class ValidateAddress partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddress DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddress DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ValidateAddress(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddress DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidateAddress(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IVal /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddress FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IVal public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,33 +110,37 @@ internal ValidateAddress(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("TransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).TransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("TransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).TransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).TransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("TransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).TransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DeviceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } if (content.Contains("TransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("TransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -151,27 +155,31 @@ internal ValidateAddress(global::System.Management.Automation.PSObject content) // actually deserialize if (content.Contains("TransportPreference")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).TransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences) content.GetValueForProperty("TransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).TransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferencesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).TransportPreference = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences) content.GetValueForProperty("TransportPreference",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).TransportPreference, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferencesTypeConverter.ConvertFrom); } if (content.Contains("ShippingAddress")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddressTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).ShippingAddress = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) content.GetValueForProperty("ShippingAddress",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).ShippingAddress, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddressTypeConverter.ConvertFrom); } if (content.Contains("DeviceType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).DeviceType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) content.GetValueForProperty("DeviceType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).DeviceType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName.CreateFrom); + } + if (content.Contains("Model")) + { + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).Model = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName?) content.GetValueForProperty("Model",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).Model, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName.CreateFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } if (content.Contains("TransportPreferencePreferredShipmentType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).TransportPreferencePreferredShipmentType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes) content.GetValueForProperty("TransportPreferencePreferredShipmentType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).TransportPreferencePreferredShipmentType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes.CreateFrom); } if (content.Contains("TransportPreferenceIsUpdated")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).TransportPreferenceIsUpdated = (bool?) content.GetValueForProperty("TransportPreferenceIsUpdated",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal)this).TransportPreferenceIsUpdated, (__y)=> (bool) global::System.Convert.ChangeType(__y, typeof(bool))); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidateAddress.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidateAddress.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidateAddress.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidateAddress.TypeConverter.cs index b1167ad9207e..16cd997e7744 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidateAddress.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidateAddress.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddress ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddress ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddress).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddress).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidateAddress.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidateAddress.cs similarity index 71% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidateAddress.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidateAddress.cs index b01389cdb9e3..963fa31a98d8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidateAddress.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidateAddress.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -11,15 +11,15 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 /// The requirements to validate customer address where the device needs to be shipped. /// public partial class ValidateAddress : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddress, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddress, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IValidates { /// - /// Backing field for Inherited model /// - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest(); /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName _deviceType; @@ -29,38 +29,48 @@ public partial class ValidateAddress : public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName DeviceType { get => this._deviceType; set => this._deviceType = value; } /// Internal Acessors for TransportPreference - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal.TransportPreference { get => (this._transportPreference = this._transportPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferences()); set { {_transportPreference = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal.TransportPreference { get => (this._transportPreference = this._transportPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferences()); set { {_transportPreference = value;} } } /// Internal Acessors for TransportPreferenceIsUpdated - bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddressInternal.TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)TransportPreference).IsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)TransportPreference).IsUpdated = value; } + bool? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddressInternal.TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)TransportPreference).IsUpdated; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)TransportPreference).IsUpdated = value; } + + /// Backing field for property. + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? _model; + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get => this._model; set => this._model = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress _shippingAddress; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress _shippingAddress; /// Shipping address of the customer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get => (this._shippingAddress = this._shippingAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress()); set => this._shippingAddress = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get => (this._shippingAddress = this._shippingAddress ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress()); set => this._shippingAddress = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences _transportPreference; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences _transportPreference; /// Preferences related to the shipment logistics of the sku. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences TransportPreference { get => (this._transportPreference = this._transportPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferences()); set => this._transportPreference = value; } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences TransportPreference { get => (this._transportPreference = this._transportPreference ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferences()); set => this._transportPreference = value; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public bool? TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)TransportPreference).IsUpdated; } + public bool? TransportPreferenceIsUpdated { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)TransportPreference).IsUpdated; } /// Indicates Shipment Logistics type that the customer preferred. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? TransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)TransportPreference).PreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferencesInternal)TransportPreference).PreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes? TransportPreferencePreferredShipmentType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)TransportPreference).PreferredShipmentType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferencesInternal)TransportPreference).PreferredShipmentType = value ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.TransportShipmentTypes)""); } /// Identifies the type of validation request. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inherited)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)__validationInputRequest).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)__validationInputRequest).ValidationType = value ; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator ValidationType { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)__validationInputRequest).ValidationType; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)__validationInputRequest).ValidationType = value ; } /// Validates that this object meets the validation criteria. /// an instance that will receive validation @@ -83,7 +93,7 @@ public ValidateAddress() /// The requirements to validate customer address where the device needs to be shipped. public partial interface IValidateAddress : Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IJsonSerializable, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest { /// Device type to be used for the job. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( @@ -93,14 +103,25 @@ public partial interface IValidateAddress : SerializedName = @"deviceType", PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName) })] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName DeviceType { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// Shipping address of the customer. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, ReadOnly = false, Description = @"Shipping address of the customer.", SerializedName = @"shippingAddress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// @@ -123,14 +144,19 @@ public partial interface IValidateAddress : } /// The requirements to validate customer address where the device needs to be shipped. internal partial interface IValidateAddressInternal : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal { /// Device type to be used for the job. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.SkuName DeviceType { get; set; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName? Model { get; set; } /// Shipping address of the customer. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get; set; } /// Preferences related to the shipment logistics of the sku. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ITransportPreferences TransportPreference { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ITransportPreferences TransportPreference { get; set; } /// /// Read only property which indicates whether transport preferences has been updated or not after device is prepared. /// diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidateAddress.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidateAddress.json.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidateAddress.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidateAddress.json.cs index 686e104a6471..a0d5ebf7ca5d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidateAddress.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidateAddress.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -56,13 +56,13 @@ public partial class ValidateAddress partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddress. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddress. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddress. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddress. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddress FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddress FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ValidateAddress(json) : null; } @@ -90,6 +90,7 @@ public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode ToJson(M AddIf( null != this._transportPreference ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) this._transportPreference.ToJson(null,serializationMode) : null, "transportPreferences" ,container.Add ); AddIf( null != this._shippingAddress ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) this._shippingAddress.ToJson(null,serializationMode) : null, "shippingAddress" ,container.Add ); AddIf( null != (((object)this._deviceType)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._deviceType.ToString()) : null, "deviceType" ,container.Add ); + AddIf( null != (((object)this._model)?.ToString()) ? (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode) new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonString(this._model.ToString()) : null, "model" ,container.Add ); AfterToJson(ref container); return container; } @@ -106,10 +107,11 @@ internal ValidateAddress(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json { return; } - __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest(json); - {_transportPreference = If( json?.PropertyT("transportPreferences"), out var __jsonTransportPreferences) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.TransportPreferences.FromJson(__jsonTransportPreferences) : TransportPreference;} - {_shippingAddress = If( json?.PropertyT("shippingAddress"), out var __jsonShippingAddress) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ShippingAddress.FromJson(__jsonShippingAddress) : ShippingAddress;} + __validationInputRequest = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest(json); + {_transportPreference = If( json?.PropertyT("transportPreferences"), out var __jsonTransportPreferences) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.TransportPreferences.FromJson(__jsonTransportPreferences) : TransportPreference;} + {_shippingAddress = If( json?.PropertyT("shippingAddress"), out var __jsonShippingAddress) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ShippingAddress.FromJson(__jsonShippingAddress) : ShippingAddress;} {_deviceType = If( json?.PropertyT("deviceType"), out var __jsonDeviceType) ? (string)__jsonDeviceType : (string)DeviceType;} + {_model = If( json?.PropertyT("model"), out var __jsonModel) ? (string)__jsonModel : (string)Model;} AfterFromJson(json); } } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputRequest.PowerShell.cs similarity index 90% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputRequest.PowerShell.cs index 3bed3026692d..fb589c92eeba 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ValidationInputRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ValidationInputRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidationInputRequest(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IVal /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IVal public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,13 +108,13 @@ internal ValidationInputRequest(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -129,7 +129,7 @@ internal ValidationInputRequest(global::System.Management.Automation.PSObject co // actually deserialize if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputRequest.TypeConverter.cs index fcd5bd3e6417..e7c2e23015b8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputRequest.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputRequest.cs index 63c66a0e9739..9396704b1240 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputRequest.cs @@ -3,14 +3,14 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Minimum fields that must be present in any type of validation request. public partial class ValidationInputRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequestInternal { /// Backing field for property. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputRequest.json.cs similarity index 97% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputRequest.json.cs index 8828ff9f67c7..ab95d3a4f5e8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class ValidationInputRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)) { diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputResponse.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputResponse.PowerShell.cs similarity index 77% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputResponse.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputResponse.PowerShell.cs index b37df25dc770..ddca5a65e6f6 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputResponse.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -57,27 +57,27 @@ public partial class ValidationInputResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ValidationInputResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidationInputResponse(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IVal /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IVal public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,37 +110,37 @@ internal ValidationInputResponse(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -155,31 +155,31 @@ internal ValidationInputResponse(global::System.Management.Automation.PSObject c // actually deserialize if (content.Contains("Error")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) content.GetValueForProperty("Error",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Error, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom); } if (content.Contains("ValidationType")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator) content.GetValueForProperty("ValidationType",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).ValidationType, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator.CreateFrom); } if (content.Contains("AdditionalInfo")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.AdditionalErrorInfoTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[]) content.GetValueForProperty("AdditionalInfo",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).AdditionalInfo, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.AdditionalErrorInfoTypeConverter.ConvertFrom)); } if (content.Contains("Code")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code = (string) content.GetValueForProperty("Code",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Code, global::System.Convert.ToString); } if (content.Contains("Detail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudErrorTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[]) content.GetValueForProperty("Detail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Detail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudErrorTypeConverter.ConvertFrom)); } if (content.Contains("Message")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message = (string) content.GetValueForProperty("Message",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Message, global::System.Convert.ToString); } if (content.Contains("Target")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target = (string) content.GetValueForProperty("Target",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal)this).Target, global::System.Convert.ToString); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputResponse.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputResponse.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputResponse.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputResponse.TypeConverter.cs index ade66bb620f0..38f5a852d527 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputResponse.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputResponse.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputResponse.cs similarity index 80% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputResponse.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputResponse.cs index 4337eb96a63a..ef6725583f51 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputResponse.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputResponse.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -11,45 +11,45 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 /// Minimum properties that should be present in each individual validation response. /// public partial class ValidationInputResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal { /// Gets or sets additional error info. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Code = value ?? null; } + public string Code { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Code; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Code = value ?? null; } /// Gets or sets details for the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError _error; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError _error; /// Error code and message of validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError()); } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Message = value ?? null; } + public string Message { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Message; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Message = value ?? null; } /// Internal Acessors for AdditionalInfo - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).AdditionalInfo = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.AdditionalInfo { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).AdditionalInfo = value; } /// Internal Acessors for Detail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Detail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.Detail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Detail = value; } /// Internal Acessors for Error - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError()); set { {_error = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponseInternal.Error { get => (this._error = this._error ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError()); set { {_error = value;} } } /// Gets or sets the target of the error. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudErrorInternal)Error).Target = value ?? null; } + public string Target { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Target; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudErrorInternal)Error).Target = value ?? null; } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ValidationInputDiscriminator _validationType; @@ -74,8 +74,8 @@ public partial interface IValidationInputResponse : ReadOnly = true, Description = @"Gets or sets additional error info.", SerializedName = @"additionalInfo", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; } /// Error code. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -90,8 +90,8 @@ public partial interface IValidationInputResponse : ReadOnly = true, Description = @"Gets or sets details for the error.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; } /// The error message parsed from the body of the http error response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -123,13 +123,13 @@ internal partial interface IValidationInputResponseInternal { /// Gets or sets additional error info. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAdditionalErrorInfo[] AdditionalInfo { get; set; } /// Error code. string Code { get; set; } /// Gets or sets details for the error. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError[] Detail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError[] Detail { get; set; } /// Error code and message of validation response. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICloudError Error { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICloudError Error { get; set; } /// The error message parsed from the body of the http error response. string Message { get; set; } /// Gets or sets the target of the error. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputResponse.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputResponse.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputResponse.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputResponse.json.cs index 3ebb351bd2c7..208c66be2d49 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationInputResponse.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationInputResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -56,15 +56,15 @@ public partial class ValidationInputResponse partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse interface is polymorphic, + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse interface is polymorphic, /// and the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)) { @@ -142,7 +142,7 @@ internal ValidationInputResponse(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runt { return; } - {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CloudError.FromJson(__jsonError) : Error;} + {_error = If( json?.PropertyT("error"), out var __jsonError) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CloudError.FromJson(__jsonError) : Error;} {_validationType = If( json?.PropertyT("validationType"), out var __jsonValidationType) ? (string)__jsonValidationType : (string)ValidationType;} AfterFromJson(json); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationRequest.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationRequest.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationRequest.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationRequest.PowerShell.cs index b3a6ec40b214..61661b9a4d13 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationRequest.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationRequest.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ValidationRequest partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ValidationRequest(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidationRequest(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IVal /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IVal public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,17 +108,17 @@ internal ValidationRequest(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("ValidationCategory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).ValidationCategory = (string) content.GetValueForProperty("ValidationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).ValidationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).ValidationCategory = (string) content.GetValueForProperty("ValidationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).ValidationCategory, global::System.Convert.ToString); } if (content.Contains("IndividualRequestDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).IndividualRequestDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest[]) content.GetValueForProperty("IndividualRequestDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).IndividualRequestDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequestTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).IndividualRequestDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest[]) content.GetValueForProperty("IndividualRequestDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).IndividualRequestDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequestTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -133,11 +133,11 @@ internal ValidationRequest(global::System.Management.Automation.PSObject content // actually deserialize if (content.Contains("ValidationCategory")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).ValidationCategory = (string) content.GetValueForProperty("ValidationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).ValidationCategory, global::System.Convert.ToString); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).ValidationCategory = (string) content.GetValueForProperty("ValidationCategory",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).ValidationCategory, global::System.Convert.ToString); } if (content.Contains("IndividualRequestDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).IndividualRequestDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest[]) content.GetValueForProperty("IndividualRequestDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal)this).IndividualRequestDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequestTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).IndividualRequestDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest[]) content.GetValueForProperty("IndividualRequestDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal)this).IndividualRequestDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequestTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationRequest.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationRequest.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationRequest.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationRequest.TypeConverter.cs index eab69d18fdbc..1c4de1c1e31e 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationRequest.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationRequest.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationRequest.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationRequest.cs similarity index 87% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationRequest.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationRequest.cs index 1bf942161cff..5188e49e43ee 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationRequest.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationRequest.cs @@ -3,27 +3,27 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Minimum request requirement of any validation category. public partial class ValidationRequest : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest[] _individualRequestDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest[] _individualRequestDetail; /// /// List of request details contain validationType and its request as key and value respectively. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest[] IndividualRequestDetail { get => this._individualRequestDetail; set => this._individualRequestDetail = value; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest[] IndividualRequestDetail { get => this._individualRequestDetail; set => this._individualRequestDetail = value; } /// Internal Acessors for ValidationCategory - string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequestInternal.ValidationCategory { get => this._validationCategory; set { {_validationCategory = value;} } } + string Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequestInternal.ValidationCategory { get => this._validationCategory; set { {_validationCategory = value;} } } /// Backing field for property. private string _validationCategory= @"JobCreationValidation"; @@ -50,8 +50,8 @@ public partial interface IValidationRequest : ReadOnly = false, Description = @"List of request details contain validationType and its request as key and value respectively.", SerializedName = @"individualRequestDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidateAddress) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest[] IndividualRequestDetail { get; set; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidateAddress) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest[] IndividualRequestDetail { get; set; } /// Identify the nature of validation. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = true, @@ -69,7 +69,7 @@ internal partial interface IValidationRequestInternal /// /// List of request details contain validationType and its request as key and value respectively. /// - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest[] IndividualRequestDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest[] IndividualRequestDetail { get; set; } /// Identify the nature of validation. string ValidationCategory { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationRequest.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationRequest.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationRequest.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationRequest.json.cs index cb0ecaa22069..1a241f20d40a 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationRequest.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationRequest.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,15 +54,15 @@ public partial class ValidationRequest partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest. - /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest interface is polymorphic, and + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest. + /// Note: the Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest interface is polymorphic, and /// the precise model class that will get deserialized is determined at runtime based on the payload. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationRequest FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { if (!(node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json)) { @@ -126,7 +126,7 @@ internal ValidationRequest(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Js return; } {_validationCategory = If( json?.PropertyT("validationCategory"), out var __jsonValidationCategory) ? (string)__jsonValidationCategory : (string)ValidationCategory;} - {_individualRequestDetail = If( json?.PropertyT("individualRequestDetails"), out var __jsonIndividualRequestDetails) ? If( __jsonIndividualRequestDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputRequest) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputRequest.FromJson(__u) )) ))() : null : IndividualRequestDetail;} + {_individualRequestDetail = If( json?.PropertyT("individualRequestDetails"), out var __jsonIndividualRequestDetails) ? If( __jsonIndividualRequestDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputRequest) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputRequest.FromJson(__u) )) ))() : null : IndividualRequestDetail;} AfterFromJson(json); } } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponse.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponse.PowerShell.cs similarity index 82% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponse.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponse.PowerShell.cs index 4656c6242ba5..85fc4dc537a3 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponse.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponse.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,27 +55,27 @@ public partial class ValidationResponse partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponse DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ValidationResponse(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . + /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponse DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidationResponse(content); } @@ -85,7 +85,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IVal /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponse FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -93,7 +93,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IVal public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -108,21 +108,21 @@ internal ValidationResponse(global::System.Collections.IDictionary content) // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationResponsePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationResponsePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus.CreateFrom); } if (content.Contains("IndividualResponseDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal)this).IndividualResponseDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse[]) content.GetValueForProperty("IndividualResponseDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal)this).IndividualResponseDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal)this).IndividualResponseDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse[]) content.GetValueForProperty("IndividualResponseDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal)this).IndividualResponseDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponseTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -137,15 +137,15 @@ internal ValidationResponse(global::System.Management.Automation.PSObject conten // actually deserialize if (content.Contains("Property")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationResponsePropertiesTypeConverter.ConvertFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal)this).Property = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties) content.GetValueForProperty("Property",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal)this).Property, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationResponsePropertiesTypeConverter.ConvertFrom); } if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus.CreateFrom); } if (content.Contains("IndividualResponseDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal)this).IndividualResponseDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse[]) content.GetValueForProperty("IndividualResponseDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal)this).IndividualResponseDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal)this).IndividualResponseDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse[]) content.GetValueForProperty("IndividualResponseDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal)this).IndividualResponseDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponseTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponse.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponse.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponse.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponse.TypeConverter.cs index a66e290c5781..55f74ce1c8ca 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponse.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponse.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponse ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponse ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponse).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponse).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponse.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponse.cs similarity index 77% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponse.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponse.cs index 423f2ba55879..a8d4d91e7186 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponse.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponse.cs @@ -3,41 +3,41 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Response of pre job creation validations. public partial class ValidationResponse : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponse, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponse, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal { /// /// List of response details contain validationType and its response as key and value respectively. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse[] IndividualResponseDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal)Property).IndividualResponseDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse[] IndividualResponseDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal)Property).IndividualResponseDetail; } /// Internal Acessors for IndividualResponseDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal.IndividualResponseDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal)Property).IndividualResponseDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal)Property).IndividualResponseDetail = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal.IndividualResponseDetail { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal)Property).IndividualResponseDetail; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal)Property).IndividualResponseDetail = value; } /// Internal Acessors for Property - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationResponseProperties()); set { {_property = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal.Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationResponseProperties()); set { {_property = value;} } } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal)Property).Status = value; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseInternal.Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal)Property).Status; set => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal)Property).Status = value; } /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties _property; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties _property; /// Properties of pre job creation validation response. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationResponseProperties()); } + internal Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties Property { get => (this._property = this._property ?? new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationResponseProperties()); } /// Overall validation status. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Inlined)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal)Property).Status; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus? Status { get => ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal)Property).Status; } /// Creates an new instance. public ValidationResponse() @@ -57,8 +57,8 @@ public partial interface IValidationResponse : ReadOnly = true, Description = @"List of response details contain validationType and its response as key and value respectively.", SerializedName = @"individualResponseDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse[] IndividualResponseDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse[] IndividualResponseDetail { get; } /// Overall validation status. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -76,9 +76,9 @@ internal partial interface IValidationResponseInternal /// /// List of response details contain validationType and its response as key and value respectively. /// - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse[] IndividualResponseDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse[] IndividualResponseDetail { get; set; } /// Properties of pre job creation validation response. - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties Property { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties Property { get; set; } /// Overall validation status. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus? Status { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponse.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponse.json.cs similarity index 96% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponse.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponse.json.cs index 49e6b3db8633..bf0df8100d56 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponse.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponse.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ValidationResponse partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponse. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponse. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponse. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponse. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponse FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ValidationResponse(json) : null; } @@ -104,7 +104,7 @@ internal ValidationResponse(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.J { return; } - {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationResponseProperties.FromJson(__jsonProperties) : Property;} + {_property = If( json?.PropertyT("properties"), out var __jsonProperties) ? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationResponseProperties.FromJson(__jsonProperties) : Property;} AfterFromJson(json); } } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponseProperties.PowerShell.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponseProperties.PowerShell.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponseProperties.PowerShell.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponseProperties.PowerShell.cs index aa643d23a7ad..0b6cbbf3038b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponseProperties.PowerShell.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponseProperties.PowerShell.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -55,29 +55,29 @@ public partial class ValidationResponseProperties partial void BeforeDeserializePSObject(global::System.Management.Automation.PSObject content, ref bool returnNow); /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Collections.IDictionary content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties DeserializeFromDictionary(global::System.Collections.IDictionary content) { return new ValidationResponseProperties(content); } /// - /// Deserializes a into an instance of into an instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. /// - /// an instance of . /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties DeserializeFromPSObject(global::System.Management.Automation.PSObject content) { return new ValidationResponseProperties(content); } @@ -87,7 +87,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IVal /// /// a string containing a JSON serialized instance of this model. /// an instance of the model class. - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties FromJsonString(string jsonText) => FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode.Parse(jsonText)); /// Serializes this instance to a json string. @@ -95,7 +95,7 @@ public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IVal public string ToJsonString() => ToJson(null, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.SerializationMode.IncludeAll)?.ToString(); /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Collections.IDictionary content that should be used. @@ -110,17 +110,17 @@ internal ValidationResponseProperties(global::System.Collections.IDictionary con // actually deserialize if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus.CreateFrom); } if (content.Contains("IndividualResponseDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal)this).IndividualResponseDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse[]) content.GetValueForProperty("IndividualResponseDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal)this).IndividualResponseDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal)this).IndividualResponseDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse[]) content.GetValueForProperty("IndividualResponseDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal)this).IndividualResponseDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponseTypeConverter.ConvertFrom)); } AfterDeserializeDictionary(content); } /// - /// Deserializes a into a new instance of into a new instance of . /// /// The global::System.Management.Automation.PSObject content that should be used. @@ -135,11 +135,11 @@ internal ValidationResponseProperties(global::System.Management.Automation.PSObj // actually deserialize if (content.Contains("Status")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus.CreateFrom); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal)this).Status = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus?) content.GetValueForProperty("Status",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal)this).Status, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus.CreateFrom); } if (content.Contains("IndividualResponseDetail")) { - ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal)this).IndividualResponseDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse[]) content.GetValueForProperty("IndividualResponseDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal)this).IndividualResponseDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponseTypeConverter.ConvertFrom)); + ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal)this).IndividualResponseDetail = (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse[]) content.GetValueForProperty("IndividualResponseDetail",((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal)this).IndividualResponseDetail, __y => TypeConverterExtensions.SelectToArray(__y, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponseTypeConverter.ConvertFrom)); } AfterDeserializePSObject(content); } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponseProperties.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponseProperties.TypeConverter.cs similarity index 98% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponseProperties.TypeConverter.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponseProperties.TypeConverter.cs index 5c76970cf3d0..d479642e965c 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponseProperties.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponseProperties.TypeConverter.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.PowerShell; @@ -106,14 +106,14 @@ public static bool CanConvertFrom(dynamic sourceValue) /// /// an instance of , or null if there is no suitable conversion. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties ConvertFrom(dynamic sourceValue) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties ConvertFrom(dynamic sourceValue) { if (null == sourceValue) { return null; } global::System.Type type = sourceValue.GetType(); - if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties).IsAssignableFrom(type)) + if (typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties).IsAssignableFrom(type)) { return sourceValue; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponseProperties.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponseProperties.cs similarity index 85% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponseProperties.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponseProperties.cs index f2284b198c90..5a77d4a4817f 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponseProperties.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponseProperties.cs @@ -3,30 +3,30 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; /// Properties of pre job creation validation response. public partial class ValidationResponseProperties : - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties, - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties, + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal { /// Backing field for property. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse[] _individualResponseDetail; + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse[] _individualResponseDetail; /// /// List of response details contain validationType and its response as key and value respectively. /// [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Origin(Microsoft.Azure.PowerShell.Cmdlets.DataBox.PropertyOrigin.Owned)] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse[] IndividualResponseDetail { get => this._individualResponseDetail; } + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse[] IndividualResponseDetail { get => this._individualResponseDetail; } /// Internal Acessors for IndividualResponseDetail - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal.IndividualResponseDetail { get => this._individualResponseDetail; set { {_individualResponseDetail = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse[] Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal.IndividualResponseDetail { get => this._individualResponseDetail; set { {_individualResponseDetail = value;} } } /// Internal Acessors for Status - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponsePropertiesInternal.Status { get => this._status; set { {_status = value;} } } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus? Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponsePropertiesInternal.Status { get => this._status; set { {_status = value;} } } /// Backing field for property. private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus? _status; @@ -53,8 +53,8 @@ public partial interface IValidationResponseProperties : ReadOnly = true, Description = @"List of response details contain validationType and its response as key and value respectively.", SerializedName = @"individualResponseDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IAddressValidationProperties) })] - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse[] IndividualResponseDetail { get; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse),typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IAddressValidationProperties) })] + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse[] IndividualResponseDetail { get; } /// Overall validation status. [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( Required = false, @@ -72,7 +72,7 @@ internal partial interface IValidationResponsePropertiesInternal /// /// List of response details contain validationType and its response as key and value respectively. /// - Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse[] IndividualResponseDetail { get; set; } + Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse[] IndividualResponseDetail { get; set; } /// Overall validation status. Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.OverallValidationStatus? Status { get; set; } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponseProperties.json.cs b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponseProperties.json.cs similarity index 95% rename from generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponseProperties.json.cs rename to generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponseProperties.json.cs index 1c6bb8fdbc59..fc1f6609e0f5 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20221201/ValidationResponseProperties.json.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Models/Api20250201/ValidationResponseProperties.json.cs @@ -3,7 +3,7 @@ // Code generated by Microsoft (R) AutoRest Code Generator. // Changes may cause incorrect behavior and will be lost if the code is regenerated. -namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201 +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201 { using static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Extensions; @@ -54,13 +54,13 @@ public partial class ValidationResponseProperties partial void BeforeToJson(ref Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject container, ref bool returnNow); /// - /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties. + /// Deserializes a into an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties. /// /// a to deserialize from. /// - /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties. + /// an instance of Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties. /// - public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationResponseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationResponseProperties FromJson(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonNode node) { return node is Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonObject json ? new ValidationResponseProperties(json) : null; } @@ -117,7 +117,7 @@ internal ValidationResponseProperties(Microsoft.Azure.PowerShell.Cmdlets.DataBox return; } {_status = If( json?.PropertyT("status"), out var __jsonStatus) ? (string)__jsonStatus : (string)Status;} - {_individualResponseDetail = If( json?.PropertyT("individualResponseDetails"), out var __jsonIndividualResponseDetails) ? If( __jsonIndividualResponseDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IValidationInputResponse) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ValidationInputResponse.FromJson(__u) )) ))() : null : IndividualResponseDetail;} + {_individualResponseDetail = If( json?.PropertyT("individualResponseDetails"), out var __jsonIndividualResponseDetails) ? If( __jsonIndividualResponseDetails as Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Json.JsonArray, out var __v) ? new global::System.Func(()=> global::System.Linq.Enumerable.ToArray(global::System.Linq.Enumerable.Select(__v, (__u)=>(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IValidationInputResponse) (Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ValidationInputResponse.FromJson(__u) )) ))() : null : IndividualResponseDetail;} AfterFromJson(json); } } diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Support/DataCenterCode.Completer.cs b/generated/DataBox/DataBox.Autorest/generated/api/Support/DataCenterCode.Completer.cs index 77e46c4b6b8d..f61b07ce7948 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Support/DataCenterCode.Completer.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Support/DataCenterCode.Completer.cs @@ -262,6 +262,42 @@ public partial struct DataCenterCode : { yield return new global::System.Management.Automation.CompletionResult("'BJS20'", "BJS20", global::System.Management.Automation.CompletionResultType.ParameterValue, "BJS20"); } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "BL24".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'BL24'", "BL24", global::System.Management.Automation.CompletionResultType.ParameterValue, "BL24"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "IDC5".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'IDC5'", "IDC5", global::System.Management.Automation.CompletionResultType.ParameterValue, "IDC5"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "TYO23".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'TYO23'", "TYO23", global::System.Management.Automation.CompletionResultType.ParameterValue, "TYO23"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "CPQ21".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'CPQ21'", "CPQ21", global::System.Management.Automation.CompletionResultType.ParameterValue, "CPQ21"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "NTG20".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'NTG20'", "NTG20", global::System.Management.Automation.CompletionResultType.ParameterValue, "NTG20"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "DXB23".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'DXB23'", "DXB23", global::System.Management.Automation.CompletionResultType.ParameterValue, "DXB23"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "DSM11".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'DSM11'", "DSM11", global::System.Management.Automation.CompletionResultType.ParameterValue, "DSM11"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "OSA23".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'OSA23'", "OSA23", global::System.Management.Automation.CompletionResultType.ParameterValue, "OSA23"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "AMS25".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'AMS25'", "AMS25", global::System.Management.Automation.CompletionResultType.ParameterValue, "AMS25"); + } } } } \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Support/DataCenterCode.cs b/generated/DataBox/DataBox.Autorest/generated/api/Support/DataCenterCode.cs index 914851c4b67f..00dca5c91c0d 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Support/DataCenterCode.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Support/DataCenterCode.cs @@ -18,6 +18,8 @@ public partial struct DataCenterCode : public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Ams20 = @"AMS20"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Ams25 = @"AMS25"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Auh20 = @"AUH20"; public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Bjb = @"BJB"; @@ -26,6 +28,8 @@ public partial struct DataCenterCode : public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Bl20 = @"BL20"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Bl24 = @"BL24"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Bl7 = @"BL7"; public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Bn1 = @"BN1"; @@ -50,18 +54,26 @@ public partial struct DataCenterCode : public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Cpq20 = @"CPQ20"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Cpq21 = @"CPQ21"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Cwl20 = @"CWL20"; public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Cys04 = @"CYS04"; public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Dsm05 = @"DSM05"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Dsm11 = @"DSM11"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Dub07 = @"DUB07"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Dxb23 = @"DXB23"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Fra22 = @"FRA22"; public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Hkg20 = @"HKG20"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Idc5 = @"IDC5"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Invalid = @"Invalid"; public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Jnb21 = @"JNB21"; @@ -78,6 +90,8 @@ public partial struct DataCenterCode : public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Mwh01 = @"MWH01"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Ntg20 = @"NTG20"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Ork70 = @"ORK70"; public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Osa02 = @"OSA02"; @@ -86,6 +100,8 @@ public partial struct DataCenterCode : public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Osa22 = @"OSA22"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Osa23 = @"OSA23"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Par22 = @"PAR22"; public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Pnq01 = @"PNQ01"; @@ -120,6 +136,8 @@ public partial struct DataCenterCode : public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Tyo22 = @"TYO22"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Tyo23 = @"TYO23"; + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Yqb20 = @"YQB20"; public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DataCenterCode Yto20 = @"YTO20"; diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Support/DelayNotificationStatus.Completer.cs b/generated/DataBox/DataBox.Autorest/generated/api/Support/DelayNotificationStatus.Completer.cs new file mode 100644 index 000000000000..43fce1d2eb1c --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Support/DelayNotificationStatus.Completer.cs @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support +{ + + /// Status of notification + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatusTypeConverter))] + public partial struct DelayNotificationStatus : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Active".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Active'", "Active", global::System.Management.Automation.CompletionResultType.ParameterValue, "Active"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "Resolved".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'Resolved'", "Resolved", global::System.Management.Automation.CompletionResultType.ParameterValue, "Resolved"); + } + } + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Support/DelayNotificationStatus.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Support/DelayNotificationStatus.TypeConverter.cs new file mode 100644 index 000000000000..7c2316aaba98 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Support/DelayNotificationStatus.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support +{ + + /// Status of notification + public partial class DelayNotificationStatusTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => DelayNotificationStatus.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Support/DelayNotificationStatus.cs b/generated/DataBox/DataBox.Autorest/generated/api/Support/DelayNotificationStatus.cs new file mode 100644 index 000000000000..9c411e8a8ac8 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Support/DelayNotificationStatus.cs @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support +{ + + /// Status of notification + public partial struct DelayNotificationStatus : + System.IEquatable + { + /// Delay is still active + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus Active = @"Active"; + + /// Delay has been resolved + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus Resolved = @"Resolved"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to DelayNotificationStatus + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new DelayNotificationStatus(global::System.Convert.ToString(value)); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private DelayNotificationStatus(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Compares values of enum type DelayNotificationStatus + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type DelayNotificationStatus (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is DelayNotificationStatus && Equals((DelayNotificationStatus)obj); + } + + /// Returns hashCode for enum DelayNotificationStatus + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Returns string representation for DelayNotificationStatus + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to DelayNotificationStatus + /// the value to convert to an instance of . + + public static implicit operator DelayNotificationStatus(string value) + { + return new DelayNotificationStatus(value); + } + + /// Implicit operator to convert DelayNotificationStatus to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus e) + { + return e._value; + } + + /// Overriding != operator for enum DelayNotificationStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum DelayNotificationStatus + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus e1, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.DelayNotificationStatus e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Support/HardwareEncryption.Completer.cs b/generated/DataBox/DataBox.Autorest/generated/api/Support/HardwareEncryption.Completer.cs index de1e6d7ba88a..663467951b9b 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Support/HardwareEncryption.Completer.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Support/HardwareEncryption.Completer.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support { - /// Defines Hardware level encryption (Only for disk) + /// Hardware encryption support for a given sku for a given region. [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryptionTypeConverter))] public partial struct HardwareEncryption : System.Management.Automation.IArgumentCompleter diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Support/HardwareEncryption.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Support/HardwareEncryption.TypeConverter.cs index 2b7e2d2899e0..350434a907ec 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Support/HardwareEncryption.TypeConverter.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Support/HardwareEncryption.TypeConverter.cs @@ -6,7 +6,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support { - /// Defines Hardware level encryption (Only for disk) + /// Hardware encryption support for a given sku for a given region. public partial class HardwareEncryptionTypeConverter : global::System.Management.Automation.PSTypeConverter { diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Support/HardwareEncryption.cs b/generated/DataBox/DataBox.Autorest/generated/api/Support/HardwareEncryption.cs index 403dd39f8ab1..3ccdbfabbf20 100644 --- a/generated/DataBox/DataBox.Autorest/generated/api/Support/HardwareEncryption.cs +++ b/generated/DataBox/DataBox.Autorest/generated/api/Support/HardwareEncryption.cs @@ -6,11 +6,11 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support { - /// Defines Hardware level encryption (Only for disk) + /// Hardware encryption support for a given sku for a given region. public partial struct HardwareEncryption : System.IEquatable { - /// Hardware-based encryption is enabled. + /// Hardware-based encryption is disabled. public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.HardwareEncryption Disabled = @"Disabled"; /// Hardware-based encryption is enabled. diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Support/ModelName.Completer.cs b/generated/DataBox/DataBox.Autorest/generated/api/Support/ModelName.Completer.cs new file mode 100644 index 000000000000..2f9ff406eee0 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Support/ModelName.Completer.cs @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support +{ + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelNameTypeConverter))] + public partial struct ModelName : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "DataBox".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'DataBox'", "DataBox", global::System.Management.Automation.CompletionResultType.ParameterValue, "DataBox"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "DataBoxDisk".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'DataBoxDisk'", "DataBoxDisk", global::System.Management.Automation.CompletionResultType.ParameterValue, "DataBoxDisk"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "DataBoxHeavy".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'DataBoxHeavy'", "DataBoxHeavy", global::System.Management.Automation.CompletionResultType.ParameterValue, "DataBoxHeavy"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "DataBoxCustomerDisk".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'DataBoxCustomerDisk'", "DataBoxCustomerDisk", global::System.Management.Automation.CompletionResultType.ParameterValue, "DataBoxCustomerDisk"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "AzureDataBox120".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'AzureDataBox120'", "AzureDataBox120", global::System.Management.Automation.CompletionResultType.ParameterValue, "AzureDataBox120"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "AzureDataBox525".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'AzureDataBox525'", "AzureDataBox525", global::System.Management.Automation.CompletionResultType.ParameterValue, "AzureDataBox525"); + } + } + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Support/ModelName.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Support/ModelName.TypeConverter.cs new file mode 100644 index 000000000000..f6416a107228 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Support/ModelName.TypeConverter.cs @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support +{ + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + public partial class ModelNameTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => ModelName.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Support/ModelName.cs b/generated/DataBox/DataBox.Autorest/generated/api/Support/ModelName.cs new file mode 100644 index 000000000000..9cdf6c263125 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Support/ModelName.cs @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support +{ + + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + public partial struct ModelName : + System.IEquatable + { + /// Data Box V2 with 125TB usable capacity. + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName AzureDataBox120 = @"AzureDataBox120"; + + /// Data Box V2 with 500TB usable capacity. + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName AzureDataBox525 = @"AzureDataBox525"; + + /// Data Box. + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName DataBox = @"DataBox"; + + /// Data Box Customer Disk + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName DataBoxCustomerDisk = @"DataBoxCustomerDisk"; + + /// Data Box Disk. + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName DataBoxDisk = @"DataBoxDisk"; + + /// Data Box Heavy. + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName DataBoxHeavy = @"DataBoxHeavy"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to ModelName + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new ModelName(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type ModelName + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type ModelName (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is ModelName && Equals((ModelName)obj); + } + + /// Returns hashCode for enum ModelName + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private ModelName(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for ModelName + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to ModelName + /// the value to convert to an instance of . + + public static implicit operator ModelName(string value) + { + return new ModelName(value); + } + + /// Implicit operator to convert ModelName to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName e) + { + return e._value; + } + + /// Overriding != operator for enum ModelName + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName e1, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum ModelName + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName e1, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Support/PortalDelayErrorCode.Completer.cs b/generated/DataBox/DataBox.Autorest/generated/api/Support/PortalDelayErrorCode.Completer.cs new file mode 100644 index 000000000000..a07e119cd957 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Support/PortalDelayErrorCode.Completer.cs @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support +{ + + /// Delay Error code + [System.ComponentModel.TypeConverter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCodeTypeConverter))] + public partial struct PortalDelayErrorCode : + System.Management.Automation.IArgumentCompleter + { + + /// + /// Implementations of this function are called by PowerShell to complete arguments. + /// + /// The name of the command that needs argument completion. + /// The name of the parameter that needs argument completion. + /// The (possibly empty) word being completed. + /// The command ast in case it is needed for completion. + /// This parameter is similar to $PSBoundParameters, except that sometimes PowerShell cannot + /// or will not attempt to evaluate an argument, in which case you may need to use commandAst. + /// + /// A collection of completion results, most like with ResultType set to ParameterValue. + /// + public global::System.Collections.Generic.IEnumerable CompleteArgument(global::System.String commandName, global::System.String parameterName, global::System.String wordToComplete, global::System.Management.Automation.Language.CommandAst commandAst, global::System.Collections.IDictionary fakeBoundParameters) + { + if (global::System.String.IsNullOrEmpty(wordToComplete) || "InternalIssueDelay".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'InternalIssueDelay'", "InternalIssueDelay", global::System.Management.Automation.CompletionResultType.ParameterValue, "InternalIssueDelay"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "ActiveOrderLimitBreachedDelay".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'ActiveOrderLimitBreachedDelay'", "ActiveOrderLimitBreachedDelay", global::System.Management.Automation.CompletionResultType.ParameterValue, "ActiveOrderLimitBreachedDelay"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "HighDemandDelay".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'HighDemandDelay'", "HighDemandDelay", global::System.Management.Automation.CompletionResultType.ParameterValue, "HighDemandDelay"); + } + if (global::System.String.IsNullOrEmpty(wordToComplete) || "LargeNumberOfFilesDelay".StartsWith(wordToComplete, global::System.StringComparison.InvariantCultureIgnoreCase)) + { + yield return new global::System.Management.Automation.CompletionResult("'LargeNumberOfFilesDelay'", "LargeNumberOfFilesDelay", global::System.Management.Automation.CompletionResultType.ParameterValue, "LargeNumberOfFilesDelay"); + } + } + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Support/PortalDelayErrorCode.TypeConverter.cs b/generated/DataBox/DataBox.Autorest/generated/api/Support/PortalDelayErrorCode.TypeConverter.cs new file mode 100644 index 000000000000..697a3721ff35 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Support/PortalDelayErrorCode.TypeConverter.cs @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support +{ + + /// Delay Error code + public partial class PortalDelayErrorCodeTypeConverter : + global::System.Management.Automation.PSTypeConverter + { + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertFrom(object sourceValue, global::System.Type destinationType) => true; + + /// + /// Determines if the converter can convert the parameter to the parameter. + /// + /// the to convert from + /// the to convert to + /// + /// true if the converter can convert the parameter to the parameter, otherwise false. + /// + public override bool CanConvertTo(object sourceValue, global::System.Type destinationType) => false; + + /// + /// Converts the parameter to the parameter using and + /// + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// + /// an instance of , or null if there is no suitable conversion. + /// + public override object ConvertFrom(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => PortalDelayErrorCode.CreateFrom(sourceValue); + + /// NotImplemented -- this will return null + /// the to convert from + /// the to convert to + /// not used by this TypeConverter. + /// when set to true, will ignore the case when converting. + /// will always return null. + public override object ConvertTo(object sourceValue, global::System.Type destinationType, global::System.IFormatProvider formatProvider, bool ignoreCase) => null; + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/api/Support/PortalDelayErrorCode.cs b/generated/DataBox/DataBox.Autorest/generated/api/Support/PortalDelayErrorCode.cs new file mode 100644 index 000000000000..0a213e7f6db3 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/generated/api/Support/PortalDelayErrorCode.cs @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. See License.txt in the project root for license information. +// Code generated by Microsoft (R) AutoRest Code Generator. +// Changes may cause incorrect behavior and will be lost if the code is regenerated. + +namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support +{ + + /// Delay Error code + public partial struct PortalDelayErrorCode : + System.IEquatable + { + /// Active Order limit breached. + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode ActiveOrderLimitBreachedDelay = @"ActiveOrderLimitBreachedDelay"; + + /// High demand + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode HighDemandDelay = @"HighDemandDelay"; + + /// Delay due to any internal reasons + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode InternalIssueDelay = @"InternalIssueDelay"; + + /// Slow copy due to large number of files + public static Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode LargeNumberOfFilesDelay = @"LargeNumberOfFilesDelay"; + + /// the value for an instance of the Enum. + private string _value { get; set; } + + /// Conversion from arbitrary object to PortalDelayErrorCode + /// the value to convert to an instance of . + internal static object CreateFrom(object value) + { + return new PortalDelayErrorCode(global::System.Convert.ToString(value)); + } + + /// Compares values of enum type PortalDelayErrorCode + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public bool Equals(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode e) + { + return _value.Equals(e._value); + } + + /// Compares values of enum type PortalDelayErrorCode (override for Object) + /// the value to compare against this instance. + /// true if the two instances are equal to the same value + public override bool Equals(object obj) + { + return obj is PortalDelayErrorCode && Equals((PortalDelayErrorCode)obj); + } + + /// Returns hashCode for enum PortalDelayErrorCode + /// The hashCode of the value + public override int GetHashCode() + { + return this._value.GetHashCode(); + } + + /// Creates an instance of the Enum class. + /// the value to create an instance for. + private PortalDelayErrorCode(string underlyingValue) + { + this._value = underlyingValue; + } + + /// Returns string representation for PortalDelayErrorCode + /// A string for this value. + public override string ToString() + { + return this._value; + } + + /// Implicit operator to convert string to PortalDelayErrorCode + /// the value to convert to an instance of . + + public static implicit operator PortalDelayErrorCode(string value) + { + return new PortalDelayErrorCode(value); + } + + /// Implicit operator to convert PortalDelayErrorCode to string + /// the value to convert to an instance of . + + public static implicit operator string(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode e) + { + return e._value; + } + + /// Overriding != operator for enum PortalDelayErrorCode + /// the value to compare against + /// the value to compare against + /// true if the two instances are not equal to the same value + public static bool operator !=(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode e1, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode e2) + { + return !e2.Equals(e1); + } + + /// Overriding == operator for enum PortalDelayErrorCode + /// the value to compare against + /// the value to compare against + /// true if the two instances are equal to the same value + public static bool operator ==(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode e1, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.PortalDelayErrorCode e2) + { + return e2.Equals(e1); + } + } +} \ No newline at end of file diff --git a/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJobCredential_List.cs b/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJobCredential_List.cs index 0ec0d466bc70..f12e3318dbff 100644 --- a/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJobCredential_List.cs +++ b/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJobCredential_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets /// [OpenAPI] ListCredentials=>POST:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataBoxJobCredential_List", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentials))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentials))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"This method gets the unencrypted secrets related to the job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials", ApiVersion = "2022-12-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/listCredentials", ApiVersion = "2025-02-01")] public partial class GetAzDataBoxJobCredential_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -150,24 +150,24 @@ public partial class GetAzDataBoxJobCredential_List : global::System.Management. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -378,12 +378,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -400,7 +400,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -418,12 +418,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IUnencryptedCredentialsList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IUnencryptedCredentialsList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_Get.cs b/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_Get.cs index dc8a9b56e002..fb0308f919b2 100644 --- a/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_Get.cs +++ b/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_Get.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets /// [OpenAPI] Get=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataBoxJob_Get")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"Gets information about the specified job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", ApiVersion = "2022-12-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", ApiVersion = "2025-02-01")] public partial class GetAzDataBoxJob_Get : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -167,24 +167,24 @@ public partial class GetAzDataBoxJob_Get : global::System.Management.Automation. /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -392,12 +392,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -414,7 +414,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, Expand=this.InvocationInformation.BoundParameters.ContainsKey("Expand") ? Expand : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -432,12 +432,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -449,7 +449,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource WriteObject((await response)); } } diff --git a/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List.cs b/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List.cs index 7b20af37e297..2fe5e6c5e556 100644 --- a/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List.cs +++ b/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets /// [OpenAPI] List=>GET:"/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/jobs" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataBoxJob_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"Lists all the jobs available under the subscription.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/jobs", ApiVersion = "2022-12-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/providers/Microsoft.DataBox/jobs", ApiVersion = "2025-02-01")] public partial class GetAzDataBoxJob_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -141,24 +141,24 @@ public partial class GetAzDataBoxJob_List : global::System.Management.Automation /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -366,12 +366,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -388,7 +388,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -406,12 +406,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List1.cs b/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List1.cs index d3c88a28c8f5..5e12dd865aed 100644 --- a/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List1.cs +++ b/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxJob_List1.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets /// [OpenAPI] ListByResourceGroup=>GET:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataBoxJob_List1")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"Lists all the jobs available under the given resource group.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs", ApiVersion = "2022-12-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs", ApiVersion = "2025-02-01")] public partial class GetAzDataBoxJob_List1 : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -155,24 +155,24 @@ public partial class GetAzDataBoxJob_List1 : global::System.Management.Automatio /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -380,12 +380,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -402,7 +402,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, SkipToken=this.InvocationInformation.BoundParameters.ContainsKey("SkipToken") ? SkipToken : null }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -420,12 +420,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxOperation_List.cs b/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxOperation_List.cs index b1c1e6f37970..0c56861028f8 100644 --- a/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxOperation_List.cs +++ b/generated/DataBox/DataBox.Autorest/generated/cmdlets/GetAzDataBoxOperation_List.cs @@ -14,10 +14,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets /// [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.InternalExport] [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.Get, @"AzDataBoxOperation_List")] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"This method gets all the operations.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/providers/Microsoft.DataBox/operations", ApiVersion = "2022-12-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/providers/Microsoft.DataBox/operations", ApiVersion = "2025-02-01")] public partial class GetAzDataBoxOperation_List : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -108,24 +108,24 @@ public partial class GetAzDataBoxOperation_List : global::System.Management.Auto /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationList /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -330,12 +330,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -352,7 +352,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -370,12 +370,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperationList + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperationList /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { diff --git a/generated/DataBox/DataBox.Autorest/generated/cmdlets/NewAzDataBoxJob_CreateExpanded.cs b/generated/DataBox/DataBox.Autorest/generated/cmdlets/NewAzDataBoxJob_CreateExpanded.cs index fd72d2b927e2..dc1a1c83adab 100644 --- a/generated/DataBox/DataBox.Autorest/generated/cmdlets/NewAzDataBoxJob_CreateExpanded.cs +++ b/generated/DataBox/DataBox.Autorest/generated/cmdlets/NewAzDataBoxJob_CreateExpanded.cs @@ -16,10 +16,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets /// [OpenAPI] Create=>PUT:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsCommon.New, @"AzDataBoxJob_CreateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"Creates a new job with the specified parameters. Existing job cannot be updated with this API and should instead be updated with the Update job API.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", ApiVersion = "2022-12-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", ApiVersion = "2025-02-01")] public partial class NewAzDataBoxJob_CreateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -38,7 +38,7 @@ public partial class NewAzDataBoxJob_CreateExpanded : global::System.Management. private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// Job Resource. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource _jobResourceBody = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResource(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource _jobResourceBody = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResource(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -94,8 +94,8 @@ public partial class NewAzDataBoxJob_CreateExpanded : global::System.Management. ReadOnly = false, Description = @"Details of a job run. This field will only be sent for expand details filter.", SerializedName = @"details", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobDetails Detail { get => _jobResourceBody.Detail ?? null /* object */; set => _jobResourceBody.Detail = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobDetails Detail { get => _jobResourceBody.Detail ?? null /* object */; set => _jobResourceBody.Detail = value; } /// SendAsync Pipeline Steps to be appended to the front of the pipeline [global::System.Management.Automation.Parameter(Mandatory = false, DontShow = true, HelpMessage = "SendAsync Pipeline Steps to be appended to the front of the pipeline")] @@ -229,6 +229,21 @@ public partial class NewAzDataBoxJob_CreateExpanded : global::System.Management. PossibleTypes = new [] { typeof(string) })] public string SkuFamily { get => _jobResourceBody.SkuFamily ?? null; set => _jobResourceBody.SkuFamily = value; } + /// + /// The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the + /// time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025 + /// + [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.ParameterCategory.Body)] + [Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.Info( + Required = false, + ReadOnly = false, + Description = @"The customer friendly name of the combination of version and capacity of the device. This field is necessary only at the time of ordering the newer generation device i.e. AzureDataBox120 and AzureDataBox525 as of Feb/2025", + SerializedName = @"model", + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName) })] + [global::System.Management.Automation.ArgumentCompleter(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName))] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName SkuModel { get => _jobResourceBody.SkuModel ?? ((Microsoft.Azure.PowerShell.Cmdlets.DataBox.Support.ModelName)""); set => _jobResourceBody.SkuModel = value; } + /// The sku name. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "The sku name.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Category(global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.ParameterCategory.Body)] @@ -271,8 +286,8 @@ public partial class NewAzDataBoxJob_CreateExpanded : global::System.Management. ReadOnly = false, Description = @"The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups).", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceTags Tag { get => _jobResourceBody.Tag ?? null /* object */; set => _jobResourceBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceTags Tag { get => _jobResourceBody.Tag ?? null /* object */; set => _jobResourceBody.Tag = value; } /// Type of the data transfer. [global::System.Management.Automation.Parameter(Mandatory = true, HelpMessage = "Type of the data transfer.")] @@ -295,32 +310,32 @@ public partial class NewAzDataBoxJob_CreateExpanded : global::System.Management. ReadOnly = false, Description = @"User Assigned Identities", SerializedName = @"userAssignedIdentities", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities UserAssignedIdentity { get => _jobResourceBody.IdentityUserAssignedIdentity ?? null /* object */; set => _jobResourceBody.IdentityUserAssignedIdentity = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities UserAssignedIdentity { get => _jobResourceBody.IdentityUserAssignedIdentity ?? null /* object */; set => _jobResourceBody.IdentityUserAssignedIdentity = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -582,12 +597,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -604,7 +619,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_jobResourceBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -622,12 +637,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -639,7 +654,7 @@ protected override void StopProcessing() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource WriteObject((await response)); } } diff --git a/generated/DataBox/DataBox.Autorest/generated/cmdlets/RemoveAzDataBoxJob_Delete.cs b/generated/DataBox/DataBox.Autorest/generated/cmdlets/RemoveAzDataBoxJob_Delete.cs index 5de48faabcc9..857dda292097 100644 --- a/generated/DataBox/DataBox.Autorest/generated/cmdlets/RemoveAzDataBoxJob_Delete.cs +++ b/generated/DataBox/DataBox.Autorest/generated/cmdlets/RemoveAzDataBoxJob_Delete.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"Deletes a job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", ApiVersion = "2022-12-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", ApiVersion = "2025-02-01")] public partial class RemoveAzDataBoxJob_Delete : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -171,12 +171,12 @@ public partial class RemoveAzDataBoxJob_Delete : global::System.Management.Autom /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -457,12 +457,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -479,7 +479,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DataBox/DataBox.Autorest/generated/cmdlets/StopAzDataBoxJob_CancelExpanded.cs b/generated/DataBox/DataBox.Autorest/generated/cmdlets/StopAzDataBoxJob_CancelExpanded.cs index 676e644a462f..b4272e9f5e21 100644 --- a/generated/DataBox/DataBox.Autorest/generated/cmdlets/StopAzDataBoxJob_CancelExpanded.cs +++ b/generated/DataBox/DataBox.Autorest/generated/cmdlets/StopAzDataBoxJob_CancelExpanded.cs @@ -16,7 +16,7 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets [global::System.Management.Automation.OutputType(typeof(bool))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"CancelJob.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/cancel", ApiVersion = "2022-12-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}/cancel", ApiVersion = "2025-02-01")] public partial class StopAzDataBoxJob_CancelExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -30,7 +30,7 @@ public partial class StopAzDataBoxJob_CancelExpanded : global::System.Management private string __processRecordId; /// Reason for cancellation. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.ICancellationReason _cancellationReasonBody = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.CancellationReason(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.ICancellationReason _cancellationReasonBody = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.CancellationReason(); /// /// The for this operation. @@ -172,12 +172,12 @@ public partial class StopAzDataBoxJob_CancelExpanded : global::System.Management /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnNoContent will be called before the regular onNoContent has been processed, allowing customization of @@ -395,12 +395,12 @@ protected override void StopProcessing() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -417,7 +417,7 @@ protected override void StopProcessing() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, body=_cancellationReasonBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } diff --git a/generated/DataBox/DataBox.Autorest/generated/cmdlets/UpdateAzDataBoxJob_UpdateExpanded.cs b/generated/DataBox/DataBox.Autorest/generated/cmdlets/UpdateAzDataBoxJob_UpdateExpanded.cs index a8fff060f742..5ae871a0b6e5 100644 --- a/generated/DataBox/DataBox.Autorest/generated/cmdlets/UpdateAzDataBoxJob_UpdateExpanded.cs +++ b/generated/DataBox/DataBox.Autorest/generated/cmdlets/UpdateAzDataBoxJob_UpdateExpanded.cs @@ -13,10 +13,10 @@ namespace Microsoft.Azure.PowerShell.Cmdlets.DataBox.Cmdlets /// [OpenAPI] Update=>PATCH:"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}" /// [global::System.Management.Automation.Cmdlet(global::System.Management.Automation.VerbsData.Update, @"AzDataBoxJob_UpdateExpanded", SupportsShouldProcess = true)] - [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource))] + [global::System.Management.Automation.OutputType(typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource))] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Description(@"Updates the properties of an existing job.")] [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.Generated] - [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", ApiVersion = "2022-12-01")] + [global::Microsoft.Azure.PowerShell.Cmdlets.DataBox.HttpPath(Path = "/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/jobs/{jobName}", ApiVersion = "2025-02-01")] public partial class UpdateAzDataBoxJob_UpdateExpanded : global::System.Management.Automation.PSCmdlet, Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.IEventListener { @@ -35,7 +35,7 @@ public partial class UpdateAzDataBoxJob_UpdateExpanded : global::System.Manageme private global::System.Threading.CancellationTokenSource _cancellationTokenSource = new global::System.Threading.CancellationTokenSource(); /// The JobResourceUpdateParameter. - private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameter _jobResourceUpdateParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.JobResourceUpdateParameter(); + private Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameter _jobResourceUpdateParameterBody = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.JobResourceUpdateParameter(); /// when specified, runs this cmdlet as a PowerShell job [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Run the command as a job")] @@ -58,8 +58,8 @@ public partial class UpdateAzDataBoxJob_UpdateExpanded : global::System.Manageme ReadOnly = false, Description = @"Contact details for notification and shipping.", SerializedName = @"contactDetails", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IContactDetails ContactDetail { get => _jobResourceUpdateParameterBody.DetailContactDetail ?? null /* object */; set => _jobResourceUpdateParameterBody.DetailContactDetail = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IContactDetails ContactDetail { get => _jobResourceUpdateParameterBody.DetailContactDetail ?? null /* object */; set => _jobResourceUpdateParameterBody.DetailContactDetail = value; } /// Contact name of the person. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Contact name of the person.")] @@ -189,8 +189,8 @@ public partial class UpdateAzDataBoxJob_UpdateExpanded : global::System.Manageme ReadOnly = false, Description = @"Key encryption key for the job.", SerializedName = @"keyEncryptionKey", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IKeyEncryptionKey KeyEncryptionKey { get => _jobResourceUpdateParameterBody.DetailKeyEncryptionKey ?? null /* object */; set => _jobResourceUpdateParameterBody.DetailKeyEncryptionKey = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IKeyEncryptionKey KeyEncryptionKey { get => _jobResourceUpdateParameterBody.DetailKeyEncryptionKey ?? null /* object */; set => _jobResourceUpdateParameterBody.DetailKeyEncryptionKey = value; } /// /// cancellation delegate. Stops the cmdlet when called. @@ -314,8 +314,8 @@ public partial class UpdateAzDataBoxJob_UpdateExpanded : global::System.Manageme ReadOnly = false, Description = @"Shipping address where customer wishes to receive the device.", SerializedName = @"shippingAddress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ReverseShippingDetail { get => _jobResourceUpdateParameterBody.ReverseShippingDetailShippingAddress ?? null /* object */; set => _jobResourceUpdateParameterBody.ReverseShippingDetailShippingAddress = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ReverseShippingDetail { get => _jobResourceUpdateParameterBody.ReverseShippingDetailShippingAddress ?? null /* object */; set => _jobResourceUpdateParameterBody.ReverseShippingDetailShippingAddress = value; } /// Indicates Shipment Logistics type that the customer preferred. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates Shipment Logistics type that the customer preferred.")] @@ -337,8 +337,8 @@ public partial class UpdateAzDataBoxJob_UpdateExpanded : global::System.Manageme ReadOnly = false, Description = @"Shipping address of the customer.", SerializedName = @"shippingAddress", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IShippingAddress ShippingAddress { get => _jobResourceUpdateParameterBody.DetailShippingAddress ?? null /* object */; set => _jobResourceUpdateParameterBody.DetailShippingAddress = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IShippingAddress ShippingAddress { get => _jobResourceUpdateParameterBody.DetailShippingAddress ?? null /* object */; set => _jobResourceUpdateParameterBody.DetailShippingAddress = value; } /// Preferences related to the Access Tier of storage accounts. [global::System.Management.Automation.AllowEmptyCollection] @@ -383,8 +383,8 @@ public partial class UpdateAzDataBoxJob_UpdateExpanded : global::System.Manageme ReadOnly = false, Description = @"The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups).", SerializedName = @"tags", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResourceUpdateParameterTags Tag { get => _jobResourceUpdateParameterBody.Tag ?? null /* object */; set => _jobResourceUpdateParameterBody.Tag = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResourceUpdateParameterTags Tag { get => _jobResourceUpdateParameterBody.Tag ?? null /* object */; set => _jobResourceUpdateParameterBody.Tag = value; } /// Indicates Shipment Logistics type that the customer preferred. [global::System.Management.Automation.Parameter(Mandatory = false, HelpMessage = "Indicates Shipment Logistics type that the customer preferred.")] @@ -407,32 +407,32 @@ public partial class UpdateAzDataBoxJob_UpdateExpanded : global::System.Manageme ReadOnly = false, Description = @"User Assigned Identities", SerializedName = @"userAssignedIdentities", - PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities) })] - public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IResourceIdentityUserAssignedIdentities UserAssignedIdentity { get => _jobResourceUpdateParameterBody.IdentityUserAssignedIdentity ?? null /* object */; set => _jobResourceUpdateParameterBody.IdentityUserAssignedIdentity = value; } + PossibleTypes = new [] { typeof(Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities) })] + public Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IResourceIdentityUserAssignedIdentities UserAssignedIdentity { get => _jobResourceUpdateParameterBody.IdentityUserAssignedIdentity ?? null /* object */; set => _jobResourceUpdateParameterBody.IdentityUserAssignedIdentity = value; } /// /// overrideOnDefault will be called before the regular onDefault has been processed, allowing customization of what /// happens on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// Determines if the rest of the onDefault method should be processed, or if the method should /// return immediately (set to true to skip further processing ) - partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// overrideOnOk will be called before the regular onOk has been processed, allowing customization of what happens /// on that response. Implement this method in a partial class to enable this behavior /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource /// from the remote call /// /// Determines if the rest of the onOk method should be processed, or if the method should return /// immediately (set to true to skip further processing ) - partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); + partial void overrideOnOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response, ref global::System.Threading.Tasks.Task returnNow); /// /// (overrides the default BeginProcessing method in global::System.Management.Automation.PSCmdlet) @@ -695,12 +695,12 @@ public UpdateAzDataBoxJob_UpdateExpanded() /// a delegate that is called when the remote service returns default (any response code not handled elsewhere). /// /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IApiError + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IApiError /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onDefault(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -717,7 +717,7 @@ public UpdateAzDataBoxJob_UpdateExpanded() if ((null == code || null == message)) { // Unrecognized Response. Create an error record based on what we have. - var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); + var ex = new Microsoft.Azure.PowerShell.Cmdlets.DataBox.Runtime.RestException(responseMessage, await response); WriteError( new global::System.Management.Automation.ErrorRecord(ex, ex.Code, global::System.Management.Automation.ErrorCategory.InvalidOperation, new { SubscriptionId=SubscriptionId, ResourceGroupName=ResourceGroupName, Name=Name, IfMatch=this.InvocationInformation.BoundParameters.ContainsKey("IfMatch") ? IfMatch : null, body=_jobResourceUpdateParameterBody }) { ErrorDetails = new global::System.Management.Automation.ErrorDetails(ex.Message) { RecommendedAction = ex.Action } @@ -735,12 +735,12 @@ public UpdateAzDataBoxJob_UpdateExpanded() /// a delegate that is called when the remote service returns 200 (OK). /// the raw response message as an global::System.Net.Http.HttpResponseMessage. - /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource + /// the body result as a Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource /// from the remote call /// /// A that will be complete when handling of the method is completed. /// - private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) + private async global::System.Threading.Tasks.Task onOk(global::System.Net.Http.HttpResponseMessage responseMessage, global::System.Threading.Tasks.Task response) { using( NoSynchronizationContext ) { @@ -752,7 +752,7 @@ public UpdateAzDataBoxJob_UpdateExpanded() return ; } // onOk - response for 200 / application/json - // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IJobResource + // (await response) // should be Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IJobResource WriteObject((await response)); } } diff --git a/generated/DataBox/DataBox.Autorest/internal/Get-AzDataBoxOperation.ps1 b/generated/DataBox/DataBox.Autorest/internal/Get-AzDataBoxOperation.ps1 index cf68dfd4211d..90ba1ce2a906 100644 --- a/generated/DataBox/DataBox.Autorest/internal/Get-AzDataBoxOperation.ps1 +++ b/generated/DataBox/DataBox.Autorest/internal/Get-AzDataBoxOperation.ps1 @@ -25,12 +25,12 @@ This method gets all the operations. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation .Link https://learn.microsoft.com/powershell/module/az.databox/get-azdataboxoperation #> function Get-AzDataBoxOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] diff --git a/generated/DataBox/DataBox.Autorest/internal/ProxyCmdletDefinitions.ps1 b/generated/DataBox/DataBox.Autorest/internal/ProxyCmdletDefinitions.ps1 index cf68dfd4211d..90ba1ce2a906 100644 --- a/generated/DataBox/DataBox.Autorest/internal/ProxyCmdletDefinitions.ps1 +++ b/generated/DataBox/DataBox.Autorest/internal/ProxyCmdletDefinitions.ps1 @@ -25,12 +25,12 @@ This method gets all the operations. {{ Add code here }} .Outputs -Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation +Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation .Link https://learn.microsoft.com/powershell/module/az.databox/get-azdataboxoperation #> function Get-AzDataBoxOperation { -[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20221201.IOperation])] +[OutputType([Microsoft.Azure.PowerShell.Cmdlets.DataBox.Models.Api20250201.IOperation])] [CmdletBinding(DefaultParameterSetName='List', PositionalBinding=$false)] param( [Parameter()] diff --git a/generated/DataBox/DataBox.Autorest/resources/README.md b/generated/DataBox/DataBox.Autorest/resources/README.md new file mode 100644 index 000000000000..937f07f8fec2 --- /dev/null +++ b/generated/DataBox/DataBox.Autorest/resources/README.md @@ -0,0 +1,11 @@ +# Resources +This directory can contain any additional resources for module that are not required at runtime. This directory **does not** get packaged with the module. If you have assets for custom implementation, place them into the `..\custom` folder. + +## Info +- Modifiable: yes +- Generated: no +- Committed: yes +- Packaged: no + +## Purpose +Use this folder to put anything you want to keep around as part of the repository for the module, but is not something that is required for the module. For example, development files, packaged builds, or additional information. This is only intended to be used in repositories where the module's output directory is cleaned, but tangential resources for the module want to remain intact. \ No newline at end of file