Class: Google::Apis::CloudassetV1p7beta1::ScheduleConfig
- Inherits:
-
Object
- Object
- Google::Apis::CloudassetV1p7beta1::ScheduleConfig
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudasset_v1p7beta1/classes.rb,
lib/google/apis/cloudasset_v1p7beta1/representations.rb,
lib/google/apis/cloudasset_v1p7beta1/representations.rb
Overview
Schedule for scheduled export. This is used to configure scheduled export for both GCS and BigQuery.
Instance Attribute Summary collapse
-
#crontab ⇒ String
Required.
-
#time_zone ⇒ String
Specifies the time zone to be used in interpreting [crontab].
Instance Method Summary collapse
-
#initialize(**args) ⇒ ScheduleConfig
constructor
A new instance of ScheduleConfig.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ScheduleConfig
Returns a new instance of ScheduleConfig.
2217 2218 2219 |
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 2217 def initialize(**args) update!(**args) end |
Instance Attribute Details
#crontab ⇒ String
Required. 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 crontab
2205 2206 2207 |
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 2205 def crontab @crontab end |
#time_zone ⇒ String
Specifies the time zone to be used in interpreting [crontab]. The value of
this field must be a time zone name from the tz database. 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
2215 2216 2217 |
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 2215 def time_zone @time_zone end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
2222 2223 2224 2225 |
# File 'lib/google/apis/cloudasset_v1p7beta1/classes.rb', line 2222 def update!(**args) @crontab = args[:crontab] if args.key?(:crontab) @time_zone = args[:time_zone] if args.key?(:time_zone) end |