Class: Google::Apis::DataplexV1::GoogleCloudDataplexV1TriggerSchedule
- Inherits:
-
Object
- Object
- Google::Apis::DataplexV1::GoogleCloudDataplexV1TriggerSchedule
- 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
The scan is scheduled to run periodically.
Instance Attribute Summary collapse
-
#cron ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDataplexV1TriggerSchedule
constructor
A new instance of GoogleCloudDataplexV1TriggerSchedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDataplexV1TriggerSchedule
Returns a new instance of GoogleCloudDataplexV1TriggerSchedule.
4480 4481 4482 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4480 def initialize(**args) update!(**args) end |
Instance Attribute Details
#cron ⇒ String
Required. Cron schedule (https://en.wikipedia.org/wiki/Cron) for running scans
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 Schedule scans.
Corresponds to the JSON property cron
4478 4479 4480 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4478 def cron @cron end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
4485 4486 4487 |
# File 'lib/google/apis/dataplex_v1/classes.rb', line 4485 def update!(**args) @cron = args[:cron] if args.key?(:cron) end |