Class: Google::Apis::BigquerydatatransferV1::ScheduleOptionsV2

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

V2 options customizing different types of data transfer schedule. This field supports existing time-based and manual transfer schedule. Also supports Event- Driven transfer schedule. ScheduleOptionsV2 cannot be used together with ScheduleOptions/Schedule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ScheduleOptionsV2

Returns a new instance of ScheduleOptionsV2.



742
743
744
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 742

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

Instance Attribute Details

#event_driven_scheduleGoogle::Apis::BigquerydatatransferV1::EventDrivenSchedule

Options customizing EventDriven transfers schedule. Corresponds to the JSON property eventDrivenSchedule



729
730
731
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 729

def event_driven_schedule
  @event_driven_schedule
end

#manual_scheduleGoogle::Apis::BigquerydatatransferV1::ManualSchedule

Options customizing manual transfers schedule. Corresponds to the JSON property manualSchedule



734
735
736
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 734

def manual_schedule
  @manual_schedule
end

#time_based_scheduleGoogle::Apis::BigquerydatatransferV1::TimeBasedSchedule

Options customizing the time based transfer schedule. Options are migrated from the original ScheduleOptions message. Corresponds to the JSON property timeBasedSchedule



740
741
742
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 740

def time_based_schedule
  @time_based_schedule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



747
748
749
750
751
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 747

def update!(**args)
  @event_driven_schedule = args[:event_driven_schedule] if args.key?(:event_driven_schedule)
  @manual_schedule = args[:manual_schedule] if args.key?(:manual_schedule)
  @time_based_schedule = args[:time_based_schedule] if args.key?(:time_based_schedule)
end