Class: Google::Apis::BigquerydatatransferV1::TimeBasedSchedule
- Inherits:
-
Object
- Object
- Google::Apis::BigquerydatatransferV1::TimeBasedSchedule
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/bigquerydatatransfer_v1/classes.rb,
lib/google/apis/bigquerydatatransfer_v1/representations.rb,
lib/google/apis/bigquerydatatransfer_v1/representations.rb
Overview
Options customizing the time based transfer schedule. Options are migrated from the original ScheduleOptions message.
Instance Attribute Summary collapse
-
#end_time ⇒ String
Defines time to stop scheduling transfer runs.
-
#schedule ⇒ String
Data transfer schedule.
-
#start_time ⇒ String
Specifies time to start scheduling transfer runs.
Instance Method Summary collapse
-
#initialize(**args) ⇒ TimeBasedSchedule
constructor
A new instance of TimeBasedSchedule.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ TimeBasedSchedule
Returns a new instance of TimeBasedSchedule.
847 848 849 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 847 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time ⇒ String
Defines time to stop scheduling transfer runs. A transfer run cannot be
scheduled at or after the end time. The end time can be changed at any moment.
Corresponds to the JSON property endTime
825 826 827 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 825 def end_time @end_time end |
#schedule ⇒ String
Data transfer schedule. If the data source does not support a custom schedule,
this should be empty. If it is empty, the default value for the data source
will be used. The specified times are in UTC. Examples of valid format: 1st,
3rd monday of month 15:30, every wed,fri of jan,jun 13:15, and first
sunday of quarter 00:00. See more explanation about the format here: https://
cloud.google.com/appengine/docs/flexible/python/scheduling-jobs-with-cron-yaml#
the_schedule_format NOTE: The minimum interval time between recurring
transfers depends on the data source; refer to the documentation for your data
source.
Corresponds to the JSON property schedule
838 839 840 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 838 def schedule @schedule end |
#start_time ⇒ String
Specifies time to start scheduling transfer runs. The first run will be
scheduled at or after the start time according to a recurrence pattern defined
in the schedule string. The start time can be changed at any moment.
Corresponds to the JSON property startTime
845 846 847 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 845 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
852 853 854 855 856 |
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 852 def update!(**args) @end_time = args[:end_time] if args.key?(:end_time) @schedule = args[:schedule] if args.key?(:schedule) @start_time = args[:start_time] if args.key?(:start_time) end |