diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Azure.ResourceManager.DataBox.csproj b/sdk/databox/Azure.ResourceManager.DataBox/src/Azure.ResourceManager.DataBox.csproj
index 68d582d347a6..a628835c7e57 100644
--- a/sdk/databox/Azure.ResourceManager.DataBox/src/Azure.ResourceManager.DataBox.csproj
+++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Azure.ResourceManager.DataBox.csproj
@@ -6,7 +6,6 @@
Azure.ResourceManager.DataBox
Microsoft Azure Resource Manager client SDK for Azure resource provider Microsoft.DataBox.
azure;management;arm;resource manager;databox
- true
true
diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Custom/ArmDataBoxModelFactory.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Custom/ArmDataBoxModelFactory.cs
index 4b83644c71fe..f86ff6514a3f 100644
--- a/sdk/databox/Azure.ResourceManager.DataBox/src/Custom/ArmDataBoxModelFactory.cs
+++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Custom/ArmDataBoxModelFactory.cs
@@ -114,7 +114,7 @@ public static MitigateJobContent MitigateJobContent(CustomerResolutionCode custo
{
serialNumberCustomerResolutionMap ??= new Dictionary();
- return new MitigateJobContent(customerResolutionCode, serialNumberCustomerResolutionMap, serializedAdditionalRawData: null);
+ return new MitigateJobContent(customerResolutionCode, serialNumberCustomerResolutionMap, additionalBinaryDataProperties: null);
}
}
}
diff --git a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/ArmDataBoxModelFactory.cs b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/ArmDataBoxModelFactory.cs
index a0c455622e23..e69a9c5a2514 100644
--- a/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/ArmDataBoxModelFactory.cs
+++ b/sdk/databox/Azure.ResourceManager.DataBox/src/Generated/ArmDataBoxModelFactory.cs
@@ -7,23 +7,24 @@
using System;
using System.Collections.Generic;
-using System.ComponentModel;
using System.Linq;
+using Azure;
using Azure.Core;
+using Azure.ResourceManager.DataBox;
using Azure.ResourceManager.Models;
namespace Azure.ResourceManager.DataBox.Models
{
- /// Model factory for models.
+ /// A factory class for creating instances of the models for mocking.
public static partial class ArmDataBoxModelFactory
{
- /// Initializes a new instance of .
- /// The id.
- /// The name.
- /// The resourceType.
- /// The systemData.
- /// The tags.
- /// The location.
+
+ /// Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
+ /// The name of the resource.
+ /// The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".
+ /// Azure Resource Manager metadata containing createdBy and modifiedBy information.
+ /// Resource tags.
+ /// The geo-location where the resource lives.
/// Type of the data transfer.
/// Describes whether the job is cancellable or not.
/// Describes whether the job is deletable or not.
@@ -35,53 +36,54 @@ public static partial class ArmDataBoxModelFactory
/// Name of the stage where delay might be present.
/// Time at which the job was started in UTC ISO 8601 format.
/// Top level error for the job.
- ///
- /// Details of a job run. This field will only be sent for expand details filter.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , and .
- ///
+ /// Details of a job run. This field will only be sent for expand details filter.
/// Reason for cancellation.
/// Delivery type of Job.
- /// Delivery Info of Job.
/// Flag to indicate cancellation of scheduled job.
/// Flag to indicate if all devices associated with the job are lost.
+ /// Scheduled date time.
/// The sku type.
/// Msi identity of the resource.
/// A new instance for mocking.
- public static DataBoxJobData DataBoxJobData(ResourceIdentifier id = null, string name = null, ResourceType resourceType = default, SystemData systemData = null, IDictionary tags = null, AzureLocation location = default, DataBoxJobTransferType transferType = default, bool? isCancellable = null, bool? isDeletable = null, bool? isShippingAddressEditable = null, ReverseShippingDetailsEditStatus? reverseShippingDetailsUpdate = null, ReverseTransportPreferenceEditStatus? reverseTransportPreferenceUpdate = null, bool? isPrepareToShipEnabled = null, DataBoxStageName? status = null, DataBoxStageName? delayedStage = null, DateTimeOffset? startOn = null, ResponseError error = null, DataBoxBasicJobDetails details = null, string cancellationReason = null, JobDeliveryType? deliveryType = null, DateTimeOffset? deliveryInfoScheduledOn = null, bool? isCancellableWithoutFee = null, bool? areAllDevicesLost = null, DataBoxSku sku = null, ManagedServiceIdentity identity = null)
+ public static DataBoxJobData DataBoxJobData(ResourceIdentifier id = default, string name = default, ResourceType resourceType = default, SystemData systemData = default, IDictionary tags = default, AzureLocation location = default, DataBoxJobTransferType? transferType = default, bool? isCancellable = default, bool? isDeletable = default, bool? isShippingAddressEditable = default, ReverseShippingDetailsEditStatus? reverseShippingDetailsUpdate = default, ReverseTransportPreferenceEditStatus? reverseTransportPreferenceUpdate = default, bool? isPrepareToShipEnabled = default, DataBoxStageName? status = default, DataBoxStageName? delayedStage = default, DateTimeOffset? startOn = default, ResponseError error = default, DataBoxBasicJobDetails details = default, string cancellationReason = default, JobDeliveryType? deliveryType = default, bool? isCancellableWithoutFee = default, bool? areAllDevicesLost = default, DateTimeOffset? deliveryInfoScheduledOn = default, DataBoxSku sku = default, ResourceIdentity identity = default)
{
- tags ??= new Dictionary();
+ tags ??= new ChangeTrackingDictionary();
return new DataBoxJobData(
id,
name,
resourceType,
systemData,
+ additionalBinaryDataProperties: null,
tags,
location,
- transferType,
- isCancellable,
- isDeletable,
- isShippingAddressEditable,
- reverseShippingDetailsUpdate,
- reverseTransportPreferenceUpdate,
- isPrepareToShipEnabled,
- status,
- delayedStage,
- startOn,
- error,
- details,
- cancellationReason,
- deliveryType,
- deliveryInfoScheduledOn != null ? new JobDeliveryInfo(deliveryInfoScheduledOn, serializedAdditionalRawData: null) : null,
- isCancellableWithoutFee,
- areAllDevicesLost,
+ transferType is null && isCancellable is null && isDeletable is null && isShippingAddressEditable is null && reverseShippingDetailsUpdate is null && reverseTransportPreferenceUpdate is null && isPrepareToShipEnabled is null && status is null && delayedStage is null && startOn is null && error is null && details is null && cancellationReason is null && deliveryType is null && isCancellableWithoutFee is null && areAllDevicesLost is null && deliveryInfoScheduledOn is null ? default : new JobProperties(
+ transferType.Value,
+ isCancellable,
+ isDeletable,
+ isShippingAddressEditable,
+ reverseShippingDetailsUpdate,
+ reverseTransportPreferenceUpdate,
+ isPrepareToShipEnabled,
+ status,
+ delayedStage,
+ startOn,
+ error,
+ details,
+ cancellationReason,
+ deliveryType,
+ new JobDeliveryInfo(deliveryInfoScheduledOn, null),
+ isCancellableWithoutFee,
+ areAllDevicesLost,
+ null),
sku,
- identity,
- serializedAdditionalRawData: null);
+ identity);
}
- /// Initializes a new instance of .
+ ///
+ /// Job details.
+ /// Please note this is the abstract base class. The derived classes available for instantiation are: , , , and .
+ ///
/// List of stages that run in the job.
/// Contact details for notification and shipping.
/// Shipping address of the customer.
@@ -89,13 +91,10 @@ public static DataBoxJobData DataBoxJobData(ResourceIdentifier id = null, string
/// Return package shipping details.
/// Details of the data to be imported into azure.
/// Details of the data to be exported from azure.
+ /// Indicates the type of job details.
/// Preferences for the order.
/// Optional Reverse Shipping details for order.
- ///
- /// List of copy log details.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , and .
- ///
+ /// List of copy log details.
/// Shared access key to download the return shipment label.
/// Shared access key to download the chain of custody logs.
/// Holds device data erasure details.
@@ -103,46 +102,42 @@ public static DataBoxJobData DataBoxJobData(ResourceIdentifier id = null, string
/// The expected size of the data, which needs to be transferred in this job, in terabytes.
/// Available actions on the job.
/// Last mitigation action performed on the job.
- ///
- /// Datacenter address to ship to, for the given sku and storage location.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include and .
- ///
+ /// Datacenter address to ship to, for the given sku and storage location.
/// DataCenter code.
/// A new instance for mocking.
- public static DataBoxBasicJobDetails DataBoxBasicJobDetails(IEnumerable jobStages = null, DataBoxContactDetails contactDetails = null, DataBoxShippingAddress shippingAddress = null, PackageShippingDetails deliveryPackage = null, PackageShippingDetails returnPackage = null, IEnumerable dataImportDetails = null, IEnumerable dataExportDetails = null, DataBoxOrderPreferences preferences = null, ReverseShippingDetails reverseShippingDetails = null, IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, DeviceErasureDetails deviceErasureDetails = null, DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = null, IEnumerable actions = null, LastMitigationActionOnJob lastMitigationActionOnJob = null, DataCenterAddressResult dataCenterAddress = null, DataCenterCode? dataCenterCode = null)
+ public static DataBoxBasicJobDetails DataBoxBasicJobDetails(IEnumerable jobStages = default, DataBoxContactDetails contactDetails = default, DataBoxShippingAddress shippingAddress = default, PackageShippingDetails deliveryPackage = default, PackageShippingDetails returnPackage = default, IEnumerable dataImportDetails = default, IEnumerable dataExportDetails = default, string jobDetailsType = default, DataBoxOrderPreferences preferences = default, ReverseShippingDetails reverseShippingDetails = default, IEnumerable copyLogDetails = default, string reverseShipmentLabelSasKey = default, string chainOfCustodySasKey = default, DeviceErasureDetails deviceErasureDetails = default, DataBoxKeyEncryptionKey keyEncryptionKey = default, int? expectedDataSizeInTerabytes = default, IEnumerable actions = default, LastMitigationActionOnJob lastMitigationActionOnJob = default, DataCenterAddressResult dataCenterAddress = default, DataCenterCode? dataCenterCode = default)
{
- jobStages ??= new List();
- dataImportDetails ??= new List();
- dataExportDetails ??= new List();
- copyLogDetails ??= new List();
- actions ??= new List();
+ jobStages ??= new ChangeTrackingList();
+ dataImportDetails ??= new ChangeTrackingList();
+ dataExportDetails ??= new ChangeTrackingList();
+ copyLogDetails ??= new ChangeTrackingList();
+ actions ??= new ChangeTrackingList();
- return new UnknownJobDetails(
- jobStages?.ToList(),
+ return new UnknownDataBoxBasicJobDetails(
+ jobStages.ToList(),
contactDetails,
shippingAddress,
deliveryPackage,
returnPackage,
- dataImportDetails?.ToList(),
- dataExportDetails?.ToList(),
- default,
+ dataImportDetails.ToList(),
+ dataExportDetails.ToList(),
+ jobDetailsType.ToDataBoxOrderType(),
preferences,
reverseShippingDetails,
- copyLogDetails?.ToList(),
+ copyLogDetails.ToList(),
reverseShipmentLabelSasKey,
chainOfCustodySasKey,
deviceErasureDetails,
keyEncryptionKey,
expectedDataSizeInTerabytes,
- actions?.ToList(),
+ actions.ToList(),
lastMitigationActionOnJob,
dataCenterAddress,
dataCenterCode,
- serializedAdditionalRawData: null);
+ additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// Job stages.
/// Name of the job stage.
/// Display name of the job stage.
/// Status of the job stage.
@@ -150,9 +145,9 @@ public static DataBoxBasicJobDetails DataBoxBasicJobDetails(IEnumerable Job Stage Details.
/// Delay information for the job stages.
/// A new instance for mocking.
- public static DataBoxJobStage DataBoxJobStage(DataBoxStageName? stageName = null, string displayName = null, DataBoxStageStatus? stageStatus = null, DateTimeOffset? stageTime = null, BinaryData jobStageDetails = null, IEnumerable delayInformation = null)
+ public static DataBoxJobStage DataBoxJobStage(DataBoxStageName? stageName = default, string displayName = default, DataBoxStageStatus? stageStatus = default, DateTimeOffset? stageTime = default, BinaryData jobStageDetails = default, IEnumerable delayInformation = default)
{
- delayInformation ??= new List();
+ delayInformation ??= new ChangeTrackingList();
return new DataBoxJobStage(
stageName,
@@ -160,18 +155,18 @@ public static DataBoxJobStage DataBoxJobStage(DataBoxStageName? stageName = null
stageStatus,
stageTime,
jobStageDetails,
- delayInformation?.ToList(),
- serializedAdditionalRawData: null);
+ delayInformation.ToList(),
+ additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// Job Delay Notification details.
/// Status of notification.
/// Delay Error code.
/// Description of the delay.
/// Timestamp when the delay notification was created.
/// Timestamp when the delay notification was resolved.
/// A new instance for mocking.
- public static JobDelayDetails JobDelayDetails(DelayNotificationStatus? status = null, PortalDelayErrorCode? errorCode = null, string description = null, DateTimeOffset? startOn = null, DateTimeOffset? resolutionOn = null)
+ public static JobDelayDetails JobDelayDetails(DelayNotificationStatus? status = default, PortalDelayErrorCode? errorCode = default, string description = default, DateTimeOffset? startOn = default, DateTimeOffset? resolutionOn = default)
{
return new JobDelayDetails(
status,
@@ -179,29 +174,114 @@ public static JobDelayDetails JobDelayDetails(DelayNotificationStatus? status =
description,
startOn,
resolutionOn,
- serializedAdditionalRawData: null);
+ additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// Contact Details.
+ /// Contact name of the person.
+ /// Phone number of the contact person.
+ /// Phone extension number of the contact person.
+ /// Mobile number of the contact person.
+ /// List of Email-ids to be notified about job progress.
+ /// Notification preference for a job stage.
+ /// A new instance for mocking.
+ public static DataBoxContactDetails DataBoxContactDetails(string contactName = default, string phone = default, string phoneExtension = default, string mobile = default, IEnumerable emailList = default, IEnumerable notificationPreference = default)
+ {
+ emailList ??= new ChangeTrackingList();
+ notificationPreference ??= new ChangeTrackingList();
+
+ return new DataBoxContactDetails(
+ contactName,
+ phone,
+ phoneExtension,
+ mobile,
+ emailList.ToList(),
+ notificationPreference.ToList(),
+ additionalBinaryDataProperties: null);
+ }
+
+ /// package shipping details.
/// Url where shipment can be tracked.
/// Name of the carrier.
/// Tracking Id of shipment.
/// A new instance for mocking.
- public static PackageShippingDetails PackageShippingDetails(Uri trackingUri = null, string carrierName = null, string trackingId = null)
+ public static PackageShippingDetails PackageShippingDetails(Uri trackingUri = default, string carrierName = default, string trackingId = default)
{
- return new PackageShippingDetails(trackingUri, carrierName, trackingId, serializedAdditionalRawData: null);
+ return new PackageShippingDetails(trackingUri, carrierName, trackingId, additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// Details of the filtering the transfer of data.
+ /// Type of the account of data.
+ /// Filter details to transfer blobs.
+ /// Filter details to transfer Azure files.
+ /// Details of the filter files to be used for data transfer.
+ /// A new instance for mocking.
+ public static TransferFilterDetails TransferFilterDetails(DataAccountType dataAccountType = default, BlobFilterDetails blobFilterDetails = default, AzureFileFilterDetails azureFileFilterDetails = default, IEnumerable filterFileDetails = default)
+ {
+ filterFileDetails ??= new ChangeTrackingList();
+
+ return new TransferFilterDetails(dataAccountType, blobFilterDetails, azureFileFilterDetails, filterFileDetails.ToList(), additionalBinaryDataProperties: null);
+ }
+
+ /// Filter details to transfer Azure Blobs.
+ /// Prefix list of the Azure blobs to be transferred.
+ /// List of full path of the blobs to be transferred.
+ /// List of blob containers to be transferred.
+ /// A new instance for mocking.
+ public static BlobFilterDetails BlobFilterDetails(IEnumerable blobPrefixList = default, IEnumerable blobPathList = default, IEnumerable containerList = default)
+ {
+ blobPrefixList ??= new ChangeTrackingList();
+ blobPathList ??= new ChangeTrackingList();
+ containerList ??= new ChangeTrackingList();
+
+ return new BlobFilterDetails(blobPrefixList.ToList(), blobPathList.ToList(), containerList.ToList(), additionalBinaryDataProperties: null);
+ }
+
+ /// Filter details to transfer Azure files.
+ /// Prefix list of the Azure files to be transferred.
+ /// List of full path of the files to be transferred.
+ /// List of file shares to be transferred.
+ /// A new instance for mocking.
+ public static AzureFileFilterDetails AzureFileFilterDetails(IEnumerable filePrefixList = default, IEnumerable filePathList = default, IEnumerable fileShareList = default)
+ {
+ filePrefixList ??= new ChangeTrackingList();
+ filePathList ??= new ChangeTrackingList();
+ fileShareList ??= new ChangeTrackingList();
+
+ return new AzureFileFilterDetails(filePrefixList.ToList(), filePathList.ToList(), fileShareList.ToList(), additionalBinaryDataProperties: null);
+ }
+
+ /// Preferences related to the order.
+ /// Preferred data center region.
+ /// Preferences related to the shipment logistics of the sku.
+ /// Optional Preferences related to the reverse shipment logistics of the sku.
+ /// Preferences related to the Encryption.
+ /// Preferences related to the Access Tier of storage accounts.
+ /// A new instance for mocking.
+ public static DataBoxOrderPreferences DataBoxOrderPreferences(IEnumerable preferredDataCenterRegion = default, TransportPreferences transportPreferences = default, TransportPreferences reverseTransportPreferences = default, DataBoxEncryptionPreferences encryptionPreferences = default, IEnumerable storageAccountAccessTierPreferences = default)
+ {
+ preferredDataCenterRegion ??= new ChangeTrackingList();
+ storageAccountAccessTierPreferences ??= new ChangeTrackingList();
+
+ return new DataBoxOrderPreferences(
+ preferredDataCenterRegion.ToList(),
+ transportPreferences,
+ reverseTransportPreferences,
+ encryptionPreferences,
+ storageAccountAccessTierPreferences.ToList(),
+ additionalBinaryDataProperties: null);
+ }
+
+ /// Preferences related to the shipment logistics of the sku.
/// Indicates Shipment Logistics type that the customer preferred.
/// Read only property which indicates whether transport preferences has been updated or not after device is prepared.
/// A new instance for mocking.
- public static TransportPreferences TransportPreferences(TransportShipmentType preferredShipmentType = default, bool? isUpdated = null)
+ public static TransportPreferences TransportPreferences(TransportShipmentType preferredShipmentType = default, bool? isUpdated = default)
{
- return new TransportPreferences(preferredShipmentType, isUpdated, serializedAdditionalRawData: null);
+ return new TransportPreferences(preferredShipmentType, isUpdated, additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// Reverse Shipping Address and contact details for a job.
/// Contact Info.
/// Shipping address where customer wishes to receive the device.
///
@@ -209,65 +289,65 @@ public static TransportPreferences TransportPreferences(TransportShipmentType pr
/// Read only field
///
/// A new instance for mocking.
- public static ReverseShippingDetails ReverseShippingDetails(ContactInfo contactDetails = null, DataBoxShippingAddress shippingAddress = null, bool? isUpdated = null)
+ public static ReverseShippingDetails ReverseShippingDetails(ContactInfo contactDetails = default, DataBoxShippingAddress shippingAddress = default, bool? isUpdated = default)
{
- return new ReverseShippingDetails(contactDetails, shippingAddress, isUpdated, serializedAdditionalRawData: null);
+ return new ReverseShippingDetails(contactDetails, shippingAddress, isUpdated, additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// Copy log details for a storage account of a DataBox job.
/// Account name.
/// Link for copy logs.
/// Link for copy verbose logs. This will be set only when LogCollectionLevel is set to Verbose.
/// A new instance for mocking.
- public static DataBoxAccountCopyLogDetails DataBoxAccountCopyLogDetails(string accountName = null, string copyLogLink = null, string copyVerboseLogLink = null)
+ public static DataBoxAccountCopyLogDetails DataBoxAccountCopyLogDetails(string accountName = default, string copyLogLink = default, string copyVerboseLogLink = default)
{
- return new DataBoxAccountCopyLogDetails(DataBoxOrderType.DataBox, serializedAdditionalRawData: null, accountName, copyLogLink, copyVerboseLogLink);
+ return new DataBoxAccountCopyLogDetails(DataBoxOrderType.DataBox, additionalBinaryDataProperties: null, accountName, copyLogLink, copyVerboseLogLink);
}
- /// Initializes a new instance of .
+ /// Copy Log Details for customer disk.
/// Disk Serial Number.
/// Link for copy error logs.
/// Link for copy verbose logs.
/// A new instance for mocking.
- public static DataBoxCustomerDiskCopyLogDetails DataBoxCustomerDiskCopyLogDetails(string serialNumber = null, string errorLogLink = null, string verboseLogLink = null)
+ public static DataBoxCustomerDiskCopyLogDetails DataBoxCustomerDiskCopyLogDetails(string serialNumber = default, string errorLogLink = default, string verboseLogLink = default)
{
- return new DataBoxCustomerDiskCopyLogDetails(DataBoxOrderType.DataBoxCustomerDisk, serializedAdditionalRawData: null, serialNumber, errorLogLink, verboseLogLink);
+ return new DataBoxCustomerDiskCopyLogDetails(DataBoxOrderType.DataBoxCustomerDisk, additionalBinaryDataProperties: null, serialNumber, errorLogLink, verboseLogLink);
}
- /// Initializes a new instance of .
+ /// Copy Log Details for a disk.
/// Disk Serial Number.
/// Link for copy error logs.
/// Link for copy verbose logs.
/// A new instance for mocking.
- public static DataBoxDiskCopyLogDetails DataBoxDiskCopyLogDetails(string diskSerialNumber = null, string errorLogLink = null, string verboseLogLink = null)
+ public static DataBoxDiskCopyLogDetails DataBoxDiskCopyLogDetails(string diskSerialNumber = default, string errorLogLink = default, string verboseLogLink = default)
{
- return new DataBoxDiskCopyLogDetails(DataBoxOrderType.DataBoxDisk, serializedAdditionalRawData: null, diskSerialNumber, errorLogLink, verboseLogLink);
+ return new DataBoxDiskCopyLogDetails(DataBoxOrderType.DataBoxDisk, additionalBinaryDataProperties: null, diskSerialNumber, errorLogLink, verboseLogLink);
}
- /// Initializes a new instance of .
+ /// Copy log details for a storage account for Databox heavy.
/// Account name.
/// Link for copy logs.
/// Link for copy verbose logs. This will be set only when the LogCollectionLevel is set to verbose.
/// A new instance for mocking.
- public static DataBoxHeavyAccountCopyLogDetails DataBoxHeavyAccountCopyLogDetails(string accountName = null, IEnumerable copyLogLink = null, IEnumerable copyVerboseLogLink = null)
+ public static DataBoxHeavyAccountCopyLogDetails DataBoxHeavyAccountCopyLogDetails(string accountName = default, IEnumerable copyLogLink = default, IEnumerable copyVerboseLogLink = default)
{
- copyLogLink ??= new List();
- copyVerboseLogLink ??= new List();
+ copyLogLink ??= new ChangeTrackingList();
+ copyVerboseLogLink ??= new ChangeTrackingList();
- return new DataBoxHeavyAccountCopyLogDetails(DataBoxOrderType.DataBoxHeavy, serializedAdditionalRawData: null, accountName, copyLogLink?.ToList(), copyVerboseLogLink?.ToList());
+ return new DataBoxHeavyAccountCopyLogDetails(DataBoxOrderType.DataBoxHeavy, additionalBinaryDataProperties: null, accountName, copyLogLink.ToList(), copyVerboseLogLink.ToList());
}
- /// Initializes a new instance of .
+ /// Device erasure details with erasure completion status, secure erasure sas key and erasureordestructionlog sas key.
/// Holds the device erasure completion status.
/// Shared access key to download cleanup or destruction certificate for device.
/// Shared access key to download secure erasure certificate for the device.
/// A new instance for mocking.
- public static DeviceErasureDetails DeviceErasureDetails(DataBoxStageStatus? deviceErasureStatus = null, string erasureOrDestructionCertificateSasKey = null, string secureErasureCertificateSasKey = null)
+ public static DeviceErasureDetails DeviceErasureDetails(DataBoxStageStatus? deviceErasureStatus = default, string erasureOrDestructionCertificateSasKey = default, string secureErasureCertificateSasKey = default)
{
- return new DeviceErasureDetails(deviceErasureStatus, erasureOrDestructionCertificateSasKey, secureErasureCertificateSasKey, serializedAdditionalRawData: null);
+ return new DeviceErasureDetails(deviceErasureStatus, erasureOrDestructionCertificateSasKey, secureErasureCertificateSasKey, additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// Last Mitigation Action Performed On Job.
/// Action performed date time.
///
/// Action performed by customer,
@@ -275,35 +355,39 @@ public static DeviceErasureDetails DeviceErasureDetails(DataBoxStageStatus? devi
///
/// Resolution code provided by customer.
/// A new instance for mocking.
- public static LastMitigationActionOnJob LastMitigationActionOnJob(DateTimeOffset? actionPerformedOn = null, bool? isPerformedByCustomer = null, CustomerResolutionCode? customerResolution = null)
+ public static LastMitigationActionOnJob LastMitigationActionOnJob(DateTimeOffset? actionPerformedOn = default, bool? isPerformedByCustomer = default, CustomerResolutionCode? customerResolution = default)
{
- return new LastMitigationActionOnJob(actionPerformedOn, isPerformedByCustomer, customerResolution, serializedAdditionalRawData: null);
+ return new LastMitigationActionOnJob(actionPerformedOn, isPerformedByCustomer, customerResolution, additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ ///
+ /// Datacenter address for given storage location.
+ /// Please note this is the abstract base class. The derived classes available for instantiation are: and .
+ ///
+ /// Data center address type.
/// List of supported carriers for return shipment.
/// Azure Location where the Data Center serves primarily.
/// A new instance for mocking.
- public static DataCenterAddressResult DataCenterAddressResult(IEnumerable supportedCarriersForReturnShipment = null, AzureLocation? dataCenterAzureLocation = null)
+ public static DataCenterAddressResult DataCenterAddressResult(string datacenterAddressType = default, IEnumerable supportedCarriersForReturnShipment = default, AzureLocation? dataCenterAzureLocation = default)
{
- supportedCarriersForReturnShipment ??= new List();
+ supportedCarriersForReturnShipment ??= new ChangeTrackingList();
- return new UnknownDataCenterAddressResponse(default, supportedCarriersForReturnShipment?.ToList(), dataCenterAzureLocation, serializedAdditionalRawData: null);
+ return new UnknownDataCenterAddressResult(datacenterAddressType.ToDatacenterAddressType(), supportedCarriersForReturnShipment.ToList(), dataCenterAzureLocation, additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// Datacenter instruction for given storage location.
/// List of supported carriers for return shipment.
/// Azure Location where the Data Center serves primarily.
/// Data center communication instruction.
/// A new instance for mocking.
- public static DataCenterAddressInstructionResult DataCenterAddressInstructionResult(IEnumerable supportedCarriersForReturnShipment = null, AzureLocation? dataCenterAzureLocation = null, string communicationInstruction = null)
+ public static DataCenterAddressInstructionResult DataCenterAddressInstructionResult(IEnumerable supportedCarriersForReturnShipment = default, AzureLocation? dataCenterAzureLocation = default, string communicationInstruction = default)
{
- supportedCarriersForReturnShipment ??= new List();
+ supportedCarriersForReturnShipment ??= new ChangeTrackingList();
- return new DataCenterAddressInstructionResult(DatacenterAddressType.DatacenterAddressInstruction, supportedCarriersForReturnShipment?.ToList(), dataCenterAzureLocation, serializedAdditionalRawData: null, communicationInstruction);
+ return new DataCenterAddressInstructionResult(DatacenterAddressType.DatacenterAddressInstruction, supportedCarriersForReturnShipment.ToList(), dataCenterAzureLocation, additionalBinaryDataProperties: null, communicationInstruction);
}
- /// Initializes a new instance of .
+ /// Datacenter address for given storage location.
/// List of supported carriers for return shipment.
/// Azure Location where the Data Center serves primarily.
/// Contact person name.
@@ -320,15 +404,15 @@ public static DataCenterAddressInstructionResult DataCenterAddressInstructionRes
/// Address type.
/// Special instruction for shipping.
/// A new instance for mocking.
- public static DataCenterAddressLocationResult DataCenterAddressLocationResult(IEnumerable supportedCarriersForReturnShipment = null, AzureLocation? dataCenterAzureLocation = null, string contactPersonName = null, string company = null, string street1 = null, string street2 = null, string street3 = null, string city = null, string state = null, string zip = null, string country = null, string phone = null, string phoneExtension = null, string addressType = null, string additionalShippingInformation = null)
+ public static DataCenterAddressLocationResult DataCenterAddressLocationResult(IEnumerable supportedCarriersForReturnShipment = default, AzureLocation? dataCenterAzureLocation = default, string contactPersonName = default, string company = default, string street1 = default, string street2 = default, string street3 = default, string city = default, string state = default, string zip = default, string country = default, string phone = default, string phoneExtension = default, string addressType = default, string additionalShippingInformation = default)
{
- supportedCarriersForReturnShipment ??= new List();
+ supportedCarriersForReturnShipment ??= new ChangeTrackingList();
return new DataCenterAddressLocationResult(
DatacenterAddressType.DatacenterAddressLocation,
- supportedCarriersForReturnShipment?.ToList(),
+ supportedCarriersForReturnShipment.ToList(),
dataCenterAzureLocation,
- serializedAdditionalRawData: null,
+ additionalBinaryDataProperties: null,
contactPersonName,
company,
street1,
@@ -344,7 +428,7 @@ public static DataCenterAddressLocationResult DataCenterAddressLocationResult(IE
additionalShippingInformation);
}
- /// Initializes a new instance of .
+ /// Customer disk job details.
/// List of stages that run in the job.
/// Contact details for notification and shipping.
/// Shipping address of the customer.
@@ -354,11 +438,7 @@ public static DataCenterAddressLocationResult DataCenterAddressLocationResult(IE
/// Details of the data to be exported from azure.
/// Preferences for the order.
/// Optional Reverse Shipping details for order.
- ///
- /// List of copy log details.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , and .
- ///
+ /// List of copy log details.
/// Shared access key to download the return shipment label.
/// Shared access key to download the chain of custody logs.
/// Holds device data erasure details.
@@ -366,11 +446,7 @@ public static DataCenterAddressLocationResult DataCenterAddressLocationResult(IE
/// The expected size of the data, which needs to be transferred in this job, in terabytes.
/// Available actions on the job.
/// Last mitigation action performed on the job.
- ///
- /// Datacenter address to ship to, for the given sku and storage location.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include and .
- ///
+ /// Datacenter address to ship to, for the given sku and storage location.
/// DataCenter code.
/// Contains the map of disk serial number to the disk details for import jobs.
/// Contains the map of disk serial number to the disk details for export jobs.
@@ -379,69 +455,69 @@ public static DataCenterAddressLocationResult DataCenterAddressLocationResult(IE
/// Return package shipping details.
/// Flag to indicate if disk manifest should be backed-up in the Storage Account.
/// A new instance for mocking.
- public static DataBoxCustomerDiskJobDetails DataBoxCustomerDiskJobDetails(IEnumerable jobStages = null, DataBoxContactDetails contactDetails = null, DataBoxShippingAddress shippingAddress = null, PackageShippingDetails deliveryPackage = null, PackageShippingDetails returnPackage = null, IEnumerable dataImportDetails = null, IEnumerable dataExportDetails = null, DataBoxOrderPreferences preferences = null, ReverseShippingDetails reverseShippingDetails = null, IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, DeviceErasureDetails deviceErasureDetails = null, DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = null, IEnumerable actions = null, LastMitigationActionOnJob lastMitigationActionOnJob = null, DataCenterAddressResult dataCenterAddress = null, DataCenterCode? dataCenterCode = null, IDictionary importDiskDetails = null, IReadOnlyDictionary exportDiskDetails = null, IEnumerable copyProgress = null, PackageCarrierInfo deliverToDataCenterPackageDetails = null, PackageCarrierDetails returnToCustomerPackageDetails = null, bool? enableManifestBackup = null)
+ public static DataBoxCustomerDiskJobDetails DataBoxCustomerDiskJobDetails(IEnumerable jobStages = default, DataBoxContactDetails contactDetails = default, DataBoxShippingAddress shippingAddress = default, PackageShippingDetails deliveryPackage = default, PackageShippingDetails returnPackage = default, IEnumerable dataImportDetails = default, IEnumerable dataExportDetails = default, DataBoxOrderPreferences preferences = default, ReverseShippingDetails reverseShippingDetails = default, IEnumerable copyLogDetails = default, string reverseShipmentLabelSasKey = default, string chainOfCustodySasKey = default, DeviceErasureDetails deviceErasureDetails = default, DataBoxKeyEncryptionKey keyEncryptionKey = default, int? expectedDataSizeInTerabytes = default, IEnumerable actions = default, LastMitigationActionOnJob lastMitigationActionOnJob = default, DataCenterAddressResult dataCenterAddress = default, DataCenterCode? dataCenterCode = default, IDictionary importDiskDetails = default, IReadOnlyDictionary exportDiskDetails = default, IEnumerable copyProgress = default, PackageCarrierInfo deliverToDataCenterPackageDetails = default, PackageCarrierDetails returnToCustomerPackageDetails = default, bool? enableManifestBackup = default)
{
- jobStages ??= new List();
- dataImportDetails ??= new List();
- dataExportDetails ??= new List();
- copyLogDetails ??= new List();
- actions ??= new List();
- importDiskDetails ??= new Dictionary();
- exportDiskDetails ??= new Dictionary();
- copyProgress ??= new List();
+ jobStages ??= new ChangeTrackingList();
+ dataImportDetails ??= new ChangeTrackingList();
+ dataExportDetails ??= new ChangeTrackingList();
+ copyLogDetails ??= new ChangeTrackingList();
+ actions ??= new ChangeTrackingList();
+ importDiskDetails ??= new ChangeTrackingDictionary();
+ exportDiskDetails ??= new ChangeTrackingDictionary();
+ copyProgress ??= new ChangeTrackingList();
return new DataBoxCustomerDiskJobDetails(
- jobStages?.ToList(),
+ jobStages.ToList(),
contactDetails,
shippingAddress,
deliveryPackage,
returnPackage,
- dataImportDetails?.ToList(),
- dataExportDetails?.ToList(),
+ dataImportDetails.ToList(),
+ dataExportDetails.ToList(),
DataBoxOrderType.DataBoxCustomerDisk,
preferences,
reverseShippingDetails,
- copyLogDetails?.ToList(),
+ copyLogDetails.ToList(),
reverseShipmentLabelSasKey,
chainOfCustodySasKey,
deviceErasureDetails,
keyEncryptionKey,
expectedDataSizeInTerabytes,
- actions?.ToList(),
+ actions.ToList(),
lastMitigationActionOnJob,
dataCenterAddress,
dataCenterCode,
- serializedAdditionalRawData: null,
+ additionalBinaryDataProperties: null,
importDiskDetails,
exportDiskDetails,
- copyProgress?.ToList(),
+ copyProgress.ToList(),
deliverToDataCenterPackageDetails,
returnToCustomerPackageDetails,
enableManifestBackup);
}
- /// Initializes a new instance of .
+ /// Import disk details.
/// The relative path of the manifest file on the disk.
/// The Base16-encoded MD5 hash of the manifest file on the disk.
/// BitLocker key used to encrypt the disk.
/// Path to backed up manifest, only returned if enableManifestBackup is true.
/// A new instance for mocking.
- public static ImportDiskDetails ImportDiskDetails(string manifestFile = null, string manifestHash = null, string bitLockerKey = null, string backupManifestCloudPath = null)
+ public static ImportDiskDetails ImportDiskDetails(string manifestFile = default, string manifestHash = default, string bitLockerKey = default, string backupManifestCloudPath = default)
{
- return new ImportDiskDetails(manifestFile, manifestHash, bitLockerKey, backupManifestCloudPath, serializedAdditionalRawData: null);
+ return new ImportDiskDetails(manifestFile, manifestHash, bitLockerKey, backupManifestCloudPath, additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// Export disk details.
/// The relative path of the manifest file on the disk.
/// The Base16-encoded MD5 hash of the manifest file on the disk.
/// Path to backed up manifest, only returned if enableManifestBackup is true.
/// A new instance for mocking.
- public static ExportDiskDetails ExportDiskDetails(string manifestFile = null, string manifestHash = null, string backupManifestCloudPath = null)
+ public static ExportDiskDetails ExportDiskDetails(string manifestFile = default, string manifestHash = default, string backupManifestCloudPath = default)
{
- return new ExportDiskDetails(manifestFile, manifestHash, backupManifestCloudPath, serializedAdditionalRawData: null);
+ return new ExportDiskDetails(manifestFile, manifestHash, backupManifestCloudPath, additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// DataBox CustomerDisk Copy Progress.
/// Name of the storage account. This will be empty for data account types other than storage account.
/// Transfer type of data.
/// Data Account Type.
@@ -465,9 +541,9 @@ public static ExportDiskDetails ExportDiskDetails(string manifestFile = null, st
/// Disk Serial Number.
/// The Status of the copy.
/// A new instance for mocking.
- public static DataBoxCustomerDiskCopyProgress DataBoxCustomerDiskCopyProgress(string storageAccountName = null, DataBoxJobTransferType? transferType = null, DataAccountType? dataAccountType = null, ResourceIdentifier accountId = null, long? bytesProcessed = null, long? totalBytesToProcess = null, long? filesProcessed = null, long? totalFilesToProcess = null, long? invalidFilesProcessed = null, long? invalidFileBytesUploaded = null, long? renamedContainerCount = null, long? filesErroredOut = null, long? directoriesErroredOut = null, long? invalidDirectoriesProcessed = null, bool? isEnumerationInProgress = null, ResponseError error = null, IEnumerable actions = null, string serialNumber = null, DataBoxCopyStatus? copyStatus = null)
+ public static DataBoxCustomerDiskCopyProgress DataBoxCustomerDiskCopyProgress(string storageAccountName = default, DataBoxJobTransferType? transferType = default, DataAccountType? dataAccountType = default, ResourceIdentifier accountId = default, long? bytesProcessed = default, long? totalBytesToProcess = default, long? filesProcessed = default, long? totalFilesToProcess = default, long? invalidFilesProcessed = default, long? invalidFileBytesUploaded = default, long? renamedContainerCount = default, long? filesErroredOut = default, long? directoriesErroredOut = default, long? invalidDirectoriesProcessed = default, bool? isEnumerationInProgress = default, ResponseError error = default, IEnumerable actions = default, string serialNumber = default, DataBoxCopyStatus? copyStatus = default)
{
- actions ??= new List();
+ actions ??= new ChangeTrackingList();
return new DataBoxCustomerDiskCopyProgress(
storageAccountName,
@@ -486,13 +562,13 @@ public static DataBoxCustomerDiskCopyProgress DataBoxCustomerDiskCopyProgress(st
invalidDirectoriesProcessed,
isEnumerationInProgress,
error,
- actions?.ToList(),
- serializedAdditionalRawData: null,
+ actions.ToList(),
+ additionalBinaryDataProperties: null,
serialNumber,
copyStatus);
}
- /// Initializes a new instance of .
+ /// Copy progress.
/// Name of the storage account. This will be empty for data account types other than storage account.
/// Transfer type of data.
/// Data Account Type.
@@ -514,9 +590,9 @@ public static DataBoxCustomerDiskCopyProgress DataBoxCustomerDiskCopyProgress(st
/// Error, if any, in the stage.
/// Available actions on the job.
/// A new instance for mocking.
- public static DataBoxCopyProgress DataBoxCopyProgress(string storageAccountName = null, DataBoxJobTransferType? transferType = null, DataAccountType? dataAccountType = null, ResourceIdentifier accountId = null, long? bytesProcessed = null, long? totalBytesToProcess = null, long? filesProcessed = null, long? totalFilesToProcess = null, long? invalidFilesProcessed = null, long? invalidFileBytesUploaded = null, long? renamedContainerCount = null, long? filesErroredOut = null, long? directoriesErroredOut = null, long? invalidDirectoriesProcessed = null, bool? isEnumerationInProgress = null, ResponseError error = null, IEnumerable actions = null)
+ public static DataBoxCopyProgress DataBoxCopyProgress(string storageAccountName = default, DataBoxJobTransferType? transferType = default, DataAccountType? dataAccountType = default, ResourceIdentifier accountId = default, long? bytesProcessed = default, long? totalBytesToProcess = default, long? filesProcessed = default, long? totalFilesToProcess = default, long? invalidFilesProcessed = default, long? invalidFileBytesUploaded = default, long? renamedContainerCount = default, long? filesErroredOut = default, long? directoriesErroredOut = default, long? invalidDirectoriesProcessed = default, bool? isEnumerationInProgress = default, ResponseError error = default, IEnumerable actions = default)
{
- actions ??= new List();
+ actions ??= new ChangeTrackingList();
return new DataBoxCopyProgress(
storageAccountName,
@@ -535,11 +611,11 @@ public static DataBoxCopyProgress DataBoxCopyProgress(string storageAccountName
invalidDirectoriesProcessed,
isEnumerationInProgress,
error,
- actions?.ToList(),
- serializedAdditionalRawData: null);
+ actions.ToList(),
+ additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// DataBox Disk Job Details.
/// List of stages that run in the job.
/// Contact details for notification and shipping.
/// Shipping address of the customer.
@@ -549,11 +625,7 @@ public static DataBoxCopyProgress DataBoxCopyProgress(string storageAccountName
/// Details of the data to be exported from azure.
/// Preferences for the order.
/// Optional Reverse Shipping details for order.
- ///
- /// List of copy log details.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , and .
- ///
+ /// List of copy log details.
/// Shared access key to download the return shipment label.
/// Shared access key to download the chain of custody logs.
/// Holds device data erasure details.
@@ -561,11 +633,7 @@ public static DataBoxCopyProgress DataBoxCopyProgress(string storageAccountName
/// The expected size of the data, which needs to be transferred in this job, in terabytes.
/// Available actions on the job.
/// Last mitigation action performed on the job.
- ///
- /// Datacenter address to ship to, for the given sku and storage location.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include and .
- ///
+ /// Datacenter address to ship to, for the given sku and storage location.
/// DataCenter code.
/// 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.
/// Copy progress per disk.
@@ -574,50 +642,50 @@ public static DataBoxCopyProgress DataBoxCopyProgress(string storageAccountName
/// 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.
/// User entered passkey for DataBox Disk job.
/// A new instance for mocking.
- public static DataBoxDiskJobDetails DataBoxDiskJobDetails(IEnumerable jobStages = null, DataBoxContactDetails contactDetails = null, DataBoxShippingAddress shippingAddress = null, PackageShippingDetails deliveryPackage = null, PackageShippingDetails returnPackage = null, IEnumerable dataImportDetails = null, IEnumerable dataExportDetails = null, DataBoxOrderPreferences preferences = null, ReverseShippingDetails reverseShippingDetails = null, IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, DeviceErasureDetails deviceErasureDetails = null, DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = null, IEnumerable actions = null, LastMitigationActionOnJob lastMitigationActionOnJob = null, DataCenterAddressResult dataCenterAddress = null, DataCenterCode? dataCenterCode = null, IDictionary preferredDisks = null, IEnumerable copyProgress = null, IEnumerable granularCopyProgress = null, IEnumerable granularCopyLogDetails = null, IReadOnlyDictionary disksAndSizeDetails = null, string passkey = null)
- {
- jobStages ??= new List();
- dataImportDetails ??= new List();
- dataExportDetails ??= new List();
- copyLogDetails ??= new List();
- actions ??= new List();
- preferredDisks ??= new Dictionary();
- copyProgress ??= new List();
- granularCopyProgress ??= new List();
- granularCopyLogDetails ??= new List();
- disksAndSizeDetails ??= new Dictionary();
+ public static DataBoxDiskJobDetails DataBoxDiskJobDetails(IEnumerable jobStages = default, DataBoxContactDetails contactDetails = default, DataBoxShippingAddress shippingAddress = default, PackageShippingDetails deliveryPackage = default, PackageShippingDetails returnPackage = default, IEnumerable dataImportDetails = default, IEnumerable dataExportDetails = default, DataBoxOrderPreferences preferences = default, ReverseShippingDetails reverseShippingDetails = default, IEnumerable copyLogDetails = default, string reverseShipmentLabelSasKey = default, string chainOfCustodySasKey = default, DeviceErasureDetails deviceErasureDetails = default, DataBoxKeyEncryptionKey keyEncryptionKey = default, int? expectedDataSizeInTerabytes = default, IEnumerable actions = default, LastMitigationActionOnJob lastMitigationActionOnJob = default, DataCenterAddressResult dataCenterAddress = default, DataCenterCode? dataCenterCode = default, IDictionary preferredDisks = default, IEnumerable copyProgress = default, IEnumerable granularCopyProgress = default, IEnumerable granularCopyLogDetails = default, IReadOnlyDictionary disksAndSizeDetails = default, string passkey = default)
+ {
+ jobStages ??= new ChangeTrackingList();
+ dataImportDetails ??= new ChangeTrackingList();
+ dataExportDetails ??= new ChangeTrackingList();
+ copyLogDetails ??= new ChangeTrackingList();
+ actions ??= new ChangeTrackingList();
+ preferredDisks ??= new ChangeTrackingDictionary();
+ copyProgress ??= new ChangeTrackingList();
+ granularCopyProgress ??= new ChangeTrackingList();
+ granularCopyLogDetails ??= new ChangeTrackingList();
+ disksAndSizeDetails ??= new ChangeTrackingDictionary();
return new DataBoxDiskJobDetails(
- jobStages?.ToList(),
+ jobStages.ToList(),
contactDetails,
shippingAddress,
deliveryPackage,
returnPackage,
- dataImportDetails?.ToList(),
- dataExportDetails?.ToList(),
+ dataImportDetails.ToList(),
+ dataExportDetails.ToList(),
DataBoxOrderType.DataBoxDisk,
preferences,
reverseShippingDetails,
- copyLogDetails?.ToList(),
+ copyLogDetails.ToList(),
reverseShipmentLabelSasKey,
chainOfCustodySasKey,
deviceErasureDetails,
keyEncryptionKey,
expectedDataSizeInTerabytes,
- actions?.ToList(),
+ actions.ToList(),
lastMitigationActionOnJob,
dataCenterAddress,
dataCenterCode,
- serializedAdditionalRawData: null,
+ additionalBinaryDataProperties: null,
preferredDisks,
- copyProgress?.ToList(),
- granularCopyProgress?.ToList(),
- granularCopyLogDetails?.ToList(),
+ copyProgress.ToList(),
+ granularCopyProgress.ToList(),
+ granularCopyLogDetails.ToList(),
disksAndSizeDetails,
passkey);
}
- /// Initializes a new instance of .
+ /// DataBox Disk Copy Progress.
/// The serial number of the disk.
/// Bytes copied during the copy of disk.
/// Indicates the percentage completed for the copy of the disk.
@@ -625,9 +693,9 @@ public static DataBoxDiskJobDetails DataBoxDiskJobDetails(IEnumerable Error, if any, in the stage.
/// Available actions on the job.
/// A new instance for mocking.
- public static DataBoxDiskCopyProgress DataBoxDiskCopyProgress(string serialNumber = null, long? bytesCopied = null, int? percentComplete = null, DataBoxCopyStatus? status = null, ResponseError error = null, IEnumerable actions = null)
+ public static DataBoxDiskCopyProgress DataBoxDiskCopyProgress(string serialNumber = default, long? bytesCopied = default, int? percentComplete = default, DataBoxCopyStatus? status = default, ResponseError error = default, IEnumerable actions = default)
{
- actions ??= new List();
+ actions ??= new ChangeTrackingList();
return new DataBoxDiskCopyProgress(
serialNumber,
@@ -635,11 +703,11 @@ public static DataBoxDiskCopyProgress DataBoxDiskCopyProgress(string serialNumbe
percentComplete,
status,
error,
- actions?.ToList(),
- serializedAdditionalRawData: null);
+ actions.ToList(),
+ additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// DataBox Disk Granular Copy Progress.
/// Name of the storage account. This will be empty for data account types other than storage account.
/// Transfer type of data.
/// Data Account Type.
@@ -663,9 +731,9 @@ public static DataBoxDiskCopyProgress DataBoxDiskCopyProgress(string serialNumbe
/// Disk Serial Number.
/// The Status of the copy.
/// A new instance for mocking.
- public static DataBoxDiskGranularCopyProgress DataBoxDiskGranularCopyProgress(string storageAccountName = null, DataBoxJobTransferType? transferType = null, DataAccountType? dataAccountType = null, ResourceIdentifier accountId = null, long? bytesProcessed = null, long? totalBytesToProcess = null, long? filesProcessed = null, long? totalFilesToProcess = null, long? invalidFilesProcessed = null, long? invalidFileBytesUploaded = null, long? renamedContainerCount = null, long? filesErroredOut = null, long? directoriesErroredOut = null, long? invalidDirectoriesProcessed = null, bool? isEnumerationInProgress = null, ResponseError error = null, IEnumerable actions = null, string serialNumber = null, DataBoxCopyStatus? copyStatus = null)
+ public static DataBoxDiskGranularCopyProgress DataBoxDiskGranularCopyProgress(string storageAccountName = default, DataBoxJobTransferType? transferType = default, DataAccountType? dataAccountType = default, ResourceIdentifier accountId = default, long? bytesProcessed = default, long? totalBytesToProcess = default, long? filesProcessed = default, long? totalFilesToProcess = default, long? invalidFilesProcessed = default, long? invalidFileBytesUploaded = default, long? renamedContainerCount = default, long? filesErroredOut = default, long? directoriesErroredOut = default, long? invalidDirectoriesProcessed = default, bool? isEnumerationInProgress = default, ResponseError error = default, IEnumerable actions = default, string serialNumber = default, DataBoxCopyStatus? copyStatus = default)
{
- actions ??= new List();
+ actions ??= new ChangeTrackingList();
return new DataBoxDiskGranularCopyProgress(
storageAccountName,
@@ -684,13 +752,13 @@ public static DataBoxDiskGranularCopyProgress DataBoxDiskGranularCopyProgress(st
invalidDirectoriesProcessed,
isEnumerationInProgress,
error,
- actions?.ToList(),
- serializedAdditionalRawData: null,
+ actions.ToList(),
+ additionalBinaryDataProperties: null,
serialNumber,
copyStatus);
}
- /// Initializes a new instance of .
+ /// Granular Copy progress.
/// Name of the storage account. This will be empty for data account types other than storage account.
/// Transfer type of data.
/// Data Account Type.
@@ -712,9 +780,9 @@ public static DataBoxDiskGranularCopyProgress DataBoxDiskGranularCopyProgress(st
/// Error, if any, in the stage.
/// Available actions on the job.
/// A new instance for mocking.
- public static GranularCopyProgress GranularCopyProgress(string storageAccountName = null, DataBoxJobTransferType? transferType = null, DataAccountType? dataAccountType = null, ResourceIdentifier accountId = null, long? bytesProcessed = null, long? totalBytesToProcess = null, long? filesProcessed = null, long? totalFilesToProcess = null, long? invalidFilesProcessed = null, long? invalidFileBytesUploaded = null, long? renamedContainerCount = null, long? filesErroredOut = null, long? directoriesErroredOut = null, long? invalidDirectoriesProcessed = null, bool? isEnumerationInProgress = null, ResponseError error = null, IEnumerable actions = null)
+ public static GranularCopyProgress GranularCopyProgress(string storageAccountName = default, DataBoxJobTransferType? transferType = default, DataAccountType? dataAccountType = default, ResourceIdentifier accountId = default, long? bytesProcessed = default, long? totalBytesToProcess = default, long? filesProcessed = default, long? totalFilesToProcess = default, long? invalidFilesProcessed = default, long? invalidFileBytesUploaded = default, long? renamedContainerCount = default, long? filesErroredOut = default, long? directoriesErroredOut = default, long? invalidDirectoriesProcessed = default, bool? isEnumerationInProgress = default, ResponseError error = default, IEnumerable actions = default)
{
- actions ??= new List();
+ actions ??= new ChangeTrackingList();
return new GranularCopyProgress(
storageAccountName,
@@ -733,28 +801,28 @@ public static GranularCopyProgress GranularCopyProgress(string storageAccountNam
invalidDirectoriesProcessed,
isEnumerationInProgress,
error,
- actions?.ToList(),
- serializedAdditionalRawData: null);
+ actions.ToList(),
+ additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// Granular Copy Log Details for customer disk.
/// Disk Serial Number.
/// Account id.
/// Link for copy error logs.
/// Link for copy verbose logs.
/// A new instance for mocking.
- public static DataBoxDiskGranularCopyLogDetails DataBoxDiskGranularCopyLogDetails(string serialNumber = null, ResourceIdentifier accountId = null, string errorLogLink = null, string verboseLogLink = null)
+ public static DataBoxDiskGranularCopyLogDetails DataBoxDiskGranularCopyLogDetails(string serialNumber = default, ResourceIdentifier accountId = default, string errorLogLink = default, string verboseLogLink = default)
{
return new DataBoxDiskGranularCopyLogDetails(
DataBoxOrderType.DataBoxCustomerDisk,
- serializedAdditionalRawData: null,
+ additionalBinaryDataProperties: null,
serialNumber,
accountId,
errorLogLink,
verboseLogLink);
}
- /// Initializes a new instance of .
+ /// Databox Heavy Device Job Details.
/// List of stages that run in the job.
/// Contact details for notification and shipping.
/// Shipping address of the customer.
@@ -764,11 +832,7 @@ public static DataBoxDiskGranularCopyLogDetails DataBoxDiskGranularCopyLogDetail
/// Details of the data to be exported from azure.
/// Preferences for the order.
/// Optional Reverse Shipping details for order.
- ///
- /// List of copy log details.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , and .
- ///
+ /// List of copy log details.
/// Shared access key to download the return shipment label.
/// Shared access key to download the chain of custody logs.
/// Holds device data erasure details.
@@ -776,51 +840,47 @@ public static DataBoxDiskGranularCopyLogDetails DataBoxDiskGranularCopyLogDetail
/// The expected size of the data, which needs to be transferred in this job, in terabytes.
/// Available actions on the job.
/// Last mitigation action performed on the job.
- ///
- /// Datacenter address to ship to, for the given sku and storage location.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include and .
- ///
+ /// Datacenter address to ship to, for the given sku and storage location.
/// DataCenter code.
/// Copy progress per account.
/// 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 : Password must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+.
/// A new instance for mocking.
- public static DataBoxHeavyJobDetails DataBoxHeavyJobDetails(IEnumerable jobStages = null, DataBoxContactDetails contactDetails = null, DataBoxShippingAddress shippingAddress = null, PackageShippingDetails deliveryPackage = null, PackageShippingDetails returnPackage = null, IEnumerable dataImportDetails = null, IEnumerable dataExportDetails = null, DataBoxOrderPreferences preferences = null, ReverseShippingDetails reverseShippingDetails = null, IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, DeviceErasureDetails deviceErasureDetails = null, DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = null, IEnumerable actions = null, LastMitigationActionOnJob lastMitigationActionOnJob = null, DataCenterAddressResult dataCenterAddress = null, DataCenterCode? dataCenterCode = null, IEnumerable copyProgress = null, string devicePassword = null)
+ public static DataBoxHeavyJobDetails DataBoxHeavyJobDetails(IEnumerable jobStages = default, DataBoxContactDetails contactDetails = default, DataBoxShippingAddress shippingAddress = default, PackageShippingDetails deliveryPackage = default, PackageShippingDetails returnPackage = default, IEnumerable dataImportDetails = default, IEnumerable dataExportDetails = default, DataBoxOrderPreferences preferences = default, ReverseShippingDetails reverseShippingDetails = default, IEnumerable copyLogDetails = default, string reverseShipmentLabelSasKey = default, string chainOfCustodySasKey = default, DeviceErasureDetails deviceErasureDetails = default, DataBoxKeyEncryptionKey keyEncryptionKey = default, int? expectedDataSizeInTerabytes = default, IEnumerable actions = default, LastMitigationActionOnJob lastMitigationActionOnJob = default, DataCenterAddressResult dataCenterAddress = default, DataCenterCode? dataCenterCode = default, IEnumerable copyProgress = default, string devicePassword = default)
{
- jobStages ??= new List();
- dataImportDetails ??= new List();
- dataExportDetails ??= new List();
- copyLogDetails ??= new List();
- actions ??= new List();
- copyProgress ??= new List();
+ jobStages ??= new ChangeTrackingList();
+ dataImportDetails ??= new ChangeTrackingList();
+ dataExportDetails ??= new ChangeTrackingList();
+ copyLogDetails ??= new ChangeTrackingList();
+ actions ??= new ChangeTrackingList();
+ copyProgress ??= new ChangeTrackingList();
return new DataBoxHeavyJobDetails(
- jobStages?.ToList(),
+ jobStages.ToList(),
contactDetails,
shippingAddress,
deliveryPackage,
returnPackage,
- dataImportDetails?.ToList(),
- dataExportDetails?.ToList(),
+ dataImportDetails.ToList(),
+ dataExportDetails.ToList(),
DataBoxOrderType.DataBoxHeavy,
preferences,
reverseShippingDetails,
- copyLogDetails?.ToList(),
+ copyLogDetails.ToList(),
reverseShipmentLabelSasKey,
chainOfCustodySasKey,
deviceErasureDetails,
keyEncryptionKey,
expectedDataSizeInTerabytes,
- actions?.ToList(),
+ actions.ToList(),
lastMitigationActionOnJob,
dataCenterAddress,
dataCenterCode,
- serializedAdditionalRawData: null,
- copyProgress?.ToList(),
+ additionalBinaryDataProperties: null,
+ copyProgress.ToList(),
devicePassword);
}
- /// Initializes a new instance of .
+ /// Databox Job Details.
/// List of stages that run in the job.
/// Contact details for notification and shipping.
/// Shipping address of the customer.
@@ -830,11 +890,7 @@ public static DataBoxHeavyJobDetails DataBoxHeavyJobDetails(IEnumerable Details of the data to be exported from azure.
/// Preferences for the order.
/// Optional Reverse Shipping details for order.
- ///
- /// List of copy log details.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , and .
- ///
+ /// List of copy log details.
/// Shared access key to download the return shipment label.
/// Shared access key to download the chain of custody logs.
/// Holds device data erasure details.
@@ -842,409 +898,450 @@ public static DataBoxHeavyJobDetails DataBoxHeavyJobDetails(IEnumerable The expected size of the data, which needs to be transferred in this job, in terabytes.
/// Available actions on the job.
/// Last mitigation action performed on the job.
- ///
- /// Datacenter address to ship to, for the given sku and storage location.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include and .
- ///
+ /// Datacenter address to ship to, for the given sku and storage location.
/// DataCenter code.
/// Copy progress per storage account.
/// 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 must be minimum of 12 and maximum of 64 characters. Password must have at least one uppercase alphabet, one number and one special character. Password cannot have the following characters : IilLoO0 Password can have only alphabets, numbers and these characters : @#\-$%^!+=;:_()]+.
/// A new instance for mocking.
- public static DataBoxJobDetails DataBoxJobDetails(IEnumerable jobStages = null, DataBoxContactDetails contactDetails = null, DataBoxShippingAddress shippingAddress = null, PackageShippingDetails deliveryPackage = null, PackageShippingDetails returnPackage = null, IEnumerable dataImportDetails = null, IEnumerable dataExportDetails = null, DataBoxOrderPreferences preferences = null, ReverseShippingDetails reverseShippingDetails = null, IEnumerable copyLogDetails = null, string reverseShipmentLabelSasKey = null, string chainOfCustodySasKey = null, DeviceErasureDetails deviceErasureDetails = null, DataBoxKeyEncryptionKey keyEncryptionKey = null, int? expectedDataSizeInTerabytes = null, IEnumerable actions = null, LastMitigationActionOnJob lastMitigationActionOnJob = null, DataCenterAddressResult dataCenterAddress = null, DataCenterCode? dataCenterCode = null, IEnumerable copyProgress = null, string devicePassword = null)
+ public static DataBoxJobDetails DataBoxJobDetails(IEnumerable jobStages = default, DataBoxContactDetails contactDetails = default, DataBoxShippingAddress shippingAddress = default, PackageShippingDetails deliveryPackage = default, PackageShippingDetails returnPackage = default, IEnumerable dataImportDetails = default, IEnumerable dataExportDetails = default, DataBoxOrderPreferences preferences = default, ReverseShippingDetails reverseShippingDetails = default, IEnumerable copyLogDetails = default, string reverseShipmentLabelSasKey = default, string chainOfCustodySasKey = default, DeviceErasureDetails deviceErasureDetails = default, DataBoxKeyEncryptionKey keyEncryptionKey = default, int? expectedDataSizeInTerabytes = default, IEnumerable actions = default, LastMitigationActionOnJob lastMitigationActionOnJob = default, DataCenterAddressResult dataCenterAddress = default, DataCenterCode? dataCenterCode = default, IEnumerable copyProgress = default, string devicePassword = default)
{
- jobStages ??= new List();
- dataImportDetails ??= new List();
- dataExportDetails ??= new List();
- copyLogDetails ??= new List();
- actions ??= new List();
- copyProgress ??= new List();
+ jobStages ??= new ChangeTrackingList();
+ dataImportDetails ??= new ChangeTrackingList();
+ dataExportDetails ??= new ChangeTrackingList();
+ copyLogDetails ??= new ChangeTrackingList();
+ actions ??= new ChangeTrackingList();
+ copyProgress ??= new ChangeTrackingList();
return new DataBoxJobDetails(
- jobStages?.ToList(),
+ jobStages.ToList(),
contactDetails,
shippingAddress,
deliveryPackage,
returnPackage,
- dataImportDetails?.ToList(),
- dataExportDetails?.ToList(),
+ dataImportDetails.ToList(),
+ dataExportDetails.ToList(),
DataBoxOrderType.DataBox,
preferences,
reverseShippingDetails,
- copyLogDetails?.ToList(),
+ copyLogDetails.ToList(),
reverseShipmentLabelSasKey,
chainOfCustodySasKey,
deviceErasureDetails,
keyEncryptionKey,
expectedDataSizeInTerabytes,
- actions?.ToList(),
+ actions.ToList(),
lastMitigationActionOnJob,
dataCenterAddress,
dataCenterCode,
- serializedAdditionalRawData: null,
- copyProgress?.ToList(),
+ additionalBinaryDataProperties: null,
+ copyProgress.ToList(),
devicePassword);
}
- /// Initializes a new instance of .
+ /// Msi identity details of the resource.
+ /// Identity type.
+ /// Service Principal Id backing the Msi.
+ /// Home Tenant Id.
+ /// User Assigned Identities.
+ /// A new instance for mocking.
+ public static ResourceIdentity ResourceIdentity(string @type = default, string principalId = default, string tenantId = default, IDictionary userAssignedIdentities = default)
+ {
+ userAssignedIdentities ??= new ChangeTrackingDictionary();
+
+ return new ResourceIdentity(@type, principalId, tenantId, userAssignedIdentities, additionalBinaryDataProperties: null);
+ }
+
+ /// Details of a job to be updated.
+ /// The list of key value pairs that describe the resource. These tags can be used in viewing and grouping this resource (across resource groups).
+ /// Msi identity of the resource.
+ /// A new instance for mocking.
+ public static DataBoxJobPatch DataBoxJobPatch(UpdateJobDetails details = default, IDictionary tags = default, ResourceIdentity identity = default)
+ {
+ tags ??= new ChangeTrackingDictionary();
+
+ return new DataBoxJobPatch(details is null ? default : new UpdateJobProperties(details, null), tags, identity, additionalBinaryDataProperties: null);
+ }
+
+ /// Shipment pick up request details.
+ /// Minimum date after which the pick up should commence, this must be in local time of pick up area.
+ /// Maximum date before which the pick up should commence, this must be in local time of pick up area.
+ /// Shipment Location in the pickup place. Eg.front desk.
+ /// A new instance for mocking.
+ public static ShipmentPickUpContent ShipmentPickUpContent(DateTimeOffset startOn = default, DateTimeOffset endOn = default, string shipmentLocation = default)
+ {
+ return new ShipmentPickUpContent(startOn, endOn, shipmentLocation, additionalBinaryDataProperties: null);
+ }
+
+ /// Shipment pick up response.
/// Confirmation number for the pick up request.
/// Time by which shipment should be ready for pick up, this is in local time of pick up area.
/// A new instance for mocking.
- public static DataBoxShipmentPickUpResult DataBoxShipmentPickUpResult(string confirmationNumber = null, DateTimeOffset? readyBy = null)
+ public static DataBoxShipmentPickUpResult DataBoxShipmentPickUpResult(string confirmationNumber = default, DateTimeOffset? readyBy = default)
{
- return new DataBoxShipmentPickUpResult(confirmationNumber, readyBy, serializedAdditionalRawData: null);
+ return new DataBoxShipmentPickUpResult(confirmationNumber, readyBy, additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// Reason for cancellation.
+ /// Reason for cancellation.
+ /// A new instance for mocking.
+ public static DataBoxJobCancellationReason DataBoxJobCancellationReason(string reason = default)
+ {
+ return new DataBoxJobCancellationReason(reason, additionalBinaryDataProperties: null);
+ }
+
+ /// Unencrypted credentials for accessing device.
/// Name of the job.
- ///
- /// Secrets related to this job.
- /// Please note is the base class. According to the scenario, a derived class of the base class might need to be assigned here, or this property needs to be casted to one of the possible derived classes.
- /// The available derived classes include , , and .
- ///
+ /// Secrets related to this job.
/// A new instance for mocking.
- public static UnencryptedCredentials UnencryptedCredentials(string jobName = null, JobSecrets jobSecrets = null)
+ public static UnencryptedCredentials UnencryptedCredentials(string jobName = default, JobSecrets jobSecrets = default)
{
- return new UnencryptedCredentials(jobName, jobSecrets, serializedAdditionalRawData: null);
+ return new UnencryptedCredentials(jobName, jobSecrets, additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ ///
+ /// The base class for the secrets
+ /// Please note this is the abstract base class. The derived classes available for instantiation are: , , , and .
+ ///
+ /// Used to indicate what type of job secrets object.
/// Dc Access Security Code for Customer Managed Shipping.
/// Error while fetching the secrets.
/// A new instance for mocking.
- public static JobSecrets JobSecrets(DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, ResponseError error = null)
+ public static JobSecrets JobSecrets(string jobSecretsType = default, DataCenterAccessSecurityCode dataCenterAccessSecurityCode = default, ResponseError error = default)
{
- return new UnknownJobSecrets(default, dataCenterAccessSecurityCode, error, serializedAdditionalRawData: null);
+ return new UnknownJobSecrets(jobSecretsType.ToDataBoxOrderType(), dataCenterAccessSecurityCode, error, additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// Dc access security code.
/// Reverse Dc access security code.
/// Forward Dc access security code.
/// A new instance for mocking.
- public static DataCenterAccessSecurityCode DataCenterAccessSecurityCode(string reverseDataCenterAccessCode = null, string forwardDataCenterAccessCode = null)
+ public static DataCenterAccessSecurityCode DataCenterAccessSecurityCode(string reverseDataCenterAccessCode = default, string forwardDataCenterAccessCode = default)
{
- return new DataCenterAccessSecurityCode(reverseDataCenterAccessCode, forwardDataCenterAccessCode, serializedAdditionalRawData: null);
+ return new DataCenterAccessSecurityCode(reverseDataCenterAccessCode, forwardDataCenterAccessCode, additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// The secrets related to customer disk job.
/// Dc Access Security Code for Customer Managed Shipping.
/// Error while fetching the secrets.
/// Contains the list of secrets object for that device.
/// Carrier Account Number of the customer.
/// A new instance for mocking.
- public static CustomerDiskJobSecrets CustomerDiskJobSecrets(DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, ResponseError error = null, IEnumerable diskSecrets = null, string carrierAccountNumber = null)
+ public static CustomerDiskJobSecrets CustomerDiskJobSecrets(DataCenterAccessSecurityCode dataCenterAccessSecurityCode = default, ResponseError error = default, IEnumerable diskSecrets = default, string carrierAccountNumber = default)
{
- diskSecrets ??= new List();
+ diskSecrets ??= new ChangeTrackingList();
return new CustomerDiskJobSecrets(
DataBoxOrderType.DataBoxCustomerDisk,
dataCenterAccessSecurityCode,
error,
- serializedAdditionalRawData: null,
- diskSecrets?.ToList(),
+ additionalBinaryDataProperties: null,
+ diskSecrets.ToList(),
carrierAccountNumber);
}
- /// Initializes a new instance of .
+ /// Contains all the secrets of a Disk.
/// Serial number of the assigned disk.
/// Bit Locker key of the disk which can be used to unlock the disk to copy data.
/// A new instance for mocking.
- public static DataBoxDiskSecret DataBoxDiskSecret(string diskSerialNumber = null, string bitLockerKey = null)
+ public static DataBoxDiskSecret DataBoxDiskSecret(string diskSerialNumber = default, string bitLockerKey = default)
{
- return new DataBoxDiskSecret(diskSerialNumber, bitLockerKey, serializedAdditionalRawData: null);
+ return new DataBoxDiskSecret(diskSerialNumber, bitLockerKey, additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// The secrets related to disk job.
/// Dc Access Security Code for Customer Managed Shipping.
/// Error while fetching the secrets.
/// Contains the list of secrets object for that device.
/// PassKey for the disk Job.
/// Whether passkey was provided by user.
/// A new instance for mocking.
- public static DataBoxDiskJobSecrets DataBoxDiskJobSecrets(DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, ResponseError error = null, IEnumerable diskSecrets = null, string passkey = null, bool? isPasskeyUserDefined = null)
+ public static DataBoxDiskJobSecrets DataBoxDiskJobSecrets(DataCenterAccessSecurityCode dataCenterAccessSecurityCode = default, ResponseError error = default, IEnumerable diskSecrets = default, string passkey = default, bool? isPasskeyUserDefined = default)
{
- diskSecrets ??= new List();
+ diskSecrets ??= new ChangeTrackingList();
return new DataBoxDiskJobSecrets(
DataBoxOrderType.DataBoxDisk,
dataCenterAccessSecurityCode,
error,
- serializedAdditionalRawData: null,
- diskSecrets?.ToList(),
+ additionalBinaryDataProperties: null,
+ diskSecrets.ToList(),
passkey,
isPasskeyUserDefined);
}
- /// Initializes a new instance of .
+ /// The secrets related to a databox heavy job.
/// Dc Access Security Code for Customer Managed Shipping.
/// Error while fetching the secrets.
/// Contains the list of secret objects for a databox heavy job.
/// A new instance for mocking.
- public static DataBoxHeavyJobSecrets DataBoxHeavyJobSecrets(DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, ResponseError error = null, IEnumerable cabinetPodSecrets = null)
+ public static DataBoxHeavyJobSecrets DataBoxHeavyJobSecrets(DataCenterAccessSecurityCode dataCenterAccessSecurityCode = default, ResponseError error = default, IEnumerable cabinetPodSecrets = default)
{
- cabinetPodSecrets ??= new List();
+ cabinetPodSecrets ??= new ChangeTrackingList();
- return new DataBoxHeavyJobSecrets(DataBoxOrderType.DataBoxHeavy, dataCenterAccessSecurityCode, error, serializedAdditionalRawData: null, cabinetPodSecrets?.ToList());
+ return new DataBoxHeavyJobSecrets(DataBoxOrderType.DataBoxHeavy, dataCenterAccessSecurityCode, error, additionalBinaryDataProperties: null, cabinetPodSecrets.ToList());
}
- /// Initializes a new instance of .
+ /// The secrets related to a databox heavy.
/// Serial number of the assigned device.
/// Password for out of the box experience on device.
/// Network configuration of the appliance.
/// The base 64 encoded public key to authenticate with the device.
/// Per account level access credentials.
/// A new instance for mocking.
- public static DataBoxHeavySecret DataBoxHeavySecret(string deviceSerialNumber = null, string devicePassword = null, IEnumerable networkConfigurations = null, string encodedValidationCertPubKey = null, IEnumerable accountCredentialDetails = null)
+ public static DataBoxHeavySecret DataBoxHeavySecret(string deviceSerialNumber = default, string devicePassword = default, IEnumerable networkConfigurations = default, string encodedValidationCertPubKey = default, IEnumerable accountCredentialDetails = default)
{
- networkConfigurations ??= new List();
- accountCredentialDetails ??= new List();
+ networkConfigurations ??= new ChangeTrackingList();
+ accountCredentialDetails ??= new ChangeTrackingList();
return new DataBoxHeavySecret(
deviceSerialNumber,
devicePassword,
- networkConfigurations?.ToList(),
+ networkConfigurations.ToList(),
encodedValidationCertPubKey,
- accountCredentialDetails?.ToList(),
- serializedAdditionalRawData: null);
+ accountCredentialDetails.ToList(),
+ additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// The Network Adapter configuration of a DataBox.
/// Name of the network.
/// Mac Address.
/// A new instance for mocking.
- public static ApplianceNetworkConfiguration ApplianceNetworkConfiguration(string name = null, string macAddress = null)
+ public static ApplianceNetworkConfiguration ApplianceNetworkConfiguration(string name = default, string macAddress = default)
{
- return new ApplianceNetworkConfiguration(name, macAddress, serializedAdditionalRawData: null);
+ return new ApplianceNetworkConfiguration(name, macAddress, additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// Credential details of the account.
/// Name of the account.
/// Type of the account.
/// Connection string of the account endpoint to use the account as a storage endpoint on the device.
/// Per share level unencrypted access credentials.
/// A new instance for mocking.
- public static DataBoxAccountCredentialDetails DataBoxAccountCredentialDetails(string accountName = null, DataAccountType? dataAccountType = null, string accountConnectionString = null, IEnumerable shareCredentialDetails = null)
+ public static DataBoxAccountCredentialDetails DataBoxAccountCredentialDetails(string accountName = default, DataAccountType? dataAccountType = default, string accountConnectionString = default, IEnumerable shareCredentialDetails = default)
{
- shareCredentialDetails ??= new List();
+ shareCredentialDetails ??= new ChangeTrackingList();
- return new DataBoxAccountCredentialDetails(accountName, dataAccountType, accountConnectionString, shareCredentialDetails?.ToList(), serializedAdditionalRawData: null);
+ return new DataBoxAccountCredentialDetails(accountName, dataAccountType, accountConnectionString, shareCredentialDetails.ToList(), additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// Credential details of the shares in account.
/// Name of the share.
/// Type of the share.
/// User name for the share.
/// Password for the share.
/// Access protocols supported on the device.
/// A new instance for mocking.
- public static ShareCredentialDetails ShareCredentialDetails(string shareName = null, ShareDestinationFormatType? shareType = null, string userName = null, string password = null, IEnumerable supportedAccessProtocols = null)
+ public static ShareCredentialDetails ShareCredentialDetails(string shareName = default, ShareDestinationFormatType? shareType = default, string userName = default, string password = default, IEnumerable supportedAccessProtocols = default)
{
- supportedAccessProtocols ??= new List();
+ supportedAccessProtocols ??= new ChangeTrackingList();
return new ShareCredentialDetails(
shareName,
shareType,
userName,
password,
- supportedAccessProtocols?.ToList(),
- serializedAdditionalRawData: null);
+ supportedAccessProtocols.ToList(),
+ additionalBinaryDataProperties: null);
}
- /// Initializes a new instance of .
+ /// The secrets related to a databox job.
/// Dc Access Security Code for Customer Managed Shipping.
/// Error while fetching the secrets.
/// Contains the list of secret objects for a job.
/// A new instance for mocking.
- public static DataBoxJobSecrets DataBoxJobSecrets(DataCenterAccessSecurityCode dataCenterAccessSecurityCode = null, ResponseError error = null, IEnumerable podSecrets = null)
+ public static DataBoxJobSecrets DataBoxJobSecrets(DataCenterAccessSecurityCode dataCenterAccessSecurityCode = default, ResponseError error = default, IEnumerable podSecrets = default)
{
- podSecrets ??= new List();
+ podSecrets ??= new ChangeTrackingList();
- return new DataBoxJobSecrets(DataBoxOrderType.DataBox, dataCenterAccessSecurityCode, error, serializedAdditionalRawData: null, podSecrets?.ToList());
+ return new DataBoxJobSecrets(DataBoxOrderType.DataBox, dataCenterAccessSecurityCode, error, additionalBinaryDataProperties: null, podSecrets.ToList());
}
- /// Initializes a new instance of .
+ /// The secrets related to a DataBox.
/// Serial number of the assigned device.
/// Password for out of the box experience on device.
/// Network configuration of the appliance.
/// The base 64 encoded public key to authenticate with the device.
/// Per account level access credentials.
/// A new instance for mocking.
- public static DataBoxSecret DataBoxSecret(string deviceSerialNumber = null, string devicePassword = null, IEnumerable networkConfigurations = null, string encodedValidationCertPubKey = null, IEnumerable accountCredentialDetails = null)
+ public static DataBoxSecret DataBoxSecret(string deviceSerialNumber = default, string devicePassword = default, IEnumerable networkConfigurations = default, string encodedValidationCertPubKey = default, IEnumerable