Skip to content
This repository was archived by the owner on Aug 26, 2025. It is now read-only.
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -363,6 +363,8 @@ private void Initialize()
};
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<CopyLogDetails>("copyLogDetailsType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<CopyLogDetails>("copyLogDetailsType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<DestinationAccountDetails>("dataDestinationType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<DestinationAccountDetails>("dataDestinationType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<JobDetails>("jobDetailsType"));
DeserializationSettings.Converters.Add(new PolymorphicDeserializeJsonConverter<JobDetails>("jobDetailsType"));
SerializationSettings.Converters.Add(new PolymorphicSerializeJsonConverter<JobSecrets>("jobSecretsType"));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,12 +37,18 @@ public CopyProgress()
/// as of now.</param>
/// <param name="totalBytesToProcess">Total amount of data to be
/// processed by the job.</param>
public CopyProgress(string storageAccountName = default(string), string accountId = default(string), long? bytesSentToCloud = default(long?), long? totalBytesToProcess = default(long?))
/// <param name="filesProcessed">Number of files processed by the job
/// as of now.</param>
/// <param name="totalFilesToProcess">Total number of files to be
/// processed by the job.</param>
public CopyProgress(string storageAccountName = default(string), string accountId = default(string), long? bytesSentToCloud = default(long?), long? totalBytesToProcess = default(long?), long? filesProcessed = default(long?), long? totalFilesToProcess = default(long?))
{
StorageAccountName = storageAccountName;
AccountId = accountId;
BytesSentToCloud = bytesSentToCloud;
TotalBytesToProcess = totalBytesToProcess;
FilesProcessed = filesProcessed;
TotalFilesToProcess = totalFilesToProcess;
CustomInit();
}

Expand Down Expand Up @@ -76,5 +82,17 @@ public CopyProgress()
[JsonProperty(PropertyName = "totalBytesToProcess")]
public long? TotalBytesToProcess { get; private set; }

/// <summary>
/// Gets number of files processed by the job as of now.
/// </summary>
[JsonProperty(PropertyName = "filesProcessed")]
public long? FilesProcessed { get; private set; }

/// <summary>
/// Gets total number of files to be processed by the job.
/// </summary>
[JsonProperty(PropertyName = "totalFilesToProcess")]
public long? TotalFilesToProcess { get; private set; }

}
}
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ namespace Microsoft.Azure.Management.DataBox.Models
public enum CopyStatus
{
/// <summary>
/// Data copy hasnt started yet.
/// Data copy hasn't started yet.
/// </summary>
[EnumMember(Value = "NotStarted")]
NotStarted,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ public DataBoxDiskJobDetails()
/// <param name="destinationAccountDetails">Destination account
/// details.</param>
/// <param name="expectedDataSizeInTeraBytes">The expected size of the
/// data, which needs to be transfered in this job, in tera
/// bytes.</param>
/// data, which needs to be transferred in this job, in
/// terabytes.</param>
/// <param name="jobStages">List of stages that run in the job.</param>
/// <param name="deliveryPackage">Delivery package shipping
/// details.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataBox.Models
using System.Linq;

/// <summary>
/// Copy log details for a storage account for Databox heavy
/// Copy log details for a storage account for DataBoxHeavy
/// </summary>
[Newtonsoft.Json.JsonObject("DataBoxHeavy")]
public partial class DataBoxHeavyAccountCopyLogDetails : CopyLogDetails
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataBox.Models
using System.Linq;

/// <summary>
/// Databox Heavy Device Job Details
/// DataBoxHeavy Device Job Details
/// </summary>
[Newtonsoft.Json.JsonObject("DataBoxHeavy")]
public partial class DataBoxHeavyJobDetails : JobDetails
Expand All @@ -39,8 +39,8 @@ public DataBoxHeavyJobDetails()
/// <param name="destinationAccountDetails">Destination account
/// details.</param>
/// <param name="expectedDataSizeInTeraBytes">The expected size of the
/// data, which needs to be transfered in this job, in tera
/// bytes.</param>
/// data, which needs to be transferred in this job, in
/// terabytes.</param>
/// <param name="jobStages">List of stages that run in the job.</param>
/// <param name="deliveryPackage">Delivery package shipping
/// details.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataBox.Models
using System.Linq;

/// <summary>
/// The secrets related to a databox heavy job.
/// The secrets related to a DataBoxHeavy job.
/// </summary>
[Newtonsoft.Json.JsonObject("DataBoxHeavy")]
public partial class DataBoxHeavyJobSecrets : JobSecrets
Expand All @@ -33,7 +33,7 @@ public DataBoxHeavyJobSecrets()
/// Initializes a new instance of the DataBoxHeavyJobSecrets class.
/// </summary>
/// <param name="cabinetPodSecrets">Contains the list of secret objects
/// for a databox heavy job.</param>
/// for a DataBoxHeavy job.</param>
public DataBoxHeavyJobSecrets(IList<DataBoxHeavySecret> cabinetPodSecrets = default(IList<DataBoxHeavySecret>))
{
CabinetPodSecrets = cabinetPodSecrets;
Expand All @@ -46,7 +46,7 @@ public DataBoxHeavyJobSecrets()
partial void CustomInit();

/// <summary>
/// Gets contains the list of secret objects for a databox heavy job.
/// Gets contains the list of secret objects for a DataBoxHeavy job.
/// </summary>
[JsonProperty(PropertyName = "cabinetPodSecrets")]
public IList<DataBoxHeavySecret> CabinetPodSecrets { get; private set; }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataBox.Models
using System.Linq;

/// <summary>
/// The secrets related to a databox heavy.
/// The secrets related to a DataBoxHeavy.
/// </summary>
public partial class DataBoxHeavySecret
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataBox.Models
using System.Linq;

/// <summary>
/// Databox Job Details
/// DataBox Job Details
/// </summary>
[Newtonsoft.Json.JsonObject("DataBox")]
public partial class DataBoxJobDetails : JobDetails
Expand All @@ -39,8 +39,8 @@ public DataBoxJobDetails()
/// <param name="destinationAccountDetails">Destination account
/// details.</param>
/// <param name="expectedDataSizeInTeraBytes">The expected size of the
/// data, which needs to be transfered in this job, in tera
/// bytes.</param>
/// data, which needs to be transferred in this job, in
/// terabytes.</param>
/// <param name="jobStages">List of stages that run in the job.</param>
/// <param name="deliveryPackage">Delivery package shipping
/// details.</param>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ namespace Microsoft.Azure.Management.DataBox.Models
using System.Linq;

/// <summary>
/// The secrets related to a databox job.
/// The secrets related to a DataBox job.
/// </summary>
[Newtonsoft.Json.JsonObject("DataBox")]
public partial class DataboxJobSecrets : JobSecrets
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,12 +10,11 @@

namespace Microsoft.Azure.Management.DataBox.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Details for the destination account.
/// Details of the destination of the data
/// </summary>
public partial class DestinationAccountDetails
{
Expand All @@ -30,8 +29,9 @@ public DestinationAccountDetails()
/// <summary>
/// Initializes a new instance of the DestinationAccountDetails class.
/// </summary>
/// <param name="accountId">Destination storage account id.</param>
public DestinationAccountDetails(string accountId)
/// <param name="accountId">Arm Id of the destination where the data
/// has to be moved.</param>
public DestinationAccountDetails(string accountId = default(string))
{
AccountId = accountId;
CustomInit();
Expand All @@ -43,23 +43,11 @@ public DestinationAccountDetails(string accountId)
partial void CustomInit();

/// <summary>
/// Gets or sets destination storage account id.
/// Gets or sets arm Id of the destination where the data has to be
/// moved.
/// </summary>
[JsonProperty(PropertyName = "accountId")]
public string AccountId { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (AccountId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "AccountId");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.DataBox.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Details for the destination compute disks.
/// </summary>
[Newtonsoft.Json.JsonObject("ManagedDisk")]
public partial class DestinationManagedDiskDetails : DestinationAccountDetails
{
/// <summary>
/// Initializes a new instance of the DestinationManagedDiskDetails
/// class.
/// </summary>
public DestinationManagedDiskDetails()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the DestinationManagedDiskDetails
/// class.
/// </summary>
/// <param name="resourceGroupId">Destination Resource Group Id where
/// the Compute disks should be created.</param>
/// <param name="stagingStorageAccountId">Arm Id of the storage account
/// that can be used to copy the vhd for staging.</param>
/// <param name="accountId">Arm Id of the destination where the data
/// has to be moved.</param>
public DestinationManagedDiskDetails(string resourceGroupId, string stagingStorageAccountId, string accountId = default(string))
: base(accountId)
{
ResourceGroupId = resourceGroupId;
StagingStorageAccountId = stagingStorageAccountId;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets destination Resource Group Id where the Compute disks
/// should be created.
/// </summary>
[JsonProperty(PropertyName = "resourceGroupId")]
public string ResourceGroupId { get; set; }

/// <summary>
/// Gets or sets arm Id of the storage account that can be used to copy
/// the vhd for staging.
/// </summary>
[JsonProperty(PropertyName = "stagingStorageAccountId")]
public string StagingStorageAccountId { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (ResourceGroupId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "ResourceGroupId");
}
if (StagingStorageAccountId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "StagingStorageAccountId");
}
}
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,72 @@
// <auto-generated>
// 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.
// </auto-generated>

namespace Microsoft.Azure.Management.DataBox.Models
{
using Microsoft.Rest;
using Newtonsoft.Json;
using System.Linq;

/// <summary>
/// Details for the destination storage account.
/// </summary>
[Newtonsoft.Json.JsonObject("StorageAccount")]
public partial class DestinationStorageAccountDetails : DestinationAccountDetails
{
/// <summary>
/// Initializes a new instance of the DestinationStorageAccountDetails
/// class.
/// </summary>
public DestinationStorageAccountDetails()
{
CustomInit();
}

/// <summary>
/// Initializes a new instance of the DestinationStorageAccountDetails
/// class.
/// </summary>
/// <param name="storageAccountId">Destination Storage Account Arm
/// Id.</param>
/// <param name="accountId">Arm Id of the destination where the data
/// has to be moved.</param>
public DestinationStorageAccountDetails(string storageAccountId, string accountId = default(string))
: base(accountId)
{
StorageAccountId = storageAccountId;
CustomInit();
}

/// <summary>
/// An initialization method that performs custom operations like setting defaults
/// </summary>
partial void CustomInit();

/// <summary>
/// Gets or sets destination Storage Account Arm Id.
/// </summary>
[JsonProperty(PropertyName = "storageAccountId")]
public string StorageAccountId { get; set; }

/// <summary>
/// Validate the object.
/// </summary>
/// <exception cref="ValidationException">
/// Thrown if validation fails
/// </exception>
public virtual void Validate()
{
if (StorageAccountId == null)
{
throw new ValidationException(ValidationRules.CannotBeNull, "StorageAccountId");
}
}
}
}
Loading