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.
6074 6075 6076 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 6074 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
6057 6058 6059 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 6057 def attributes @attributes end |
#config_variables ⇒ Array<Google::Apis::ConnectorsV1::ConfigVariable>
Optional. Configuration for configuring the trigger
Corresponds to the JSON property configVariables
6062 6063 6064 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 6062 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
6067 6068 6069 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 6067 def project_id @project_id end |
#topic_id ⇒ String
Required. The topic id of the Pub/Sub topic.
Corresponds to the JSON property topicId
6072 6073 6074 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 6072 def topic_id @topic_id end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
6079 6080 6081 6082 6083 6084 |
# File 'lib/google/apis/connectors_v1/classes.rb', line 6079 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 |