Class: Google::Apis::ApihubV1::GoogleCloudApihubV1ResourceConfig

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/apihub_v1/classes.rb,
lib/google/apis/apihub_v1/representations.rb,
lib/google/apis/apihub_v1/representations.rb

Overview

The configuration of resources created for a given plugin instance action.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApihubV1ResourceConfig

Returns a new instance of GoogleCloudApihubV1ResourceConfig.



4244
4245
4246
# File 'lib/google/apis/apihub_v1/classes.rb', line 4244

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#action_typeString

Output only. The type of the action. Corresponds to the JSON property actionType

Returns:

  • (String)


4236
4237
4238
# File 'lib/google/apis/apihub_v1/classes.rb', line 4236

def action_type
  @action_type
end

#pubsub_topicString

Output only. The pubsub topic to publish the data to. Format is projects/ project/topics/topic Corresponds to the JSON property pubsubTopic

Returns:

  • (String)


4242
4243
4244
# File 'lib/google/apis/apihub_v1/classes.rb', line 4242

def pubsub_topic
  @pubsub_topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4249
4250
4251
4252
# File 'lib/google/apis/apihub_v1/classes.rb', line 4249

def update!(**args)
  @action_type = args[:action_type] if args.key?(:action_type)
  @pubsub_topic = args[:pubsub_topic] if args.key?(:pubsub_topic)
end