Class ScheduledJob
Detailed information about a Scheduled Job
Inherited Members
Namespace: Oci.OsmanagementService.Models
Assembly: OCI.DotNetSDK.Osmanagement.dll
Syntax
public class ScheduledJob
Properties
CompartmentId
Declaration
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | OCID for the Compartment |
DefinedTags
Declaration
[JsonProperty(PropertyName = "definedTags")]
public Dictionary<string, Dictionary<string, object>> DefinedTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, Dictionary<string, object>> | Defined tags for this resource. Each key is predefined and scoped to a namespace. Example: {"foo-namespace": {"bar-key": "value"}} |
Description
Declaration
[JsonProperty(PropertyName = "description")]
public string Description { get; set; }
Property Value
Type | Description |
---|---|
string | Details describing the Scheduled Job. |
DisplayName
Declaration
[Required(ErrorMessage = "DisplayName is required.")]
[JsonProperty(PropertyName = "displayName")]
public string DisplayName { get; set; }
Property Value
Type | Description |
---|---|
string | Scheduled Job name |
Remarks
Required
FreeformTags
Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type | Description |
---|---|
Dictionary<string, string> | Simple key-value pair that is applied without any predefined name, type or scope. Exists for cross-compatibility only. Example: {"bar-key": "value"} |
Id
Declaration
[Required(ErrorMessage = "Id is required.")]
[JsonProperty(PropertyName = "id")]
public string Id { get; set; }
Property Value
Type | Description |
---|---|
string | OCID for the Scheduled Job |
Remarks
Required
IntervalType
Declaration
[JsonProperty(PropertyName = "intervalType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public IntervalTypes? IntervalType { get; set; }
Property Value
Type | Description |
---|---|
IntervalTypes? | the interval period for a recurring Scheduled Job (only if schedule type is RECURRING) |
IntervalValue
Declaration
[JsonProperty(PropertyName = "intervalValue")]
public string IntervalValue { get; set; }
Property Value
Type | Description |
---|---|
string | the value for the interval period for a recurring Scheduled Job (only if schedule type is RECURRING) |
IsRestricted
Declaration
[JsonProperty(PropertyName = "isRestricted")]
public bool? IsRestricted { get; set; }
Property Value
Type | Description |
---|---|
bool? | true, if the schedule job has its update capabilities restricted. (Used to track Autonomous Scheduled Job) |
LifecycleState
Declaration
[JsonProperty(PropertyName = "lifecycleState")]
[JsonConverter(typeof(ResponseEnumConverter))]
public LifecycleStates? LifecycleState { get; set; }
Property Value
Type | Description |
---|---|
LifecycleStates? | The current state of the Scheduled Job. |
ManagedInstanceGroups
Declaration
[JsonProperty(PropertyName = "managedInstanceGroups")]
public List<Id> ManagedInstanceGroups { get; set; }
Property Value
Type | Description |
---|---|
List<Id> | the list of managed instance groups this scheduled job operates on (mutually exclusive with managedInstances) |
ManagedInstances
Declaration
[JsonProperty(PropertyName = "managedInstances")]
public List<Id> ManagedInstances { get; set; }
Property Value
Type | Description |
---|---|
List<Id> | the list of managed instances this scheduled job operates on (mutually exclusive with managedInstanceGroups) |
OperationType
Declaration
[JsonProperty(PropertyName = "operationType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public OperationTypes? OperationType { get; set; }
Property Value
Type | Description |
---|---|
OperationTypes? | the type of operation this Scheduled Job performs |
OsFamily
Declaration
[JsonProperty(PropertyName = "osFamily")]
[JsonConverter(typeof(ResponseEnumConverter))]
public OsFamilies? OsFamily { get; set; }
Property Value
Type | Description |
---|---|
OsFamilies? | The Operating System type of the managed instance. |
PackageNames
Declaration
[JsonProperty(PropertyName = "packageNames")]
public List<PackageName> PackageNames { get; set; }
Property Value
Type | Description |
---|---|
List<PackageName> | the names of the updates (only if operation type is INSTALL/UPDATE/REMOVE) |
ScheduleType
Declaration
[JsonProperty(PropertyName = "scheduleType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public ScheduleTypes? ScheduleType { get; set; }
Property Value
Type | Description |
---|---|
ScheduleTypes? | the type of scheduling this Scheduled Job follows |
TimeLastExecution
Declaration
[JsonProperty(PropertyName = "timeLastExecution")]
public DateTime? TimeLastExecution { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | the time of the last execution of this Scheduled Job |
TimeNextExecution
Declaration
[JsonProperty(PropertyName = "timeNextExecution")]
public DateTime? TimeNextExecution { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | the time of the next execution of this Scheduled Job |
UpdateNames
Declaration
[JsonProperty(PropertyName = "updateNames")]
public List<string> UpdateNames { get; set; }
Property Value
Type | Description |
---|---|
List<string> | The unique names of the Windows Updates (only if operation type is INSTALL). This is only applicable when the osFamily is for Windows managed instances. |
UpdateType
Declaration
[JsonProperty(PropertyName = "updateType")]
[JsonConverter(typeof(ResponseEnumConverter))]
public PackageUpdateTypes? UpdateType { get; set; }
Property Value
Type | Description |
---|---|
PackageUpdateTypes? | Type of the update (only if operation type is UPDATEALL) |
WorkRequests
Declaration
[JsonProperty(PropertyName = "workRequests")]
public List<Id> WorkRequests { get; set; }
Property Value
Type | Description |
---|---|
List<Id> | list of Work Requests associated with this Scheduled Job |