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.
1099 1100 1101 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 1099 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
1081 1082 1083 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 1081 def action_id @action_id end |
#api_data ⇒ Google::Apis::ApihubV1::GoogleCloudApihubV1ApiData
The API data to be collected.
Corresponds to the JSON property apiData
1086 1087 1088 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 1086 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
1091 1092 1093 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 1091 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`
1097 1098 1099 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 1097 def plugin_instance @plugin_instance end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
1104 1105 1106 1107 1108 1109 |
# File 'lib/google/apis/apihub_v1/classes.rb', line 1104 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 |