Class: Google::Apis::ApihubV1::GoogleCloudApihubV1CollectApiDataRequest

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 CollectApiData method's request.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudApihubV1CollectApiDataRequest

Returns a new instance of GoogleCloudApihubV1CollectApiDataRequest.



1146
1147
1148
# File 'lib/google/apis/apihub_v1/classes.rb', line 1146

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

Instance Attribute Details

#action_idString

Required. The action ID to be used for collecting the API data. This should map to one of the action IDs specified in action configs in the plugin. Corresponds to the JSON property actionId

Returns:

  • (String)


1128
1129
1130
# File 'lib/google/apis/apihub_v1/classes.rb', line 1128

def action_id
  @action_id
end

#api_dataGoogle::Apis::ApihubV1::GoogleCloudApihubV1ApiData

The API data to be collected. Corresponds to the JSON property apiData



1133
1134
1135
# File 'lib/google/apis/apihub_v1/classes.rb', line 1133

def api_data
  @api_data
end

#collection_typeString

Required. The type of collection. Applies to all entries in api_data. Corresponds to the JSON property collectionType

Returns:

  • (String)


1138
1139
1140
# File 'lib/google/apis/apihub_v1/classes.rb', line 1138

def collection_type
  @collection_type
end

#plugin_instanceString

Required. The plugin instance collecting the API data. Format: projects/ project/locations/location/plugins/plugin/instances/instance`. Corresponds to the JSON propertypluginInstance`

Returns:

  • (String)


1144
1145
1146
# File 'lib/google/apis/apihub_v1/classes.rb', line 1144

def plugin_instance
  @plugin_instance
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1151
1152
1153
1154
1155
1156
# File 'lib/google/apis/apihub_v1/classes.rb', line 1151

def update!(**args)
  @action_id = args[:action_id] if args.key?(:action_id)
  @api_data = args[:api_data] if args.key?(:api_data)
  @collection_type = args[:collection_type] if args.key?(:collection_type)
  @plugin_instance = args[:plugin_instance] if args.key?(:plugin_instance)
end