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.



1672
1673
1674
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1672

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>)


1664
1665
1666
# File 'lib/google/apis/analyticshub_v1/classes.rb', line 1664

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)


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