/// <summary>
 /// Initializes a new instance of the JobResource class.
 /// </summary>
 /// <param name="location">The location of the resource. This will be
 /// one of the supported and registered Azure Regions (e.g. West US,
 /// East US, Southeast Asia, etc.). The region of a resource cannot be
 /// changed once it is created, but if an identical region is specified
 /// on update the request will succeed.</param>
 /// <param name="sku">The sku type.</param>
 /// <param name="tags">The list of key value pairs that describe the
 /// resource. These tags can be used in viewing and grouping this
 /// resource (across resource groups).</param>
 /// <param name="isCancellable">Describes whether the job is
 /// cancellable or not.</param>
 /// <param name="isDeletable">Describes whether the job is deletable or
 /// not.</param>
 /// <param name="isShippingAddressEditable">Describes whether the
 /// shipping address is editable or not.</param>
 /// <param name="status">Name of the stage which is in progress.
 /// Possible values include: 'DeviceOrdered', 'DevicePrepared',
 /// 'Dispatched', 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy',
 /// 'Completed', 'CompletedWithErrors', 'Cancelled',
 /// 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC',
 /// 'Aborted', 'CompletedWithWarnings', 'ReadyToDispatchFromAzureDC',
 /// 'ReadyToReceiveAtAzureDC'</param>
 /// <param name="startTime">Time at which the job was started in UTC
 /// ISO 8601 format.</param>
 /// <param name="error">Top level error for the job.</param>
 /// <param name="details">Details of a job run. This field will only be
 /// sent for expand details filter.</param>
 /// <param name="cancellationReason">Reason for cancellation.</param>
 /// <param name="deliveryType">Delivery type of Job. Possible values
 /// include: 'NonScheduled', 'Scheduled'</param>
 /// <param name="deliveryInfo">Delivery Info of Job.</param>
 /// <param name="isCancellableWithoutFee">Flag to indicate cancellation
 /// of scheduled job.</param>
 /// <param name="name">Name of the object.</param>
 /// <param name="id">Id of the object.</param>
 /// <param name="type">Type of the object.</param>
 public JobResource(string location, Sku sku, IDictionary <string, string> tags = default(IDictionary <string, string>), 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;
     IsDeletable               = isDeletable;
     IsShippingAddressEditable = isShippingAddressEditable;
     Status                  = status;
     StartTime               = startTime;
     Error                   = error;
     Details                 = details;
     CancellationReason      = cancellationReason;
     DeliveryType            = deliveryType;
     DeliveryInfo            = deliveryInfo;
     IsCancellableWithoutFee = isCancellableWithoutFee;
     Name = name;
     Id   = id;
     Type = type;
     CustomInit();
 }
示例#2
0
 /// <summary>
 /// Initializes a new instance of the JobResource class.
 /// </summary>
 /// <param name="location">The location of the resource. This will be
 /// one of the supported and registered Azure Regions (e.g. West US,
 /// East US, Southeast Asia, etc.). The region of a resource cannot be
 /// changed once it is created, but if an identical region is specified
 /// on update the request will succeed.</param>
 /// <param name="sku">The sku type.</param>
 /// <param name="transferType">Type of the data transfer. Possible
 /// values include: 'ImportToAzure', 'ExportFromAzure'</param>
 /// <param name="tags">The list of key value pairs that describe the
 /// resource. These tags can be used in viewing and grouping this
 /// resource (across resource groups).</param>
 /// <param name="identity">Msi identity of the resource</param>
 /// <param name="isCancellable">Describes whether the job is
 /// cancellable or not.</param>
 /// <param name="isDeletable">Describes whether the job is deletable or
 /// not.</param>
 /// <param name="isShippingAddressEditable">Describes whether the
 /// shipping address is editable or not.</param>
 /// <param name="isPrepareToShipEnabled">Is Prepare To Ship Enabled on
 /// this job</param>
 /// <param name="status">Name of the stage which is in progress.
 /// Possible values include: 'DeviceOrdered', 'DevicePrepared',
 /// 'Dispatched', 'Delivered', 'PickedUp', 'AtAzureDC', 'DataCopy',
 /// 'Completed', 'CompletedWithErrors', 'Cancelled',
 /// 'Failed_IssueReportedAtCustomer', 'Failed_IssueDetectedAtAzureDC',
 /// 'Aborted', 'CompletedWithWarnings', 'ReadyToDispatchFromAzureDC',
 /// 'ReadyToReceiveAtAzureDC', 'Created', 'ShippedToAzureDC',
 /// 'AwaitingShipmentDetails', 'PreparingToShipFromAzureDC',
 /// 'ShippedToCustomer'</param>
 /// <param name="startTime">Time at which the job was started in UTC
 /// ISO 8601 format.</param>
 /// <param name="error">Top level error for the job.</param>
 /// <param name="details">Details of a job run. This field will only be
 /// sent for expand details filter.</param>
 /// <param name="cancellationReason">Reason for cancellation.</param>
 /// <param name="deliveryType">Delivery type of Job. Possible values
 /// include: 'NonScheduled', 'Scheduled'</param>
 /// <param name="deliveryInfo">Delivery Info of Job.</param>
 /// <param name="isCancellableWithoutFee">Flag to indicate cancellation
 /// of scheduled job.</param>
 /// <param name="name">Name of the object.</param>
 /// <param name="id">Id of the object.</param>
 /// <param name="type">Type of the object.</param>
 /// <param name="systemData">Metadata pertaining to creation and last
 /// modification of the resource.</param>
 public JobResource(string location, Sku sku, TransferType transferType, IDictionary <string, string> tags = default(IDictionary <string, string>), ResourceIdentity identity = default(ResourceIdentity), bool?isCancellable = default(bool?), bool?isDeletable = default(bool?), bool?isShippingAddressEditable = default(bool?), bool?isPrepareToShipEnabled = default(bool?), string status = default(string), System.DateTime?startTime = default(System.DateTime?), CloudError error = default(CloudError), 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), SystemData systemData = default(SystemData))
     : base(location, sku, tags, identity)
 {
     TransferType              = transferType;
     IsCancellable             = isCancellable;
     IsDeletable               = isDeletable;
     IsShippingAddressEditable = isShippingAddressEditable;
     IsPrepareToShipEnabled    = isPrepareToShipEnabled;
     Status                  = status;
     StartTime               = startTime;
     Error                   = error;
     Details                 = details;
     CancellationReason      = cancellationReason;
     DeliveryType            = deliveryType;
     DeliveryInfo            = deliveryInfo;
     IsCancellableWithoutFee = isCancellableWithoutFee;
     Name       = name;
     Id         = id;
     Type       = type;
     SystemData = systemData;
     CustomInit();
 }