Class CreateScheduledJobDetails
Information for creating a Scheduled Job
Inherited Members
Namespace: Oci.OsmanagementService.Models
Assembly: OCI.DotNetSDK.Osmanagement.dll
Syntax
public class CreateScheduledJobDetails
Properties
CompartmentId
Declaration
[Required(ErrorMessage = "CompartmentId is required.")]
[JsonProperty(PropertyName = "compartmentId")]
public string CompartmentId { get; set; }
Property Value
Type | Description |
---|---|
string | OCID for the Compartment |
Remarks
Required
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"} |
IntervalType
Declaration
[JsonProperty(PropertyName = "intervalType")]
[JsonConverter(typeof(StringEnumConverter))]
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) |
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). Either this or managedInstances must be supplied. |
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). Either this or the managedInstanceGroups must be supplied. |
OperationType
Declaration
[Required(ErrorMessage = "OperationType is required.")]
[JsonProperty(PropertyName = "operationType")]
[JsonConverter(typeof(StringEnumConverter))]
public OperationTypes? OperationType { get; set; }
Property Value
Type | Description |
---|---|
OperationTypes? | the type of operation this Scheduled Job performs |
Remarks
Required
OsFamily
Declaration
[JsonProperty(PropertyName = "osFamily")]
[JsonConverter(typeof(StringEnumConverter))]
public OsFamilies? OsFamily { get; set; }
Property Value
Type | Description |
---|---|
OsFamilies? | The Operating System type of the managed instance(s) on which this scheduled job will operate. If not specified, this defaults to Linux. |
PackageNames
Declaration
[JsonProperty(PropertyName = "packageNames")]
public List<PackageName> PackageNames { get; set; }
Property Value
Type | Description |
---|---|
List<PackageName> | the id of the package (only if operation type is INSTALL/UPDATE/REMOVE) |
ScheduleType
Declaration
[Required(ErrorMessage = "ScheduleType is required.")]
[JsonProperty(PropertyName = "scheduleType")]
[JsonConverter(typeof(StringEnumConverter))]
public ScheduleTypes? ScheduleType { get; set; }
Property Value
Type | Description |
---|---|
ScheduleTypes? | the type of scheduling this Scheduled Job follows |
Remarks
Required
TimeNextExecution
Declaration
[Required(ErrorMessage = "TimeNextExecution is required.")]
[JsonProperty(PropertyName = "timeNextExecution")]
public DateTime? TimeNextExecution { get; set; }
Property Value
Type | Description |
---|---|
DateTime? | the desired time for the next execution of this Scheduled Job |
Remarks
Required
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(StringEnumConverter))]
public PackageUpdateTypes? UpdateType { get; set; }
Property Value
Type | Description |
---|---|
PackageUpdateTypes? | Type of the update (only if operation type is UPDATEALL) |