DatalabScheduleCreateInput

pydantic model openapi_client.models.datalab_schedule_create_input.DatalabScheduleCreateInput

DatalabScheduleCreateInput

Fields:
field resource: StrictStr [Required] (alias 'Resource')

Datalab ID

Constraints:
  • strict = True

field resource_type: StrictStr [Required] (alias 'ResourceType')
Constraints:
  • strict = True

field schedule_name: Annotated[str, Field(min_length=3, strict=True, max_length=120)] [Required] (alias 'ScheduleName')

Display name for the schedule. Must be 3-120 alphanumeric or underscore characters, starting with a letter. Must be unique within the datalab.

Constraints:
  • strict = True

  • min_length = 3

  • max_length = 120

field schedule_description: Optional[Annotated[str, Field(strict=True, max_length=500)]] = None (alias 'ScheduleDescription')

Optional description for the schedule. Must not contain angle brackets, braces, backslashes, or control characters.

field start_schedule: Optional[DatalabScheduleExpressionInput] = None (alias 'StartSchedule')
field stop_schedule: Optional[DatalabScheduleExpressionInput] = None (alias 'StopSchedule')
field is_enabled: StrictBool [Required] (alias 'IsEnabled')
Constraints:
  • strict = True

field priority: Annotated[int, Field(strict=True, ge=1)] [Required] (alias 'Priority')

Natural number where lower values indicate higher priority. Valid range is 1 through (existing schedule count on the datalab + 1). No two schedules on the same datalab may share the same priority.

Constraints:
  • strict = True

  • ge = 1

to_str()

Returns the string representation of the model using alias

Return type:

str

to_json()

Returns the JSON representation of the model using alias

Return type:

str

classmethod from_json(json_str)

Create an instance of DatalabScheduleCreateInput from a JSON string

Return type:

Optional[Self]

to_dict()

Return the dictionary representation of the model using alias.

This has the following differences from calling pydantic’s self.model_dump(by_alias=True):

  • None is only added to the output dict for nullable fields that were set at model initialization. Other fields with value None are ignored.

Return type:

Dict[str, Any]

classmethod from_dict(obj)

Create an instance of DatalabScheduleCreateInput from a dict

Return type:

Optional[Self]