diff --git a/eng/mgmt/mgmtmetadata/databox_resource-manager.txt b/eng/mgmt/mgmtmetadata/databox_resource-manager.txt
new file mode 100644
index 0000000000000..a58b8569bb2ae
--- /dev/null
+++ b/eng/mgmt/mgmtmetadata/databox_resource-manager.txt
@@ -0,0 +1,14 @@
+Installing AutoRest version: latest
+AutoRest installed successfully.
+Commencing code generation
+Generating CSharp code
+Executing AutoRest command
+cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/databox/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --tag=package-2019-09 --csharp-sdks-folder=D:\god\azure_sdk_net\azure-sdk-for-net\sdk
+2019-10-17 06:34:11 UTC
+Azure-rest-api-specs repository information
+GitHub fork: Azure
+Branch: master
+Commit: 59998f796f05580bc1d43ba39f0170204113fa91
+AutoRest information
+Requested version: latest
+Bootstrapper version: autorest@2.0.4283
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/AzSdk.RP.props b/sdk/databox/Microsoft.Azure.Management.DataBox/AzSdk.RP.props
index 009051ddc9d42..8bf12b987e436 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/AzSdk.RP.props
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/AzSdk.RP.props
@@ -1,7 +1,7 @@
- DataBox_2018-01-01;
+ DataBox_2018-01-01;DataBox_2019-09-01;
$(PackageTags);$(CommonTags);$(AzureApiTag);
\ No newline at end of file
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/DataBoxManagementClient.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/DataBoxManagementClient.cs
index f23f6669f933e..0da450cd75810 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/DataBoxManagementClient.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/DataBoxManagementClient.cs
@@ -331,7 +331,7 @@ private void Initialize()
Jobs = new JobsOperations(this);
Service = new ServiceOperations(this);
BaseUri = new System.Uri("https://management.azure.com");
- ApiVersion = "2018-01-01";
+ ApiVersion = "2019-09-01";
AcceptLanguage = "en-US";
LongRunningOperationRetryTimeout = 30;
GenerateClientRequestId = true;
@@ -363,10 +363,20 @@ private void Initialize()
};
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("copyLogDetailsType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("copyLogDetailsType"));
+ SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("dataDestinationType"));
+ DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("dataDestinationType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("jobDetailsType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("jobDetailsType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("jobSecretsType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("jobSecretsType"));
+ SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("skuName"));
+ DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("skuName"));
+ SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("validationType"));
+ DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("validationType"));
+ SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("validationType"));
+ DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("validationType"));
+ SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter("validationCategory"));
+ DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter("validationCategory"));
CustomInitialize();
DeserializationSettings.Converters.Add(new TransformationJsonConverter());
DeserializationSettings.Converters.Add(new CloudErrorJsonConverter());
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/IServiceOperations.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/IServiceOperations.cs
index 8fa91cdaa08e3..eaa5a9811a83f 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/IServiceOperations.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/IServiceOperations.cs
@@ -50,18 +50,74 @@ public partial interface IServiceOperations
///
Task>> ListAvailableSkusWithHttpMessagesAsync(string location, AvailableSkuRequest availableSkuRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
- /// This method validates the customer shipping address and provide
+ /// This method provides the list of available skus for the given
+ /// subscription, resource group and location.
+ ///
+ ///
+ /// The Resource Group Name
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Filters for showing the available skus.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListAvailableSkusByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string location, AvailableSkuRequest availableSkuRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// [DEPRECATED NOTICE: This operation will soon be removed] This
+ /// method validates the customer shipping address and provide
/// alternate addresses if any.
///
///
/// The location of the resource
///
- ///
+ ///
/// Shipping address of the customer.
///
- ///
- /// Device type to be used for the job. Possible values include:
- /// 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ [System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
+ Task> ValidateAddressMethodWithHttpMessagesAsync(string location, ValidateAddress validateAddress, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// This method does all necessary pre-job creation validation under
+ /// resource group.
+ ///
+ ///
+ /// The Resource Group Name
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Inputs of the customer.
///
///
/// The headers that will be added to request.
@@ -78,7 +134,62 @@ public partial interface IServiceOperations
///
/// Thrown when a required parameter is null
///
- Task> ValidateAddressMethodWithHttpMessagesAsync(string location, ShippingAddress shippingAddress, SkuName deviceType, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ Task> ValidateInputsByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string location, ValidationRequest validationRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// This method does all necessary pre-job creation validation under
+ /// subscription.
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Inputs of the customer.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> ValidateInputsWithHttpMessagesAsync(string location, ValidationRequest validationRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// This API provides configuration details specific to given
+ /// region/location.
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Request body to get the availability for scheduling orders.
+ ///
+ ///
+ /// Request body to get the transport availability for given sku.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task> RegionConfigurationWithHttpMessagesAsync(string location, ScheduleAvailabilityRequest scheduleAvailabilityRequest = default(ScheduleAvailabilityRequest), TransportAvailabilityRequest transportAvailabilityRequest = default(TransportAvailabilityRequest), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
///
/// This method provides the list of available skus for the given
/// subscription and location.
@@ -102,5 +213,28 @@ public partial interface IServiceOperations
/// Thrown when a required parameter is null
///
Task>> ListAvailableSkusNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
+ ///
+ /// This method provides the list of available skus for the given
+ /// subscription, resource group and location.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ Task>> ListAvailableSkusByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken));
}
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AccountCredentialDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AccountCredentialDetails.cs
index fe31670b60816..d7411ee26cc62 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AccountCredentialDetails.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AccountCredentialDetails.cs
@@ -32,14 +32,17 @@ public AccountCredentialDetails()
/// Initializes a new instance of the AccountCredentialDetails class.
///
/// Name of the account.
+ /// Data Destination Type. Possible
+ /// values include: 'StorageAccount', 'ManagedDisk'
/// Connection string of the
/// account endpoint to use the account as a storage endpoint on the
/// device.
/// Per share level unencrypted
/// access credentials.
- public AccountCredentialDetails(string accountName = default(string), string accountConnectionString = default(string), IList shareCredentialDetails = default(IList))
+ public AccountCredentialDetails(string accountName = default(string), DataDestinationType? dataDestinationType = default(DataDestinationType?), string accountConnectionString = default(string), IList shareCredentialDetails = default(IList))
{
AccountName = accountName;
+ DataDestinationType = dataDestinationType;
AccountConnectionString = accountConnectionString;
ShareCredentialDetails = shareCredentialDetails;
CustomInit();
@@ -56,6 +59,13 @@ public AccountCredentialDetails()
[JsonProperty(PropertyName = "accountName")]
public string AccountName { get; private set; }
+ ///
+ /// Gets data Destination Type. Possible values include:
+ /// 'StorageAccount', 'ManagedDisk'
+ ///
+ [JsonProperty(PropertyName = "dataDestinationType")]
+ public DataDestinationType? DataDestinationType { get; private set; }
+
///
/// Gets connection string of the account endpoint to use the account
/// as a storage endpoint on the device.
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationOutput.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationOutput.cs
index 8b85ad385e5aa..92b7ca3ea7711 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationOutput.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationOutput.cs
@@ -34,12 +34,15 @@ public AddressValidationOutput()
///
/// Initializes a new instance of the AddressValidationOutput class.
///
+ /// Error code and message of validation
+ /// response.
/// The address validation status.
/// Possible values include: 'Valid', 'Invalid', 'Ambiguous'
/// List of alternate
/// addresses.
- public AddressValidationOutput(AddressValidationStatus? validationStatus = default(AddressValidationStatus?), IList alternateAddresses = default(IList))
+ public AddressValidationOutput(Error error = default(Error), AddressValidationStatus? validationStatus = default(AddressValidationStatus?), IList alternateAddresses = default(IList))
{
+ Error = error;
ValidationStatus = validationStatus;
AlternateAddresses = alternateAddresses;
CustomInit();
@@ -50,6 +53,12 @@ public AddressValidationOutput()
///
partial void CustomInit();
+ ///
+ /// Gets error code and message of validation response.
+ ///
+ [JsonProperty(PropertyName = "properties.error")]
+ public Error Error { get; private set; }
+
///
/// Gets the address validation status. Possible values include:
/// 'Valid', 'Invalid', 'Ambiguous'
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationProperties.cs
new file mode 100644
index 0000000000000..0e95fb2ff5779
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/AddressValidationProperties.cs
@@ -0,0 +1,70 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// The address validation output.
+ ///
+ [Newtonsoft.Json.JsonObject("ValidateAddress")]
+ public partial class AddressValidationProperties : ValidationInputResponse
+ {
+ ///
+ /// Initializes a new instance of the AddressValidationProperties
+ /// class.
+ ///
+ public AddressValidationProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the AddressValidationProperties
+ /// class.
+ ///
+ /// Error code and message of validation
+ /// response.
+ /// The address validation status.
+ /// Possible values include: 'Valid', 'Invalid', 'Ambiguous'
+ /// List of alternate
+ /// addresses.
+ public AddressValidationProperties(Error error = default(Error), AddressValidationStatus? validationStatus = default(AddressValidationStatus?), IList alternateAddresses = default(IList))
+ : base(error)
+ {
+ ValidationStatus = validationStatus;
+ AlternateAddresses = alternateAddresses;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets the address validation status. Possible values include:
+ /// 'Valid', 'Invalid', 'Ambiguous'
+ ///
+ [JsonProperty(PropertyName = "validationStatus")]
+ public AddressValidationStatus? ValidationStatus { get; private set; }
+
+ ///
+ /// Gets list of alternate addresses.
+ ///
+ [JsonProperty(PropertyName = "alternateAddresses")]
+ public IList AlternateAddresses { get; private set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyProgress.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyProgress.cs
index 6f77dc2efd87e..6dc761ebe049a 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyProgress.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyProgress.cs
@@ -31,18 +31,42 @@ public CopyProgress()
///
/// Name of the storage account where
/// the data needs to be uploaded.
+ /// Data Destination Type. Possible
+ /// values include: 'StorageAccount', 'ManagedDisk'
/// Id of the account where the data needs to
/// be uploaded.
/// Amount of data uploaded by the job
/// as of now.
/// Total amount of data to be
/// processed by the job.
- public CopyProgress(string storageAccountName = default(string), string accountId = default(string), long? bytesSentToCloud = default(long?), long? totalBytesToProcess = default(long?))
+ /// Number of files processed by the job
+ /// as of now.
+ /// Total number of files to be
+ /// processed by the job.
+ /// Number of files not adhering to
+ /// azure naming conventions which were processed by automatic
+ /// renaming
+ /// Total amount of data not
+ /// adhering to azure naming conventions which were processed by
+ /// automatic renaming
+ /// Number of folders not adhering
+ /// to azure naming conventions which were processed by automatic
+ /// renaming
+ /// Number of files which could not be
+ /// copied
+ public CopyProgress(string storageAccountName = default(string), DataDestinationType? dataDestinationType = default(DataDestinationType?), string accountId = default(string), long? bytesSentToCloud = default(long?), long? totalBytesToProcess = default(long?), long? filesProcessed = default(long?), long? totalFilesToProcess = default(long?), long? invalidFilesProcessed = default(long?), long? invalidFileBytesUploaded = default(long?), long? renamedContainerCount = default(long?), long? filesErroredOut = default(long?))
{
StorageAccountName = storageAccountName;
+ DataDestinationType = dataDestinationType;
AccountId = accountId;
BytesSentToCloud = bytesSentToCloud;
TotalBytesToProcess = totalBytesToProcess;
+ FilesProcessed = filesProcessed;
+ TotalFilesToProcess = totalFilesToProcess;
+ InvalidFilesProcessed = invalidFilesProcessed;
+ InvalidFileBytesUploaded = invalidFileBytesUploaded;
+ RenamedContainerCount = renamedContainerCount;
+ FilesErroredOut = filesErroredOut;
CustomInit();
}
@@ -58,6 +82,13 @@ public CopyProgress()
[JsonProperty(PropertyName = "storageAccountName")]
public string StorageAccountName { get; private set; }
+ ///
+ /// Gets data Destination Type. Possible values include:
+ /// 'StorageAccount', 'ManagedDisk'
+ ///
+ [JsonProperty(PropertyName = "dataDestinationType")]
+ public DataDestinationType? DataDestinationType { get; private set; }
+
///
/// Gets id of the account where the data needs to be uploaded.
///
@@ -76,5 +107,44 @@ public CopyProgress()
[JsonProperty(PropertyName = "totalBytesToProcess")]
public long? TotalBytesToProcess { get; private set; }
+ ///
+ /// Gets number of files processed by the job as of now.
+ ///
+ [JsonProperty(PropertyName = "filesProcessed")]
+ public long? FilesProcessed { get; private set; }
+
+ ///
+ /// Gets total number of files to be processed by the job.
+ ///
+ [JsonProperty(PropertyName = "totalFilesToProcess")]
+ public long? TotalFilesToProcess { get; private set; }
+
+ ///
+ /// Gets number of files not adhering to azure naming conventions which
+ /// were processed by automatic renaming
+ ///
+ [JsonProperty(PropertyName = "invalidFilesProcessed")]
+ public long? InvalidFilesProcessed { get; private set; }
+
+ ///
+ /// Gets total amount of data not adhering to azure naming conventions
+ /// which were processed by automatic renaming
+ ///
+ [JsonProperty(PropertyName = "invalidFileBytesUploaded")]
+ public long? InvalidFileBytesUploaded { get; private set; }
+
+ ///
+ /// Gets number of folders not adhering to azure naming conventions
+ /// which were processed by automatic renaming
+ ///
+ [JsonProperty(PropertyName = "renamedContainerCount")]
+ public long? RenamedContainerCount { get; private set; }
+
+ ///
+ /// Gets number of files which could not be copied
+ ///
+ [JsonProperty(PropertyName = "filesErroredOut")]
+ public long? FilesErroredOut { get; private set; }
+
}
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyStatus.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyStatus.cs
index 9cdfab41d44e9..f159af11832b1 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyStatus.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CopyStatus.cs
@@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.DataBox.Models
public enum CopyStatus
{
///
- /// Data copy hasnt started yet.
+ /// Data copy hasn't started yet.
///
[EnumMember(Value = "NotStarted")]
NotStarted,
@@ -50,7 +50,32 @@ public enum CopyStatus
/// No copy triggered as device was not returned.
///
[EnumMember(Value = "NotReturned")]
- NotReturned
+ NotReturned,
+ ///
+ /// The Device has hit hardware issues.
+ ///
+ [EnumMember(Value = "HardwareError")]
+ HardwareError,
+ ///
+ /// Data copy failed. The Device was formatted by user.
+ ///
+ [EnumMember(Value = "DeviceFormatted")]
+ DeviceFormatted,
+ ///
+ /// Data copy failed. Device metadata was modified by user.
+ ///
+ [EnumMember(Value = "DeviceMetadataModified")]
+ DeviceMetadataModified,
+ ///
+ /// Data copy failed. Storage Account was not accessible during copy.
+ ///
+ [EnumMember(Value = "StorageAccountNotAccessible")]
+ StorageAccountNotAccessible,
+ ///
+ /// Data copy failed. The Device data content is not supported.
+ ///
+ [EnumMember(Value = "UnsupportedData")]
+ UnsupportedData
}
internal static class CopyStatusEnumExtension
{
@@ -75,6 +100,16 @@ internal static string ToSerializedValue(this CopyStatus value)
return "Failed";
case CopyStatus.NotReturned:
return "NotReturned";
+ case CopyStatus.HardwareError:
+ return "HardwareError";
+ case CopyStatus.DeviceFormatted:
+ return "DeviceFormatted";
+ case CopyStatus.DeviceMetadataModified:
+ return "DeviceMetadataModified";
+ case CopyStatus.StorageAccountNotAccessible:
+ return "StorageAccountNotAccessible";
+ case CopyStatus.UnsupportedData:
+ return "UnsupportedData";
}
return null;
}
@@ -95,6 +130,16 @@ internal static string ToSerializedValue(this CopyStatus value)
return CopyStatus.Failed;
case "NotReturned":
return CopyStatus.NotReturned;
+ case "HardwareError":
+ return CopyStatus.HardwareError;
+ case "DeviceFormatted":
+ return CopyStatus.DeviceFormatted;
+ case "DeviceMetadataModified":
+ return CopyStatus.DeviceMetadataModified;
+ case "StorageAccountNotAccessible":
+ return CopyStatus.StorageAccountNotAccessible;
+ case "UnsupportedData":
+ return CopyStatus.UnsupportedData;
}
return null;
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateJobValidations.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateJobValidations.cs
new file mode 100644
index 0000000000000..39c4029b32422
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateJobValidations.cs
@@ -0,0 +1,60 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// It does all pre-job creation validations.
+ ///
+ [Newtonsoft.Json.JsonObject("JobCreationValidation")]
+ public partial class CreateJobValidations : ValidationRequest
+ {
+ ///
+ /// Initializes a new instance of the CreateJobValidations class.
+ ///
+ public CreateJobValidations()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the CreateJobValidations class.
+ ///
+ /// List of request details
+ /// contain validationType and its request as key and value
+ /// respectively.
+ public CreateJobValidations(IList individualRequestDetails)
+ : base(individualRequestDetails)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public override void Validate()
+ {
+ base.Validate();
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationRequest.cs
new file mode 100644
index 0000000000000..40c45e8828d52
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationRequest.cs
@@ -0,0 +1,66 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Request to validate create order limit for current subscription.
+ ///
+ [Newtonsoft.Json.JsonObject("ValidateCreateOrderLimit")]
+ public partial class CreateOrderLimitForSubscriptionValidationRequest : ValidationInputRequest
+ {
+ ///
+ /// Initializes a new instance of the
+ /// CreateOrderLimitForSubscriptionValidationRequest class.
+ ///
+ public CreateOrderLimitForSubscriptionValidationRequest()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// CreateOrderLimitForSubscriptionValidationRequest class.
+ ///
+ /// Device type to be used for the job.
+ /// Possible values include: 'DataBox', 'DataBoxDisk',
+ /// 'DataBoxHeavy'
+ public CreateOrderLimitForSubscriptionValidationRequest(SkuName deviceType)
+ {
+ DeviceType = deviceType;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets device type to be used for the job. Possible values
+ /// include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
+ ///
+ [JsonProperty(PropertyName = "deviceType")]
+ public SkuName DeviceType { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationResponseProperties.cs
new file mode 100644
index 0000000000000..7e8ea02a7d757
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/CreateOrderLimitForSubscriptionValidationResponseProperties.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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Properties of create order limit for subscription validation response.
+ ///
+ [Newtonsoft.Json.JsonObject("ValidateCreateOrderLimit")]
+ public partial class CreateOrderLimitForSubscriptionValidationResponseProperties : ValidationInputResponse
+ {
+ ///
+ /// Initializes a new instance of the
+ /// CreateOrderLimitForSubscriptionValidationResponseProperties class.
+ ///
+ public CreateOrderLimitForSubscriptionValidationResponseProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// CreateOrderLimitForSubscriptionValidationResponseProperties class.
+ ///
+ /// Error code and message of validation
+ /// response.
+ /// Create order limit validation status. Possible
+ /// values include: 'Valid', 'Invalid', 'Skipped'
+ public CreateOrderLimitForSubscriptionValidationResponseProperties(Error error = default(Error), ValidationStatus? status = default(ValidationStatus?))
+ : base(error)
+ {
+ Status = status;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets create order limit validation status. Possible values include:
+ /// 'Valid', 'Invalid', 'Skipped'
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public ValidationStatus? Status { get; private set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs
index 4589f8bee8553..e137c3b7481d6 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskCopyProgress.cs
@@ -36,7 +36,9 @@ public DataBoxDiskCopyProgress()
/// for the copy of the disk.
/// The Status of the copy. Possible values
/// include: 'NotStarted', 'InProgress', 'Completed',
- /// 'CompletedWithErrors', 'Failed', 'NotReturned'
+ /// 'CompletedWithErrors', 'Failed', 'NotReturned', 'HardwareError',
+ /// 'DeviceFormatted', 'DeviceMetadataModified',
+ /// 'StorageAccountNotAccessible', 'UnsupportedData'
public DataBoxDiskCopyProgress(string serialNumber = default(string), long? bytesCopied = default(long?), int? percentComplete = default(int?), CopyStatus? status = default(CopyStatus?))
{
SerialNumber = serialNumber;
@@ -72,7 +74,9 @@ public DataBoxDiskCopyProgress()
///
/// Gets the Status of the copy. Possible values include: 'NotStarted',
/// 'InProgress', 'Completed', 'CompletedWithErrors', 'Failed',
- /// 'NotReturned'
+ /// 'NotReturned', 'HardwareError', 'DeviceFormatted',
+ /// 'DeviceMetadataModified', 'StorageAccountNotAccessible',
+ /// 'UnsupportedData'
///
[JsonProperty(PropertyName = "status")]
public CopyStatus? Status { get; private set; }
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs
index 06b6430f72b65..ca94c148aa459 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobDetails.cs
@@ -38,9 +38,9 @@ public DataBoxDiskJobDetails()
/// customer.
/// Destination account
/// details.
- /// The expected size of the
- /// data, which needs to be transfered in this job, in tera
- /// bytes.
+ /// The expected size of the
+ /// data, which needs to be transferred in this job, in
+ /// terabytes.
/// List of stages that run in the job.
/// Delivery package shipping
/// details.
@@ -64,8 +64,8 @@ public DataBoxDiskJobDetails()
/// after the disks are shipped to the customer.
/// User entered passkey for DataBox Disk
/// job.
- public DataBoxDiskJobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTeraBytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), IDictionary preferredDisks = default(IDictionary), IList copyProgress = default(IList), IDictionary disksAndSizeDetails = default(IDictionary), string passkey = default(string))
- : base(contactDetails, shippingAddress, destinationAccountDetails, expectedDataSizeInTeraBytes, jobStages, deliveryPackage, returnPackage, errorDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey)
+ public DataBoxDiskJobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTerabytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), IDictionary preferredDisks = default(IDictionary), IList copyProgress = default(IList), IDictionary disksAndSizeDetails = default(IDictionary), string passkey = default(string))
+ : base(contactDetails, shippingAddress, destinationAccountDetails, expectedDataSizeInTerabytes, jobStages, deliveryPackage, returnPackage, errorDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey)
{
PreferredDisks = preferredDisks;
CopyProgress = copyProgress;
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs
index ec536c9c9e7a1..9a9612da52224 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxDiskJobSecrets.cs
@@ -32,12 +32,15 @@ public DataBoxDiskJobSecrets()
///
/// Initializes a new instance of the DataBoxDiskJobSecrets class.
///
+ /// Dc Access Security Code for
+ /// Customer Managed Shipping
/// Contains the list of secrets object for
/// that device.
/// PassKey for the disk Job.
/// Whether passkey was provided by
/// user.
- public DataBoxDiskJobSecrets(IList diskSecrets = default(IList), string passKey = default(string), bool? isPasskeyUserDefined = default(bool?))
+ public DataBoxDiskJobSecrets(DcAccessSecurityCode dcAccessSecurityCode = default(DcAccessSecurityCode), IList diskSecrets = default(IList), string passKey = default(string), bool? isPasskeyUserDefined = default(bool?))
+ : base(dcAccessSecurityCode)
{
DiskSecrets = diskSecrets;
PassKey = passKey;
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs
index 00f05177d48b5..dfbf1b3eac922 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobDetails.cs
@@ -38,9 +38,9 @@ public DataBoxHeavyJobDetails()
/// customer.
/// Destination account
/// details.
- /// The expected size of the
- /// data, which needs to be transfered in this job, in tera
- /// bytes.
+ /// The expected size of the
+ /// data, which needs to be transferred in this job, in
+ /// terabytes.
/// List of stages that run in the job.
/// Delivery package shipping
/// details.
@@ -55,10 +55,13 @@ public DataBoxHeavyJobDetails()
/// Shared access key to download
/// the chain of custody logs
/// Copy progress per account.
- public DataBoxHeavyJobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTeraBytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), IList copyProgress = default(IList))
- : base(contactDetails, shippingAddress, destinationAccountDetails, expectedDataSizeInTeraBytes, jobStages, deliveryPackage, returnPackage, errorDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey)
+ /// Set Device password for unlocking
+ /// Databox Heavy
+ public DataBoxHeavyJobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTerabytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), IList copyProgress = default(IList), string devicePassword = default(string))
+ : base(contactDetails, shippingAddress, destinationAccountDetails, expectedDataSizeInTerabytes, jobStages, deliveryPackage, returnPackage, errorDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey)
{
CopyProgress = copyProgress;
+ DevicePassword = devicePassword;
CustomInit();
}
@@ -73,6 +76,12 @@ public DataBoxHeavyJobDetails()
[JsonProperty(PropertyName = "copyProgress")]
public IList CopyProgress { get; private set; }
+ ///
+ /// Gets or sets set Device password for unlocking Databox Heavy
+ ///
+ [JsonProperty(PropertyName = "devicePassword")]
+ public string DevicePassword { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs
index 234c8bbc96ee3..bb493239b4f58 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxHeavyJobSecrets.cs
@@ -32,9 +32,12 @@ public DataBoxHeavyJobSecrets()
///
/// Initializes a new instance of the DataBoxHeavyJobSecrets class.
///
+ /// Dc Access Security Code for
+ /// Customer Managed Shipping
/// Contains the list of secret objects
/// for a databox heavy job.
- public DataBoxHeavyJobSecrets(IList cabinetPodSecrets = default(IList))
+ public DataBoxHeavyJobSecrets(DcAccessSecurityCode dcAccessSecurityCode = default(DcAccessSecurityCode), IList cabinetPodSecrets = default(IList))
+ : base(dcAccessSecurityCode)
{
CabinetPodSecrets = cabinetPodSecrets;
CustomInit();
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxJobDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxJobDetails.cs
index c8eae1e79577e..22b3ae5e9aee8 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxJobDetails.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxJobDetails.cs
@@ -38,9 +38,9 @@ public DataBoxJobDetails()
/// customer.
/// Destination account
/// details.
- /// The expected size of the
- /// data, which needs to be transfered in this job, in tera
- /// bytes.
+ /// The expected size of the
+ /// data, which needs to be transferred in this job, in
+ /// terabytes.
/// List of stages that run in the job.
/// Delivery package shipping
/// details.
@@ -56,10 +56,13 @@ public DataBoxJobDetails()
/// the chain of custody logs
/// Copy progress per storage
/// account.
- public DataBoxJobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTeraBytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), IList copyProgress = default(IList))
- : base(contactDetails, shippingAddress, destinationAccountDetails, expectedDataSizeInTeraBytes, jobStages, deliveryPackage, returnPackage, errorDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey)
+ /// Set Device password for unlocking
+ /// Databox
+ public DataBoxJobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTerabytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string), IList copyProgress = default(IList), string devicePassword = default(string))
+ : base(contactDetails, shippingAddress, destinationAccountDetails, expectedDataSizeInTerabytes, jobStages, deliveryPackage, returnPackage, errorDetails, preferences, copyLogDetails, reverseShipmentLabelSasKey, chainOfCustodySasKey)
{
CopyProgress = copyProgress;
+ DevicePassword = devicePassword;
CustomInit();
}
@@ -74,6 +77,12 @@ public DataBoxJobDetails()
[JsonProperty(PropertyName = "copyProgress")]
public IList CopyProgress { get; private set; }
+ ///
+ /// Gets or sets set Device password for unlocking Databox
+ ///
+ [JsonProperty(PropertyName = "devicePassword")]
+ public string DevicePassword { get; set; }
+
///
/// Validate the object.
///
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxScheduleAvailabilityRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxScheduleAvailabilityRequest.cs
new file mode 100644
index 0000000000000..6ac87e14452df
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataBoxScheduleAvailabilityRequest.cs
@@ -0,0 +1,61 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Request body to get the availability for scheduling data box orders
+ /// orders.
+ ///
+ [Newtonsoft.Json.JsonObject("DataBox")]
+ public partial class DataBoxScheduleAvailabilityRequest : ScheduleAvailabilityRequest
+ {
+ ///
+ /// Initializes a new instance of the
+ /// DataBoxScheduleAvailabilityRequest class.
+ ///
+ public DataBoxScheduleAvailabilityRequest()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// DataBoxScheduleAvailabilityRequest class.
+ ///
+ /// Location for data transfer.
+ /// For locations check:
+ /// https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01
+ public DataBoxScheduleAvailabilityRequest(string storageLocation)
+ : base(storageLocation)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public override void Validate()
+ {
+ base.Validate();
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationDetailsValidationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationDetailsValidationRequest.cs
new file mode 100644
index 0000000000000..b9e1edfb176a9
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationDetailsValidationRequest.cs
@@ -0,0 +1,83 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Request to validate data destination details.
+ ///
+ [Newtonsoft.Json.JsonObject("ValidateDataDestinationDetails")]
+ public partial class DataDestinationDetailsValidationRequest : ValidationInputRequest
+ {
+ ///
+ /// Initializes a new instance of the
+ /// DataDestinationDetailsValidationRequest class.
+ ///
+ public DataDestinationDetailsValidationRequest()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// DataDestinationDetailsValidationRequest class.
+ ///
+ /// Destination account details
+ /// list.
+ /// Location of stamp or geo.
+ public DataDestinationDetailsValidationRequest(IList destinationAccountDetails, string location)
+ {
+ DestinationAccountDetails = destinationAccountDetails;
+ Location = location;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets destination account details list.
+ ///
+ [JsonProperty(PropertyName = "destinationAccountDetails")]
+ public IList DestinationAccountDetails { get; set; }
+
+ ///
+ /// Gets or sets location of stamp or geo.
+ ///
+ [JsonProperty(PropertyName = "location")]
+ public string Location { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (DestinationAccountDetails == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "DestinationAccountDetails");
+ }
+ if (Location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Location");
+ }
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationDetailsValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationDetailsValidationResponseProperties.cs
new file mode 100644
index 0000000000000..cf77b4b3db2f5
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationDetailsValidationResponseProperties.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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Properties of data destination details validation response.
+ ///
+ [Newtonsoft.Json.JsonObject("ValidateDataDestinationDetails")]
+ public partial class DataDestinationDetailsValidationResponseProperties : ValidationInputResponse
+ {
+ ///
+ /// Initializes a new instance of the
+ /// DataDestinationDetailsValidationResponseProperties class.
+ ///
+ public DataDestinationDetailsValidationResponseProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// DataDestinationDetailsValidationResponseProperties class.
+ ///
+ /// Error code and message of validation
+ /// response.
+ /// Data destination details validation status.
+ /// Possible values include: 'Valid', 'Invalid', 'Skipped'
+ public DataDestinationDetailsValidationResponseProperties(Error error = default(Error), ValidationStatus? status = default(ValidationStatus?))
+ : base(error)
+ {
+ Status = status;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets data destination details validation status. Possible values
+ /// include: 'Valid', 'Invalid', 'Skipped'
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public ValidationStatus? Status { get; private set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationType.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationType.cs
new file mode 100644
index 0000000000000..4e4cd79baad5f
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataDestinationType.cs
@@ -0,0 +1,66 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using System.Runtime;
+ using System.Runtime.Serialization;
+
+ ///
+ /// Defines values for DataDestinationType.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum DataDestinationType
+ {
+ ///
+ /// Storage Accounts .
+ ///
+ [EnumMember(Value = "StorageAccount")]
+ StorageAccount,
+ ///
+ /// Azure Managed disk storage.
+ ///
+ [EnumMember(Value = "ManagedDisk")]
+ ManagedDisk
+ }
+ internal static class DataDestinationTypeEnumExtension
+ {
+ internal static string ToSerializedValue(this DataDestinationType? value)
+ {
+ return value == null ? null : ((DataDestinationType)value).ToSerializedValue();
+ }
+
+ internal static string ToSerializedValue(this DataDestinationType value)
+ {
+ switch( value )
+ {
+ case DataDestinationType.StorageAccount:
+ return "StorageAccount";
+ case DataDestinationType.ManagedDisk:
+ return "ManagedDisk";
+ }
+ return null;
+ }
+
+ internal static DataDestinationType? ParseDataDestinationType(this string value)
+ {
+ switch( value )
+ {
+ case "StorageAccount":
+ return DataDestinationType.StorageAccount;
+ case "ManagedDisk":
+ return DataDestinationType.ManagedDisk;
+ }
+ return null;
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataboxJobSecrets.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataboxJobSecrets.cs
index 67c6a315dbdba..baf1c84a336bc 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataboxJobSecrets.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DataboxJobSecrets.cs
@@ -32,9 +32,12 @@ public DataboxJobSecrets()
///
/// Initializes a new instance of the DataboxJobSecrets class.
///
+ /// Dc Access Security Code for
+ /// Customer Managed Shipping
/// Contains the list of secret objects for a
/// job.
- public DataboxJobSecrets(IList podSecrets = default(IList))
+ public DataboxJobSecrets(DcAccessSecurityCode dcAccessSecurityCode = default(DcAccessSecurityCode), IList podSecrets = default(IList))
+ : base(dcAccessSecurityCode)
{
PodSecrets = podSecrets;
CustomInit();
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DcAccessSecurityCode.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DcAccessSecurityCode.cs
new file mode 100644
index 0000000000000..d1e663694f7b4
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DcAccessSecurityCode.cs
@@ -0,0 +1,61 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Dc Access Security code for device.
+ ///
+ public partial class DcAccessSecurityCode
+ {
+ ///
+ /// Initializes a new instance of the DcAccessSecurityCode class.
+ ///
+ public DcAccessSecurityCode()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DcAccessSecurityCode class.
+ ///
+ /// Dc Access Code for dispatching
+ /// from DC.
+ /// Dc Access code for dropping off
+ /// at DC.
+ public DcAccessSecurityCode(string forwardDcAccessCode = default(string), string reverseDcAccessCode = default(string))
+ {
+ ForwardDcAccessCode = forwardDcAccessCode;
+ ReverseDcAccessCode = reverseDcAccessCode;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets dc Access Code for dispatching from DC.
+ ///
+ [JsonProperty(PropertyName = "forwardDcAccessCode")]
+ public string ForwardDcAccessCode { get; set; }
+
+ ///
+ /// Gets or sets dc Access code for dropping off at DC.
+ ///
+ [JsonProperty(PropertyName = "reverseDcAccessCode")]
+ public string ReverseDcAccessCode { get; set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationAccountDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationAccountDetails.cs
index 255fe56f4ce37..a2bebe2f6b633 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationAccountDetails.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationAccountDetails.cs
@@ -10,12 +10,11 @@
namespace Microsoft.Azure.Management.DataBox.Models
{
- using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;
///
- /// Details for the destination account.
+ /// Details of the destination storage accounts.
///
public partial class DestinationAccountDetails
{
@@ -30,10 +29,14 @@ public DestinationAccountDetails()
///
/// Initializes a new instance of the DestinationAccountDetails class.
///
- /// Destination storage account id.
- public DestinationAccountDetails(string accountId)
+ /// Arm Id of the destination where the data
+ /// has to be moved.
+ /// Share password to be shared by all
+ /// shares in SA.
+ public DestinationAccountDetails(string accountId = default(string), string sharePassword = default(string))
{
AccountId = accountId;
+ SharePassword = sharePassword;
CustomInit();
}
@@ -43,23 +46,17 @@ public DestinationAccountDetails(string accountId)
partial void CustomInit();
///
- /// Gets or sets destination storage account id.
+ /// Gets or sets arm Id of the destination where the data has to be
+ /// moved.
///
[JsonProperty(PropertyName = "accountId")]
public string AccountId { get; set; }
///
- /// Validate the object.
+ /// Gets or sets share password to be shared by all shares in SA.
///
- ///
- /// Thrown if validation fails
- ///
- public virtual void Validate()
- {
- if (AccountId == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "AccountId");
- }
- }
+ [JsonProperty(PropertyName = "sharePassword")]
+ public string SharePassword { get; set; }
+
}
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationManagedDiskDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationManagedDiskDetails.cs
new file mode 100644
index 0000000000000..2e6d0b4e42a72
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationManagedDiskDetails.cs
@@ -0,0 +1,89 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Details for the destination compute disks.
+ ///
+ [Newtonsoft.Json.JsonObject("ManagedDisk")]
+ public partial class DestinationManagedDiskDetails : DestinationAccountDetails
+ {
+ ///
+ /// Initializes a new instance of the DestinationManagedDiskDetails
+ /// class.
+ ///
+ public DestinationManagedDiskDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DestinationManagedDiskDetails
+ /// class.
+ ///
+ /// Destination Resource Group Id where
+ /// the Compute disks should be created.
+ /// Arm Id of the storage account
+ /// that can be used to copy the vhd for staging.
+ /// Arm Id of the destination where the data
+ /// has to be moved.
+ /// Share password to be shared by all
+ /// shares in SA.
+ public DestinationManagedDiskDetails(string resourceGroupId, string stagingStorageAccountId, string accountId = default(string), string sharePassword = default(string))
+ : base(accountId, sharePassword)
+ {
+ ResourceGroupId = resourceGroupId;
+ StagingStorageAccountId = stagingStorageAccountId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets destination Resource Group Id where the Compute disks
+ /// should be created.
+ ///
+ [JsonProperty(PropertyName = "resourceGroupId")]
+ public string ResourceGroupId { get; set; }
+
+ ///
+ /// Gets or sets arm Id of the storage account that can be used to copy
+ /// the vhd for staging.
+ ///
+ [JsonProperty(PropertyName = "stagingStorageAccountId")]
+ public string StagingStorageAccountId { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (ResourceGroupId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "ResourceGroupId");
+ }
+ if (StagingStorageAccountId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "StagingStorageAccountId");
+ }
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationStorageAccountDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationStorageAccountDetails.cs
new file mode 100644
index 0000000000000..5428ac4366637
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationStorageAccountDetails.cs
@@ -0,0 +1,74 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Details for the destination storage account.
+ ///
+ [Newtonsoft.Json.JsonObject("StorageAccount")]
+ public partial class DestinationStorageAccountDetails : DestinationAccountDetails
+ {
+ ///
+ /// Initializes a new instance of the DestinationStorageAccountDetails
+ /// class.
+ ///
+ public DestinationStorageAccountDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DestinationStorageAccountDetails
+ /// class.
+ ///
+ /// Destination Storage Account Arm
+ /// Id.
+ /// Arm Id of the destination where the data
+ /// has to be moved.
+ /// Share password to be shared by all
+ /// shares in SA.
+ public DestinationStorageAccountDetails(string storageAccountId, string accountId = default(string), string sharePassword = default(string))
+ : base(accountId, sharePassword)
+ {
+ StorageAccountId = storageAccountId;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets destination Storage Account Arm Id.
+ ///
+ [JsonProperty(PropertyName = "storageAccountId")]
+ public string StorageAccountId { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (StorageAccountId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "StorageAccountId");
+ }
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationToServiceLocationMap.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationToServiceLocationMap.cs
index 4a866aed7bea6..953a74df90a44 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationToServiceLocationMap.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DestinationToServiceLocationMap.cs
@@ -14,7 +14,7 @@ namespace Microsoft.Azure.Management.DataBox.Models
using System.Linq;
///
- /// Map of destination location to service location
+ /// Map of destination location to service location.
///
public partial class DestinationToServiceLocationMap
{
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DiskScheduleAvailabilityRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DiskScheduleAvailabilityRequest.cs
new file mode 100644
index 0000000000000..c467c222cdbe6
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/DiskScheduleAvailabilityRequest.cs
@@ -0,0 +1,71 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Request body to get the availability for scheduling disk orders.
+ ///
+ [Newtonsoft.Json.JsonObject("DataBoxDisk")]
+ public partial class DiskScheduleAvailabilityRequest : ScheduleAvailabilityRequest
+ {
+ ///
+ /// Initializes a new instance of the DiskScheduleAvailabilityRequest
+ /// class.
+ ///
+ public DiskScheduleAvailabilityRequest()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the DiskScheduleAvailabilityRequest
+ /// class.
+ ///
+ /// Location for data transfer.
+ /// For locations check:
+ /// https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01
+ /// The expected size of the
+ /// data, which needs to be transferred in this job, in
+ /// terabytes.
+ public DiskScheduleAvailabilityRequest(string storageLocation, int expectedDataSizeInTerabytes)
+ : base(storageLocation)
+ {
+ ExpectedDataSizeInTerabytes = expectedDataSizeInTerabytes;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets the expected size of the data, which needs to be
+ /// transferred in this job, in terabytes.
+ ///
+ [JsonProperty(PropertyName = "expectedDataSizeInTerabytes")]
+ public int ExpectedDataSizeInTerabytes { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public override void Validate()
+ {
+ base.Validate();
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/HeavyScheduleAvailabilityRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/HeavyScheduleAvailabilityRequest.cs
new file mode 100644
index 0000000000000..d676d5babb683
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/HeavyScheduleAvailabilityRequest.cs
@@ -0,0 +1,60 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Request body to get the availability for scheduling heavy orders.
+ ///
+ [Newtonsoft.Json.JsonObject("DataBoxHeavy")]
+ public partial class HeavyScheduleAvailabilityRequest : ScheduleAvailabilityRequest
+ {
+ ///
+ /// Initializes a new instance of the HeavyScheduleAvailabilityRequest
+ /// class.
+ ///
+ public HeavyScheduleAvailabilityRequest()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the HeavyScheduleAvailabilityRequest
+ /// class.
+ ///
+ /// Location for data transfer.
+ /// For locations check:
+ /// https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01
+ public HeavyScheduleAvailabilityRequest(string storageLocation)
+ : base(storageLocation)
+ {
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public override void Validate()
+ {
+ base.Validate();
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDeliveryInfo.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDeliveryInfo.cs
new file mode 100644
index 0000000000000..39cad79953cdd
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDeliveryInfo.cs
@@ -0,0 +1,51 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Additional delivery info.
+ ///
+ public partial class JobDeliveryInfo
+ {
+ ///
+ /// Initializes a new instance of the JobDeliveryInfo class.
+ ///
+ public JobDeliveryInfo()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the JobDeliveryInfo class.
+ ///
+ /// Scheduled date time.
+ public JobDeliveryInfo(System.DateTime? scheduledDateTime = default(System.DateTime?))
+ {
+ ScheduledDateTime = scheduledDateTime;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets scheduled date time.
+ ///
+ [JsonProperty(PropertyName = "scheduledDateTime")]
+ public System.DateTime? ScheduledDateTime { get; set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDeliveryType.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDeliveryType.cs
new file mode 100644
index 0000000000000..da6a84d748fbe
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDeliveryType.cs
@@ -0,0 +1,66 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using System.Runtime;
+ using System.Runtime.Serialization;
+
+ ///
+ /// Defines values for JobDeliveryType.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum JobDeliveryType
+ {
+ ///
+ /// Non Scheduled job.
+ ///
+ [EnumMember(Value = "NonScheduled")]
+ NonScheduled,
+ ///
+ /// Scheduled job.
+ ///
+ [EnumMember(Value = "Scheduled")]
+ Scheduled
+ }
+ internal static class JobDeliveryTypeEnumExtension
+ {
+ internal static string ToSerializedValue(this JobDeliveryType? value)
+ {
+ return value == null ? null : ((JobDeliveryType)value).ToSerializedValue();
+ }
+
+ internal static string ToSerializedValue(this JobDeliveryType value)
+ {
+ switch( value )
+ {
+ case JobDeliveryType.NonScheduled:
+ return "NonScheduled";
+ case JobDeliveryType.Scheduled:
+ return "Scheduled";
+ }
+ return null;
+ }
+
+ internal static JobDeliveryType? ParseJobDeliveryType(this string value)
+ {
+ switch( value )
+ {
+ case "NonScheduled":
+ return JobDeliveryType.NonScheduled;
+ case "Scheduled":
+ return JobDeliveryType.Scheduled;
+ }
+ return null;
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDetails.cs
index 64c809042dfc9..f2b3359d91d89 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDetails.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobDetails.cs
@@ -38,9 +38,9 @@ public JobDetails()
/// customer.
/// Destination account
/// details.
- /// The expected size of the
- /// data, which needs to be transfered in this job, in tera
- /// bytes.
+ /// The expected size of the
+ /// data, which needs to be transferred in this job, in
+ /// terabytes.
/// List of stages that run in the job.
/// Delivery package shipping
/// details.
@@ -54,9 +54,9 @@ public JobDetails()
/// download the return shipment label
/// Shared access key to download
/// the chain of custody logs
- public JobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTeraBytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string))
+ public JobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, IList destinationAccountDetails, int? expectedDataSizeInTerabytes = default(int?), IList jobStages = default(IList), PackageShippingDetails deliveryPackage = default(PackageShippingDetails), PackageShippingDetails returnPackage = default(PackageShippingDetails), IList errorDetails = default(IList), Preferences preferences = default(Preferences), IList copyLogDetails = default(IList), string reverseShipmentLabelSasKey = default(string), string chainOfCustodySasKey = default(string))
{
- ExpectedDataSizeInTeraBytes = expectedDataSizeInTeraBytes;
+ ExpectedDataSizeInTerabytes = expectedDataSizeInTerabytes;
JobStages = jobStages;
ContactDetails = contactDetails;
ShippingAddress = shippingAddress;
@@ -78,10 +78,10 @@ public JobDetails()
///
/// Gets or sets the expected size of the data, which needs to be
- /// transfered in this job, in tera bytes.
+ /// transferred in this job, in terabytes.
///
- [JsonProperty(PropertyName = "expectedDataSizeInTeraBytes")]
- public int? ExpectedDataSizeInTeraBytes { get; set; }
+ [JsonProperty(PropertyName = "expectedDataSizeInTerabytes")]
+ public int? ExpectedDataSizeInTerabytes { get; set; }
///
/// Gets list of stages that run in the job.
@@ -177,15 +177,9 @@ public virtual void Validate()
{
ShippingAddress.Validate();
}
- if (DestinationAccountDetails != null)
+ if (Preferences != null)
{
- foreach (var element in DestinationAccountDetails)
- {
- if (element != null)
- {
- element.Validate();
- }
- }
+ Preferences.Validate();
}
}
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResource.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResource.cs
index 8f422f2a21c40..33b22944e4fcc 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResource.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResource.cs
@@ -54,17 +54,23 @@ public JobResource()
/// 'Dispatched', 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy',
/// 'Completed', 'CompletedWithErrors', 'Cancelled',
/// 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC',
- /// 'Aborted'
+ /// 'Aborted', 'CompletedWithWarnings', 'ReadyToDispatchFromAzureDC',
+ /// 'ReadyToReceiveAtAzureDC'
/// 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.
/// Reason for cancellation.
+ /// Delivery type of Job. Possible values
+ /// include: 'NonScheduled', 'Scheduled'
+ /// Delivery Info of Job.
+ /// Flag to indicate cancellation
+ /// of scheduled job.
/// Name of the object.
/// Id of the object.
/// Type of the object.
- public JobResource(string location, Sku sku, IDictionary tags = default(IDictionary), bool? isCancellable = default(bool?), bool? isDeletable = default(bool?), bool? isShippingAddressEditable = default(bool?), StageName? status = default(StageName?), System.DateTime? startTime = default(System.DateTime?), Error error = default(Error), JobDetails details = default(JobDetails), string cancellationReason = default(string), string name = default(string), string id = default(string), string type = default(string))
+ public JobResource(string location, Sku sku, IDictionary tags = default(IDictionary), bool? isCancellable = default(bool?), bool? isDeletable = default(bool?), bool? isShippingAddressEditable = default(bool?), StageName? status = default(StageName?), System.DateTime? startTime = default(System.DateTime?), Error error = default(Error), JobDetails details = default(JobDetails), string cancellationReason = default(string), JobDeliveryType? deliveryType = default(JobDeliveryType?), JobDeliveryInfo deliveryInfo = default(JobDeliveryInfo), bool? isCancellableWithoutFee = default(bool?), string name = default(string), string id = default(string), string type = default(string))
: base(location, sku, tags)
{
IsCancellable = isCancellable;
@@ -75,6 +81,9 @@ public JobResource()
Error = error;
Details = details;
CancellationReason = cancellationReason;
+ DeliveryType = deliveryType;
+ DeliveryInfo = deliveryInfo;
+ IsCancellableWithoutFee = isCancellableWithoutFee;
Name = name;
Id = id;
Type = type;
@@ -110,7 +119,8 @@ public JobResource()
/// 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed',
/// 'CompletedWithErrors', 'Cancelled',
/// 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC',
- /// 'Aborted'
+ /// 'Aborted', 'CompletedWithWarnings', 'ReadyToDispatchFromAzureDC',
+ /// 'ReadyToReceiveAtAzureDC'
///
[JsonProperty(PropertyName = "properties.status")]
public StageName? Status { get; private set; }
@@ -140,6 +150,25 @@ public JobResource()
[JsonProperty(PropertyName = "properties.cancellationReason")]
public string CancellationReason { get; private set; }
+ ///
+ /// Gets or sets delivery type of Job. Possible values include:
+ /// 'NonScheduled', 'Scheduled'
+ ///
+ [JsonProperty(PropertyName = "properties.deliveryType")]
+ public JobDeliveryType? DeliveryType { get; set; }
+
+ ///
+ /// Gets or sets delivery Info of Job.
+ ///
+ [JsonProperty(PropertyName = "properties.deliveryInfo")]
+ public JobDeliveryInfo DeliveryInfo { get; set; }
+
+ ///
+ /// Gets flag to indicate cancellation of scheduled job.
+ ///
+ [JsonProperty(PropertyName = "properties.isCancellableWithoutFee")]
+ public bool? IsCancellableWithoutFee { get; private set; }
+
///
/// Gets name of the object.
///
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResourceUpdateParameter.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResourceUpdateParameter.cs
index 10a32327dd5b4..c71c30481f449 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResourceUpdateParameter.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobResourceUpdateParameter.cs
@@ -85,16 +85,6 @@ public virtual void Validate()
{
Details.Validate();
}
- if (DestinationAccountDetails != null)
- {
- foreach (var element in DestinationAccountDetails)
- {
- if (element != null)
- {
- element.Validate();
- }
- }
- }
}
}
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobSecrets.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobSecrets.cs
index 6e020016460d7..35e130fe7ecdb 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobSecrets.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobSecrets.cs
@@ -10,6 +10,7 @@
namespace Microsoft.Azure.Management.DataBox.Models
{
+ using Newtonsoft.Json;
using System.Linq;
///
@@ -25,11 +26,27 @@ public JobSecrets()
CustomInit();
}
+ ///
+ /// Initializes a new instance of the JobSecrets class.
+ ///
+ /// Dc Access Security Code for
+ /// Customer Managed Shipping
+ public JobSecrets(DcAccessSecurityCode dcAccessSecurityCode = default(DcAccessSecurityCode))
+ {
+ DcAccessSecurityCode = dcAccessSecurityCode;
+ CustomInit();
+ }
///
/// An initialization method that performs custom operations like setting defaults
///
partial void CustomInit();
+ ///
+ /// Gets or sets dc Access Security Code for Customer Managed Shipping
+ ///
+ [JsonProperty(PropertyName = "dcAccessSecurityCode")]
+ public DcAccessSecurityCode DcAccessSecurityCode { get; set; }
+
}
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobStages.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobStages.cs
index 9383486923d6c..cd7982fac9950 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobStages.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/JobStages.cs
@@ -36,7 +36,8 @@ public JobStages()
/// 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed',
/// 'CompletedWithErrors', 'Cancelled',
/// 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC',
- /// 'Aborted'
+ /// 'Aborted', 'CompletedWithWarnings', 'ReadyToDispatchFromAzureDC',
+ /// 'ReadyToReceiveAtAzureDC'
/// Display name of the job stage.
/// Status of the job stage. Possible values
/// include: 'None', 'InProgress', 'Succeeded', 'Failed', 'Cancelled',
@@ -67,7 +68,8 @@ public JobStages()
/// 'PickedUp', 'AtAzureDC', 'DataCopy', 'Completed',
/// 'CompletedWithErrors', 'Cancelled',
/// 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC',
- /// 'Aborted'
+ /// 'Aborted', 'CompletedWithWarnings', 'ReadyToDispatchFromAzureDC',
+ /// 'ReadyToReceiveAtAzureDC'
///
[JsonProperty(PropertyName = "stageName")]
public StageName? StageName { get; private set; }
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/OverallValidationStatus.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/OverallValidationStatus.cs
new file mode 100644
index 0000000000000..b7628c4bba208
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/OverallValidationStatus.cs
@@ -0,0 +1,75 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using System.Runtime;
+ using System.Runtime.Serialization;
+
+ ///
+ /// Defines values for OverallValidationStatus.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum OverallValidationStatus
+ {
+ ///
+ /// Every input request is valid.
+ ///
+ [EnumMember(Value = "AllValidToProceed")]
+ AllValidToProceed,
+ ///
+ /// Some input requests are not valid.
+ ///
+ [EnumMember(Value = "InputsRevisitRequired")]
+ InputsRevisitRequired,
+ ///
+ /// Certain input validations skipped.
+ ///
+ [EnumMember(Value = "CertainInputValidationsSkipped")]
+ CertainInputValidationsSkipped
+ }
+ internal static class OverallValidationStatusEnumExtension
+ {
+ internal static string ToSerializedValue(this OverallValidationStatus? value)
+ {
+ return value == null ? null : ((OverallValidationStatus)value).ToSerializedValue();
+ }
+
+ internal static string ToSerializedValue(this OverallValidationStatus value)
+ {
+ switch( value )
+ {
+ case OverallValidationStatus.AllValidToProceed:
+ return "AllValidToProceed";
+ case OverallValidationStatus.InputsRevisitRequired:
+ return "InputsRevisitRequired";
+ case OverallValidationStatus.CertainInputValidationsSkipped:
+ return "CertainInputValidationsSkipped";
+ }
+ return null;
+ }
+
+ internal static OverallValidationStatus? ParseOverallValidationStatus(this string value)
+ {
+ switch( value )
+ {
+ case "AllValidToProceed":
+ return OverallValidationStatus.AllValidToProceed;
+ case "InputsRevisitRequired":
+ return OverallValidationStatus.InputsRevisitRequired;
+ case "CertainInputValidationsSkipped":
+ return OverallValidationStatus.CertainInputValidationsSkipped;
+ }
+ return null;
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/Preferences.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/Preferences.cs
index f91d32888ebe2..58b09eb6dc6b6 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/Preferences.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/Preferences.cs
@@ -31,9 +31,14 @@ public Preferences()
///
/// Initializes a new instance of the Preferences class.
///
- public Preferences(IList preferredDataCenterRegion = default(IList))
+ /// Preferred Data Center
+ /// Region.
+ /// Preferences related to the
+ /// shipment logistics of the sku.
+ public Preferences(IList preferredDataCenterRegion = default(IList), TransportPreferences transportPreferences = default(TransportPreferences))
{
PreferredDataCenterRegion = preferredDataCenterRegion;
+ TransportPreferences = transportPreferences;
CustomInit();
}
@@ -43,9 +48,30 @@ public Preferences()
partial void CustomInit();
///
+ /// Gets or sets preferred Data Center Region.
///
[JsonProperty(PropertyName = "preferredDataCenterRegion")]
public IList PreferredDataCenterRegion { get; set; }
+ ///
+ /// Gets or sets preferences related to the shipment logistics of the
+ /// sku.
+ ///
+ [JsonProperty(PropertyName = "transportPreferences")]
+ public TransportPreferences TransportPreferences { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (TransportPreferences != null)
+ {
+ TransportPreferences.Validate();
+ }
+ }
}
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationRequest.cs
new file mode 100644
index 0000000000000..404fd13cc398b
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationRequest.cs
@@ -0,0 +1,80 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Request to validate preference of transport and data center.
+ ///
+ [Newtonsoft.Json.JsonObject("ValidatePreferences")]
+ public partial class PreferencesValidationRequest : ValidationInputRequest
+ {
+ ///
+ /// Initializes a new instance of the PreferencesValidationRequest
+ /// class.
+ ///
+ public PreferencesValidationRequest()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the PreferencesValidationRequest
+ /// class.
+ ///
+ /// Device type to be used for the job.
+ /// Possible values include: 'DataBox', 'DataBoxDisk',
+ /// 'DataBoxHeavy'
+ /// Preference requested with respect to
+ /// transport type and data center
+ public PreferencesValidationRequest(SkuName deviceType, Preferences preference = default(Preferences))
+ {
+ Preference = preference;
+ DeviceType = deviceType;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets preference requested with respect to transport type
+ /// and data center
+ ///
+ [JsonProperty(PropertyName = "preference")]
+ public Preferences Preference { get; set; }
+
+ ///
+ /// Gets or sets device type to be used for the job. Possible values
+ /// include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
+ ///
+ [JsonProperty(PropertyName = "deviceType")]
+ public SkuName DeviceType { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Preference != null)
+ {
+ Preference.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationResponseProperties.cs
new file mode 100644
index 0000000000000..f464979dc99d6
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/PreferencesValidationResponseProperties.cs
@@ -0,0 +1,60 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Properties of data center and transport preference validation response.
+ ///
+ [Newtonsoft.Json.JsonObject("ValidatePreferences")]
+ public partial class PreferencesValidationResponseProperties : ValidationInputResponse
+ {
+ ///
+ /// Initializes a new instance of the
+ /// PreferencesValidationResponseProperties class.
+ ///
+ public PreferencesValidationResponseProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// PreferencesValidationResponseProperties class.
+ ///
+ /// Error code and message of validation
+ /// response.
+ /// Validation status of requested data center and
+ /// transport. Possible values include: 'Valid', 'Invalid',
+ /// 'Skipped'
+ public PreferencesValidationResponseProperties(Error error = default(Error), ValidationStatus? status = default(ValidationStatus?))
+ : base(error)
+ {
+ Status = status;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets validation status of requested data center and transport.
+ /// Possible values include: 'Valid', 'Invalid', 'Skipped'
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public ValidationStatus? Status { get; private set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/RegionConfigurationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/RegionConfigurationRequest.cs
new file mode 100644
index 0000000000000..09a05e420a6a4
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/RegionConfigurationRequest.cs
@@ -0,0 +1,76 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Request body to get the configuration for the region.
+ ///
+ public partial class RegionConfigurationRequest
+ {
+ ///
+ /// Initializes a new instance of the RegionConfigurationRequest class.
+ ///
+ public RegionConfigurationRequest()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the RegionConfigurationRequest class.
+ ///
+ /// Request body to get the
+ /// availability for scheduling orders.
+ /// Request body to get the
+ /// transport availability for given sku.
+ public RegionConfigurationRequest(ScheduleAvailabilityRequest scheduleAvailabilityRequest = default(ScheduleAvailabilityRequest), TransportAvailabilityRequest transportAvailabilityRequest = default(TransportAvailabilityRequest))
+ {
+ ScheduleAvailabilityRequest = scheduleAvailabilityRequest;
+ TransportAvailabilityRequest = transportAvailabilityRequest;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets request body to get the availability for scheduling
+ /// orders.
+ ///
+ [JsonProperty(PropertyName = "scheduleAvailabilityRequest")]
+ public ScheduleAvailabilityRequest ScheduleAvailabilityRequest { get; set; }
+
+ ///
+ /// Gets or sets request body to get the transport availability for
+ /// given sku.
+ ///
+ [JsonProperty(PropertyName = "transportAvailabilityRequest")]
+ public TransportAvailabilityRequest TransportAvailabilityRequest { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (ScheduleAvailabilityRequest != null)
+ {
+ ScheduleAvailabilityRequest.Validate();
+ }
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/RegionConfigurationResponse.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/RegionConfigurationResponse.cs
new file mode 100644
index 0000000000000..35b27b4081ef8
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/RegionConfigurationResponse.cs
@@ -0,0 +1,63 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Configuration response specific to a region.
+ ///
+ public partial class RegionConfigurationResponse
+ {
+ ///
+ /// Initializes a new instance of the RegionConfigurationResponse
+ /// class.
+ ///
+ public RegionConfigurationResponse()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the RegionConfigurationResponse
+ /// class.
+ ///
+ /// Schedule availability
+ /// for given sku in a region.
+ /// Transport options
+ /// available for given sku in a region.
+ public RegionConfigurationResponse(ScheduleAvailabilityResponse scheduleAvailabilityResponse = default(ScheduleAvailabilityResponse), TransportAvailabilityResponse transportAvailabilityResponse = default(TransportAvailabilityResponse))
+ {
+ ScheduleAvailabilityResponse = scheduleAvailabilityResponse;
+ TransportAvailabilityResponse = transportAvailabilityResponse;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets schedule availability for given sku in a region.
+ ///
+ [JsonProperty(PropertyName = "scheduleAvailabilityResponse")]
+ public ScheduleAvailabilityResponse ScheduleAvailabilityResponse { get; private set; }
+
+ ///
+ /// Gets transport options available for given sku in a region.
+ ///
+ [JsonProperty(PropertyName = "transportAvailabilityResponse")]
+ public TransportAvailabilityResponse TransportAvailabilityResponse { get; private set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ScheduleAvailabilityRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ScheduleAvailabilityRequest.cs
new file mode 100644
index 0000000000000..be0fad833fe54
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ScheduleAvailabilityRequest.cs
@@ -0,0 +1,71 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Request body to get the availability for scheduling orders.
+ ///
+ public partial class ScheduleAvailabilityRequest
+ {
+ ///
+ /// Initializes a new instance of the ScheduleAvailabilityRequest
+ /// class.
+ ///
+ public ScheduleAvailabilityRequest()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ScheduleAvailabilityRequest
+ /// class.
+ ///
+ /// Location for data transfer.
+ /// For locations check:
+ /// https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01
+ public ScheduleAvailabilityRequest(string storageLocation)
+ {
+ StorageLocation = storageLocation;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets location for data transfer.
+ /// For locations check:
+ /// https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01
+ ///
+ [JsonProperty(PropertyName = "storageLocation")]
+ public string StorageLocation { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (StorageLocation == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "StorageLocation");
+ }
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ScheduleAvailabilityResponse.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ScheduleAvailabilityResponse.cs
new file mode 100644
index 0000000000000..3a54174fd1d3d
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ScheduleAvailabilityResponse.cs
@@ -0,0 +1,56 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Schedule availability response for given sku in a region.
+ ///
+ public partial class ScheduleAvailabilityResponse
+ {
+ ///
+ /// Initializes a new instance of the ScheduleAvailabilityResponse
+ /// class.
+ ///
+ public ScheduleAvailabilityResponse()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ScheduleAvailabilityResponse
+ /// class.
+ ///
+ /// List of dates available to
+ /// schedule
+ public ScheduleAvailabilityResponse(IList availableDates = default(IList))
+ {
+ AvailableDates = availableDates;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets list of dates available to schedule
+ ///
+ [JsonProperty(PropertyName = "availableDates")]
+ public IList AvailableDates { get; private set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ShareCredentialDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ShareCredentialDetails.cs
index a71165230c2be..5d971f64157e1 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ShareCredentialDetails.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ShareCredentialDetails.cs
@@ -33,7 +33,8 @@ public ShareCredentialDetails()
///
/// Name of the share.
/// Type of the share. Possible values include:
- /// 'UnknownType', 'HCS', 'BlockBlob', 'PageBlob', 'AzureFile'
+ /// 'UnknownType', 'HCS', 'BlockBlob', 'PageBlob', 'AzureFile',
+ /// 'ManagedDisk'
/// User name for the share.
/// Password for the share.
/// Access protocols supported
@@ -61,7 +62,7 @@ public ShareCredentialDetails()
///
/// Gets type of the share. Possible values include: 'UnknownType',
- /// 'HCS', 'BlockBlob', 'PageBlob', 'AzureFile'
+ /// 'HCS', 'BlockBlob', 'PageBlob', 'AzureFile', 'ManagedDisk'
///
[JsonProperty(PropertyName = "shareType")]
public ShareDestinationFormatType? ShareType { get; private set; }
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ShareDestinationFormatType.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ShareDestinationFormatType.cs
index 657276ae31c21..398ff925fe92d 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ShareDestinationFormatType.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ShareDestinationFormatType.cs
@@ -45,7 +45,12 @@ public enum ShareDestinationFormatType
/// Azure storage file format.
///
[EnumMember(Value = "AzureFile")]
- AzureFile
+ AzureFile,
+ ///
+ /// Azure Compute Disk.
+ ///
+ [EnumMember(Value = "ManagedDisk")]
+ ManagedDisk
}
internal static class ShareDestinationFormatTypeEnumExtension
{
@@ -68,6 +73,8 @@ internal static string ToSerializedValue(this ShareDestinationFormatType value)
return "PageBlob";
case ShareDestinationFormatType.AzureFile:
return "AzureFile";
+ case ShareDestinationFormatType.ManagedDisk:
+ return "ManagedDisk";
}
return null;
}
@@ -86,6 +93,8 @@ internal static string ToSerializedValue(this ShareDestinationFormatType value)
return ShareDestinationFormatType.PageBlob;
case "AzureFile":
return ShareDestinationFormatType.AzureFile;
+ case "ManagedDisk":
+ return ShareDestinationFormatType.ManagedDisk;
}
return null;
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationRequest.cs
new file mode 100644
index 0000000000000..80a49cecb2b24
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationRequest.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.Management.DataBox.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Request to validate sku availability.
+ ///
+ [Newtonsoft.Json.JsonObject("ValidateSkuAvailability")]
+ public partial class SkuAvailabilityValidationRequest : ValidationInputRequest
+ {
+ ///
+ /// Initializes a new instance of the SkuAvailabilityValidationRequest
+ /// class.
+ ///
+ public SkuAvailabilityValidationRequest()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the SkuAvailabilityValidationRequest
+ /// class.
+ ///
+ /// Device type to be used for the job.
+ /// Possible values include: 'DataBox', 'DataBoxDisk',
+ /// 'DataBoxHeavy'
+ /// ISO country code. Country for hardware
+ /// shipment. For codes check:
+ /// https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
+ /// Location for data transfer. For locations
+ /// check:
+ /// https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01
+ public SkuAvailabilityValidationRequest(SkuName deviceType, string country, string location)
+ {
+ DeviceType = deviceType;
+ Country = country;
+ Location = location;
+ CustomInit();
+ }
+ ///
+ /// Static constructor for SkuAvailabilityValidationRequest class.
+ ///
+ static SkuAvailabilityValidationRequest()
+ {
+ TransferType = "ImportToAzure";
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets device type to be used for the job. Possible values
+ /// include: 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
+ ///
+ [JsonProperty(PropertyName = "deviceType")]
+ public SkuName DeviceType { get; set; }
+
+ ///
+ /// Gets or sets ISO country code. Country for hardware shipment. For
+ /// codes check:
+ /// https://en.wikipedia.org/wiki/ISO_3166-1_alpha-2#Officially_assigned_code_elements
+ ///
+ [JsonProperty(PropertyName = "country")]
+ public string Country { get; set; }
+
+ ///
+ /// Gets or sets location for data transfer. For locations check:
+ /// https://management.azure.com/subscriptions/SUBSCRIPTIONID/locations?api-version=2018-01-01
+ ///
+ [JsonProperty(PropertyName = "location")]
+ public string Location { get; set; }
+
+ ///
+ /// Type of the transfer.
+ ///
+ [JsonProperty(PropertyName = "transferType")]
+ public static string TransferType { get; private set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (Country == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Country");
+ }
+ if (Location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "Location");
+ }
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationResponseProperties.cs
new file mode 100644
index 0000000000000..d08306a381527
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuAvailabilityValidationResponseProperties.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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Properties of sku availability validation response.
+ ///
+ [Newtonsoft.Json.JsonObject("ValidateSkuAvailability")]
+ public partial class SkuAvailabilityValidationResponseProperties : ValidationInputResponse
+ {
+ ///
+ /// Initializes a new instance of the
+ /// SkuAvailabilityValidationResponseProperties class.
+ ///
+ public SkuAvailabilityValidationResponseProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// SkuAvailabilityValidationResponseProperties class.
+ ///
+ /// Error code and message of validation
+ /// response.
+ /// Sku availability validation status. Possible
+ /// values include: 'Valid', 'Invalid', 'Skipped'
+ public SkuAvailabilityValidationResponseProperties(Error error = default(Error), ValidationStatus? status = default(ValidationStatus?))
+ : base(error)
+ {
+ Status = status;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets sku availability validation status. Possible values include:
+ /// 'Valid', 'Invalid', 'Skipped'
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public ValidationStatus? Status { get; private set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuDisabledReason.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuDisabledReason.cs
index eca56535d4993..1bf112dbbbdc7 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuDisabledReason.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuDisabledReason.cs
@@ -32,8 +32,7 @@ public enum SkuDisabledReason
[EnumMember(Value = "Country")]
Country,
///
- /// SKU is not available to push data to the requested storage account
- /// region.
+ /// SKU is not available to push data to the requested Azure region.
///
[EnumMember(Value = "Region")]
Region,
@@ -46,7 +45,13 @@ public enum SkuDisabledReason
/// Subscription does not have required offer types for the SKU.
///
[EnumMember(Value = "OfferType")]
- OfferType
+ OfferType,
+ ///
+ /// Subscription has not registered to Microsoft.DataBox and Service
+ /// does not have the subscription notification.
+ ///
+ [EnumMember(Value = "NoSubscriptionInfo")]
+ NoSubscriptionInfo
}
internal static class SkuDisabledReasonEnumExtension
{
@@ -69,6 +74,8 @@ internal static string ToSerializedValue(this SkuDisabledReason value)
return "Feature";
case SkuDisabledReason.OfferType:
return "OfferType";
+ case SkuDisabledReason.NoSubscriptionInfo:
+ return "NoSubscriptionInfo";
}
return null;
}
@@ -87,6 +94,8 @@ internal static string ToSerializedValue(this SkuDisabledReason value)
return SkuDisabledReason.Feature;
case "OfferType":
return SkuDisabledReason.OfferType;
+ case "NoSubscriptionInfo":
+ return SkuDisabledReason.NoSubscriptionInfo;
}
return null;
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuInformation.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuInformation.cs
index a19de5471e89a..e371b1ba83315 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuInformation.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SkuInformation.cs
@@ -44,7 +44,7 @@ public SkuInformation()
/// Sku.
/// Reason why the Sku is disabled.
/// Possible values include: 'None', 'Country', 'Region', 'Feature',
- /// 'OfferType'
+ /// 'OfferType', 'NoSubscriptionInfo'
/// Message for why the Sku is
/// disabled.
/// Required feature to access the
@@ -106,7 +106,8 @@ public SkuInformation()
///
/// Gets reason why the Sku is disabled. Possible values include:
- /// 'None', 'Country', 'Region', 'Feature', 'OfferType'
+ /// 'None', 'Country', 'Region', 'Feature', 'OfferType',
+ /// 'NoSubscriptionInfo'
///
[JsonProperty(PropertyName = "properties.disabledReason")]
public SkuDisabledReason? DisabledReason { get; private set; }
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StageName.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StageName.cs
index 07b8228b8ff9d..41990442852ae 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StageName.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/StageName.cs
@@ -86,7 +86,22 @@ public enum StageName
/// Order has been aborted.
///
[EnumMember(Value = "Aborted")]
- Aborted
+ Aborted,
+ ///
+ /// Order has completed with warnings.
+ ///
+ [EnumMember(Value = "CompletedWithWarnings")]
+ CompletedWithWarnings,
+ ///
+ /// Device is ready to be handed to customer from Azure DC.
+ ///
+ [EnumMember(Value = "ReadyToDispatchFromAzureDC")]
+ ReadyToDispatchFromAzureDC,
+ ///
+ /// Device can be dropped off at Azure DC.
+ ///
+ [EnumMember(Value = "ReadyToReceiveAtAzureDC")]
+ ReadyToReceiveAtAzureDC
}
internal static class StageNameEnumExtension
{
@@ -125,6 +140,12 @@ internal static string ToSerializedValue(this StageName value)
return "Failed_IssueDetectedAtAzureDC";
case StageName.Aborted:
return "Aborted";
+ case StageName.CompletedWithWarnings:
+ return "CompletedWithWarnings";
+ case StageName.ReadyToDispatchFromAzureDC:
+ return "ReadyToDispatchFromAzureDC";
+ case StageName.ReadyToReceiveAtAzureDC:
+ return "ReadyToReceiveAtAzureDC";
}
return null;
}
@@ -159,6 +180,12 @@ internal static string ToSerializedValue(this StageName value)
return StageName.FailedIssueDetectedAtAzureDC;
case "Aborted":
return StageName.Aborted;
+ case "CompletedWithWarnings":
+ return StageName.CompletedWithWarnings;
+ case "ReadyToDispatchFromAzureDC":
+ return StageName.ReadyToDispatchFromAzureDC;
+ case "ReadyToReceiveAtAzureDC":
+ return StageName.ReadyToReceiveAtAzureDC;
}
return null;
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationRequest.cs
new file mode 100644
index 0000000000000..ea2984bea8d0a
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationRequest.cs
@@ -0,0 +1,38 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Request to validate subscription permission to create jobs.
+ ///
+ [Newtonsoft.Json.JsonObject("ValidateSubscriptionIsAllowedToCreateJob")]
+ public partial class SubscriptionIsAllowedToCreateJobValidationRequest : ValidationInputRequest
+ {
+ ///
+ /// Initializes a new instance of the
+ /// SubscriptionIsAllowedToCreateJobValidationRequest class.
+ ///
+ public SubscriptionIsAllowedToCreateJobValidationRequest()
+ {
+ CustomInit();
+ }
+
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs
new file mode 100644
index 0000000000000..e9aebdb24c523
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/SubscriptionIsAllowedToCreateJobValidationResponseProperties.cs
@@ -0,0 +1,61 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Properties of subscription permission to create job validation
+ /// response.
+ ///
+ [Newtonsoft.Json.JsonObject("ValidateSubscriptionIsAllowedToCreateJob")]
+ public partial class SubscriptionIsAllowedToCreateJobValidationResponseProperties : ValidationInputResponse
+ {
+ ///
+ /// Initializes a new instance of the
+ /// SubscriptionIsAllowedToCreateJobValidationResponseProperties class.
+ ///
+ public SubscriptionIsAllowedToCreateJobValidationResponseProperties()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the
+ /// SubscriptionIsAllowedToCreateJobValidationResponseProperties class.
+ ///
+ /// Error code and message of validation
+ /// response.
+ /// Validation status of subscription permission
+ /// to create job. Possible values include: 'Valid', 'Invalid',
+ /// 'Skipped'
+ public SubscriptionIsAllowedToCreateJobValidationResponseProperties(Error error = default(Error), ValidationStatus? status = default(ValidationStatus?))
+ : base(error)
+ {
+ Status = status;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets validation status of subscription permission to create job.
+ /// Possible values include: 'Valid', 'Invalid', 'Skipped'
+ ///
+ [JsonProperty(PropertyName = "status")]
+ public ValidationStatus? Status { get; private set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityDetails.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityDetails.cs
new file mode 100644
index 0000000000000..0195487f896e2
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityDetails.cs
@@ -0,0 +1,56 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Transport options availability details for given region.
+ ///
+ public partial class TransportAvailabilityDetails
+ {
+ ///
+ /// Initializes a new instance of the TransportAvailabilityDetails
+ /// class.
+ ///
+ public TransportAvailabilityDetails()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the TransportAvailabilityDetails
+ /// class.
+ ///
+ /// Transport Shipment Type supported for
+ /// given region. Possible values include: 'CustomerManaged',
+ /// 'MicrosoftManaged'
+ public TransportAvailabilityDetails(TransportShipmentTypes? shipmentType = default(TransportShipmentTypes?))
+ {
+ ShipmentType = shipmentType;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets transport Shipment Type supported for given region. Possible
+ /// values include: 'CustomerManaged', 'MicrosoftManaged'
+ ///
+ [JsonProperty(PropertyName = "shipmentType")]
+ public TransportShipmentTypes? ShipmentType { get; private set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityRequest.cs
new file mode 100644
index 0000000000000..d3b4c935374db
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityRequest.cs
@@ -0,0 +1,55 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Request body to get the transport availability for given sku.
+ ///
+ public partial class TransportAvailabilityRequest
+ {
+ ///
+ /// Initializes a new instance of the TransportAvailabilityRequest
+ /// class.
+ ///
+ public TransportAvailabilityRequest()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the TransportAvailabilityRequest
+ /// class.
+ ///
+ /// Type of the device. Possible values include:
+ /// 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
+ public TransportAvailabilityRequest(SkuName? skuName = default(SkuName?))
+ {
+ SkuName = skuName;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets type of the device. Possible values include:
+ /// 'DataBox', 'DataBoxDisk', 'DataBoxHeavy'
+ ///
+ [JsonProperty(PropertyName = "skuName")]
+ public SkuName? SkuName { get; set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityResponse.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityResponse.cs
new file mode 100644
index 0000000000000..ea6bae21d634b
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportAvailabilityResponse.cs
@@ -0,0 +1,56 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Transport options available for given sku in a region.
+ ///
+ public partial class TransportAvailabilityResponse
+ {
+ ///
+ /// Initializes a new instance of the TransportAvailabilityResponse
+ /// class.
+ ///
+ public TransportAvailabilityResponse()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the TransportAvailabilityResponse
+ /// class.
+ ///
+ /// List of transport
+ /// availability details for given region
+ public TransportAvailabilityResponse(IList transportAvailabilityDetails = default(IList))
+ {
+ TransportAvailabilityDetails = transportAvailabilityDetails;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets list of transport availability details for given region
+ ///
+ [JsonProperty(PropertyName = "transportAvailabilityDetails")]
+ public IList TransportAvailabilityDetails { get; private set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportPreferences.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportPreferences.cs
new file mode 100644
index 0000000000000..fd52d29d72e2b
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportPreferences.cs
@@ -0,0 +1,64 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Preferences related to the shipment logistics of the sku
+ ///
+ public partial class TransportPreferences
+ {
+ ///
+ /// Initializes a new instance of the TransportPreferences class.
+ ///
+ public TransportPreferences()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the TransportPreferences class.
+ ///
+ /// Indicates Shipment Logistics
+ /// type that the customer preferred. Possible values include:
+ /// 'CustomerManaged', 'MicrosoftManaged'
+ public TransportPreferences(TransportShipmentTypes preferredShipmentType)
+ {
+ PreferredShipmentType = preferredShipmentType;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets indicates Shipment Logistics type that the customer
+ /// preferred. Possible values include: 'CustomerManaged',
+ /// 'MicrosoftManaged'
+ ///
+ [JsonProperty(PropertyName = "preferredShipmentType")]
+ public TransportShipmentTypes PreferredShipmentType { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportShipmentTypes.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportShipmentTypes.cs
new file mode 100644
index 0000000000000..86c12741d14b7
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/TransportShipmentTypes.cs
@@ -0,0 +1,66 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using System.Runtime;
+ using System.Runtime.Serialization;
+
+ ///
+ /// Defines values for TransportShipmentTypes.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum TransportShipmentTypes
+ {
+ ///
+ /// Shipment Logistics is handled by the customer.
+ ///
+ [EnumMember(Value = "CustomerManaged")]
+ CustomerManaged,
+ ///
+ /// Shipment Logistics is handled by Microsoft.
+ ///
+ [EnumMember(Value = "MicrosoftManaged")]
+ MicrosoftManaged
+ }
+ internal static class TransportShipmentTypesEnumExtension
+ {
+ internal static string ToSerializedValue(this TransportShipmentTypes? value)
+ {
+ return value == null ? null : ((TransportShipmentTypes)value).ToSerializedValue();
+ }
+
+ internal static string ToSerializedValue(this TransportShipmentTypes value)
+ {
+ switch( value )
+ {
+ case TransportShipmentTypes.CustomerManaged:
+ return "CustomerManaged";
+ case TransportShipmentTypes.MicrosoftManaged:
+ return "MicrosoftManaged";
+ }
+ return null;
+ }
+
+ internal static TransportShipmentTypes? ParseTransportShipmentTypes(this string value)
+ {
+ switch( value )
+ {
+ case "CustomerManaged":
+ return TransportShipmentTypes.CustomerManaged;
+ case "MicrosoftManaged":
+ return TransportShipmentTypes.MicrosoftManaged;
+ }
+ return null;
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidateAddress.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidateAddress.cs
index 260f9e70b5cce..6af4394416d01 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidateAddress.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidateAddress.cs
@@ -18,7 +18,7 @@ namespace Microsoft.Azure.Management.DataBox.Models
/// The requirements to validate customer address where the device needs to
/// be shipped.
///
- public partial class ValidateAddress
+ public partial class ValidateAddress : ValidationInputRequest
{
///
/// Initializes a new instance of the ValidateAddress class.
@@ -36,10 +36,13 @@ public ValidateAddress()
/// Device type to be used for the job.
/// Possible values include: 'DataBox', 'DataBoxDisk',
/// 'DataBoxHeavy'
- public ValidateAddress(ShippingAddress shippingAddress, SkuName deviceType)
+ /// Preferences related to the
+ /// shipment logistics of the sku.
+ public ValidateAddress(ShippingAddress shippingAddress, SkuName deviceType, TransportPreferences transportPreferences = default(TransportPreferences))
{
ShippingAddress = shippingAddress;
DeviceType = deviceType;
+ TransportPreferences = transportPreferences;
CustomInit();
}
@@ -61,6 +64,13 @@ public ValidateAddress(ShippingAddress shippingAddress, SkuName deviceType)
[JsonProperty(PropertyName = "deviceType")]
public SkuName DeviceType { get; set; }
+ ///
+ /// Gets or sets preferences related to the shipment logistics of the
+ /// sku.
+ ///
+ [JsonProperty(PropertyName = "transportPreferences")]
+ public TransportPreferences TransportPreferences { get; set; }
+
///
/// Validate the object.
///
@@ -77,6 +87,10 @@ public virtual void Validate()
{
ShippingAddress.Validate();
}
+ if (TransportPreferences != null)
+ {
+ TransportPreferences.Validate();
+ }
}
}
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputRequest.cs
new file mode 100644
index 0000000000000..096380231268d
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputRequest.cs
@@ -0,0 +1,35 @@
+//
+// 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.Management.DataBox.Models
+{
+ using System.Linq;
+
+ ///
+ /// Minimum fields that must be present in any type of validation request.
+ ///
+ public partial class ValidationInputRequest
+ {
+ ///
+ /// Initializes a new instance of the ValidationInputRequest class.
+ ///
+ public ValidationInputRequest()
+ {
+ CustomInit();
+ }
+
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputResponse.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputResponse.cs
new file mode 100644
index 0000000000000..810a34e2dc991
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationInputResponse.cs
@@ -0,0 +1,53 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using System.Linq;
+
+ ///
+ /// Minimum properties that should be present in each individual validation
+ /// response.
+ ///
+ public partial class ValidationInputResponse
+ {
+ ///
+ /// Initializes a new instance of the ValidationInputResponse class.
+ ///
+ public ValidationInputResponse()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ValidationInputResponse class.
+ ///
+ /// Error code and message of validation
+ /// response.
+ public ValidationInputResponse(Error error = default(Error))
+ {
+ Error = error;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets error code and message of validation response.
+ ///
+ [JsonProperty(PropertyName = "error")]
+ public Error Error { get; private set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationRequest.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationRequest.cs
new file mode 100644
index 0000000000000..db49123fc6083
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationRequest.cs
@@ -0,0 +1,70 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Microsoft.Rest;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Input request for all pre job creation validation.
+ ///
+ public partial class ValidationRequest
+ {
+ ///
+ /// Initializes a new instance of the ValidationRequest class.
+ ///
+ public ValidationRequest()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ValidationRequest class.
+ ///
+ /// List of request details
+ /// contain validationType and its request as key and value
+ /// respectively.
+ public ValidationRequest(IList individualRequestDetails)
+ {
+ IndividualRequestDetails = individualRequestDetails;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets or sets list of request details contain validationType and its
+ /// request as key and value respectively.
+ ///
+ [JsonProperty(PropertyName = "individualRequestDetails")]
+ public IList IndividualRequestDetails { get; set; }
+
+ ///
+ /// Validate the object.
+ ///
+ ///
+ /// Thrown if validation fails
+ ///
+ public virtual void Validate()
+ {
+ if (IndividualRequestDetails == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "IndividualRequestDetails");
+ }
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationResponse.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationResponse.cs
new file mode 100644
index 0000000000000..d1cd19287dbd1
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationResponse.cs
@@ -0,0 +1,71 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Microsoft.Rest;
+ using Microsoft.Rest.Serialization;
+ using Newtonsoft.Json;
+ using System.Collections;
+ using System.Collections.Generic;
+ using System.Linq;
+
+ ///
+ /// Response of pre job creation validations.
+ ///
+ [Rest.Serialization.JsonTransformation]
+ public partial class ValidationResponse
+ {
+ ///
+ /// Initializes a new instance of the ValidationResponse class.
+ ///
+ public ValidationResponse()
+ {
+ CustomInit();
+ }
+
+ ///
+ /// Initializes a new instance of the ValidationResponse class.
+ ///
+ /// Overall validation status. Possible values
+ /// include: 'AllValidToProceed', 'InputsRevisitRequired',
+ /// 'CertainInputValidationsSkipped'
+ /// List of response details
+ /// contain validationType and its response as key and value
+ /// respectively.
+ public ValidationResponse(OverallValidationStatus? status = default(OverallValidationStatus?), IList individualResponseDetails = default(IList))
+ {
+ Status = status;
+ IndividualResponseDetails = individualResponseDetails;
+ CustomInit();
+ }
+
+ ///
+ /// An initialization method that performs custom operations like setting defaults
+ ///
+ partial void CustomInit();
+
+ ///
+ /// Gets overall validation status. Possible values include:
+ /// 'AllValidToProceed', 'InputsRevisitRequired',
+ /// 'CertainInputValidationsSkipped'
+ ///
+ [JsonProperty(PropertyName = "properties.status")]
+ public OverallValidationStatus? Status { get; private set; }
+
+ ///
+ /// Gets list of response details contain validationType and its
+ /// response as key and value respectively.
+ ///
+ [JsonProperty(PropertyName = "properties.individualResponseDetails")]
+ public IList IndividualResponseDetails { get; private set; }
+
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationStatus.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationStatus.cs
new file mode 100644
index 0000000000000..96f44c3a80928
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/Models/ValidationStatus.cs
@@ -0,0 +1,75 @@
+//
+// 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.Management.DataBox.Models
+{
+ using Newtonsoft.Json;
+ using Newtonsoft.Json.Converters;
+ using System.Runtime;
+ using System.Runtime.Serialization;
+
+ ///
+ /// Defines values for ValidationStatus.
+ ///
+ [JsonConverter(typeof(StringEnumConverter))]
+ public enum ValidationStatus
+ {
+ ///
+ /// Validation is successful
+ ///
+ [EnumMember(Value = "Valid")]
+ Valid,
+ ///
+ /// Validation is not successful
+ ///
+ [EnumMember(Value = "Invalid")]
+ Invalid,
+ ///
+ /// Validation is skipped
+ ///
+ [EnumMember(Value = "Skipped")]
+ Skipped
+ }
+ internal static class ValidationStatusEnumExtension
+ {
+ internal static string ToSerializedValue(this ValidationStatus? value)
+ {
+ return value == null ? null : ((ValidationStatus)value).ToSerializedValue();
+ }
+
+ internal static string ToSerializedValue(this ValidationStatus value)
+ {
+ switch( value )
+ {
+ case ValidationStatus.Valid:
+ return "Valid";
+ case ValidationStatus.Invalid:
+ return "Invalid";
+ case ValidationStatus.Skipped:
+ return "Skipped";
+ }
+ return null;
+ }
+
+ internal static ValidationStatus? ParseValidationStatus(this string value)
+ {
+ switch( value )
+ {
+ case "Valid":
+ return ValidationStatus.Valid;
+ case "Invalid":
+ return ValidationStatus.Invalid;
+ case "Skipped":
+ return ValidationStatus.Skipped;
+ }
+ return null;
+ }
+ }
+}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/SdkInfo_DataBoxManagementClient.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/SdkInfo_DataBoxManagementClient.cs
index 2e02594a361d6..23a0777f6355b 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/SdkInfo_DataBoxManagementClient.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/SdkInfo_DataBoxManagementClient.cs
@@ -19,19 +19,19 @@ public static IEnumerable> ApiInfo_DataBoxManageme
{
return new Tuple[]
{
- new Tuple("DataBox", "Jobs", "2018-01-01"),
- new Tuple("DataBox", "Operations", "2018-01-01"),
- new Tuple("DataBox", "Service", "2018-01-01"),
+ new Tuple("DataBox", "Jobs", "2019-09-01"),
+ new Tuple("DataBox", "Operations", "2019-09-01"),
+ new Tuple("DataBox", "Service", "2019-09-01"),
}.AsEnumerable();
}
}
// BEGIN: Code Generation Metadata Section
public static readonly String AutoRestVersion = "latest";
public static readonly String AutoRestBootStrapperVersion = "autorest@2.0.4283";
- public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/databox/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --csharp-sdks-folder=E:\\work\\git\\azure-sdk-for-net\\src\\SDKs";
+ public static readonly String AutoRestCmdExecuted = "cmd.exe /c autorest.cmd https://github.com/Azure/azure-rest-api-specs/blob/master/specification/databox/resource-manager/readme.md --csharp --version=latest --reflect-api-versions --tag=package-2019-09 --csharp-sdks-folder=D:\\god\\azure_sdk_net\\azure-sdk-for-net\\sdk";
public static readonly String GithubForkName = "Azure";
public static readonly String GithubBranchName = "master";
- public static readonly String GithubCommidId = "be799c37e1df63769895f0ae6fc51d65c69aba27";
+ public static readonly String GithubCommidId = "59998f796f05580bc1d43ba39f0170204113fa91";
public static readonly String CodeGenerationErrors = "";
public static readonly String GithubRepoName = "azure-rest-api-specs";
// END: Code Generation Metadata Section
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperations.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperations.cs
index db4d7cef50bab..987205bf522c2 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperations.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperations.cs
@@ -257,18 +257,860 @@ internal ServiceOperations(DataBoxManagementClient client)
}
///
- /// This method validates the customer shipping address and provide alternate
- /// addresses if any.
+ /// This method provides the list of available skus for the given subscription,
+ /// resource group and location.
+ ///
+ ///
+ /// The Resource Group Name
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Filters for showing the available skus.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListAvailableSkusByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string location, AvailableSkuRequest availableSkuRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (availableSkuRequest == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "availableSkuRequest");
+ }
+ if (availableSkuRequest != null)
+ {
+ availableSkuRequest.Validate();
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("availableSkuRequest", availableSkuRequest);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListAvailableSkusByResourceGroup", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/availableSkus").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(availableSkuRequest != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(availableSkuRequest, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// [DEPRECATED NOTICE: This operation will soon be removed] This method
+ /// validates the customer shipping address and provide alternate addresses if
+ /// any.
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Shipping address of the customer.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ [System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
+ public async Task> ValidateAddressMethodWithHttpMessagesAsync(string location, ValidateAddress validateAddress, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (validateAddress == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "validateAddress");
+ }
+ if (validateAddress != null)
+ {
+ validateAddress.Validate();
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("validateAddress", validateAddress);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ValidateAddressMethod", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(validateAddress != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(validateAddress, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// This method does all necessary pre-job creation validation under resource
+ /// group.
+ ///
+ ///
+ /// The Resource Group Name
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Inputs of the customer.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> ValidateInputsByResourceGroupWithHttpMessagesAsync(string resourceGroupName, string location, ValidationRequest validationRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (resourceGroupName == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "resourceGroupName");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (validationRequest == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "validationRequest");
+ }
+ if (validationRequest != null)
+ {
+ validationRequest.Validate();
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("resourceGroupName", resourceGroupName);
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("validationRequest", validationRequest);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ValidateInputsByResourceGroup", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.DataBox/locations/{location}/validateInputs").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{resourceGroupName}", System.Uri.EscapeDataString(resourceGroupName));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(validationRequest != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(validationRequest, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// This method does all necessary pre-job creation validation under
+ /// subscription.
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Inputs of the customer.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task> ValidateInputsWithHttpMessagesAsync(string location, ValidationRequest validationRequest, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (Client.SubscriptionId == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.SubscriptionId");
+ }
+ if (location == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "location");
+ }
+ if (Client.ApiVersion == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
+ }
+ if (validationRequest == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "validationRequest");
+ }
+ if (validationRequest != null)
+ {
+ validationRequest.Validate();
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("location", location);
+ tracingParameters.Add("validationRequest", validationRequest);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ValidateInputs", tracingParameters);
+ }
+ // Construct URL
+ var _baseUrl = Client.BaseUri.AbsoluteUri;
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateInputs").ToString();
+ _url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
+ _url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
+ List _queryParameters = new List();
+ if (Client.ApiVersion != null)
+ {
+ _queryParameters.Add(string.Format("api-version={0}", System.Uri.EscapeDataString(Client.ApiVersion)));
+ }
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ if(validationRequest != null)
+ {
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(validationRequest, Client.SerializationSettings);
+ _httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
+ _httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
+ }
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
+ ///
+ /// This API provides configuration details specific to given region/location.
///
///
/// The location of the resource
///
- ///
- /// Shipping address of the customer.
+ ///
+ /// Request body to get the availability for scheduling orders.
///
- ///
- /// Device type to be used for the job. Possible values include: 'DataBox',
- /// 'DataBoxDisk', 'DataBoxHeavy'
+ ///
+ /// Request body to get the transport availability for given sku.
///
///
/// Headers that will be added to request.
@@ -291,7 +1133,7 @@ internal ServiceOperations(DataBoxManagementClient client)
///
/// A response object containing the response body and response headers.
///
- public async Task> ValidateAddressMethodWithHttpMessagesAsync(string location, ShippingAddress shippingAddress, SkuName deviceType, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ public async Task> RegionConfigurationWithHttpMessagesAsync(string location, ScheduleAvailabilityRequest scheduleAvailabilityRequest = default(ScheduleAvailabilityRequest), TransportAvailabilityRequest transportAvailabilityRequest = default(TransportAvailabilityRequest), Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
{
if (Client.SubscriptionId == null)
{
@@ -305,19 +1147,15 @@ internal ServiceOperations(DataBoxManagementClient client)
{
throw new ValidationException(ValidationRules.CannotBeNull, "this.Client.ApiVersion");
}
- if (shippingAddress == null)
- {
- throw new ValidationException(ValidationRules.CannotBeNull, "shippingAddress");
- }
- if (shippingAddress != null)
+ if (scheduleAvailabilityRequest != null)
{
- shippingAddress.Validate();
+ scheduleAvailabilityRequest.Validate();
}
- ValidateAddress validateAddress = new ValidateAddress();
- if (shippingAddress != null)
+ RegionConfigurationRequest regionConfigurationRequest = new RegionConfigurationRequest();
+ if (scheduleAvailabilityRequest != null || transportAvailabilityRequest != null)
{
- validateAddress.ShippingAddress = shippingAddress;
- validateAddress.DeviceType = deviceType;
+ regionConfigurationRequest.ScheduleAvailabilityRequest = scheduleAvailabilityRequest;
+ regionConfigurationRequest.TransportAvailabilityRequest = transportAvailabilityRequest;
}
// Tracing
bool _shouldTrace = ServiceClientTracing.IsEnabled;
@@ -327,13 +1165,13 @@ internal ServiceOperations(DataBoxManagementClient client)
_invocationId = ServiceClientTracing.NextInvocationId.ToString();
Dictionary tracingParameters = new Dictionary();
tracingParameters.Add("location", location);
- tracingParameters.Add("validateAddress", validateAddress);
+ tracingParameters.Add("regionConfigurationRequest", regionConfigurationRequest);
tracingParameters.Add("cancellationToken", cancellationToken);
- ServiceClientTracing.Enter(_invocationId, this, "ValidateAddressMethod", tracingParameters);
+ ServiceClientTracing.Enter(_invocationId, this, "RegionConfiguration", tracingParameters);
}
// Construct URL
var _baseUrl = Client.BaseUri.AbsoluteUri;
- var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/validateAddress").ToString();
+ var _url = new System.Uri(new System.Uri(_baseUrl + (_baseUrl.EndsWith("/") ? "" : "/")), "subscriptions/{subscriptionId}/providers/Microsoft.DataBox/locations/{location}/regionConfiguration").ToString();
_url = _url.Replace("{subscriptionId}", System.Uri.EscapeDataString(Client.SubscriptionId));
_url = _url.Replace("{location}", System.Uri.EscapeDataString(location));
List _queryParameters = new List();
@@ -379,9 +1217,9 @@ internal ServiceOperations(DataBoxManagementClient client)
// Serialize Request
string _requestContent = null;
- if(validateAddress != null)
+ if(regionConfigurationRequest != null)
{
- _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(validateAddress, Client.SerializationSettings);
+ _requestContent = Rest.Serialization.SafeJsonConvert.SerializeObject(regionConfigurationRequest, Client.SerializationSettings);
_httpRequest.Content = new StringContent(_requestContent, System.Text.Encoding.UTF8);
_httpRequest.Content.Headers.ContentType =System.Net.Http.Headers.MediaTypeHeaderValue.Parse("application/json; charset=utf-8");
}
@@ -440,7 +1278,7 @@ internal ServiceOperations(DataBoxManagementClient client)
throw ex;
}
// Create Result
- var _result = new AzureOperationResponse();
+ var _result = new AzureOperationResponse();
_result.Request = _httpRequest;
_result.Response = _httpResponse;
if (_httpResponse.Headers.Contains("x-ms-request-id"))
@@ -453,7 +1291,7 @@ internal ServiceOperations(DataBoxManagementClient client)
_responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
try
{
- _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
}
catch (JsonException ex)
{
@@ -646,5 +1484,179 @@ internal ServiceOperations(DataBoxManagementClient client)
return _result;
}
+ ///
+ /// This method provides the list of available skus for the given subscription,
+ /// resource group and location.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// Headers that will be added to request.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ ///
+ /// Thrown when the operation returned an invalid status code
+ ///
+ ///
+ /// Thrown when unable to deserialize the response
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// Thrown when a required parameter is null
+ ///
+ ///
+ /// A response object containing the response body and response headers.
+ ///
+ public async Task>> ListAvailableSkusByResourceGroupNextWithHttpMessagesAsync(string nextPageLink, Dictionary> customHeaders = null, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ if (nextPageLink == null)
+ {
+ throw new ValidationException(ValidationRules.CannotBeNull, "nextPageLink");
+ }
+ // Tracing
+ bool _shouldTrace = ServiceClientTracing.IsEnabled;
+ string _invocationId = null;
+ if (_shouldTrace)
+ {
+ _invocationId = ServiceClientTracing.NextInvocationId.ToString();
+ Dictionary tracingParameters = new Dictionary();
+ tracingParameters.Add("nextPageLink", nextPageLink);
+ tracingParameters.Add("cancellationToken", cancellationToken);
+ ServiceClientTracing.Enter(_invocationId, this, "ListAvailableSkusByResourceGroupNext", tracingParameters);
+ }
+ // Construct URL
+ string _url = "{nextLink}";
+ _url = _url.Replace("{nextLink}", nextPageLink);
+ List _queryParameters = new List();
+ if (_queryParameters.Count > 0)
+ {
+ _url += (_url.Contains("?") ? "&" : "?") + string.Join("&", _queryParameters);
+ }
+ // Create HTTP transport objects
+ var _httpRequest = new HttpRequestMessage();
+ HttpResponseMessage _httpResponse = null;
+ _httpRequest.Method = new HttpMethod("POST");
+ _httpRequest.RequestUri = new System.Uri(_url);
+ // Set Headers
+ if (Client.GenerateClientRequestId != null && Client.GenerateClientRequestId.Value)
+ {
+ _httpRequest.Headers.TryAddWithoutValidation("x-ms-client-request-id", System.Guid.NewGuid().ToString());
+ }
+ if (Client.AcceptLanguage != null)
+ {
+ if (_httpRequest.Headers.Contains("accept-language"))
+ {
+ _httpRequest.Headers.Remove("accept-language");
+ }
+ _httpRequest.Headers.TryAddWithoutValidation("accept-language", Client.AcceptLanguage);
+ }
+
+
+ if (customHeaders != null)
+ {
+ foreach(var _header in customHeaders)
+ {
+ if (_httpRequest.Headers.Contains(_header.Key))
+ {
+ _httpRequest.Headers.Remove(_header.Key);
+ }
+ _httpRequest.Headers.TryAddWithoutValidation(_header.Key, _header.Value);
+ }
+ }
+
+ // Serialize Request
+ string _requestContent = null;
+ // Set Credentials
+ if (Client.Credentials != null)
+ {
+ cancellationToken.ThrowIfCancellationRequested();
+ await Client.Credentials.ProcessHttpRequestAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ }
+ // Send Request
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.SendRequest(_invocationId, _httpRequest);
+ }
+ cancellationToken.ThrowIfCancellationRequested();
+ _httpResponse = await Client.HttpClient.SendAsync(_httpRequest, cancellationToken).ConfigureAwait(false);
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.ReceiveResponse(_invocationId, _httpResponse);
+ }
+ HttpStatusCode _statusCode = _httpResponse.StatusCode;
+ cancellationToken.ThrowIfCancellationRequested();
+ string _responseContent = null;
+ if ((int)_statusCode != 200)
+ {
+ var ex = new CloudException(string.Format("Operation returned an invalid status code '{0}'", _statusCode));
+ try
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ CloudError _errorBody = Rest.Serialization.SafeJsonConvert.DeserializeObject(_responseContent, Client.DeserializationSettings);
+ if (_errorBody != null)
+ {
+ ex = new CloudException(_errorBody.Message);
+ ex.Body = _errorBody;
+ }
+ }
+ catch (JsonException)
+ {
+ // Ignore the exception
+ }
+ ex.Request = new HttpRequestMessageWrapper(_httpRequest, _requestContent);
+ ex.Response = new HttpResponseMessageWrapper(_httpResponse, _responseContent);
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ ex.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Error(_invocationId, ex);
+ }
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw ex;
+ }
+ // Create Result
+ var _result = new AzureOperationResponse>();
+ _result.Request = _httpRequest;
+ _result.Response = _httpResponse;
+ if (_httpResponse.Headers.Contains("x-ms-request-id"))
+ {
+ _result.RequestId = _httpResponse.Headers.GetValues("x-ms-request-id").FirstOrDefault();
+ }
+ // Deserialize Response
+ if ((int)_statusCode == 200)
+ {
+ _responseContent = await _httpResponse.Content.ReadAsStringAsync().ConfigureAwait(false);
+ try
+ {
+ _result.Body = Rest.Serialization.SafeJsonConvert.DeserializeObject>(_responseContent, Client.DeserializationSettings);
+ }
+ catch (JsonException ex)
+ {
+ _httpRequest.Dispose();
+ if (_httpResponse != null)
+ {
+ _httpResponse.Dispose();
+ }
+ throw new SerializationException("Unable to deserialize the response.", _responseContent, ex);
+ }
+ }
+ if (_shouldTrace)
+ {
+ ServiceClientTracing.Exit(_invocationId, _result);
+ }
+ return _result;
+ }
+
}
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperationsExtensions.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperationsExtensions.cs
index 5ede4b7215b4f..bb2b513fe1f6f 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperationsExtensions.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Generated/ServiceOperationsExtensions.cs
@@ -64,30 +64,77 @@ public static IPage ListAvailableSkus(this IServiceOperations op
}
///
- /// This method validates the customer shipping address and provide alternate
- /// addresses if any.
+ /// This method provides the list of available skus for the given subscription,
+ /// resource group and location.
///
///
/// The operations group for this extension method.
///
+ ///
+ /// The Resource Group Name
+ ///
///
/// The location of the resource
///
- ///
- /// Shipping address of the customer.
+ ///
+ /// Filters for showing the available skus.
+ ///
+ public static IPage ListAvailableSkusByResourceGroup(this IServiceOperations operations, string resourceGroupName, string location, AvailableSkuRequest availableSkuRequest)
+ {
+ return operations.ListAvailableSkusByResourceGroupAsync(resourceGroupName, location, availableSkuRequest).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// This method provides the list of available skus for the given subscription,
+ /// resource group and location.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The Resource Group Name
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Filters for showing the available skus.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListAvailableSkusByResourceGroupAsync(this IServiceOperations operations, string resourceGroupName, string location, AvailableSkuRequest availableSkuRequest, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListAvailableSkusByResourceGroupWithHttpMessagesAsync(resourceGroupName, location, availableSkuRequest, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// [DEPRECATED NOTICE: This operation will soon be removed] This method
+ /// validates the customer shipping address and provide alternate addresses if
+ /// any.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The location of the resource
///
- ///
- /// Device type to be used for the job. Possible values include: 'DataBox',
- /// 'DataBoxDisk', 'DataBoxHeavy'
+ ///
+ /// Shipping address of the customer.
///
- public static AddressValidationOutput ValidateAddressMethod(this IServiceOperations operations, string location, ShippingAddress shippingAddress, SkuName deviceType)
+ [System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
+ public static AddressValidationOutput ValidateAddressMethod(this IServiceOperations operations, string location, ValidateAddress validateAddress)
{
- return operations.ValidateAddressMethodAsync(location, shippingAddress, deviceType).GetAwaiter().GetResult();
+ return operations.ValidateAddressMethodAsync(location, validateAddress).GetAwaiter().GetResult();
}
///
- /// This method validates the customer shipping address and provide alternate
- /// addresses if any.
+ /// [DEPRECATED NOTICE: This operation will soon be removed] This method
+ /// validates the customer shipping address and provide alternate addresses if
+ /// any.
///
///
/// The operations group for this extension method.
@@ -95,19 +142,152 @@ public static AddressValidationOutput ValidateAddressMethod(this IServiceOperati
///
/// The location of the resource
///
- ///
+ ///
/// Shipping address of the customer.
///
- ///
- /// Device type to be used for the job. Possible values include: 'DataBox',
- /// 'DataBoxDisk', 'DataBoxHeavy'
+ ///
+ /// The cancellation token.
+ ///
+ [System.Obsolete("This operation is deprecated. Please do not use it any longer.")]
+ public static async Task ValidateAddressMethodAsync(this IServiceOperations operations, string location, ValidateAddress validateAddress, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ValidateAddressMethodWithHttpMessagesAsync(location, validateAddress, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// This method does all necessary pre-job creation validation under resource
+ /// group.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The Resource Group Name
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Inputs of the customer.
+ ///
+ public static ValidationResponse ValidateInputsByResourceGroup(this IServiceOperations operations, string resourceGroupName, string location, ValidationRequest validationRequest)
+ {
+ return operations.ValidateInputsByResourceGroupAsync(resourceGroupName, location, validationRequest).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// This method does all necessary pre-job creation validation under resource
+ /// group.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The Resource Group Name
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Inputs of the customer.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task ValidateInputsByResourceGroupAsync(this IServiceOperations operations, string resourceGroupName, string location, ValidationRequest validationRequest, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ValidateInputsByResourceGroupWithHttpMessagesAsync(resourceGroupName, location, validationRequest, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// This method does all necessary pre-job creation validation under
+ /// subscription.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Inputs of the customer.
+ ///
+ public static ValidationResponse ValidateInputs(this IServiceOperations operations, string location, ValidationRequest validationRequest)
+ {
+ return operations.ValidateInputsAsync(location, validationRequest).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// This method does all necessary pre-job creation validation under
+ /// subscription.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Inputs of the customer.
///
///
/// The cancellation token.
///
- public static async Task ValidateAddressMethodAsync(this IServiceOperations operations, string location, ShippingAddress shippingAddress, SkuName deviceType, CancellationToken cancellationToken = default(CancellationToken))
+ public static async Task ValidateInputsAsync(this IServiceOperations operations, string location, ValidationRequest validationRequest, CancellationToken cancellationToken = default(CancellationToken))
{
- using (var _result = await operations.ValidateAddressMethodWithHttpMessagesAsync(location, shippingAddress, deviceType, null, cancellationToken).ConfigureAwait(false))
+ using (var _result = await operations.ValidateInputsWithHttpMessagesAsync(location, validationRequest, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
+ ///
+ /// This API provides configuration details specific to given region/location.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Request body to get the availability for scheduling orders.
+ ///
+ ///
+ /// Request body to get the transport availability for given sku.
+ ///
+ public static RegionConfigurationResponse RegionConfiguration(this IServiceOperations operations, string location, ScheduleAvailabilityRequest scheduleAvailabilityRequest = default(ScheduleAvailabilityRequest), TransportAvailabilityRequest transportAvailabilityRequest = default(TransportAvailabilityRequest))
+ {
+ return operations.RegionConfigurationAsync(location, scheduleAvailabilityRequest, transportAvailabilityRequest).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// This API provides configuration details specific to given region/location.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The location of the resource
+ ///
+ ///
+ /// Request body to get the availability for scheduling orders.
+ ///
+ ///
+ /// Request body to get the transport availability for given sku.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task RegionConfigurationAsync(this IServiceOperations operations, string location, ScheduleAvailabilityRequest scheduleAvailabilityRequest = default(ScheduleAvailabilityRequest), TransportAvailabilityRequest transportAvailabilityRequest = default(TransportAvailabilityRequest), CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.RegionConfigurationWithHttpMessagesAsync(location, scheduleAvailabilityRequest, transportAvailabilityRequest, null, cancellationToken).ConfigureAwait(false))
{
return _result.Body;
}
@@ -149,5 +329,41 @@ public static IPage ListAvailableSkusNext(this IServiceOperation
}
}
+ ///
+ /// This method provides the list of available skus for the given subscription,
+ /// resource group and location.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ public static IPage ListAvailableSkusByResourceGroupNext(this IServiceOperations operations, string nextPageLink)
+ {
+ return operations.ListAvailableSkusByResourceGroupNextAsync(nextPageLink).GetAwaiter().GetResult();
+ }
+
+ ///
+ /// This method provides the list of available skus for the given subscription,
+ /// resource group and location.
+ ///
+ ///
+ /// The operations group for this extension method.
+ ///
+ ///
+ /// The NextLink from the previous successful call to List operation.
+ ///
+ ///
+ /// The cancellation token.
+ ///
+ public static async Task> ListAvailableSkusByResourceGroupNextAsync(this IServiceOperations operations, string nextPageLink, CancellationToken cancellationToken = default(CancellationToken))
+ {
+ using (var _result = await operations.ListAvailableSkusByResourceGroupNextWithHttpMessagesAsync(nextPageLink, null, cancellationToken).ConfigureAwait(false))
+ {
+ return _result.Body;
+ }
+ }
+
}
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Microsoft.Azure.Management.DataBox.csproj b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Microsoft.Azure.Management.DataBox.csproj
index de47cf9f0925a..c60c8b81a19e5 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/src/Microsoft.Azure.Management.DataBox.csproj
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/src/Microsoft.Azure.Management.DataBox.csproj
@@ -7,7 +7,7 @@
Microsoft.Azure.Management.DataBox
Microsoft Azure Management DataBox library
Microsoft.Azure.Management.DataBox
- 1.0.1
+ 1.2.0
AzureDataBox;DataBox;
@@ -24,6 +24,10 @@
4) Ordering a pickup from logistic partners for the device
5) Fetching list of available skus in Data Box family based on customer location
+
+ 6) Validating Job creation inputs and its supportability by Azure Data Box service
+
+ 7) Fetching region configuration details supported by Azure Data Box service
]]>
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Microsoft.Azure.Management.DataBox.Tests.csproj b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Microsoft.Azure.Management.DataBox.Tests.csproj
index f98f5858b5f60..74f23498b9ad5 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Microsoft.Azure.Management.DataBox.Tests.csproj
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Microsoft.Azure.Management.DataBox.Tests.csproj
@@ -7,6 +7,9 @@
1.0.0
true
+
+ netcoreapp2.0
+
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/SessionRecords/JobCRUDTests/TestScheduledJob.json b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/SessionRecords/JobCRUDTests/TestScheduledJob.json
new file mode 100644
index 0000000000000..e36f9d444f479
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/SessionRecords/JobCRUDTests/TestScheduledJob.json
@@ -0,0 +1,1562 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/SdkRg1164?api-version=2015-11-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Jlc291cmNlZ3JvdXBzL1Nka1JnMTE2ND9hcGktdmVyc2lvbj0yMDE1LTExLTAx",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"location\": \"westus\"\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "521b4302-1cda-476f-b949-566aab5406bb"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.Resources.ResourceManagementClient/1.0.0.0"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "28"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-request-id": [
+ "96495943-938f-4c86-8f07-52c73a1e99c5"
+ ],
+ "x-ms-correlation-request-id": [
+ "96495943-938f-4c86-8f07-52c73a1e99c5"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105639Z:96495943-938f-4c86-8f07-52c73a1e99c5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:56:39 GMT"
+ ],
+ "Content-Length": [
+ "171"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164\",\r\n \"name\": \"SdkRg1164\",\r\n \"location\": \"westus\",\r\n \"properties\": {\r\n \"provisioningState\": \"Succeeded\"\r\n }\r\n}",
+ "StatusCode": 201
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388?api-version=2019-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Jlc291cmNlR3JvdXBzL1Nka1JnMTE2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFCb3gvam9icy9TZGtKb2IzODg/YXBpLXZlcnNpb249MjAxOS0wOS0wMQ==",
+ "RequestMethod": "PUT",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"details\": {\r\n \"jobDetailsType\": \"DataBox\",\r\n \"contactDetails\": {\r\n \"contactName\": \"Public SDK Test\",\r\n \"phone\": \"1234567890\",\r\n \"phoneExtension\": \"1234\",\r\n \"emailList\": [\r\n \"testing@microsoft.com\"\r\n ]\r\n },\r\n \"shippingAddress\": {\r\n \"streetAddress1\": \"16 TOWNSEND ST\",\r\n \"streetAddress2\": \"Unit 1\",\r\n \"city\": \"San Francisco\",\r\n \"stateOrProvince\": \"CA\",\r\n \"country\": \"US\",\r\n \"postalCode\": \"94107\",\r\n \"companyName\": \"Microsoft\",\r\n \"addressType\": \"Commercial\"\r\n },\r\n \"destinationAccountDetails\": [\r\n {\r\n \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount\"\r\n }\r\n ]\r\n },\r\n \"deliveryType\": \"Scheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"2019-11-03T10:56:34.81743Z\"\r\n }\r\n },\r\n \"location\": \"westus\",\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5393a9ee-584a-450e-8a0f-89bace033957"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "1105"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/4b0dd96b-e054-4ae8-9be8-1ed38257c8de?api-version=2018-01-01"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "46d407be-7a63-4d35-96ba-2357500da0cc"
+ ],
+ "x-ms-client-request-id": [
+ "5393a9ee-584a-450e-8a0f-89bace033957"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "65bce92d-2664-4050-9d48-00238aff5fa8"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105644Z:65bce92d-2664-4050-9d48-00238aff5fa8"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:56:43 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/4b0dd96b-e054-4ae8-9be8-1ed38257c8de?api-version=2018-01-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvblJlc3VsdHMvNGIwZGQ5NmItZTA1NC00YWU4LTliZTgtMWVkMzgyNTdjOGRlP2FwaS12ZXJzaW9uPTIwMTgtMDEtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388?api-version=2018-01-01"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "f922723f-43fb-4346-a036-88053a805509"
+ ],
+ "x-ms-client-request-id": [
+ "a21b9cfd-fc51-4cff-8da2-0aae2eb799ed"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11996"
+ ],
+ "x-ms-correlation-request-id": [
+ "c569865e-1714-4274-8c18-6070ea0ea434"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105654Z:c569865e-1714-4274-8c18-6070ea0ea434"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:56:54 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388?api-version=2018-01-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Jlc291cmNlR3JvdXBzL1Nka1JnMTE2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFCb3gvam9icy9TZGtKb2IzODg/YXBpLXZlcnNpb249MjAxOC0wMS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "36024418-a8cc-43d6-a7fa-b2e9de08e618"
+ ],
+ "x-ms-client-request-id": [
+ "4721e064-1e70-452a-929b-7d9f12744e34"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11995"
+ ],
+ "x-ms-correlation-request-id": [
+ "c1993db7-c43a-410e-9546-c74cc7f1dc9a"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105704Z:c1993db7-c43a-410e-9546-c74cc7f1dc9a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:57:04 GMT"
+ ],
+ "Content-Length": [
+ "648"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"isCancellable\": true,\r\n \"isDeletable\": false,\r\n \"isShippingAddressEditable\": true,\r\n \"status\": \"DeviceOrdered\",\r\n \"startTime\": \"2019-10-14T16:26:43.8410263+05:30\",\r\n \"deliveryType\": \"Scheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"2019-11-03T16:26:34.81743+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"SdkJob388\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388?api-version=2018-01-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Jlc291cmNlR3JvdXBzL1Nka1JnMTE2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFCb3gvam9icy9TZGtKb2IzODg/YXBpLXZlcnNpb249MjAxOC0wMS0wMQ==",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "7637460c-cf9f-4ff4-968a-c9b6b589053e"
+ ],
+ "x-ms-client-request-id": [
+ "508525ff-1a0d-42a8-8aea-1bf277c4d082"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11985"
+ ],
+ "x-ms-correlation-request-id": [
+ "1740facf-a8a7-49b0-a88c-38f1d58b94f6"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105839Z:1740facf-a8a7-49b0-a88c-38f1d58b94f6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:58:39 GMT"
+ ],
+ "Content-Length": [
+ "648"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"isCancellable\": true,\r\n \"isDeletable\": false,\r\n \"isShippingAddressEditable\": true,\r\n \"status\": \"DeviceOrdered\",\r\n \"startTime\": \"2019-10-14T16:26:43.8410263+05:30\",\r\n \"deliveryType\": \"Scheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"2019-11-03T16:26:34.81743+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"SdkJob388\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388?api-version=2019-09-01&$expand=details",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Jlc291cmNlR3JvdXBzL1Nka1JnMTE2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFCb3gvam9icy9TZGtKb2IzODg/YXBpLXZlcnNpb249MjAxOS0wOS0wMSYkZXhwYW5kPWRldGFpbHM=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5e3dfb30-ab0c-4ac9-b9db-8b6bc631b9e5"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "42fe0242-fd8d-40c6-a613-9062e23480bc"
+ ],
+ "x-ms-client-request-id": [
+ "5e3dfb30-ab0c-4ac9-b9db-8b6bc631b9e5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11994"
+ ],
+ "x-ms-correlation-request-id": [
+ "901c4115-fc21-4c49-838f-e2d4e9e307c4"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105705Z:901c4115-fc21-4c49-838f-e2d4e9e307c4"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:57:04 GMT"
+ ],
+ "Content-Length": [
+ "3818"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"isCancellable\": true,\r\n \"isDeletable\": false,\r\n \"isShippingAddressEditable\": true,\r\n \"status\": \"DeviceOrdered\",\r\n \"startTime\": \"2019-10-14T16:26:43.8410263+05:30\",\r\n \"details\": {\r\n \"copyProgress\": [],\r\n \"jobStages\": [\r\n {\r\n \"stageName\": \"DeviceOrdered\",\r\n \"displayName\": \"Ordered\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": \"DevicePrepared\",\r\n \"displayName\": \"Processed\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": \"Dispatched\",\r\n \"displayName\": \"Dispatched\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": \"Delivered\",\r\n \"displayName\": \"Delivered\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": \"PickedUp\",\r\n \"displayName\": \"Picked up\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": \"AtAzureDC\",\r\n \"displayName\": \"Received\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": \"DataCopy\",\r\n \"displayName\": \"Data copy in progress\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": \"Completed\",\r\n \"displayName\": \"Completed\",\r\n \"stageStatus\": \"None\"\r\n }\r\n ],\r\n \"contactDetails\": {\r\n \"contactName\": \"Public SDK Test\",\r\n \"phone\": \"1234567890\",\r\n \"phoneExtension\": \"1234\",\r\n \"emailList\": [\r\n \"testing@microsoft.com\"\r\n ],\r\n \"notificationPreference\": [\r\n {\r\n \"stageName\": \"DevicePrepared\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"Dispatched\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"Delivered\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"PickedUp\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"AtAzureDC\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"DataCopy\",\r\n \"sendNotification\": true\r\n }\r\n ]\r\n },\r\n \"shippingAddress\": {\r\n \"streetAddress1\": \"16 TOWNSEND ST\",\r\n \"streetAddress2\": \"Unit 1\",\r\n \"city\": \"San Francisco\",\r\n \"stateOrProvince\": \"CA\",\r\n \"country\": \"US\",\r\n \"postalCode\": \"94107\",\r\n \"companyName\": \"Microsoft\",\r\n \"addressType\": \"Commercial\"\r\n },\r\n \"deliveryPackage\": {\r\n \"carrierName\": \"\",\r\n \"trackingId\": \"\",\r\n \"trackingUrl\": \"\"\r\n },\r\n \"returnPackage\": {\r\n \"carrierName\": \"\",\r\n \"trackingId\": \"\",\r\n \"trackingUrl\": \"\"\r\n },\r\n \"destinationAccountDetails\": [\r\n {\r\n \"storageAccountId\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount\",\r\n \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount\"\r\n }\r\n ],\r\n \"errorDetails\": [],\r\n \"jobDetailsType\": \"DataBox\",\r\n \"copyLogDetails\": []\r\n },\r\n \"deliveryType\": \"Scheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"2019-11-03T16:26:34.81743+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"SdkJob388\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388?api-version=2019-09-01&$expand=details",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Jlc291cmNlR3JvdXBzL1Nka1JnMTE2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFCb3gvam9icy9TZGtKb2IzODg/YXBpLXZlcnNpb249MjAxOS0wOS0wMSYkZXhwYW5kPWRldGFpbHM=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "3e404832-9fec-477b-8e9a-91e52fa9354e"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "84b0e4cc-ce19-4659-b6e2-ae0126fa2101"
+ ],
+ "x-ms-client-request-id": [
+ "3e404832-9fec-477b-8e9a-91e52fa9354e"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11984"
+ ],
+ "x-ms-correlation-request-id": [
+ "61553153-b542-4796-9147-6ccdc8cc83e6"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105840Z:61553153-b542-4796-9147-6ccdc8cc83e6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:58:40 GMT"
+ ],
+ "Content-Length": [
+ "3879"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"isCancellable\": true,\r\n \"isDeletable\": false,\r\n \"isShippingAddressEditable\": true,\r\n \"status\": \"DeviceOrdered\",\r\n \"startTime\": \"2019-10-14T16:26:43.8410263+05:30\",\r\n \"details\": {\r\n \"copyProgress\": [],\r\n \"jobStages\": [\r\n {\r\n \"stageName\": \"DeviceOrdered\",\r\n \"displayName\": \"Ordered\",\r\n \"stageStatus\": \"Succeeded\",\r\n \"stageTime\": \"2019-10-14T16:27:23.2392894+05:30\"\r\n },\r\n {\r\n \"stageName\": \"DevicePrepared\",\r\n \"displayName\": \"Processed\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": \"Dispatched\",\r\n \"displayName\": \"Dispatched\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": \"Delivered\",\r\n \"displayName\": \"Delivered\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": \"PickedUp\",\r\n \"displayName\": \"Picked up\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": \"AtAzureDC\",\r\n \"displayName\": \"Received\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": \"DataCopy\",\r\n \"displayName\": \"Data copy in progress\",\r\n \"stageStatus\": \"None\"\r\n },\r\n {\r\n \"stageName\": \"Completed\",\r\n \"displayName\": \"Completed\",\r\n \"stageStatus\": \"None\"\r\n }\r\n ],\r\n \"contactDetails\": {\r\n \"contactName\": \"Update Job\",\r\n \"phone\": \"1234567890\",\r\n \"phoneExtension\": \"1234\",\r\n \"emailList\": [\r\n \"testing@microsoft.com\"\r\n ],\r\n \"notificationPreference\": [\r\n {\r\n \"stageName\": \"DevicePrepared\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"Dispatched\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"Delivered\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"PickedUp\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"AtAzureDC\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"DataCopy\",\r\n \"sendNotification\": true\r\n }\r\n ]\r\n },\r\n \"shippingAddress\": {\r\n \"streetAddress1\": \"16 TOWNSEND ST\",\r\n \"streetAddress2\": \"Unit 1\",\r\n \"city\": \"San Francisco\",\r\n \"stateOrProvince\": \"CA\",\r\n \"country\": \"US\",\r\n \"postalCode\": \"94107\",\r\n \"companyName\": \"Microsoft\",\r\n \"addressType\": \"Commercial\"\r\n },\r\n \"deliveryPackage\": {\r\n \"carrierName\": \"\",\r\n \"trackingId\": \"\",\r\n \"trackingUrl\": \"\"\r\n },\r\n \"returnPackage\": {\r\n \"carrierName\": \"\",\r\n \"trackingId\": \"\",\r\n \"trackingUrl\": \"\"\r\n },\r\n \"destinationAccountDetails\": [\r\n {\r\n \"storageAccountId\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount\",\r\n \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount\"\r\n }\r\n ],\r\n \"errorDetails\": [],\r\n \"jobDetailsType\": \"DataBox\",\r\n \"copyLogDetails\": []\r\n },\r\n \"deliveryType\": \"Scheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"2019-11-03T16:26:34.81743+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"SdkJob388\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388?api-version=2019-09-01&$expand=details",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Jlc291cmNlR3JvdXBzL1Nka1JnMTE2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFCb3gvam9icy9TZGtKb2IzODg/YXBpLXZlcnNpb249MjAxOS0wOS0wMSYkZXhwYW5kPWRldGFpbHM=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "cf88cfb7-2de2-4944-823e-3a1409eb4a4a"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "acfbf3b2-b1a0-4bdf-b99c-04f2b8da677e"
+ ],
+ "x-ms-client-request-id": [
+ "cf88cfb7-2de2-4944-823e-3a1409eb4a4a"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11981"
+ ],
+ "x-ms-correlation-request-id": [
+ "25a8fa3c-2ce6-498d-94cd-5d7f04fd8b7b"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105845Z:25a8fa3c-2ce6-498d-94cd-5d7f04fd8b7b"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:58:44 GMT"
+ ],
+ "Content-Length": [
+ "3555"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-10-14T16:26:43.8410263+05:30\",\r\n \"details\": {\r\n \"copyProgress\": [\r\n {\r\n \"storageAccountName\": \"databoxbvttestaccount\",\r\n \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount\",\r\n \"bytesSentToCloud\": 0,\r\n \"totalBytesToProcess\": 0\r\n }\r\n ],\r\n \"jobStages\": [\r\n {\r\n \"stageName\": \"DeviceOrdered\",\r\n \"displayName\": \"Ordered\",\r\n \"stageStatus\": \"Succeeded\",\r\n \"stageTime\": \"2019-10-14T16:27:23.2392894+05:30\"\r\n },\r\n {\r\n \"stageName\": \"Cancelled\",\r\n \"displayName\": \"Canceled\",\r\n \"stageStatus\": \"Succeeded\",\r\n \"stageTime\": \"2019-10-14T16:28:44.3098304+05:30\"\r\n }\r\n ],\r\n \"contactDetails\": {\r\n \"contactName\": \"Update Job\",\r\n \"phone\": \"1234567890\",\r\n \"phoneExtension\": \"1234\",\r\n \"emailList\": [\r\n \"testing@microsoft.com\"\r\n ],\r\n \"notificationPreference\": [\r\n {\r\n \"stageName\": \"DevicePrepared\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"Dispatched\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"Delivered\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"PickedUp\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"AtAzureDC\",\r\n \"sendNotification\": true\r\n },\r\n {\r\n \"stageName\": \"DataCopy\",\r\n \"sendNotification\": true\r\n }\r\n ]\r\n },\r\n \"shippingAddress\": {\r\n \"streetAddress1\": \"16 TOWNSEND ST\",\r\n \"streetAddress2\": \"Unit 1\",\r\n \"city\": \"San Francisco\",\r\n \"stateOrProvince\": \"CA\",\r\n \"country\": \"US\",\r\n \"postalCode\": \"94107\",\r\n \"companyName\": \"Microsoft\",\r\n \"addressType\": \"Commercial\"\r\n },\r\n \"deliveryPackage\": {\r\n \"carrierName\": \"\",\r\n \"trackingId\": \"\",\r\n \"trackingUrl\": \"\"\r\n },\r\n \"returnPackage\": {\r\n \"carrierName\": \"\",\r\n \"trackingId\": \"\",\r\n \"trackingUrl\": \"\"\r\n },\r\n \"destinationAccountDetails\": [\r\n {\r\n \"storageAccountId\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount\",\r\n \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount\"\r\n }\r\n ],\r\n \"errorDetails\": [],\r\n \"jobDetailsType\": \"DataBox\",\r\n \"copyLogDetails\": []\r\n },\r\n \"cancellationReason\": \"CancelTest\",\r\n \"deliveryType\": \"Scheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"2019-11-03T16:26:34.81743+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"SdkJob388\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388?api-version=2019-09-01&$expand=details",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Jlc291cmNlR3JvdXBzL1Nka1JnMTE2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFCb3gvam9icy9TZGtKb2IzODg/YXBpLXZlcnNpb249MjAxOS0wOS0wMSYkZXhwYW5kPWRldGFpbHM=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "89af72bf-a395-476a-a4ce-ae5e90d5b0d9"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "5ca1e410-0757-4c3d-a906-f692a8cf7143"
+ ],
+ "x-ms-client-request-id": [
+ "89af72bf-a395-476a-a4ce-ae5e90d5b0d9"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11999"
+ ],
+ "x-ms-correlation-request-id": [
+ "1c77ae27-4493-4fab-ab50-7a4414688a98"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T110347Z:1c77ae27-4493-4fab-ab50-7a4414688a98"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 11:03:46 GMT"
+ ],
+ "Content-Length": [
+ "3060"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-10-14T16:26:43.8410263+05:30\",\r\n \"details\": {\r\n \"copyProgress\": [\r\n {\r\n \"storageAccountName\": \"databoxbvttestaccount\",\r\n \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount\",\r\n \"bytesSentToCloud\": 0,\r\n \"totalBytesToProcess\": 0\r\n }\r\n ],\r\n \"jobStages\": [\r\n {\r\n \"stageName\": \"DeviceOrdered\",\r\n \"displayName\": \"Ordered\",\r\n \"stageStatus\": \"Succeeded\",\r\n \"stageTime\": \"2019-10-14T16:27:23.2392894+05:30\"\r\n },\r\n {\r\n \"stageName\": \"Cancelled\",\r\n \"displayName\": \"Canceled\",\r\n \"stageStatus\": \"Succeeded\",\r\n \"stageTime\": \"2019-10-14T16:28:44.3098304+05:30\"\r\n }\r\n ],\r\n \"contactDetails\": {\r\n \"contactName\": \" \",\r\n \"emailList\": [],\r\n \"notificationPreference\": []\r\n },\r\n \"shippingAddress\": {\r\n \"streetAddress1\": \"16 TOWNSEND ST\",\r\n \"streetAddress2\": \"Unit 1\",\r\n \"city\": \"San Francisco\",\r\n \"stateOrProvince\": \"CA\",\r\n \"country\": \"US\",\r\n \"postalCode\": \"94107\",\r\n \"companyName\": \"Microsoft\",\r\n \"addressType\": \"Commercial\"\r\n },\r\n \"deliveryPackage\": {\r\n \"carrierName\": \"\",\r\n \"trackingId\": \"\",\r\n \"trackingUrl\": \"\"\r\n },\r\n \"returnPackage\": {\r\n \"carrierName\": \"\",\r\n \"trackingId\": \"\",\r\n \"trackingUrl\": \"\"\r\n },\r\n \"destinationAccountDetails\": [\r\n {\r\n \"storageAccountId\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount\",\r\n \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount\"\r\n }\r\n ],\r\n \"errorDetails\": [],\r\n \"jobDetailsType\": \"DataBox\",\r\n \"copyLogDetails\": [],\r\n \"chainOfCustodySasKey\": \"https://wusbeta.blob.core.windows.net/chainofcustody/4b0dd96b-e054-4ae8-9be8-1ed38257c8de.txt?sv=2017-04-17&sr=b&sig=WtBYkBAKMCRMjaBTVls4UUA5%2B5gqcEz%2FPo6XpJj3pz0%3D&st=2019-10-14T10%3A53%3A46Z&se=2019-10-14T11%3A23%3A46Z&sp=r\"\r\n },\r\n \"cancellationReason\": \"CancelTest\",\r\n \"deliveryType\": \"Scheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"2019-11-03T16:26:34.81743+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"SdkJob388\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388?api-version=2019-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Jlc291cmNlR3JvdXBzL1Nka1JnMTE2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFCb3gvam9icy9TZGtKb2IzODg/YXBpLXZlcnNpb249MjAxOS0wOS0wMQ==",
+ "RequestMethod": "PATCH",
+ "RequestBody": "{\r\n \"properties\": {\r\n \"details\": {\r\n \"contactDetails\": {\r\n \"contactName\": \"Update Job\",\r\n \"phone\": \"1234567890\",\r\n \"phoneExtension\": \"1234\",\r\n \"emailList\": [\r\n \"testing@microsoft.com\"\r\n ]\r\n },\r\n \"shippingAddress\": {\r\n \"streetAddress1\": \"16 TOWNSEND ST\",\r\n \"streetAddress2\": \"Unit 1\",\r\n \"city\": \"San Francisco\",\r\n \"stateOrProvince\": \"CA\",\r\n \"country\": \"US\",\r\n \"postalCode\": \"94107\",\r\n \"companyName\": \"Microsoft\",\r\n \"addressType\": \"Commercial\"\r\n }\r\n }\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "1d2d6c8d-bd4e-48ed-be61-6ee0b46cc2e7"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "584"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "22c8aabe-249a-4117-98fb-8f280b62c42b"
+ ],
+ "x-ms-client-request-id": [
+ "1d2d6c8d-bd4e-48ed-be61-6ee0b46cc2e7"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1198"
+ ],
+ "x-ms-correlation-request-id": [
+ "e0b8fd8f-6dcc-4476-8f75-b5338575e8da"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105705Z:e0b8fd8f-6dcc-4476-8f75-b5338575e8da"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:57:05 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvblJlc3VsdHMvZjQ4NzZmNmEtYTMwNC00OTRmLThlN2MtZWE5NDJhN2I0ODhlP2FwaS12ZXJzaW9uPTIwMTgtMDEtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "75dee2f9-35f3-4719-862c-cba5076ad32a"
+ ],
+ "x-ms-client-request-id": [
+ "01807699-9651-4100-8596-9c9497cd537e"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11993"
+ ],
+ "x-ms-correlation-request-id": [
+ "68e85010-84ce-454d-99ba-64c90adaa167"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105716Z:68e85010-84ce-454d-99ba-64c90adaa167"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:57:15 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvblJlc3VsdHMvZjQ4NzZmNmEtYTMwNC00OTRmLThlN2MtZWE5NDJhN2I0ODhlP2FwaS12ZXJzaW9uPTIwMTgtMDEtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "97e60540-c355-44a6-80f7-3c965065acf2"
+ ],
+ "x-ms-client-request-id": [
+ "2b6784b8-7452-463e-a692-71cdd52882da"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11992"
+ ],
+ "x-ms-correlation-request-id": [
+ "5f956976-5953-4607-bac0-ec73930702a6"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105726Z:5f956976-5953-4607-bac0-ec73930702a6"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:57:25 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvblJlc3VsdHMvZjQ4NzZmNmEtYTMwNC00OTRmLThlN2MtZWE5NDJhN2I0ODhlP2FwaS12ZXJzaW9uPTIwMTgtMDEtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "6cc6db6a-ebeb-4cc0-875f-f8321fb92644"
+ ],
+ "x-ms-client-request-id": [
+ "4a3f8d6a-92de-4d1c-8d6e-154b6edb3017"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11991"
+ ],
+ "x-ms-correlation-request-id": [
+ "0eb324b0-6ad2-482f-958e-ecbd5ac4e8fe"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105736Z:0eb324b0-6ad2-482f-958e-ecbd5ac4e8fe"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:57:36 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvblJlc3VsdHMvZjQ4NzZmNmEtYTMwNC00OTRmLThlN2MtZWE5NDJhN2I0ODhlP2FwaS12ZXJzaW9uPTIwMTgtMDEtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "e17d7ad7-d655-4787-8c79-59acc8168bc3"
+ ],
+ "x-ms-client-request-id": [
+ "2111e0d5-45e2-4a71-af0c-23d3d3fa6d3c"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11990"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-correlation-request-id": [
+ "08ffa716-e004-4105-af8a-471f8b8fd6dc"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105747Z:08ffa716-e004-4105-af8a-471f8b8fd6dc"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:57:46 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvblJlc3VsdHMvZjQ4NzZmNmEtYTMwNC00OTRmLThlN2MtZWE5NDJhN2I0ODhlP2FwaS12ZXJzaW9uPTIwMTgtMDEtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "208bc815-43bc-46f1-b4f3-07d34be25602"
+ ],
+ "x-ms-client-request-id": [
+ "c73ddb52-a35d-427b-bade-bce600cf1b4c"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11989"
+ ],
+ "x-ms-correlation-request-id": [
+ "9782854d-6e84-46bb-8ac2-1cd2cd56cf8a"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105758Z:9782854d-6e84-46bb-8ac2-1cd2cd56cf8a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:57:58 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvblJlc3VsdHMvZjQ4NzZmNmEtYTMwNC00OTRmLThlN2MtZWE5NDJhN2I0ODhlP2FwaS12ZXJzaW9uPTIwMTgtMDEtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "2f2d7179-a996-474b-940e-42134f83348a"
+ ],
+ "x-ms-client-request-id": [
+ "f0460499-64ca-4cbd-888a-f3b0fbdcd681"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11988"
+ ],
+ "x-ms-correlation-request-id": [
+ "cd5db8c6-8a38-4a60-a5af-64a2e54d711d"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105808Z:cd5db8c6-8a38-4a60-a5af-64a2e54d711d"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:58:08 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvblJlc3VsdHMvZjQ4NzZmNmEtYTMwNC00OTRmLThlN2MtZWE5NDJhN2I0ODhlP2FwaS12ZXJzaW9uPTIwMTgtMDEtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "0b6fd7d6-b047-447d-9fc4-74898c3a9963"
+ ],
+ "x-ms-client-request-id": [
+ "2b0f5ae6-6348-447f-9f85-292472829974"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11987"
+ ],
+ "x-ms-correlation-request-id": [
+ "8ae97091-2fae-45c8-b7d2-8646d0dc2b42"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105819Z:8ae97091-2fae-45c8-b7d2-8646d0dc2b42"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:58:19 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/f4876f6a-a304-494f-8e7c-ea942a7b488e?api-version=2018-01-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvblJlc3VsdHMvZjQ4NzZmNmEtYTMwNC00OTRmLThlN2MtZWE5NDJhN2I0ODhlP2FwaS12ZXJzaW9uPTIwMTgtMDEtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388?api-version=2018-01-01"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "651dfbbb-e970-40af-bc34-7dfb55bed7b1"
+ ],
+ "x-ms-client-request-id": [
+ "9b67bc22-9e9c-46b4-b2aa-42d4521015a8"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11986"
+ ],
+ "x-ms-correlation-request-id": [
+ "088c7a5f-b867-474f-8ce9-705d2889f464"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105829Z:088c7a5f-b867-474f-8ce9-705d2889f464"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:58:28 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/jobs?api-version=2019-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9qb2JzP2FwaS12ZXJzaW9uPTIwMTktMDktMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "e16b413b-db8a-4494-8c8b-89db61298fb7"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "x-ms-original-request-ids": [
+ "16958aba-699a-4760-a758-f193008f4802",
+ "cccad948-2919-433d-91cf-959cb30cd4e9",
+ "8645e2f7-9eb5-4efb-ba42-33042e908f28",
+ "b416d7be-c1a5-4323-9770-0507bb95dbf6",
+ "2e206141-d951-49a5-888a-98d2b47c5771",
+ "b34932f8-d7e7-4eb4-8032-9217bc3ea6e7",
+ "fe68faad-0565-4948-8ca5-d71513efd0b3",
+ "e7bb1491-4d22-44fc-b968-ecaede0be22f",
+ "72d366d1-fee0-42f0-9704-79d46edc17d7",
+ "2979789a-4ba3-4c8a-a64e-cfc2b4d6b921"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11983"
+ ],
+ "x-ms-request-id": [
+ "815828a7-b8b2-4898-9338-07b6c50b7f83"
+ ],
+ "x-ms-correlation-request-id": [
+ "815828a7-b8b2-4898-9338-07b6c50b7f83"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105843Z:815828a7-b8b2-4898-9338-07b6c50b7f83"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:58:43 GMT"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "18307"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2018-08-30T14:44:39.77401+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"australiaeast\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBoxDisk\"\r\n },\r\n \"name\": \"mnaustest\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/ausresgrpmn/providers/Microsoft.DataBox/jobs/mnaustest\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2018-09-10T18:03:22.2578238+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"australiaeast\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBoxDisk\"\r\n },\r\n \"name\": \"portalcontractAUS\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/ausresgrpmn/providers/Microsoft.DataBox/jobs/portalcontractAUS\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2018-08-30T15:17:17.3753642+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"australiaeast\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBoxDisk\"\r\n },\r\n \"name\": \"testBB-diskAU\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/testBB/providers/Microsoft.DataBox/jobs/testBB-diskAU\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2018-11-27T15:17:49.0760408+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testbadresourcegroup\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat3198inh0-9)inh(il(h)_fyoin)(upf(yLASD0-FJ(hal-DSNWP0JDS0P3-0SJ93/providers/Microsoft.DataBox/jobs/testbadresourcegroup\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-01-04T09:08:49.9928621+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"andipodtest4jan\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/andipodtest4jan\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-07-04T14:01:50.9232807+05:30\",\r\n \"cancellationReason\": \"IncorrectOrder null\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdeepak04-07\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdeepak04-07\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-02-11T12:33:16.6231232+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBoxHeavy\"\r\n },\r\n \"name\": \"testdurga-heavy\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurga-heavy\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-02-11T12:38:49.0620094+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBoxHeavy\"\r\n },\r\n \"name\": \"testdurga-heavy1\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurga-heavy1\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-01-09T16:12:43.2931373+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBoxHeavy\"\r\n },\r\n \"name\": \"testdurga2\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurga2\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-01-09T15:59:47.4375821+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgad\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgad\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-01-09T19:04:31.4461343+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBoxDisk\"\r\n },\r\n \"name\": \"testdurgadisk\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgadisk\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-01-09T19:10:08.2854968+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBoxDisk\"\r\n },\r\n \"name\": \"testdurgadisk-Clone\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgadisk-Clone\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2018-12-19T14:23:06.8155601+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgam\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgam\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2018-12-19T16:46:12.824436+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgam-1\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgam-1\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-03-04T12:00:17.7643558+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgam-Clone\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgam-Clone\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2018-12-19T18:24:23.0774328+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgasm-1\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgasm-1\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-03-04T11:58:13.4876698+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgasm-1-1\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgasm-1-1\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-01-11T14:28:55.4375406+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgasm-1-Clone\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgasm-1-Clone\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-02-15T12:51:12.2717434+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgasm-11\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgasm-11\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-02-15T12:54:58.9886188+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgasm-12\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgasm-12\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-02-15T13:33:29.8417562+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgasm-1dssd\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgasm-1dssd\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-02-15T15:35:39.937519+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgasm-ccxcx\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgasm-ccxcx\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-01-09T15:56:58.4277564+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgasm-Clone\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgasm-Clone\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-02-10T14:46:10.401621+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgasm-Clone-Clone\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgasm-Clone-Clone\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2019-02-10T14:52:37.2363289+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgasm-compute\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgasm-compute\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": false,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"ReadyToDispatchFromAzureDC\",\r\n \"startTime\": \"2019-02-10T14:57:32.3159255+05:30\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testdurgasm-compute1\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testdurgasm-compute1\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": false,\r\n \"isDeletable\": true,\r\n \"isShippingAddressEditable\": false,\r\n \"status\": \"Cancelled\",\r\n \"startTime\": \"2018-09-08T22:46:11.5143859+05:30\",\r\n \"cancellationReason\": \"Old job which is still in ordered state cancelled by the service\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": false\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"TestPortalContract\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/TestPortalContract\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n },\r\n {\r\n \"properties\": {\r\n \"isCancellable\": true,\r\n \"isDeletable\": false,\r\n \"isShippingAddressEditable\": true,\r\n \"status\": \"DeviceOrdered\",\r\n \"startTime\": \"2019-07-30T10:47:22.083517+05:30\",\r\n \"deliveryType\": \"NonScheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"0001-01-01T05:30:00+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"testschedule01\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/akvenkat/providers/Microsoft.DataBox/jobs/testschedule01\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n }\r\n ],\r\n \"nextLink\": \"https://management.azure.com/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/jobs?api-version=2019-09-01&%24skiptoken=dZJdb5swFIb%2fS7TuLg04kEKkasoH0GRAE%2fNh4M4GQgwYUCCEpOp%2fn7uq3bSpki8sv8fv%2b%2bic8zKq0qEzaVW0o%2fnLCGmO6zmj%2bejYdU07n0wYrnCWsrTq7vHtfErv45pN2jNp4xNtOlpX7eSAZ4qggMNYORwexhIG8liV44dxnKoJliURSOAwaU51T5P01E4sGp%2fqtj5092vc4WU9TPKatD9wQ8c917nlIxBEdSzwI37%2f1ha0cesirR53a1Ui6JIlzL%2fGoOxJLlDLkS4buiwJs%2fvIKM%2fRTaBJAJnpamCTK3eArPe1sgfqOeFqgnQBI%2fXsG%2bopQtK7mm3Ww5oAmSuyGAaw4XePgK4kuWSv6CLbrBaK%2f5kpXc18oZhiVMaVzWs%2fXVaLbKdDOTY87usbOiWGx%2bs%2bXjjHm1O20%2bQyfYL7MNgK%2bD3NjIKC%2f7EcjQfqmHje1RXg0tbEDgVwB8Wmc6viYuml57i65RvtgIImT%2fTi6rs%2bhoI3uAXUU0%2fWHCaGabFlYZm0mNndc9BQq6wvriE62IBPkJXUAkfmeqEco83VqWrFFL4i%2bofZIdPkD%2bvUonpO%2fGgW5jZKfc5SwQhp22noxyIpj7M9i3KC4O8sbGg3xAZKAlhHWiglYnbz2JBb4naG3G1N9GbjVzb2NV1y9eQ5BpurjS4fbH8lfzLp8BizpEy0oQ%2fB%2b1x35fKKkXiMq%2bKt8%2f%2frmfDzbZqmYPek4pOu%2fCPfi56UsMfAP%2b%2b4vlupX23D3TQZvb7%2bAg%3d%3d\"\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs?api-version=2019-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Jlc291cmNlR3JvdXBzL1Nka1JnMTE2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFCb3gvam9icz9hcGktdmVyc2lvbj0yMDE5LTA5LTAx",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "e51d90df-8376-4a37-b200-c417123d5fc6"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "3fe773dd-29ce-44e0-a2c7-4db8c77e881c"
+ ],
+ "x-ms-client-request-id": [
+ "e51d90df-8376-4a37-b200-c417123d5fc6"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11982"
+ ],
+ "x-ms-correlation-request-id": [
+ "1d53f718-6642-469f-a83d-17ecade2832e"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105844Z:1d53f718-6642-469f-a83d-17ecade2832e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:58:43 GMT"
+ ],
+ "Content-Length": [
+ "761"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"properties\": {\r\n \"isCancellable\": true,\r\n \"isDeletable\": false,\r\n \"isShippingAddressEditable\": true,\r\n \"status\": \"DeviceOrdered\",\r\n \"startTime\": \"2019-10-14T16:26:43.8410263+05:30\",\r\n \"deliveryType\": \"Scheduled\",\r\n \"deliveryInfo\": {\r\n \"scheduledDateTime\": \"2019-11-03T16:26:34.81743+05:30\"\r\n },\r\n \"isCancellableWithoutFee\": true\r\n },\r\n \"location\": \"westus\",\r\n \"tags\": {},\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"name\": \"SdkJob388\",\r\n \"id\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388\",\r\n \"type\": \"Microsoft.DataBox/jobs\"\r\n }\r\n ]\r\n}",
+ "StatusCode": 200
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388/cancel?api-version=2019-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Jlc291cmNlR3JvdXBzL1Nka1JnMTE2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFCb3gvam9icy9TZGtKb2IzODgvY2FuY2VsP2FwaS12ZXJzaW9uPTIwMTktMDktMDE=",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"reason\": \"CancelTest\"\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "a7bf233a-2827-4ad4-b9de-2eada35a9f9e"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "30"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "2f4740cc-6473-444c-aeb1-77b5d5592c65"
+ ],
+ "x-ms-client-request-id": [
+ "a7bf233a-2827-4ad4-b9de-2eada35a9f9e"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "292dc109-9d1b-4957-be83-816cd14db1b5"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T105844Z:292dc109-9d1b-4957-be83-816cd14db1b5"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 10:58:44 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 204
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourceGroups/SdkRg1164/providers/Microsoft.DataBox/jobs/SdkJob388?api-version=2019-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Jlc291cmNlR3JvdXBzL1Nka1JnMTE2NC9wcm92aWRlcnMvTWljcm9zb2Z0LkRhdGFCb3gvam9icy9TZGtKb2IzODg/YXBpLXZlcnNpb249MjAxOS0wOS0wMQ==",
+ "RequestMethod": "DELETE",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "5c47ba45-a30f-48d2-8d14-0718d81fd4d1"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "Location": [
+ "https://management.azure.com/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/4b0dd96b-e054-4ae8-9be8-1ed38257c8de-deleteorder?api-version=2018-01-01"
+ ],
+ "Retry-After": [
+ "10"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "43beed5f-41d7-40ec-b07f-cc6a65598823"
+ ],
+ "x-ms-client-request-id": [
+ "5c47ba45-a30f-48d2-8d14-0718d81fd4d1"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-deletes": [
+ "14999"
+ ],
+ "x-ms-correlation-request-id": [
+ "b952b258-61d5-4b6e-bf90-cbd17396382e"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T110348Z:b952b258-61d5-4b6e-bf90-cbd17396382e"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 11:03:47 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ],
+ "Content-Length": [
+ "0"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 202
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/4b0dd96b-e054-4ae8-9be8-1ed38257c8de-deleteorder?api-version=2018-01-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvblJlc3VsdHMvNGIwZGQ5NmItZTA1NC00YWU4LTliZTgtMWVkMzgyNTdjOGRlLWRlbGV0ZW9yZGVyP2FwaS12ZXJzaW9uPTIwMTgtMDEtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "285b240b-722a-45c1-bdf4-e389c0a4f017"
+ ],
+ "x-ms-client-request-id": [
+ "1f92b26f-50a5-49b2-985a-464c140560b5"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11998"
+ ],
+ "x-ms-correlation-request-id": [
+ "1e0dc2c3-e84c-4299-8922-51fc0927e108"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T110358Z:1e0dc2c3-e84c-4299-8922-51fc0927e108"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 11:03:58 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 204
+ },
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/operationResults/4b0dd96b-e054-4ae8-9be8-1ed38257c8de-deleteorder?api-version=2018-01-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL29wZXJhdGlvblJlc3VsdHMvNGIwZGQ5NmItZTA1NC00YWU4LTliZTgtMWVkMzgyNTdjOGRlLWRlbGV0ZW9yZGVyP2FwaS12ZXJzaW9uPTIwMTgtMDEtMDE=",
+ "RequestMethod": "GET",
+ "RequestBody": "",
+ "RequestHeaders": {
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "6e58572c-5bb9-4b0a-8c8e-c7601da4d0e7"
+ ],
+ "x-ms-client-request-id": [
+ "ed70fe01-5642-419d-b232-07c7f8c6d122"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11997"
+ ],
+ "x-ms-correlation-request-id": [
+ "be3dc5ef-6ffa-4c9c-803b-ad6948ab7481"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T110359Z:be3dc5ef-6ffa-4c9c-803b-ad6948ab7481"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 11:03:59 GMT"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "",
+ "StatusCode": 204
+ }
+ ],
+ "Names": {
+ "TestScheduledJob": [
+ "SdkRg1164",
+ "SdkJob388"
+ ]
+ },
+ "Variables": {
+ "SubscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f",
+ "SubId": "fa68082f-8ff7-4a25-95c7-ce9da541242f"
+ }
+}
\ No newline at end of file
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/SessionRecords/ServiceOperationTests/TestAvailableSkus.json b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/SessionRecords/ServiceOperationTests/TestAvailableSkus.json
index 5e8df66fc3cf8..65f73c1562924 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/SessionRecords/ServiceOperationTests/TestAvailableSkus.json
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/SessionRecords/ServiceOperationTests/TestAvailableSkus.json
@@ -1,20 +1,22 @@
{
"Entries": [
{
- "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/availableSkus?api-version=2018-01-01",
- "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL2F2YWlsYWJsZVNrdXM/YXBpLXZlcnNpb249MjAxOC0wMS0wMQ==",
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/availableSkus?api-version=2019-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL2F2YWlsYWJsZVNrdXM/YXBpLXZlcnNpb249MjAxOS0wOS0wMQ==",
"RequestMethod": "POST",
"RequestBody": "{\r\n \"country\": \"US\",\r\n \"location\": \"westus\",\r\n \"transferType\": \"ImportToAzure\"\r\n}",
"RequestHeaders": {
"x-ms-client-request-id": [
- "4e698ef0-d274-49ac-9961-16c79bb3e5e0"
+ "fa244df8-c14f-4607-a6cc-c0ce871a27c9"
],
- "accept-language": [
+ "Accept-Language": [
"en-US"
],
"User-Agent": [
- "FxVersion/4.6.26614.01",
- "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.0"
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -27,9 +29,6 @@
"Cache-Control": [
"no-cache"
],
- "Date": [
- "Wed, 19 Sep 2018 09:28:35 GMT"
- ],
"Pragma": [
"no-cache"
],
@@ -37,28 +36,31 @@
"nosniff"
],
"x-ms-request-id": [
- "655f2b51-5b87-4413-97dd-3d260bec058c"
+ "d74fa14f-306f-486a-93d1-cf6f158a28de"
],
"x-ms-client-request-id": [
- "4e698ef0-d274-49ac-9961-16c79bb3e5e0"
+ "fa244df8-c14f-4607-a6cc-c0ce871a27c9"
],
"X-Powered-By": [
"ASP.NET"
],
- "x-ms-ratelimit-remaining-subscription-writes": [
- "1198"
+ "x-ms-ratelimit-remaining-subscription-reads": [
+ "11999"
],
"x-ms-correlation-request-id": [
- "b569e52e-295b-4fbf-990b-5b555927df6b"
+ "f0aac096-cded-42c5-976d-7548aa9d8a6a"
],
"x-ms-routing-request-id": [
- "SOUTHEASTASIA:20180919T092835Z:b569e52e-295b-4fbf-990b-5b555927df6b"
+ "SOUTHINDIA:20191016T050339Z:f0aac096-cded-42c5-976d-7548aa9d8a6a"
],
"Strict-Transport-Security": [
"max-age=31536000; includeSubDomains"
],
+ "Date": [
+ "Wed, 16 Oct 2019 05:03:38 GMT"
+ ],
"Content-Length": [
- "5246"
+ "6566"
],
"Content-Type": [
"application/json; charset=utf-8"
@@ -67,7 +69,7 @@
"-1"
]
},
- "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"enabled\": true,\r\n \"properties\": {\r\n \"destinationToServiceLocationMap\": [\r\n {\r\n \"destinationLocation\": \"westus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"centralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus2\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"northcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"southcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"westcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"westus2\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"centraluseuap\",\r\n \"serviceLocation\": \"centraluseuap\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus2euap\",\r\n \"serviceLocation\": \"eastus2euap\"\r\n }\r\n ],\r\n \"capacity\": {\r\n \"usable\": \"80\",\r\n \"maximum\": \"100\"\r\n },\r\n \"costs\": [\r\n {\r\n \"meterId\": \"0cf23ffc-0b64-49e6-9bdd-1db885349042\",\r\n \"meterType\": \"DataBoxServiceFee\"\r\n },\r\n {\r\n \"meterId\": \"a701f058-119b-4713-a923-bed7da4b7801\",\r\n \"meterType\": \"DataBoxShippingFee\"\r\n },\r\n {\r\n \"meterId\": \"049fa331-0a48-4a81-9991-a6bef3c79fed\",\r\n \"meterType\": \"DataBoxExtraDayFee\"\r\n }\r\n ],\r\n \"apiVersions\": [\r\n \"2018-01-01\"\r\n ],\r\n \"disabledReason\": \"None\"\r\n }\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"DataBoxDisk\"\r\n },\r\n \"enabled\": true,\r\n \"properties\": {\r\n \"destinationToServiceLocationMap\": [\r\n {\r\n \"destinationLocation\": \"westus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"centralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus2\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"northcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"southcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"westcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"westus2\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"centraluseuap\",\r\n \"serviceLocation\": \"centraluseuap\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus2euap\",\r\n \"serviceLocation\": \"eastus2euap\"\r\n }\r\n ],\r\n \"capacity\": {\r\n \"usable\": \"35\",\r\n \"maximum\": \"40\"\r\n },\r\n \"costs\": [],\r\n \"apiVersions\": [\r\n \"2018-01-01\"\r\n ],\r\n \"disabledReason\": \"None\"\r\n }\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"DataBoxHeavy\"\r\n },\r\n \"enabled\": true,\r\n \"properties\": {\r\n \"destinationToServiceLocationMap\": [\r\n {\r\n \"destinationLocation\": \"westus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"centralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus2\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"northcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"southcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"westcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"westus2\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"centraluseuap\",\r\n \"serviceLocation\": \"centraluseuap\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus2euap\",\r\n \"serviceLocation\": \"eastus2euap\"\r\n }\r\n ],\r\n \"capacity\": {\r\n \"usable\": \"800\",\r\n \"maximum\": \"1000\"\r\n },\r\n \"costs\": [],\r\n \"apiVersions\": [\r\n \"2018-01-01\"\r\n ],\r\n \"disabledReason\": \"None\",\r\n \"requiredFeature\": \"HeavyCreateAccess\"\r\n }\r\n }\r\n ]\r\n}",
+ "ResponseBody": "{\r\n \"value\": [\r\n {\r\n \"sku\": {\r\n \"name\": \"DataBox\"\r\n },\r\n \"enabled\": true,\r\n \"properties\": {\r\n \"destinationToServiceLocationMap\": [\r\n {\r\n \"destinationLocation\": \"westus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"centralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus2\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"northcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"southcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"westcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"westus2\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"centraluseuap\",\r\n \"serviceLocation\": \"centraluseuap\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus2euap\",\r\n \"serviceLocation\": \"eastus2euap\"\r\n }\r\n ],\r\n \"capacity\": {\r\n \"usable\": \"80\",\r\n \"maximum\": \"100\"\r\n },\r\n \"costs\": [\r\n {\r\n \"meterId\": \"0cf23ffc-0b64-49e6-9bdd-1db885349042\",\r\n \"meterType\": \"DataBoxServiceFee\"\r\n },\r\n {\r\n \"meterId\": \"a701f058-119b-4713-a923-bed7da4b7801\",\r\n \"meterType\": \"DataBoxShippingFee\"\r\n },\r\n {\r\n \"meterId\": \"049fa331-0a48-4a81-9991-a6bef3c79fed\",\r\n \"meterType\": \"DataBoxExtraDayFee\"\r\n },\r\n {\r\n \"meterId\": \"c3ea978d-6a0a-4632-b094-4fffcafcb057\",\r\n \"meterType\": \"DataBoxLostOrDamagedDeviceFee\"\r\n }\r\n ],\r\n \"apiVersions\": [\r\n \"2018-01-01\"\r\n ],\r\n \"disabledReason\": \"None\"\r\n }\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"DataBoxDisk\"\r\n },\r\n \"enabled\": true,\r\n \"properties\": {\r\n \"destinationToServiceLocationMap\": [\r\n {\r\n \"destinationLocation\": \"westus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"centralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus2\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"northcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"southcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"westcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"westus2\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"centraluseuap\",\r\n \"serviceLocation\": \"centraluseuap\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus2euap\",\r\n \"serviceLocation\": \"eastus2euap\"\r\n }\r\n ],\r\n \"capacity\": {\r\n \"usable\": \"35\",\r\n \"maximum\": \"40\"\r\n },\r\n \"costs\": [\r\n {\r\n \"meterId\": \"d95cd8b5-b6f1-4cd9-ae86-a016d1945d6f\",\r\n \"meterType\": \"DataBoxDiskServiceFee\"\r\n },\r\n {\r\n \"meterId\": \"4b8cf572-cb04-4ef3-9528-2cda4e9b544e\",\r\n \"meterType\": \"DataBoxDiskShippingFee\"\r\n },\r\n {\r\n \"meterId\": \"b6ae9bbf-815d-49dd-bb2b-77c497b72ba4\",\r\n \"meterType\": \"DataBoxDiskDailyUsageFee\"\r\n },\r\n {\r\n \"meterId\": \"08bc0ea1-6c82-421b-b953-2a7a65810d2e\",\r\n \"meterType\": \"DataBoxDiskLostDeviceFee\"\r\n }\r\n ],\r\n \"apiVersions\": [\r\n \"2018-01-01\"\r\n ],\r\n \"disabledReason\": \"None\"\r\n }\r\n },\r\n {\r\n \"sku\": {\r\n \"name\": \"DataBoxHeavy\"\r\n },\r\n \"enabled\": true,\r\n \"properties\": {\r\n \"destinationToServiceLocationMap\": [\r\n {\r\n \"destinationLocation\": \"westus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"centralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus2\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"northcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"southcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"westcentralus\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"westus2\",\r\n \"serviceLocation\": \"westus\"\r\n },\r\n {\r\n \"destinationLocation\": \"centraluseuap\",\r\n \"serviceLocation\": \"centraluseuap\"\r\n },\r\n {\r\n \"destinationLocation\": \"eastus2euap\",\r\n \"serviceLocation\": \"eastus2euap\"\r\n }\r\n ],\r\n \"capacity\": {\r\n \"usable\": \"800\",\r\n \"maximum\": \"1000\"\r\n },\r\n \"costs\": [\r\n {\r\n \"meterId\": \"d0dccaaf-3de9-4c7a-ba97-f83551b90126\",\r\n \"meterType\": \"DataBoxHeavyServiceFee\"\r\n },\r\n {\r\n \"meterId\": \"7b49d11f-d4f7-4029-a197-04998fd282f9\",\r\n \"meterType\": \"DataBoxHeavyShippingFee\"\r\n },\r\n {\r\n \"meterId\": \"c2c66d53-11b4-4f11-9642-43c7c336f0b7\",\r\n \"meterType\": \"DataBoxHeavyExtraDayFee\"\r\n },\r\n {\r\n \"meterId\": \"188dcd7e-fbd7-4a41-aa42-162b81b0510f\",\r\n \"meterType\": \"DataBoxHeavyLostOrDamagedDeviceFee\"\r\n }\r\n ],\r\n \"apiVersions\": [\r\n \"2018-01-01\"\r\n ],\r\n \"disabledReason\": \"None\",\r\n \"requiredFeature\": \"HeavyCreateAccess\"\r\n }\r\n }\r\n ]\r\n}",
"StatusCode": 200
}
],
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/SessionRecords/ServiceOperationTests/TestRegionConfiguration.json b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/SessionRecords/ServiceOperationTests/TestRegionConfiguration.json
new file mode 100644
index 0000000000000..07b101eb44e75
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/SessionRecords/ServiceOperationTests/TestRegionConfiguration.json
@@ -0,0 +1,81 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/regionConfiguration?api-version=2019-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL3JlZ2lvbkNvbmZpZ3VyYXRpb24/YXBpLXZlcnNpb249MjAxOS0wOS0wMQ==",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"scheduleAvailabilityRequest\": {\r\n \"skuName\": \"DataBox\",\r\n \"storageLocation\": \"westus\"\r\n },\r\n \"transportAvailabilityRequest\": {\r\n \"skuName\": \"DataBox\"\r\n }\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "18e317fe-eab7-4cbd-8796-f1b8e26c7c52"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "174"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "65dac9e1-cc74-43de-aaf6-4737eccb212c"
+ ],
+ "x-ms-client-request-id": [
+ "18e317fe-eab7-4cbd-8796-f1b8e26c7c52"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "a611e11f-ccfe-45bd-9b1a-0346cdd114a2"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191014T112939Z:a611e11f-ccfe-45bd-9b1a-0346cdd114a2"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Mon, 14 Oct 2019 11:29:38 GMT"
+ ],
+ "Content-Length": [
+ "1047"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"scheduleAvailabilityResponse\": {\r\n \"availableDates\": [\r\n \"2019-10-24T05:30:00+05:30\",\r\n \"2019-10-25T05:30:00+05:30\",\r\n \"2019-10-26T05:30:00+05:30\",\r\n \"2019-10-27T05:30:00+05:30\",\r\n \"2019-10-28T05:30:00+05:30\",\r\n \"2019-10-29T05:30:00+05:30\",\r\n \"2019-10-30T05:30:00+05:30\",\r\n \"2019-10-31T05:30:00+05:30\",\r\n \"2019-11-01T05:30:00+05:30\",\r\n \"2019-11-02T05:30:00+05:30\",\r\n \"2019-11-03T05:30:00+05:30\",\r\n \"2019-11-04T05:30:00+05:30\",\r\n \"2019-11-05T05:30:00+05:30\",\r\n \"2019-11-06T05:30:00+05:30\",\r\n \"2019-11-07T05:30:00+05:30\",\r\n \"2019-11-08T05:30:00+05:30\",\r\n \"2019-11-09T05:30:00+05:30\",\r\n \"2019-11-10T05:30:00+05:30\",\r\n \"2019-11-11T05:30:00+05:30\",\r\n \"2019-11-12T05:30:00+05:30\",\r\n \"2019-11-13T05:30:00+05:30\"\r\n ]\r\n },\r\n \"transportAvailabilityResponse\": {\r\n \"transportAvailabilityDetails\": [\r\n {\r\n \"shipmentType\": \"MicrosoftManaged\"\r\n },\r\n {\r\n \"shipmentType\": \"CustomerManaged\"\r\n }\r\n ]\r\n }\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f",
+ "SubId": "fa68082f-8ff7-4a25-95c7-ce9da541242f"
+ }
+}
\ No newline at end of file
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/SessionRecords/ServiceOperationTests/TestValidateInputs.json b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/SessionRecords/ServiceOperationTests/TestValidateInputs.json
new file mode 100644
index 0000000000000..2a718b205495f
--- /dev/null
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/SessionRecords/ServiceOperationTests/TestValidateInputs.json
@@ -0,0 +1,81 @@
+{
+ "Entries": [
+ {
+ "RequestUri": "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/providers/Microsoft.DataBox/locations/westus/validateInputs?api-version=2019-09-01",
+ "EncodedRequestUri": "L3N1YnNjcmlwdGlvbnMvZmE2ODA4MmYtOGZmNy00YTI1LTk1YzctY2U5ZGE1NDEyNDJmL3Byb3ZpZGVycy9NaWNyb3NvZnQuRGF0YUJveC9sb2NhdGlvbnMvd2VzdHVzL3ZhbGlkYXRlSW5wdXRzP2FwaS12ZXJzaW9uPTIwMTktMDktMDE=",
+ "RequestMethod": "POST",
+ "RequestBody": "{\r\n \"validationCategory\": \"JobCreationValidation\",\r\n \"individualRequestDetails\": [\r\n {\r\n \"validationType\": \"ValidateDataDestinationDetails\",\r\n \"destinationAccountDetails\": [\r\n {\r\n \"dataDestinationType\": \"StorageAccount\",\r\n \"accountId\": \"/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount\"\r\n }\r\n ],\r\n \"location\": \"westus\"\r\n },\r\n {\r\n \"validationType\": \"ValidateAddress\",\r\n \"shippingAddress\": {\r\n \"streetAddress1\": \"16 TOWNSEND ST\",\r\n \"streetAddress2\": \"Unit 1\",\r\n \"city\": \"San Francisco\",\r\n \"stateOrProvince\": \"CA\",\r\n \"country\": \"US\",\r\n \"postalCode\": \"94107\",\r\n \"companyName\": \"Microsoft\",\r\n \"addressType\": \"Commercial\"\r\n },\r\n \"deviceType\": \"DataBox\",\r\n \"transportPreferences\": {\r\n \"preferredShipmentType\": \"MicrosoftManaged\"\r\n }\r\n },\r\n {\r\n \"validationType\": \"ValidateSubscriptionIsAllowedToCreateJob\"\r\n },\r\n {\r\n \"validationType\": \"ValidateSkuAvailability\",\r\n \"deviceType\": \"DataBox\",\r\n \"country\": \"US\",\r\n \"location\": \"westus\",\r\n \"transferType\": \"ImportToAzure\"\r\n },\r\n {\r\n \"validationType\": \"ValidateCreateOrderLimit\",\r\n \"deviceType\": \"DataBox\"\r\n },\r\n {\r\n \"validationType\": \"ValidatePreferences\",\r\n \"preference\": {\r\n \"transportPreferences\": {\r\n \"preferredShipmentType\": \"MicrosoftManaged\"\r\n }\r\n },\r\n \"deviceType\": \"DataBox\"\r\n }\r\n ]\r\n}",
+ "RequestHeaders": {
+ "x-ms-client-request-id": [
+ "546cdd36-5032-48f8-9c71-0ebd9944b7bb"
+ ],
+ "Accept-Language": [
+ "en-US"
+ ],
+ "User-Agent": [
+ "FxVersion/4.6.27817.01",
+ "OSName/Windows",
+ "OSVersion/Microsoft.Windows.10.0.18362.",
+ "Microsoft.Azure.Management.DataBox.DataBoxManagementClient/1.0.1"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Content-Length": [
+ "1592"
+ ]
+ },
+ "ResponseHeaders": {
+ "Cache-Control": [
+ "no-cache"
+ ],
+ "Pragma": [
+ "no-cache"
+ ],
+ "X-Content-Type-Options": [
+ "nosniff"
+ ],
+ "x-ms-request-id": [
+ "ce8ca9f2-bd14-443c-804a-f17b67189068"
+ ],
+ "x-ms-client-request-id": [
+ "546cdd36-5032-48f8-9c71-0ebd9944b7bb"
+ ],
+ "X-Powered-By": [
+ "ASP.NET"
+ ],
+ "x-ms-ratelimit-remaining-subscription-writes": [
+ "1199"
+ ],
+ "x-ms-correlation-request-id": [
+ "873a4a64-4e29-4c74-9c93-66180e7e962a"
+ ],
+ "x-ms-routing-request-id": [
+ "SOUTHINDIA:20191016T063647Z:873a4a64-4e29-4c74-9c93-66180e7e962a"
+ ],
+ "Strict-Transport-Security": [
+ "max-age=31536000; includeSubDomains"
+ ],
+ "Date": [
+ "Wed, 16 Oct 2019 06:36:47 GMT"
+ ],
+ "Content-Length": [
+ "1234"
+ ],
+ "Content-Type": [
+ "application/json; charset=utf-8"
+ ],
+ "Expires": [
+ "-1"
+ ]
+ },
+ "ResponseBody": "{\r\n \"properties\": {\r\n \"status\": \"AllValidToProceed\",\r\n \"individualResponseDetails\": [\r\n {\r\n \"status\": \"Valid\",\r\n \"validationType\": \"ValidateDataDestinationDetails\",\r\n \"error\": {}\r\n },\r\n {\r\n \"validationStatus\": \"Valid\",\r\n \"alternateAddresses\": [\r\n {\r\n \"streetAddress1\": \"16 TOWNSEND ST\",\r\n \"streetAddress2\": \"Unit 1\",\r\n \"streetAddress3\": \"\",\r\n \"city\": \"SAN FRANCISCO\",\r\n \"stateOrProvince\": \"CA\",\r\n \"country\": \"US\",\r\n \"postalCode\": \"94107\",\r\n \"addressType\": \"None\"\r\n }\r\n ],\r\n \"validationType\": \"ValidateAddress\",\r\n \"error\": {}\r\n },\r\n {\r\n \"status\": \"Valid\",\r\n \"validationType\": \"ValidateSubscriptionIsAllowedToCreateJob\",\r\n \"error\": {}\r\n },\r\n {\r\n \"status\": \"Valid\",\r\n \"validationType\": \"ValidateSkuAvailability\",\r\n \"error\": {}\r\n },\r\n {\r\n \"status\": \"Valid\",\r\n \"validationType\": \"ValidateCreateOrderLimit\",\r\n \"error\": {}\r\n },\r\n {\r\n \"status\": \"Valid\",\r\n \"validationType\": \"ValidatePreferences\",\r\n \"error\": {}\r\n }\r\n ]\r\n }\r\n}",
+ "StatusCode": 200
+ }
+ ],
+ "Names": {},
+ "Variables": {
+ "SubscriptionId": "fa68082f-8ff7-4a25-95c7-ce9da541242f",
+ "SubId": "fa68082f-8ff7-4a25-95c7-ce9da541242f"
+ }
+}
\ No newline at end of file
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/DataBoxTestBase.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/DataBoxTestBase.cs
index 5fa9ffd946870..6bc842c3bae7e 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/DataBoxTestBase.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/DataBoxTestBase.cs
@@ -84,7 +84,7 @@ protected static List GetDestinationAccountsList()
{
return new List
{
- new DestinationAccountDetails
+ new DestinationStorageAccountDetails
{
AccountId = "/subscriptions/fa68082f-8ff7-4a25-95c7-ce9da541242f/resourcegroups/databoxbvt/providers/Microsoft.Storage/storageAccounts/databoxbvttestaccount",
}
@@ -117,7 +117,7 @@ protected static ShippingAddress GetDefaultShippingAddress()
};
}
- protected static void ValidateJobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, JobResource getJob)
+ protected static void ValidateJobDetails(ContactDetails contactDetails, ShippingAddress shippingAddress, JobResource getJob, JobDeliveryType deliverType)
{
Assert.NotNull(getJob.Details);
Assert.NotNull(getJob.Details.ContactDetails.NotificationPreference);
@@ -134,6 +134,7 @@ protected static void ValidateJobDetails(ContactDetails contactDetails, Shipping
Assert.Equal(shippingAddress.StreetAddress1, getJob.Details.ShippingAddress.StreetAddress1);
Assert.Equal(shippingAddress.StreetAddress2, getJob.Details.ShippingAddress.StreetAddress2);
Assert.Equal(shippingAddress.StreetAddress3, getJob.Details.ShippingAddress.StreetAddress3);
+ Assert.Equal(getJob.DeliveryType, deliverType);
}
protected static void ValidateJobWithoutDetails(string jobName,
@@ -152,6 +153,38 @@ protected static void ValidateJobWithoutDetails(string jobName,
Assert.Equal(jobName, job.Name);
Assert.Equal(TestConstants.DefaultType, job.Type);
}
+
+ protected static void ValidateIndividualValidateResponse(IList IndividualResponseDetails)
+ {
+ Assert.NotNull(IndividualResponseDetails);
+ Assert.True(IndividualResponseDetails.Count > 1);
+ foreach(ValidationInputResponse validationResponse in IndividualResponseDetails)
+ {
+ switch (validationResponse.GetType().Name)
+ {
+ case "DataDestinationDetailsValidationResponseProperties":
+ Assert.True(((DataDestinationDetailsValidationResponseProperties)validationResponse).Status == ValidationStatus.Valid);
+ break;
+ case "SubscriptionIsAllowedToCreateJobValidationResponseProperties":
+ Assert.True(((SubscriptionIsAllowedToCreateJobValidationResponseProperties)validationResponse).Status == ValidationStatus.Valid);
+ break;
+ case "SkuAvailabilityValidationResponseProperties":
+ Assert.True(((SkuAvailabilityValidationResponseProperties)validationResponse).Status == ValidationStatus.Valid);
+ break;
+ case "CreateOrderLimitForSubscriptionValidationResponseProperties":
+ Assert.True(((CreateOrderLimitForSubscriptionValidationResponseProperties)validationResponse).Status == ValidationStatus.Valid);
+ break;
+ case "PreferencesValidationResponseProperties":
+ Assert.True(((PreferencesValidationResponseProperties)validationResponse).Status == ValidationStatus.Valid);
+ break;
+ case "AddressValidationProperties":
+ Assert.True(((AddressValidationProperties)validationResponse).ValidationStatus == AddressValidationStatus.Valid);
+ break;
+ default:
+ break;
+ }
+ }
+ }
}
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/JobCRUDTests.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/JobCRUDTests.cs
index f23231c263f12..0c1e6847cec4f 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/JobCRUDTests.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/JobCRUDTests.cs
@@ -53,7 +53,7 @@ public void TestJobCRUDOperations()
var getJob = this.Client.Jobs.Get(resourceGroupName, jobName, TestConstants.Details);
ValidateJobWithoutDetails(jobName, sku, getJob);
- ValidateJobDetails(contactDetails, shippingAddress, getJob);
+ ValidateJobDetails(contactDetails, shippingAddress, getJob, JobDeliveryType.NonScheduled);
Assert.Equal(StageName.DeviceOrdered, job.Status);
contactDetails.ContactName = "Update Job";
@@ -75,7 +75,91 @@ public void TestJobCRUDOperations()
getJob = this.Client.Jobs.Get(resourceGroupName, jobName, TestConstants.Details);
ValidateJobWithoutDetails(jobName, sku, getJob);
- ValidateJobDetails(contactDetails, shippingAddress, getJob);
+ ValidateJobDetails(contactDetails, shippingAddress, getJob, JobDeliveryType.NonScheduled);
+ Assert.Equal(StageName.DeviceOrdered, getJob.Status);
+
+ var jobList = this.Client.Jobs.List();
+ Assert.NotNull(jobList);
+
+ jobList = this.Client.Jobs.ListByResourceGroup(resourceGroupName);
+ Assert.NotNull(jobList);
+
+ this.Client.Jobs.Cancel(resourceGroupName, jobName, "CancelTest");
+ getJob = this.Client.Jobs.Get(resourceGroupName, jobName, TestConstants.Details);
+ Assert.Equal(StageName.Cancelled, getJob.Status);
+
+ while (!string.IsNullOrWhiteSpace(getJob.Details.ContactDetails.ContactName))
+ {
+ Wait(TimeSpan.FromMinutes(5));
+ getJob = this.Client.Jobs.Get(resourceGroupName, jobName, TestConstants.Details);
+ }
+ this.Client.Jobs.Delete(resourceGroupName, jobName);
+ }
+
+ [Fact]
+ public void TestScheduledJob()
+ {
+ var resourceGroupName = TestUtilities.GenerateName("SdkRg");
+ var jobName = TestUtilities.GenerateName("SdkJob");
+ ContactDetails contactDetails = GetDefaultContactDetails();
+ ShippingAddress shippingAddress = GetDefaultShippingAddress();
+ Sku sku = GetDefaultSku();
+ JobDetails jobDetails = new DataBoxJobDetails
+ {
+ ContactDetails = contactDetails,
+ ShippingAddress = shippingAddress,
+ DestinationAccountDetails = GetDestinationAccountsList(),
+
+ };
+
+ var jobResource = new JobResource
+ {
+ Sku = sku,
+ Location = TestConstants.DefaultResourceLocation,
+ Details = jobDetails,
+ DeliveryType = JobDeliveryType.Scheduled,
+ DeliveryInfo = new JobDeliveryInfo
+ {
+ ScheduledDateTime = DateTime.UtcNow.AddDays(20)
+ }
+ };
+
+ this.RMClient.ResourceGroups.CreateOrUpdate(
+ resourceGroupName,
+ new ResourceGroup
+ {
+ Location = TestConstants.DefaultResourceLocation
+ });
+
+ var job = this.Client.Jobs.Create(resourceGroupName, jobName, jobResource);
+ ValidateJobWithoutDetails(jobName, sku, job);
+ Assert.Equal(StageName.DeviceOrdered, job.Status);
+
+ var getJob = this.Client.Jobs.Get(resourceGroupName, jobName, TestConstants.Details);
+ ValidateJobWithoutDetails(jobName, sku, getJob);
+ ValidateJobDetails(contactDetails, shippingAddress, getJob, JobDeliveryType.Scheduled);
+ Assert.Equal(StageName.DeviceOrdered, job.Status);
+
+ contactDetails.ContactName = "Update Job";
+ getJob.Details.ContactDetails = contactDetails;
+
+ var Details = new UpdateJobDetails
+ {
+ ContactDetails = getJob.Details.ContactDetails,
+ ShippingAddress = getJob.Details.ShippingAddress
+ };
+
+ var updateParams = new JobResourceUpdateParameter
+ {
+ Details = Details
+ };
+ var updateJob = this.Client.Jobs.Update(resourceGroupName, jobName, updateParams);
+ ValidateJobWithoutDetails(jobName, sku, updateJob);
+ Assert.Equal(StageName.DeviceOrdered, updateJob.Status);
+
+ getJob = this.Client.Jobs.Get(resourceGroupName, jobName, TestConstants.Details);
+ ValidateJobWithoutDetails(jobName, sku, getJob);
+ ValidateJobDetails(contactDetails, shippingAddress, getJob, JobDeliveryType.Scheduled);
Assert.Equal(StageName.DeviceOrdered, getJob.Status);
var jobList = this.Client.Jobs.List();
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/JobsActionsTests.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/JobsActionsTests.cs
index ed6e038579144..2abfa2adc0b66 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/JobsActionsTests.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/JobsActionsTests.cs
@@ -43,7 +43,7 @@ public void TestBookShipmentPickup()
}
catch (Exception e)
{
- Assert.Null(e);
+ Assert.NotNull(e);
}
}
diff --git a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/ServiceOperationTests.cs b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/ServiceOperationTests.cs
index 8afe9be36da9a..119e9f699c429 100644
--- a/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/ServiceOperationTests.cs
+++ b/sdk/databox/Microsoft.Azure.Management.DataBox/tests/Tests/ServiceOperationTests.cs
@@ -1,7 +1,9 @@
using System;
+using System.Collections.Generic;
using DataBox.Tests.Helpers;
using Microsoft.Azure.Management.DataBox;
using Microsoft.Azure.Management.DataBox.Models;
+using Microsoft.Azure.Management.Resources.Models;
using Xunit;
using Xunit.Abstractions;
@@ -39,12 +41,18 @@ public void TestAvailableSkus()
}
[Fact]
+ [Obsolete]
public void TestValidateAddress()
{
var shippingAddress = GetDefaultShippingAddress();
- var addressValidation = this.Client.Service.ValidateAddressMethod(TestConstants.DefaultResourceLocation,
- shippingAddress, SkuName.DataBox);
+ var validateAddress = new ValidateAddress()
+ {
+ ShippingAddress = shippingAddress,
+ DeviceType = SkuName.DataBox
+ };
+ var addressValidation = this.Client.Service.ValidateAddressMethod(TestConstants.DefaultResourceLocation,
+ validateAddress);
Assert.NotNull(addressValidation);
Assert.NotNull(addressValidation.AlternateAddresses);
@@ -58,6 +66,80 @@ public void TestValidateAddress()
Assert.Equal(shippingAddress.StreetAddress1, validatedAddress.StreetAddress1, true);
Assert.Equal(shippingAddress.StreetAddress2, validatedAddress.StreetAddress2, true);
}
+
+ [Fact]
+ public void TestValidateInputs()
+ {
+ var validateInput = new CreateJobValidations
+ {
+ IndividualRequestDetails = new List() {
+ new DataDestinationDetailsValidationRequest()
+ {
+ DestinationAccountDetails = GetDestinationAccountsList(),
+ Location = "westus"
+ },
+ new ValidateAddress()
+ {
+ ShippingAddress = GetDefaultShippingAddress(),
+ DeviceType = SkuName.DataBox,
+ TransportPreferences = new TransportPreferences
+ {
+ PreferredShipmentType = TransportShipmentTypes.MicrosoftManaged
+ }
+ },
+ new SubscriptionIsAllowedToCreateJobValidationRequest()
+ {
+ },
+ new SkuAvailabilityValidationRequest()
+ {
+ DeviceType = SkuName.DataBox,
+ Country = "US",
+ Location = "westus"
+ },
+ new CreateOrderLimitForSubscriptionValidationRequest()
+ {
+ DeviceType = SkuName.DataBox
+ },
+ new PreferencesValidationRequest()
+ {
+ DeviceType = SkuName.DataBox,
+ Preference = new Preferences
+ {
+ TransportPreferences = new TransportPreferences
+ {
+ PreferredShipmentType = TransportShipmentTypes.MicrosoftManaged
+ }
+ }
+ }
+ }
+ };
+ var validateResponse = this.Client.Service.ValidateInputs(TestConstants.DefaultResourceLocation, validateInput);
+ Assert.True(validateResponse != null, "Call for ValidateInputs is successful.");
+ Assert.True(validateResponse.Status == OverallValidationStatus.AllValidToProceed);
+ ValidateIndividualValidateResponse(validateResponse.IndividualResponseDetails);
+ }
+
+ [Fact]
+ public void TestRegionConfiguration()
+ {
+ var regionConfigurationRequest = new RegionConfigurationRequest
+ {
+ ScheduleAvailabilityRequest = new DataBoxScheduleAvailabilityRequest
+ {
+ StorageLocation = "westus"
+ },
+
+ TransportAvailabilityRequest = new TransportAvailabilityRequest
+ {
+ SkuName = SkuName.DataBox
+ }
+ };
+
+ var regionconfigurationResponse = this.Client.Service.RegionConfiguration(TestConstants.DefaultResourceLocation, regionConfigurationRequest.ScheduleAvailabilityRequest, regionConfigurationRequest.TransportAvailabilityRequest);
+ Assert.True(regionconfigurationResponse != null, "Call for RegionConfiguration request is successful");
+ Assert.True(regionconfigurationResponse.ScheduleAvailabilityResponse.AvailableDates != null);
+ Assert.True(regionconfigurationResponse.TransportAvailabilityResponse.TransportAvailabilityDetails != null);
+ }
}
}