Class: Google::Apis::ConnectorsV1::PubSub

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

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

#attributesHash<String,String>

Optional. Pub/Sub message attributes to be added to the Pub/Sub message. Corresponds to the JSON property attributes

Returns:

  • (Hash<String,String>)


5930
5931
5932
# File 'lib/google/apis/connectors_v1/classes.rb', line 5930

def attributes
  @attributes
end

#config_variablesArray<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_idString

Required. The project id which has the Pub/Sub topic. Corresponds to the JSON property projectId

Returns:

  • (String)


5940
5941
5942
# File 'lib/google/apis/connectors_v1/classes.rb', line 5940

def project_id
  @project_id
end

#topic_idString

Required. The topic id of the Pub/Sub topic. Corresponds to the JSON property topicId

Returns:

  • (String)


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