Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskTriggerSpec
- Inherits:
-
Object
- Object
- Google::Apis::DataplexV1::GoogleCloudDataplexV1TaskTriggerSpec
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/dataplex_v1/classes.rb,
lib/google/apis/dataplex_v1/representations.rb,
lib/google/apis/dataplex_v1/representations.rb
Overview
Task scheduling and trigger settings.
Instance Attribute Summary collapse
-
#disabled ⇒ Boolean
(also: #disabled?)
Optional.
-
#max_retries ⇒ Fixnum
Optional.
-
#schedule ⇒ String
Optional.
-
#start_time ⇒ String
Optional.
-
#type ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDataplexV1TaskTriggerSpec
constructor
A new instance of GoogleCloudDataplexV1TaskTriggerSpec.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDataplexV1TaskTriggerSpec
Returns a new instance of GoogleCloudDataplexV1TaskTriggerSpec.
7553 7554 7555 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7553 def initialize(**args) update!(**args) end |
Instance Attribute Details
#disabled ⇒ Boolean Also known as: disabled?
Optional. Prevent the task from executing. This does not cancel already
running tasks. It is intended to temporarily disable RECURRING tasks.
Corresponds to the JSON property disabled
7522 7523 7524 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7522 def disabled @disabled end |
#max_retries ⇒ Fixnum
Optional. Number of retry attempts before aborting. Set to zero to never
attempt to retry a failed task.
Corresponds to the JSON property maxRetries
7529 7530 7531 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7529 def max_retries @max_retries end |
#schedule ⇒ String
Optional. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running tasks
periodically. To explicitly set a timezone to the cron tab, apply a prefix in
the cron tab: "CRON_TZ=$IANA_TIME_ZONE
" or "TZ=$IANA_TIME_ZONE
". The $
IANA_TIME_ZONE
may only be a valid string from IANA time zone database. For
example, CRON_TZ=America/New_York 1 * * * *, or TZ=America/New_York 1 * * * *.
This field is required for RECURRING tasks.
Corresponds to the JSON property schedule
7539 7540 7541 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7539 def schedule @schedule end |
#start_time ⇒ String
Optional. The first run of the task will be after this time. If not specified,
the task will run shortly after being submitted if ON_DEMAND and based on the
schedule if RECURRING.
Corresponds to the JSON property startTime
7546 7547 7548 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7546 def start_time @start_time end |
#type ⇒ String
Required. Immutable. Trigger type of the user-specified Task.
Corresponds to the JSON property type
7551 7552 7553 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7551 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7558 7559 7560 7561 7562 7563 7564 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7558 def update!(**args) @disabled = args[:disabled] if args.key?(:disabled) @max_retries = args[:max_retries] if args.key?(:max_retries) @schedule = args[:schedule] if args.key?(:schedule) @start_time = args[:start_time] if args.key?(:start_time) @type = args[:type] if args.key?(:type) end |