Show / Hide Table of Contents

Class WorkRequestResource

A resource created or operated on by a work request.

Inheritance
object
WorkRequestResource
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.OdaService.Models
Assembly: OCI.DotNetSDK.Oda.dll
Syntax
public class WorkRequestResource

Properties

ResourceAction

Declaration
[Required(ErrorMessage = "ResourceAction is required.")]
[JsonProperty(PropertyName = "resourceAction")]
[JsonConverter(typeof(ResponseEnumConverter))]
public WorkRequestResource.ResourceActionEnum? ResourceAction { get; set; }
Property Value
Type Description
WorkRequestResource.ResourceActionEnum?

The action to take against the resource.

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 that is the subject of the request.

Remarks

Required

ResourceType

Declaration
[Required(ErrorMessage = "ResourceType is required.")]
[JsonProperty(PropertyName = "resourceType")]
public string ResourceType { get; set; }
Property Value
Type Description
string

The resource type that the work request affects.

Remarks

Required

ResourceUri

Declaration
[JsonProperty(PropertyName = "resourceUri")]
public string ResourceUri { get; set; }
Property Value
Type Description
string

The URI path that the user can do a GET on to access the resource metadata.

Status

Declaration
[Required(ErrorMessage = "Status is required.")]
[JsonProperty(PropertyName = "status")]
[JsonConverter(typeof(ResponseEnumConverter))]
public WorkRequestResource.StatusEnum? Status { get; set; }
Property Value
Type Description
WorkRequestResource.StatusEnum?

The current state of the work request. The SUCCEEDED, FAILED, AND CANCELED states correspond to the action being performed.

Remarks

Required

StatusMessage

Declaration
[JsonProperty(PropertyName = "statusMessage")]
public string StatusMessage { get; set; }
Property Value
Type Description
string

Short message providing more detail for the current status. For example, if an operation fails this may include information about the reason for the failure and a possible resolution.

In this article
Back to top