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.



399
400
401
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 399

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)


397
398
399
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 397

def pubsub_subscription
  @pubsub_subscription
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



404
405
406
# File 'lib/google/apis/bigquerydatatransfer_v1/classes.rb', line 404

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