Show / Hide Table of Contents

Class Job

The details of the job.

Inheritance
object
Job
SqlJob
Inherited Members
object.Equals(object)
object.Equals(object, object)
object.GetHashCode()
object.GetType()
object.MemberwiseClone()
object.ReferenceEquals(object, object)
object.ToString()
Namespace: Oci.DatabasemanagementService.Models
Assembly: OCI.DotNetSDK.Databasemanagement.dll
Syntax
[JsonConverter(typeof(JobModelConverter))]
public class Job

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 in which the job resides.

Remarks

Required

DatabaseSubType

Declaration
[JsonProperty(PropertyName = "databaseSubType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public DatabaseSubType? DatabaseSubType { get; set; }
Property Value
Type Description
DatabaseSubType?

The subtype of the Oracle Database where the job has to be executed. Applicable only when managedDatabaseGroupId is provided.

Description

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

The description of the job.

Id

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

The OCID of the job.

Remarks

Required

LifecycleState

Declaration
[Required(ErrorMessage = "LifecycleState is required.")]
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Job.LifecycleStateEnum? LifecycleState { get; set; }
Property Value
Type Description
Job.LifecycleStateEnum?

The lifecycle state of the job.

Remarks

Required

ManagedDatabaseGroupId

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

The OCID of the Managed Database Group where the job has to be executed.

ManagedDatabaseId

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

The OCID of the Managed Database where the job has to be executed.

ManagedDatabasesDetails

Declaration
[JsonProperty(PropertyName = "managedDatabasesDetails")]
public List<JobDatabase> ManagedDatabasesDetails { get; set; }
Property Value
Type Description
List<JobDatabase>

The details of the Managed Databases where the job has to be executed.

Name

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

The display name of the job.

Remarks

Required

ResultLocation

Declaration
[JsonProperty(PropertyName = "resultLocation")]
public JobExecutionResultLocation ResultLocation { get; set; }
Property Value
Type Description
JobExecutionResultLocation

ScheduleDetails

Declaration
[JsonProperty(PropertyName = "scheduleDetails")]
public JobScheduleDetails ScheduleDetails { get; set; }
Property Value
Type Description
JobScheduleDetails

ScheduleType

Declaration
[Required(ErrorMessage = "ScheduleType is required.")]
[JsonProperty(PropertyName = "scheduleType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public Job.ScheduleTypeEnum? ScheduleType { get; set; }
Property Value
Type Description
Job.ScheduleTypeEnum?

The schedule type of the job.

Remarks

Required

SubmissionErrorMessage

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

The error message that is returned if the job submission fails. Null is returned in all other scenarios.

TimeCreated

Declaration
[Required(ErrorMessage = "TimeCreated is required.")]
[JsonProperty(PropertyName = "timeCreated")]
public DateTime? TimeCreated { get; set; }
Property Value
Type Description
DateTime?

The date and time when the job was created.

Remarks

Required

TimeUpdated

Declaration
[Required(ErrorMessage = "TimeUpdated is required.")]
[JsonProperty(PropertyName = "timeUpdated")]
public DateTime? TimeUpdated { get; set; }
Property Value
Type Description
DateTime?

The date and time when the job was last updated.

Remarks

Required

Timeout

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

The job timeout duration, which is expressed like "1h 10m 15s".

In this article
Back to top