Class: Google::Apis::BigquerydatatransferV1::ScheduleOptions

Inherits:
Object
  • Object
show all
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 data transfer schedule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ScheduleOptions

Returns a new instance of ScheduleOptions.



631
632
633
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 631

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#disable_auto_schedulingBoolean Also known as: disable_auto_scheduling?

If true, automatic scheduling of data transfer runs for this configuration will be disabled. The runs can be started on ad-hoc basis using StartManualTransferRuns API. When automatic scheduling is disabled, the TransferConfig.schedule field will be ignored. Corresponds to the JSON property disableAutoScheduling

Returns:

  • (Boolean)


612
613
614
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 612

def disable_auto_scheduling
  @disable_auto_scheduling
end

#end_timeString

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. The time when a data transfer can be triggered manually is not limited by this option. Corresponds to the JSON property endTime

Returns:

  • (String)


621
622
623
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 621

def end_time
  @end_time
end

#start_timeString

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. The time when a data transfer can be triggered manually is not limited by this option. Corresponds to the JSON property startTime

Returns:

  • (String)


629
630
631
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 629

def start_time
  @start_time
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



636
637
638
639
640
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 636

def update!(**args)
  @disable_auto_scheduling = args[:disable_auto_scheduling] if args.key?(:disable_auto_scheduling)
  @end_time = args[:end_time] if args.key?(:end_time)
  @start_time = args[:start_time] if args.key?(:start_time)
end