Class: Google::Apis::AnalyticshubV1::DestinationPubSubSubscription

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/analyticshub_v1/classes.rb,
lib/google/apis/analyticshub_v1/representations.rb,
lib/google/apis/analyticshub_v1/representations.rb

Overview

Defines the destination Pub/Sub subscription.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DestinationPubSubSubscription

Returns a new instance of DestinationPubSubSubscription.



757
758
759
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 757

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

Instance Attribute Details

#pubsub_subscriptionGoogle::Apis::AnalyticshubV1::GooglePubsubV1Subscription

A subscription resource. If none of push_config, bigquery_config, or cloud_storage_config is set, then the subscriber will pull and ack messages using API methods. At most one of these fields may be set. Corresponds to the JSON property pubsubSubscription



755
756
757
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 755

def pubsub_subscription
  @pubsub_subscription
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



762
763
764
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 762

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