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.
7300 7301 7302 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7300 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
7269 7270 7271 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7269 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
7276 7277 7278 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7276 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
7286 7287 7288 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7286 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
7293 7294 7295 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7293 def start_time @start_time end |
#type ⇒ String
Required. Immutable. Trigger type of the user-specified Task.
Corresponds to the JSON property type
7298 7299 7300 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7298 def type @type end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7305 7306 7307 7308 7309 7310 7311 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 7305 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 |