Class: Google::Apis::AnalyticshubV1::PubSubTopicSource
- Inherits:
-
Object
- Object
- Google::Apis::AnalyticshubV1::PubSubTopicSource
- 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
-
#data_affinity_regions ⇒ Array<String>
Optional.
-
#topic ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PubSubTopicSource
constructor
A new instance of PubSubTopicSource.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PubSubTopicSource
Returns a new instance of PubSubTopicSource.
1672 1673 1674 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1672 def initialize(**args) update!(**args) end |
Instance Attribute Details
#data_affinity_regions ⇒ Array<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
1664 1665 1666 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1664 def data_affinity_regions @data_affinity_regions end |
#topic ⇒ String
Required. Resource name of the Pub/Sub topic source for this listing. e.g.
projects/myproject/topics/topicId
Corresponds to the JSON property topic
1670 1671 1672 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1670 def topic @topic end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1677 1678 1679 1680 |
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1677 def update!(**args) @data_affinity_regions = args[:data_affinity_regions] if args.key?(:data_affinity_regions) @topic = args[:topic] if args.key?(:topic) end |