Class: Google::Apis::AnalyticshubV1::PubSubTopicSource

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

Pub/Sub topic source.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PubSubTopicSource

Returns a new instance of PubSubTopicSource.



1765
1766
1767
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1765

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

Instance Attribute Details

#data_affinity_regionsArray<String>

Optional. Region hint on where the data might be published. Data affinity regions are modifiable. See go/regions for full listing of possible Cloud regions. Corresponds to the JSON property dataAffinityRegions

Returns:

  • (Array<String>)


1757
1758
1759
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1757

def data_affinity_regions
  @data_affinity_regions
end

#topicString

Required. Resource name of the Pub/Sub topic source for this listing. e.g. projects/myproject/topics/topicId Corresponds to the JSON property topic

Returns:

  • (String)


1763
1764
1765
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1763

def topic
  @topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1770
1771
1772
1773
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1770

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