class Google::Apis::NotebooksV1::Schedule

The definition of a schedule.

Attributes

create_time[RW]

Output only. Time the schedule was created. Corresponds to the JSON property `createTime` @return [String]

cron_schedule[RW]

Cron-tab formatted schedule by which the job will execute Format: minute, hour, day of month, month, day of week e.g. 0 0 * * WED = every Wednesday More examples: crontab.guru/examples.html Corresponds to the JSON property `cronSchedule` @return [String]

description[RW]

A brief description of this environment. Corresponds to the JSON property `description` @return [String]

display_name[RW]

Output only. Display name used for UI purposes. Name can only contain alphanumeric characters, hyphens '-', and underscores '_'. Corresponds to the JSON property `displayName` @return [String]

execution_template[RW]

The description a notebook execution workload. Corresponds to the JSON property `executionTemplate` @return [Google::Apis::NotebooksV1::ExecutionTemplate]

name[RW]

Output only. The name of this schedule. Format: `projects/`project_id`/ locations/`location`/schedules/`schedule_id“ Corresponds to the JSON property `name` @return [String]

recent_executions[RW]

Output only. The most recent execution names triggered from this schedule and their corresponding states. Corresponds to the JSON property `recentExecutions` @return [Array<Google::Apis::NotebooksV1::Execution>]

state[RW]

Corresponds to the JSON property `state` @return [String]

time_zone[RW]

Timezone on which the cron_schedule. The value of this field must be a time zone name from the tz database. TZ Database: en.wikipedia.org/wiki/ List_of_tz_database_time_zones Note that some time zones include a provision for daylight savings time. The rules for daylight saving time are determined by the chosen tz. For UTC use the string “utc”. If a time zone is not specified, the default will be in UTC (also known as GMT). Corresponds to the JSON property `timeZone` @return [String]

update_time[RW]

Output only. Time the schedule was last updated. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/notebooks_v1/classes.rb, line 2172
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/notebooks_v1/classes.rb, line 2177
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @cron_schedule = args[:cron_schedule] if args.key?(:cron_schedule)
  @description = args[:description] if args.key?(:description)
  @display_name = args[:display_name] if args.key?(:display_name)
  @execution_template = args[:execution_template] if args.key?(:execution_template)
  @name = args[:name] if args.key?(:name)
  @recent_executions = args[:recent_executions] if args.key?(:recent_executions)
  @state = args[:state] if args.key?(:state)
  @time_zone = args[:time_zone] if args.key?(:time_zone)
  @update_time = args[:update_time] if args.key?(:update_time)
end