Class: Google::Apis::NotebooksV1::Schedule

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/notebooks_v1/classes.rb,
lib/google/apis/notebooks_v1/representations.rb,
lib/google/apis/notebooks_v1/representations.rb

Overview

The definition of a schedule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ Schedule

Returns a new instance of Schedule.



2662
2663
2664
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2662

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#create_timeString

Output only. Time the schedule was created. Corresponds to the JSON property createTime

Returns:

  • (String)


2605
2606
2607
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2605

def create_time
  @create_time
end

#cron_scheduleString

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: https://crontab.guru/examples.html Corresponds to the JSON property cronSchedule

Returns:

  • (String)


2612
2613
2614
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2612

def cron_schedule
  @cron_schedule
end

#descriptionString

A brief description of this environment. Corresponds to the JSON property description

Returns:

  • (String)


2617
2618
2619
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2617

def description
  @description
end

#display_nameString

Output only. Display name used for UI purposes. Name can only contain alphanumeric characters, hyphens -, and underscores _. Corresponds to the JSON property displayName

Returns:

  • (String)


2623
2624
2625
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2623

def display_name
  @display_name
end

#execution_templateGoogle::Apis::NotebooksV1::ExecutionTemplate

The description a notebook execution workload. Corresponds to the JSON property executionTemplate



2628
2629
2630
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2628

def execution_template
  @execution_template
end

#nameString

Output only. The name of this schedule. Format: projects/project_id/ locations/location/schedules/schedule_id` Corresponds to the JSON propertyname`

Returns:

  • (String)


2634
2635
2636
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2634

def name
  @name
end

#recent_executionsArray<Google::Apis::NotebooksV1::Execution>

Output only. The most recent execution names triggered from this schedule and their corresponding states. Corresponds to the JSON property recentExecutions



2640
2641
2642
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2640

def recent_executions
  @recent_executions
end

#stateString

Corresponds to the JSON property state

Returns:

  • (String)


2645
2646
2647
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2645

def state
  @state
end

#time_zoneString

Timezone on which the cron_schedule. The value of this field must be a time zone name from the tz database. TZ Database: https://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

Returns:

  • (String)


2655
2656
2657
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2655

def time_zone
  @time_zone
end

#update_timeString

Output only. Time the schedule was last updated. Corresponds to the JSON property updateTime

Returns:

  • (String)


2660
2661
2662
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2660

def update_time
  @update_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



2667
2668
2669
2670
2671
2672
2673
2674
2675
2676
2677
2678
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2667

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