Class: Google::Apis::NotebooksV1::Schedule
- Inherits:
-
Object
- Object
- Google::Apis::NotebooksV1::Schedule
- 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
-
#create_time ⇒ String
Output only.
-
#cron_schedule ⇒ String
Cron-tab formatted schedule by which the job will execute.
-
#description ⇒ String
A brief description of this environment.
-
#display_name ⇒ String
Output only.
-
#execution_template ⇒ Google::Apis::NotebooksV1::ExecutionTemplate
The description a notebook execution workload.
-
#name ⇒ String
Output only.
-
#recent_executions ⇒ Array<Google::Apis::NotebooksV1::Execution>
Output only.
-
#state ⇒ String
Corresponds to the JSON property
state. -
#time_zone ⇒ String
Timezone on which the cron_schedule.
-
#update_time ⇒ String
Output only.
Instance Method Summary collapse
-
#initialize(**args) ⇒ Schedule
constructor
A new instance of Schedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ Schedule
Returns a new instance of Schedule.
2200 2201 2202 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2200 def initialize(**args) update!(**args) end |
Instance Attribute Details
#create_time ⇒ String
Output only. Time the schedule was created.
Corresponds to the JSON property createTime
2143 2144 2145 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2143 def create_time @create_time end |
#cron_schedule ⇒ String
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
2150 2151 2152 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2150 def cron_schedule @cron_schedule end |
#description ⇒ String
A brief description of this environment.
Corresponds to the JSON property description
2155 2156 2157 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2155 def description @description end |
#display_name ⇒ String
Output only. Display name used for UI purposes. Name can only contain
alphanumeric characters, hyphens '-', and underscores '_'.
Corresponds to the JSON property displayName
2161 2162 2163 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2161 def display_name @display_name end |
#execution_template ⇒ Google::Apis::NotebooksV1::ExecutionTemplate
The description a notebook execution workload.
Corresponds to the JSON property executionTemplate
2166 2167 2168 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2166 def execution_template @execution_template end |
#name ⇒ String
Output only. The name of this schedule. Format: projects/project_id/
locations/location/schedules/schedule_id`
Corresponds to the JSON propertyname`
2172 2173 2174 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2172 def name @name end |
#recent_executions ⇒ Array<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
2178 2179 2180 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2178 def recent_executions @recent_executions end |
#state ⇒ String
Corresponds to the JSON property state
2183 2184 2185 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2183 def state @state end |
#time_zone ⇒ String
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
2193 2194 2195 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2193 def time_zone @time_zone end |
#update_time ⇒ String
Output only. Time the schedule was last updated.
Corresponds to the JSON property updateTime
2198 2199 2200 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2198 def update_time @update_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 |
# File 'lib/google/apis/notebooks_v1/classes.rb', line 2205 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 |