Class: Google::Apis::ConnectorsV1::PubSub
- Inherits:
-
Object
- Object
- Google::Apis::ConnectorsV1::PubSub
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/connectors_v1/classes.rb,
lib/google/apis/connectors_v1/representations.rb,
lib/google/apis/connectors_v1/representations.rb
Overview
Pub/Sub message includes details of the Destination Pub/Sub topic.
Instance Attribute Summary collapse
-
#attributes ⇒ Hash<String,String>
Optional.
-
#config_variables ⇒ Array<Google::Apis::ConnectorsV1::ConfigVariable>
Optional.
-
#project_id ⇒ String
Required.
-
#topic_id ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PubSub
constructor
A new instance of PubSub.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ PubSub
Returns a new instance of PubSub.
5947 5948 5949 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5947 def initialize(**args) update!(**args) end |
Instance Attribute Details
#attributes ⇒ Hash<String,String>
Optional. Pub/Sub message attributes to be added to the Pub/Sub message.
Corresponds to the JSON property attributes
5930 5931 5932 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5930 def attributes @attributes end |
#config_variables ⇒ Array<Google::Apis::ConnectorsV1::ConfigVariable>
Optional. Configuration for configuring the trigger
Corresponds to the JSON property configVariables
5935 5936 5937 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5935 def config_variables @config_variables end |
#project_id ⇒ String
Required. The project id which has the Pub/Sub topic.
Corresponds to the JSON property projectId
5940 5941 5942 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5940 def project_id @project_id end |
#topic_id ⇒ String
Required. The topic id of the Pub/Sub topic.
Corresponds to the JSON property topicId
5945 5946 5947 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5945 def topic_id @topic_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5952 5953 5954 5955 5956 5957 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 5952 def update!(**args) @attributes = args[:attributes] if args.key?(:attributes) @config_variables = args[:config_variables] if args.key?(:config_variables) @project_id = args[:project_id] if args.key?(:project_id) @topic_id = args[:topic_id] if args.key?(:topic_id) end |