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.



666
667
668
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 666

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



653
654
655
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 653

def event_driven_schedule
  @event_driven_schedule
end

#manual_scheduleGoogle::Apis::BigquerydatatransferV1::ManualSchedule

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



658
659
660
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 658

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



664
665
666
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 664

def time_based_schedule
  @time_based_schedule
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



671
672
673
674
675
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 671

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