Class: Google::Apis::ApihubV1::GoogleCloudApihubV1CollectApiDataRequest
- Inherits:
-
Object
- Object
- Google::Apis::ApihubV1::GoogleCloudApihubV1CollectApiDataRequest
- 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
-
#action_id ⇒ String
Required.
-
#api_data ⇒ Google::Apis::ApihubV1::GoogleCloudApihubV1ApiData
The API data to be collected.
-
#collection_type ⇒ String
Required.
-
#plugin_instance ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudApihubV1CollectApiDataRequest
constructor
A new instance of GoogleCloudApihubV1CollectApiDataRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
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_id ⇒ String
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
1128 1129 1130 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 1128 def action_id @action_id end |
#api_data ⇒ Google::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_type ⇒ String
Required. The type of collection. Applies to all entries in api_data.
Corresponds to the JSON property collectionType
1138 1139 1140 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 1138 def collection_type @collection_type end |
#plugin_instance ⇒ String
Required. The plugin instance collecting the API data. Format: projects/
project/locations/location/plugins/plugin/instances/instance`.
Corresponds to the JSON propertypluginInstance`
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 |