Class WorkRequest
The description of work request, including its status.
Inherited Members
Namespace: Oci.OdaService.Models
Assembly: OCI.DotNetSDK.Oda.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 identifier of the compartment that contains 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 identifier of the work request. |
Remarks
Required
OdaInstanceId
Declaration
[Required(ErrorMessage = "OdaInstanceId is required.")]
[JsonProperty(PropertyName = "odaInstanceId")]
public string OdaInstanceId { get; set; }
Property Value
Type | Description |
---|---|
string | The identifier of the Digital Assistant instance to which this work request pertains. |
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
RequestAction
Declaration
[Required(ErrorMessage = "RequestAction is required.")]
[JsonProperty(PropertyName = "requestAction")]
[JsonConverter(typeof(ResponseEnumConverter))]
public WorkRequest.RequestActionEnum? RequestAction { get; set; }
Property Value
Type | Description |
---|---|
WorkRequest.RequestActionEnum? | The type of the operation that's associated with the work request. |
Remarks
Required
ResourceId
Declaration
[Required(ErrorMessage = "ResourceId is required.")]
[JsonProperty(PropertyName = "resourceId")]
public string ResourceId { get; set; }
Property Value
Type | Description |
---|---|
string | The identifier of the resource to which this work request pertains. |
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 that this work request affects. |
Remarks
Required
Status
Declaration
[Required(ErrorMessage = "Status is required.")]
[JsonProperty(PropertyName = "status")]
[JsonConverter(typeof(ResponseEnumConverter))]
public WorkRequest.StatusEnum? Status { get; set; }
Property Value
Type | Description |
---|---|
WorkRequest.StatusEnum? | The status of current work request. |
Remarks
Required
StatusMessage
Declaration
[JsonProperty(PropertyName = "statusMessage")]
public string StatusMessage { get; set; }
Property Value
Type | Description |
---|---|
string | A short message that provides more detail about the current status. For example, if a work request fails, then this may include information about why it failed. |
TimeAccepted
Declaration
[Required(ErrorMessage = "TimeAccepted is required.")]
[JsonProperty(PropertyName = "timeAccepted")]
public DateTime? TimeAccepted { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time that the request was created, as described in RFC 3339, section 14.29. |
Remarks
Required
TimeFinished
Declaration
[JsonProperty(PropertyName = "timeFinished")]
public DateTime? TimeFinished { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time that the object finished, as described in RFC 3339. CKQ |
TimeStarted
Declaration
[JsonProperty(PropertyName = "timeStarted")]
public DateTime? TimeStarted { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | The date and time that the request was started, as described in RFC 3339, CKQ section 14.29. |