你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

JobResource 构造函数

定义

重载

JobResource()

初始化 JobResource 类的新实例。

JobResource(String, Sku, TransferType, IDictionary<String,String>, ResourceIdentity, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<DateTime>, CloudError, JobDetails, String, Nullable<JobDeliveryType>, JobDeliveryInfo, Nullable<Boolean>, String, String, String, SystemData)

初始化 JobResource 类的新实例。

JobResource()

初始化 JobResource 类的新实例。

public JobResource ();
Public Sub New ()

适用于

JobResource(String, Sku, TransferType, IDictionary<String,String>, ResourceIdentity, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, Nullable<Boolean>, String, Nullable<DateTime>, CloudError, JobDetails, String, Nullable<JobDeliveryType>, JobDeliveryInfo, Nullable<Boolean>, String, String, String, SystemData)

初始化 JobResource 类的新实例。

public JobResource (string location, Microsoft.Azure.Management.DataBox.Models.Sku sku, Microsoft.Azure.Management.DataBox.Models.TransferType transferType, System.Collections.Generic.IDictionary<string,string> tags = default, Microsoft.Azure.Management.DataBox.Models.ResourceIdentity identity = default, bool? isCancellable = default, bool? isDeletable = default, bool? isShippingAddressEditable = default, bool? isPrepareToShipEnabled = default, string status = default, DateTime? startTime = default, Microsoft.Rest.Azure.CloudError error = default, Microsoft.Azure.Management.DataBox.Models.JobDetails details = default, string cancellationReason = default, Microsoft.Azure.Management.DataBox.Models.JobDeliveryType? deliveryType = default, Microsoft.Azure.Management.DataBox.Models.JobDeliveryInfo deliveryInfo = default, bool? isCancellableWithoutFee = default, string name = default, string id = default, string type = default, Microsoft.Azure.Management.DataBox.Models.SystemData systemData = default);
new Microsoft.Azure.Management.DataBox.Models.JobResource : string * Microsoft.Azure.Management.DataBox.Models.Sku * Microsoft.Azure.Management.DataBox.Models.TransferType * System.Collections.Generic.IDictionary<string, string> * Microsoft.Azure.Management.DataBox.Models.ResourceIdentity * Nullable<bool> * Nullable<bool> * Nullable<bool> * Nullable<bool> * string * Nullable<DateTime> * Microsoft.Rest.Azure.CloudError * Microsoft.Azure.Management.DataBox.Models.JobDetails * string * Nullable<Microsoft.Azure.Management.DataBox.Models.JobDeliveryType> * Microsoft.Azure.Management.DataBox.Models.JobDeliveryInfo * Nullable<bool> * string * string * string * Microsoft.Azure.Management.DataBox.Models.SystemData -> Microsoft.Azure.Management.DataBox.Models.JobResource
Public Sub New (location As String, sku As Sku, transferType As TransferType, Optional tags As IDictionary(Of String, String) = Nothing, Optional identity As ResourceIdentity = Nothing, Optional isCancellable As Nullable(Of Boolean) = Nothing, Optional isDeletable As Nullable(Of Boolean) = Nothing, Optional isShippingAddressEditable As Nullable(Of Boolean) = Nothing, Optional isPrepareToShipEnabled As Nullable(Of Boolean) = Nothing, Optional status As String = Nothing, Optional startTime As Nullable(Of DateTime) = Nothing, Optional error As CloudError = Nothing, Optional details As JobDetails = Nothing, Optional cancellationReason As String = Nothing, Optional deliveryType As Nullable(Of JobDeliveryType) = Nothing, Optional deliveryInfo As JobDeliveryInfo = Nothing, Optional isCancellableWithoutFee As Nullable(Of Boolean) = Nothing, Optional name As String = Nothing, Optional id As String = Nothing, Optional type As String = Nothing, Optional systemData As SystemData = Nothing)

参数

location
String

资源的位置。 这是受支持和注册的 Azure 区域之一, (例如美国西部、美国东部、东南亚等) 。 资源的区域在创建后无法更改,但如果在更新时指定了相同的区域,则请求将成功。

sku
Sku

SKU 类型。

transferType
TransferType

数据传输的类型。 可能的值包括:“ImportToAzure”、“ExportFromAzure”

tags
IDictionary<String,String>

描述资源的键值对列表。 在查看此资源和为此资源分组(跨资源组)时,可以使用这些标记。

identity
ResourceIdentity

资源的 Msi 标识

isCancellable
Nullable<Boolean>

描述作业是否可取消。

isDeletable
Nullable<Boolean>

描述作业是否可删除。

isShippingAddressEditable
Nullable<Boolean>

描述送货地址是否可编辑。

isPrepareToShipEnabled
Nullable<Boolean>

此作业是否已启用“准备发货”

status
String

正在进行的阶段的名称。 可能的值包括:“DeviceOrdered”、“DevicePrepared”、“Dispatched”、“Delivered”、“PickedUp”、“AtAzureDC”、“DataCopy”、“Completed”、“CompletedWithErrors”、 “Cancelled”、“Failed_IssueReportedAtCustomer”、“Failed_IssueDetectedAtAzureDC”、“Aborted”、“CompletedWithWarnings”、“ReadyToDispatchFromAzureDC”、“ReadyToReceiveAtAzureDC”、“Created”、“ShippedToAzureDC”、“AwaitingShipmentDetails”、“ReadyToShipFromAzureDC”、“ShippedToCustomer”

startTime
Nullable<DateTime>

以 UTC ISO 8601 格式启动作业的时间。

error
CloudError

作业的顶级错误。

details
JobDetails

作业运行的详细信息。 此字段仅发送用于展开详细信息筛选器。

cancellationReason
String

取消的原因。

deliveryType
Nullable<JobDeliveryType>

作业的传递类型。 可能的值包括:“NonScheduled”、“Scheduled”

deliveryInfo
JobDeliveryInfo

作业的传递信息。

isCancellableWithoutFee
Nullable<Boolean>

指示取消计划作业的标志。

name
String

对象的名称。

id
String

对象的 ID。

type
String

对象的类型。

systemData
SystemData

与资源的创建和上次修改相关的元数据。

适用于