Class WorkRequest
An object representing an asynchronous work flow.
Many of the API requests you use to create and configure
connectors do not take effect immediately. In these
cases, the request spawns an asynchronous work flow to fulfill
the request. WorkRequest objects provide visibility for
in-progress work flows. For more information about work
requests, see
Viewing the State of a Work Request.
Inherited Members
Namespace: Oci.SchService.Models
Assembly: OCI.DotNetSDK.Sch.dll
Syntax
public class WorkRequest
Properties
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the compartment containing the work request. |
Remarks
Required
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | The OCID of the work request. |
Remarks
Required
OperationType
Declaration
[Required(ErrorMessage = "OperationType is required.")]
[JsonProperty(PropertyName = "operationType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public OperationType? OperationType { get; set; }
Property Value
Type | Description |
---|---|
OperationType? | The type of action the work request represents. |
Remarks
Required
PercentComplete
Declaration
[Required(ErrorMessage = "PercentComplete is required.")]
[JsonProperty(PropertyName = "percentComplete")]
public float? PercentComplete { get; set; }
Property Value
Type | Description |
---|---|
float? | Percentage of the request completed. |
Remarks
Required
Resources
Declaration
[Required(ErrorMessage = "Resources is required.")]
[JsonProperty(PropertyName = "resources")]
public List<WorkRequestResource> Resources { get; set; }
Property Value
Type | Description |
---|---|
List<WorkRequestResource> | The resources affected by this work request. |
Remarks
Required
Status
Declaration
[Required(ErrorMessage = "Status is required.")]
[JsonProperty(PropertyName = "status")]
[JsonConverter(typeof(ResponseEnumConverter))]
public OperationStatus? Status { get; set; }
Property Value
Type | Description |
---|---|
OperationStatus? | Status of current work request. |
Remarks
Required
TimeAccepted
Declaration
[Required(ErrorMessage = "TimeAccepted is required.")]
[JsonProperty(PropertyName = "timeAccepted")]
public DateTime? TimeAccepted { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time when the request was created. Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z |
Remarks
Required
TimeFinished
Declaration
[JsonProperty(PropertyName = "timeFinished")]
public DateTime? TimeFinished { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time when the object finished. Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z |
TimeStarted
Declaration
[JsonProperty(PropertyName = "timeStarted")]
public DateTime? TimeStarted { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time when the request was started. Format is defined by RFC3339. Example: 2020-01-25T21:10:29.600Z |