Class: Google::Apis::PubsubV1::AnalyticsHubSubscriptionInfo

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

Overview

Information about an associated Analytics Hub subscription (https://cloud. google.com/bigquery/docs/analytics-hub-manage-subscriptions).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ AnalyticsHubSubscriptionInfo

Returns a new instance of AnalyticsHubSubscriptionInfo.



63
64
65
# File 'lib/google/apis/pubsub_v1/classes.rb', line 63

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

Instance Attribute Details

#listingString

Optional. The name of the associated Analytics Hub listing resource. Pattern: " projects/project/locations/location/dataExchanges/data_exchange/listings/ listing" Corresponds to the JSON property listing

Returns:

  • (String)


55
56
57
# File 'lib/google/apis/pubsub_v1/classes.rb', line 55

def listing
  @listing
end

#subscriptionString

Optional. The name of the associated Analytics Hub subscription resource. Pattern: "projects/project/locations/location/subscriptions/subscription" Corresponds to the JSON property subscription

Returns:

  • (String)


61
62
63
# File 'lib/google/apis/pubsub_v1/classes.rb', line 61

def subscription
  @subscription
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



68
69
70
71
# File 'lib/google/apis/pubsub_v1/classes.rb', line 68

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