Show / Hide Table of Contents

Class CreateScheduleDetails

This is the data to create a schedule.

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

Properties

Action

Declaration
[Required(ErrorMessage = "Action is required.")]
[JsonProperty(PropertyName = "action")]
[JsonConverter(typeof(StringEnumConverter))]
public CreateScheduleDetails.ActionEnum? Action { get; set; }
Property Value
Type Description
CreateScheduleDetails.ActionEnum?

This is the action that will be executed by the schedule.

Remarks

Required

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 schedule is created

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>>

These are defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags.
Example: {"Operations": {"CostCenter": "42"}}

Description

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

This is the description of the schedule.

DisplayName

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

This is a user-friendly name for the schedule. It does not have to be unique, and it's changeable.

FreeformTags

Declaration
[JsonProperty(PropertyName = "freeformTags")]
public Dictionary<string, string> FreeformTags { get; set; }
Property Value
Type Description
Dictionary<string, string>

These are free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags.
Example: {"Department": "Finance"}

RecurrenceDetails

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

This is the frequency of recurrence of a schedule. The frequency field can either conform to RFC-5545 formatting or UNIX cron formatting for recurrences, based on the value specified by the recurrenceType field.

Remarks

Required

RecurrenceType

Declaration
[Required(ErrorMessage = "RecurrenceType is required.")]
[JsonProperty(PropertyName = "recurrenceType")]
[JsonConverter(typeof(StringEnumConverter))]
public CreateScheduleDetails.RecurrenceTypeEnum? RecurrenceType { get; set; }
Property Value
Type Description
CreateScheduleDetails.RecurrenceTypeEnum?

Type of recurrence of a schedule

Remarks

Required

ResourceFilters

Declaration
[JsonProperty(PropertyName = "resourceFilters")]
public List<ResourceFilter> ResourceFilters { get; set; }
Property Value
Type Description
List<ResourceFilter>

This is a list of resources filters. The schedule will be applied to resources matching all of them.

Resources

Declaration
[JsonProperty(PropertyName = "resources")]
public List<Resource> Resources { get; set; }
Property Value
Type Description
List<Resource>

This is the list of resources to which the scheduled operation is applied.

TimeEnds

Declaration
[JsonProperty(PropertyName = "timeEnds")]
public DateTime? TimeEnds { get; set; }
Property Value
Type Description
DateTime?

This is the date and time the schedule ends, in the format defined by RFC 3339
Example: 2016-08-25T21:10:29.600Z

TimeStarts

Declaration
[JsonProperty(PropertyName = "timeStarts")]
public DateTime? TimeStarts { get; set; }
Property Value
Type Description
DateTime?

This is the date and time the schedule starts, in the format defined by RFC 3339
Example: 2016-08-25T21:10:29.600Z

In this article
Back to top