Class: Google::Apis::BigquerydatatransferV1::EventDrivenSchedule

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 EventDriven transfers schedule.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EventDrivenSchedule

Returns a new instance of EventDrivenSchedule.



426
427
428
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 426

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

Instance Attribute Details

#pubsub_subscriptionString

Pub/Sub subscription name used to receive events. Only Google Cloud Storage data source support this option. Format: projects/project/subscriptions/ subscription Corresponds to the JSON property pubsubSubscription

Returns:

  • (String)


424
425
426
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 424

def pubsub_subscription
  @pubsub_subscription
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



431
432
433
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 431

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