Debian Codegraph @

docs/dyn/apihub_v1.projects.locations.plugins.instances.html

raw
1 <html><body>
2 <style>
3
4 body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13 }
14
15 body {
16 font-size: 13px;
17 padding: 1em;
18 }
19
20 h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23 }
24
25 h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28 }
29
30 h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34 }
35
36 pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39 }
40
41 pre {
42 margin-top: 0.5em;
43 }
44
45 h1, h2, h3, p {
46 font-family: Arial, sans serif;
47 }
48
49 h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51 }
52
53 .toc_element {
54 margin-top: 0.5em;
55 }
56
57 .firstline {
58 margin-left: 2 em;
59 }
60
61 .method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66 }
67
68 .details {
69 font-weight: bold;
70 font-size: 14px;
71 }
72
73 </style>
74
75 <h1><a href="apihub_v1.html">API hub API</a> . <a href="apihub_v1.projects.html">projects</a> . <a href="apihub_v1.projects.locations.html">locations</a> . <a href="apihub_v1.projects.locations.plugins.html">plugins</a> . <a href="apihub_v1.projects.locations.plugins.instances.html">instances</a></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="#close">close()</a></code></p>
79 <p class="firstline">Close httplib2 connections.</p>
80 <p class="toc_element">
81 <code><a href="#create">create(parent, body=None, pluginInstanceId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a Plugin instance in the API hub.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a plugin instance in the API hub.</p>
86 <p class="toc_element">
87 <code><a href="#disableAction">disableAction(name, body=None, x__xgafv=None)</a></code></p>
88 <p class="firstline">Disables a plugin instance in the API hub.</p>
89 <p class="toc_element">
90 <code><a href="#enableAction">enableAction(name, body=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">Enables a plugin instance in the API hub.</p>
92 <p class="toc_element">
93 <code><a href="#executeAction">executeAction(name, body=None, x__xgafv=None)</a></code></p>
94 <p class="firstline">Executes a plugin instance in the API hub.</p>
95 <p class="toc_element">
96 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
97 <p class="firstline">Get an API Hub plugin instance.</p>
98 <p class="toc_element">
99 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
100 <p class="firstline">List all the plugins in a given project and location. `-` can be used as wildcard value for {plugin_id}</p>
101 <p class="toc_element">
102 <code><a href="#list_next">list_next()</a></code></p>
103 <p class="firstline">Retrieves the next page of results.</p>
104 <p class="toc_element">
105 <code><a href="#manageSourceData">manageSourceData(name, body=None, x__xgafv=None)</a></code></p>
106 <p class="firstline">Manages data for a given plugin instance.</p>
107 <p class="toc_element">
108 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
109 <p class="firstline">Updates a plugin instance in the API hub. The following fields in the plugin_instance can be updated currently: * display_name * schedule_cron_expression The update_mask should be used to specify the fields being updated. To update the auth_config and additional_config of the plugin instance, use the ApplyPluginInstanceConfig method.</p>
110 <h3>Method Details</h3>
111 <div class="method">
112 <code class="details" id="close">close()</code>
113 <pre>Close httplib2 connections.</pre>
114 </div>
115
116 <div class="method">
117 <code class="details" id="create">create(parent, body=None, pluginInstanceId=None, x__xgafv=None)</code>
118 <pre>Creates a Plugin instance in the API hub.
119
120 Args:
121 parent: string, Required. The parent of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}` (required)
122 body: object, The request body.
123 The object takes the form of:
124
125 { # Represents a plugin instance resource in the API Hub. A PluginInstance is a specific instance of a hub plugin with its own configuration, state, and execution details.
126 &quot;actions&quot;: [ # Required. The action status for the plugin instance.
127 { # PluginInstanceAction represents an action which can be executed in the plugin instance.
128 &quot;actionId&quot;: &quot;A String&quot;, # Required. This should map to one of the action id specified in actions_config in the plugin.
129 &quot;curationConfig&quot;: { # The curation information for this plugin instance. # Optional. This configuration should be provided if the plugin action is publishing data to API hub curate layer.
130 &quot;curationType&quot;: &quot;A String&quot;, # Required. The curation type for this plugin instance.
131 &quot;customCuration&quot;: { # Custom curation information for this plugin instance. # Optional. Custom curation information for this plugin instance.
132 &quot;curation&quot;: &quot;A String&quot;, # Required. The unique name of the curation resource. This will be the name of the curation resource in the format: `projects/{project}/locations/{location}/curations/{curation}`
133 },
134 },
135 &quot;hubInstanceAction&quot;: { # The execution status for the plugin instance. # Optional. The execution information for the plugin instance action done corresponding to an API hub instance.
136 &quot;currentExecutionState&quot;: &quot;A String&quot;, # Output only. The current state of the execution.
137 &quot;lastExecution&quot;: { # The result of the last execution of the plugin instance. # Output only. The last execution of the plugin instance.
138 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The last execution end time of the plugin instance.
139 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during the last execution.
140 &quot;result&quot;: &quot;A String&quot;, # Output only. The result of the last execution of the plugin instance.
141 &quot;resultMetadata&quot;: &quot;A String&quot;, # Output only. The result metadata of the last execution of the plugin instance. This will be a string representation of a JSON object and will be available on successful execution.
142 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The last execution start time of the plugin instance.
143 },
144 },
145 &quot;resourceConfig&quot;: { # The configuration of resources created for a given plugin instance action. # Output only. The configuration of resources created for a given plugin instance action. Note these will be returned only in case of non-Google Cloud plugins like OPDK.
146 &quot;actionType&quot;: &quot;A String&quot;, # Output only. The type of the action.
147 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Output only. The pubsub topic to publish the data to. Format is projects/{project}/topics/{topic}
148 },
149 &quot;scheduleCronExpression&quot;: &quot;A String&quot;, # Optional. The schedule for this plugin instance action. This can only be set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.
150 &quot;scheduleTimeZone&quot;: &quot;A String&quot;, # Optional. The time zone for the schedule cron expression. If not provided, UTC will be used.
151 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account used to publish data. Note, the service account will only be accepted for non-Google Cloud plugins like OPDK.
152 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the plugin action in the plugin instance.
153 },
154 ],
155 &quot;additionalConfig&quot;: { # Optional. The additional information for this plugin instance corresponding to the additional config template of the plugin. This information will be sent to plugin hosting service on each call to plugin hosted service. The key will be the config_variable_template.display_name to uniquely identify the config variable.
156 &quot;a_key&quot;: { # ConfigVariable represents a additional configuration variable present in a PluginInstance Config or AuthConfig, based on a ConfigVariableTemplate.
157 &quot;boolValue&quot;: True or False, # Optional. The config variable value in case of config variable of type boolean.
158 &quot;enumValue&quot;: { # ConfigValueOption represents an option for a config variable of type enum or multi select. # Optional. The config variable value in case of config variable of type enum.
159 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
160 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
161 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
162 },
163 &quot;intValue&quot;: &quot;A String&quot;, # Optional. The config variable value in case of config variable of type integer.
164 &quot;key&quot;: &quot;A String&quot;, # Output only. Key will be the id to uniquely identify the config variable.
165 &quot;multiIntValues&quot;: { # The config variable value of data type multi int. # Optional. The config variable value in case of config variable of type multi integer.
166 &quot;values&quot;: [ # Optional. The config variable value of data type multi int.
167 42,
168 ],
169 },
170 &quot;multiSelectValues&quot;: { # The config variable value of data type multi select. # Optional. The config variable value in case of config variable of type multi select.
171 &quot;values&quot;: [ # Optional. The config variable value of data type multi select.
172 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
173 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
174 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
175 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
176 },
177 ],
178 },
179 &quot;multiStringValues&quot;: { # The config variable value of data type multi string. # Optional. The config variable value in case of config variable of type multi string.
180 &quot;values&quot;: [ # Optional. The config variable value of data type multi string.
181 &quot;A String&quot;,
182 ],
183 },
184 &quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Optional. The config variable value in case of config variable of type secret.
185 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
186 },
187 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. The config variable value in case of config variable of type string.
188 },
189 },
190 &quot;authConfig&quot;: { # AuthConfig represents the authentication information. # Optional. The authentication information for this plugin instance.
191 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Api Key Config.
192 &quot;apiKey&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}`. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
193 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
194 },
195 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Required. The location of the API key. The default value is QUERY.
196 &quot;name&quot;: &quot;A String&quot;, # Required. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
197 },
198 &quot;authType&quot;: &quot;A String&quot;, # Required. The authentication type.
199 &quot;googleServiceAccountConfig&quot;: { # Config for Google service account authentication. # Google Service Account.
200 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. The service account to be used for authenticating request. The `iam.serviceAccounts.getAccessToken` permission should be granted on this service account to the impersonator service account.
201 },
202 &quot;oauth2ClientCredentialsConfig&quot;: { # Parameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. # Oauth2.0 Client Credentials.
203 &quot;clientId&quot;: &quot;A String&quot;, # Required. The client identifier.
204 &quot;clientSecret&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. Secret version reference containing the client secret. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
205 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
206 },
207 },
208 &quot;userPasswordConfig&quot;: { # Parameters to support Username and Password Authentication. # User Password.
209 &quot;password&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. Secret version reference containing the password. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
210 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
211 },
212 &quot;username&quot;: &quot;A String&quot;, # Required. Username.
213 },
214 },
215 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin instance was created.
216 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name for this plugin instance. Max length is 255 characters.
217 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
218 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique name of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
219 &quot;sourceEnvironmentsConfig&quot;: { # Optional. The source environment&#x27;s config present in the gateway instance linked to the plugin instance. The key is the `source_environment` name from the SourceEnvironment message.
220 &quot;a_key&quot;: { # Message representing the source environment details.
221 &quot;createTime&quot;: &quot;A String&quot;, # Optional. The time at which the environment was created at the source.
222 &quot;sourceEnvironment&quot;: &quot;A String&quot;, # Required. The name of the environment at the source. This should map to Deployment.
223 &quot;sourceEnvironmentUri&quot;: &quot;A String&quot;, # The location where additional information about source environments can be found. The location should be relative path of the environment manifest with respect to a plugin instance.
224 &quot;updateTime&quot;: &quot;A String&quot;, # Optional. The time at which the environment was last updated at the source.
225 },
226 },
227 &quot;sourceProjectId&quot;: &quot;A String&quot;, # Optional. The source project id of the plugin instance. This will be the id of runtime project in case of Google Cloud based plugins and org id in case of non-Google Cloud based plugins. This field will be a required field for Google provided on-ramp plugins.
228 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the plugin instance (e.g., enabled, disabled, provisioning).
229 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin instance was last updated.
230 }
231
232 pluginInstanceId: string, Optional. The ID to use for the plugin instance, which will become the final component of the plugin instance&#x27;s resource name. This field is optional. * If provided, the same will be used. The service will throw an error if the specified id is already used by another plugin instance in the plugin resource. * If not provided, a system generated id will be used. This value should be 4-63 characters, and valid characters are /a-z[0-9]-_/.
233 x__xgafv: string, V1 error format.
234 Allowed values
235 1 - v1 error format
236 2 - v2 error format
237
238 Returns:
239 An object of the form:
240
241 { # This resource represents a long-running operation that is the result of a network API call.
242 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
243 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
244 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
245 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
246 {
247 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
248 },
249 ],
250 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
251 },
252 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
253 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
254 },
255 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
256 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
257 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
258 },
259 }</pre>
260 </div>
261
262 <div class="method">
263 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
264 <pre>Deletes a plugin instance in the API hub.
265
266 Args:
267 name: string, Required. The name of the plugin instance to delete. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`. (required)
268 x__xgafv: string, V1 error format.
269 Allowed values
270 1 - v1 error format
271 2 - v2 error format
272
273 Returns:
274 An object of the form:
275
276 { # This resource represents a long-running operation that is the result of a network API call.
277 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
278 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
279 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
280 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
281 {
282 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
283 },
284 ],
285 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
286 },
287 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
288 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
289 },
290 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
291 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
292 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
293 },
294 }</pre>
295 </div>
296
297 <div class="method">
298 <code class="details" id="disableAction">disableAction(name, body=None, x__xgafv=None)</code>
299 <pre>Disables a plugin instance in the API hub.
300
301 Args:
302 name: string, Required. The name of the plugin instance to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` (required)
303 body: object, The request body.
304 The object takes the form of:
305
306 { # The DisablePluginInstanceAction method&#x27;s request.
307 &quot;actionId&quot;: &quot;A String&quot;, # Required. The action id to disable.
308 }
309
310 x__xgafv: string, V1 error format.
311 Allowed values
312 1 - v1 error format
313 2 - v2 error format
314
315 Returns:
316 An object of the form:
317
318 { # This resource represents a long-running operation that is the result of a network API call.
319 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
320 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
321 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
322 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
323 {
324 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
325 },
326 ],
327 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
328 },
329 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
330 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
331 },
332 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
333 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
334 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
335 },
336 }</pre>
337 </div>
338
339 <div class="method">
340 <code class="details" id="enableAction">enableAction(name, body=None, x__xgafv=None)</code>
341 <pre>Enables a plugin instance in the API hub.
342
343 Args:
344 name: string, Required. The name of the plugin instance to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` (required)
345 body: object, The request body.
346 The object takes the form of:
347
348 { # The EnablePluginInstanceAction method&#x27;s request.
349 &quot;actionId&quot;: &quot;A String&quot;, # Required. The action id to enable.
350 }
351
352 x__xgafv: string, V1 error format.
353 Allowed values
354 1 - v1 error format
355 2 - v2 error format
356
357 Returns:
358 An object of the form:
359
360 { # This resource represents a long-running operation that is the result of a network API call.
361 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
362 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
363 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
364 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
365 {
366 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
367 },
368 ],
369 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
370 },
371 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
372 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
373 },
374 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
375 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
376 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
377 },
378 }</pre>
379 </div>
380
381 <div class="method">
382 <code class="details" id="executeAction">executeAction(name, body=None, x__xgafv=None)</code>
383 <pre>Executes a plugin instance in the API hub.
384
385 Args:
386 name: string, Required. The name of the plugin instance to execute. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` (required)
387 body: object, The request body.
388 The object takes the form of:
389
390 { # The ExecutePluginInstanceAction method&#x27;s request.
391 &quot;actionExecutionDetail&quot;: { # The details for the action to execute. # Required. The execution details for the action to execute.
392 &quot;actionId&quot;: &quot;A String&quot;, # Required. The action id of the plugin to execute.
393 },
394 }
395
396 x__xgafv: string, V1 error format.
397 Allowed values
398 1 - v1 error format
399 2 - v2 error format
400
401 Returns:
402 An object of the form:
403
404 { # This resource represents a long-running operation that is the result of a network API call.
405 &quot;done&quot;: True or False, # If the value is `false`, it means the operation is still in progress. If `true`, the operation is completed, and either `error` or `response` is available.
406 &quot;error&quot;: { # The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). Each `Status` message contains three pieces of data: error code, error message, and error details. You can find out more about this error model and how to work with it in the [API Design Guide](https://cloud.google.com/apis/design/errors). # The error result of the operation in case of failure or cancellation.
407 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
408 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
409 {
410 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
411 },
412 ],
413 &quot;message&quot;: &quot;A String&quot;, # A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.
414 },
415 &quot;metadata&quot;: { # Service-specific metadata associated with the operation. It typically contains progress information and common metadata such as create time. Some services might not provide such metadata. Any method that returns a long-running operation should document the metadata type, if any.
416 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
417 },
418 &quot;name&quot;: &quot;A String&quot;, # The server-assigned name, which is only unique within the same service that originally returns it. If you use the default HTTP mapping, the `name` should be a resource name ending with `operations/{unique_id}`.
419 &quot;response&quot;: { # The normal, successful response of the operation. If the original method returns no data on success, such as `Delete`, the response is `google.protobuf.Empty`. If the original method is standard `Get`/`Create`/`Update`, the response should be the resource. For other methods, the response should have the type `XxxResponse`, where `Xxx` is the original method name. For example, if the original method name is `TakeSnapshot()`, the inferred response type is `TakeSnapshotResponse`.
420 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
421 },
422 }</pre>
423 </div>
424
425 <div class="method">
426 <code class="details" id="get">get(name, x__xgafv=None)</code>
427 <pre>Get an API Hub plugin instance.
428
429 Args:
430 name: string, Required. The name of the plugin instance to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` (required)
431 x__xgafv: string, V1 error format.
432 Allowed values
433 1 - v1 error format
434 2 - v2 error format
435
436 Returns:
437 An object of the form:
438
439 { # Represents a plugin instance resource in the API Hub. A PluginInstance is a specific instance of a hub plugin with its own configuration, state, and execution details.
440 &quot;actions&quot;: [ # Required. The action status for the plugin instance.
441 { # PluginInstanceAction represents an action which can be executed in the plugin instance.
442 &quot;actionId&quot;: &quot;A String&quot;, # Required. This should map to one of the action id specified in actions_config in the plugin.
443 &quot;curationConfig&quot;: { # The curation information for this plugin instance. # Optional. This configuration should be provided if the plugin action is publishing data to API hub curate layer.
444 &quot;curationType&quot;: &quot;A String&quot;, # Required. The curation type for this plugin instance.
445 &quot;customCuration&quot;: { # Custom curation information for this plugin instance. # Optional. Custom curation information for this plugin instance.
446 &quot;curation&quot;: &quot;A String&quot;, # Required. The unique name of the curation resource. This will be the name of the curation resource in the format: `projects/{project}/locations/{location}/curations/{curation}`
447 },
448 },
449 &quot;hubInstanceAction&quot;: { # The execution status for the plugin instance. # Optional. The execution information for the plugin instance action done corresponding to an API hub instance.
450 &quot;currentExecutionState&quot;: &quot;A String&quot;, # Output only. The current state of the execution.
451 &quot;lastExecution&quot;: { # The result of the last execution of the plugin instance. # Output only. The last execution of the plugin instance.
452 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The last execution end time of the plugin instance.
453 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during the last execution.
454 &quot;result&quot;: &quot;A String&quot;, # Output only. The result of the last execution of the plugin instance.
455 &quot;resultMetadata&quot;: &quot;A String&quot;, # Output only. The result metadata of the last execution of the plugin instance. This will be a string representation of a JSON object and will be available on successful execution.
456 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The last execution start time of the plugin instance.
457 },
458 },
459 &quot;resourceConfig&quot;: { # The configuration of resources created for a given plugin instance action. # Output only. The configuration of resources created for a given plugin instance action. Note these will be returned only in case of non-Google Cloud plugins like OPDK.
460 &quot;actionType&quot;: &quot;A String&quot;, # Output only. The type of the action.
461 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Output only. The pubsub topic to publish the data to. Format is projects/{project}/topics/{topic}
462 },
463 &quot;scheduleCronExpression&quot;: &quot;A String&quot;, # Optional. The schedule for this plugin instance action. This can only be set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.
464 &quot;scheduleTimeZone&quot;: &quot;A String&quot;, # Optional. The time zone for the schedule cron expression. If not provided, UTC will be used.
465 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account used to publish data. Note, the service account will only be accepted for non-Google Cloud plugins like OPDK.
466 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the plugin action in the plugin instance.
467 },
468 ],
469 &quot;additionalConfig&quot;: { # Optional. The additional information for this plugin instance corresponding to the additional config template of the plugin. This information will be sent to plugin hosting service on each call to plugin hosted service. The key will be the config_variable_template.display_name to uniquely identify the config variable.
470 &quot;a_key&quot;: { # ConfigVariable represents a additional configuration variable present in a PluginInstance Config or AuthConfig, based on a ConfigVariableTemplate.
471 &quot;boolValue&quot;: True or False, # Optional. The config variable value in case of config variable of type boolean.
472 &quot;enumValue&quot;: { # ConfigValueOption represents an option for a config variable of type enum or multi select. # Optional. The config variable value in case of config variable of type enum.
473 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
474 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
475 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
476 },
477 &quot;intValue&quot;: &quot;A String&quot;, # Optional. The config variable value in case of config variable of type integer.
478 &quot;key&quot;: &quot;A String&quot;, # Output only. Key will be the id to uniquely identify the config variable.
479 &quot;multiIntValues&quot;: { # The config variable value of data type multi int. # Optional. The config variable value in case of config variable of type multi integer.
480 &quot;values&quot;: [ # Optional. The config variable value of data type multi int.
481 42,
482 ],
483 },
484 &quot;multiSelectValues&quot;: { # The config variable value of data type multi select. # Optional. The config variable value in case of config variable of type multi select.
485 &quot;values&quot;: [ # Optional. The config variable value of data type multi select.
486 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
487 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
488 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
489 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
490 },
491 ],
492 },
493 &quot;multiStringValues&quot;: { # The config variable value of data type multi string. # Optional. The config variable value in case of config variable of type multi string.
494 &quot;values&quot;: [ # Optional. The config variable value of data type multi string.
495 &quot;A String&quot;,
496 ],
497 },
498 &quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Optional. The config variable value in case of config variable of type secret.
499 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
500 },
501 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. The config variable value in case of config variable of type string.
502 },
503 },
504 &quot;authConfig&quot;: { # AuthConfig represents the authentication information. # Optional. The authentication information for this plugin instance.
505 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Api Key Config.
506 &quot;apiKey&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}`. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
507 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
508 },
509 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Required. The location of the API key. The default value is QUERY.
510 &quot;name&quot;: &quot;A String&quot;, # Required. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
511 },
512 &quot;authType&quot;: &quot;A String&quot;, # Required. The authentication type.
513 &quot;googleServiceAccountConfig&quot;: { # Config for Google service account authentication. # Google Service Account.
514 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. The service account to be used for authenticating request. The `iam.serviceAccounts.getAccessToken` permission should be granted on this service account to the impersonator service account.
515 },
516 &quot;oauth2ClientCredentialsConfig&quot;: { # Parameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. # Oauth2.0 Client Credentials.
517 &quot;clientId&quot;: &quot;A String&quot;, # Required. The client identifier.
518 &quot;clientSecret&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. Secret version reference containing the client secret. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
519 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
520 },
521 },
522 &quot;userPasswordConfig&quot;: { # Parameters to support Username and Password Authentication. # User Password.
523 &quot;password&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. Secret version reference containing the password. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
524 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
525 },
526 &quot;username&quot;: &quot;A String&quot;, # Required. Username.
527 },
528 },
529 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin instance was created.
530 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name for this plugin instance. Max length is 255 characters.
531 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
532 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique name of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
533 &quot;sourceEnvironmentsConfig&quot;: { # Optional. The source environment&#x27;s config present in the gateway instance linked to the plugin instance. The key is the `source_environment` name from the SourceEnvironment message.
534 &quot;a_key&quot;: { # Message representing the source environment details.
535 &quot;createTime&quot;: &quot;A String&quot;, # Optional. The time at which the environment was created at the source.
536 &quot;sourceEnvironment&quot;: &quot;A String&quot;, # Required. The name of the environment at the source. This should map to Deployment.
537 &quot;sourceEnvironmentUri&quot;: &quot;A String&quot;, # The location where additional information about source environments can be found. The location should be relative path of the environment manifest with respect to a plugin instance.
538 &quot;updateTime&quot;: &quot;A String&quot;, # Optional. The time at which the environment was last updated at the source.
539 },
540 },
541 &quot;sourceProjectId&quot;: &quot;A String&quot;, # Optional. The source project id of the plugin instance. This will be the id of runtime project in case of Google Cloud based plugins and org id in case of non-Google Cloud based plugins. This field will be a required field for Google provided on-ramp plugins.
542 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the plugin instance (e.g., enabled, disabled, provisioning).
543 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin instance was last updated.
544 }</pre>
545 </div>
546
547 <div class="method">
548 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
549 <pre>List all the plugins in a given project and location. `-` can be used as wildcard value for {plugin_id}
550
551 Args:
552 parent: string, Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. To list plugin instances for multiple plugins, use the - character instead of the plugin ID. (required)
553 filter: string, Optional. An expression that filters the list of plugin instances. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string. The comparison operator must be one of: `&lt;`, `&gt;` or `=`. Filters are not case sensitive. The following fields in the `PluginInstances` are eligible for filtering: * `state` - The state of the Plugin Instance. Allowed comparison operators: `=`. * `source_project_id` - The source project id of the Plugin Instance. Allowed comparison operators: `=`. A filter function is also supported in the filter string. The filter function is `id(name)`. The `id(name)` function returns the id of the resource name. For example, `id(name) = \&quot;plugin-instance-1\&quot;` is equivalent to `name = \&quot;projects/test-project-id/locations/test-location-id/plugins/plugin-1/instances/plugin-instance-1\&quot;` provided the parent is `projects/test-project-id/locations/test-location-id/plugins/plugin-1`. Expressions are combined with either `AND` logic operator or `OR` logical operator but not both of them together i.e. only one of the `AND` or `OR` operator can be used throughout the filter string and both the operators cannot be used together. No other logical operators are supported. At most three filter fields are allowed in the filter string and if provided more than that then `INVALID_ARGUMENT` error is returned by the API. Here are a few examples: * `state = ENABLED` - The plugin instance is in enabled state.
554 pageSize: integer, Optional. The maximum number of hub plugins to return. The service may return fewer than this value. If unspecified, at most 50 hub plugins will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
555 pageToken: string, Optional. A page token, received from a previous `ListPluginInstances` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListPluginInstances` must match the call that provided the page token.
556 x__xgafv: string, V1 error format.
557 Allowed values
558 1 - v1 error format
559 2 - v2 error format
560
561 Returns:
562 An object of the form:
563
564 { # The ListPluginInstances method&#x27;s response.
565 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token, which can be sent as `page_token` to retrieve the next page. If this field is omitted, there are no subsequent pages.
566 &quot;pluginInstances&quot;: [ # The plugin instances from the specified parent resource.
567 { # Represents a plugin instance resource in the API Hub. A PluginInstance is a specific instance of a hub plugin with its own configuration, state, and execution details.
568 &quot;actions&quot;: [ # Required. The action status for the plugin instance.
569 { # PluginInstanceAction represents an action which can be executed in the plugin instance.
570 &quot;actionId&quot;: &quot;A String&quot;, # Required. This should map to one of the action id specified in actions_config in the plugin.
571 &quot;curationConfig&quot;: { # The curation information for this plugin instance. # Optional. This configuration should be provided if the plugin action is publishing data to API hub curate layer.
572 &quot;curationType&quot;: &quot;A String&quot;, # Required. The curation type for this plugin instance.
573 &quot;customCuration&quot;: { # Custom curation information for this plugin instance. # Optional. Custom curation information for this plugin instance.
574 &quot;curation&quot;: &quot;A String&quot;, # Required. The unique name of the curation resource. This will be the name of the curation resource in the format: `projects/{project}/locations/{location}/curations/{curation}`
575 },
576 },
577 &quot;hubInstanceAction&quot;: { # The execution status for the plugin instance. # Optional. The execution information for the plugin instance action done corresponding to an API hub instance.
578 &quot;currentExecutionState&quot;: &quot;A String&quot;, # Output only. The current state of the execution.
579 &quot;lastExecution&quot;: { # The result of the last execution of the plugin instance. # Output only. The last execution of the plugin instance.
580 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The last execution end time of the plugin instance.
581 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during the last execution.
582 &quot;result&quot;: &quot;A String&quot;, # Output only. The result of the last execution of the plugin instance.
583 &quot;resultMetadata&quot;: &quot;A String&quot;, # Output only. The result metadata of the last execution of the plugin instance. This will be a string representation of a JSON object and will be available on successful execution.
584 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The last execution start time of the plugin instance.
585 },
586 },
587 &quot;resourceConfig&quot;: { # The configuration of resources created for a given plugin instance action. # Output only. The configuration of resources created for a given plugin instance action. Note these will be returned only in case of non-Google Cloud plugins like OPDK.
588 &quot;actionType&quot;: &quot;A String&quot;, # Output only. The type of the action.
589 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Output only. The pubsub topic to publish the data to. Format is projects/{project}/topics/{topic}
590 },
591 &quot;scheduleCronExpression&quot;: &quot;A String&quot;, # Optional. The schedule for this plugin instance action. This can only be set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.
592 &quot;scheduleTimeZone&quot;: &quot;A String&quot;, # Optional. The time zone for the schedule cron expression. If not provided, UTC will be used.
593 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account used to publish data. Note, the service account will only be accepted for non-Google Cloud plugins like OPDK.
594 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the plugin action in the plugin instance.
595 },
596 ],
597 &quot;additionalConfig&quot;: { # Optional. The additional information for this plugin instance corresponding to the additional config template of the plugin. This information will be sent to plugin hosting service on each call to plugin hosted service. The key will be the config_variable_template.display_name to uniquely identify the config variable.
598 &quot;a_key&quot;: { # ConfigVariable represents a additional configuration variable present in a PluginInstance Config or AuthConfig, based on a ConfigVariableTemplate.
599 &quot;boolValue&quot;: True or False, # Optional. The config variable value in case of config variable of type boolean.
600 &quot;enumValue&quot;: { # ConfigValueOption represents an option for a config variable of type enum or multi select. # Optional. The config variable value in case of config variable of type enum.
601 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
602 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
603 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
604 },
605 &quot;intValue&quot;: &quot;A String&quot;, # Optional. The config variable value in case of config variable of type integer.
606 &quot;key&quot;: &quot;A String&quot;, # Output only. Key will be the id to uniquely identify the config variable.
607 &quot;multiIntValues&quot;: { # The config variable value of data type multi int. # Optional. The config variable value in case of config variable of type multi integer.
608 &quot;values&quot;: [ # Optional. The config variable value of data type multi int.
609 42,
610 ],
611 },
612 &quot;multiSelectValues&quot;: { # The config variable value of data type multi select. # Optional. The config variable value in case of config variable of type multi select.
613 &quot;values&quot;: [ # Optional. The config variable value of data type multi select.
614 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
615 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
616 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
617 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
618 },
619 ],
620 },
621 &quot;multiStringValues&quot;: { # The config variable value of data type multi string. # Optional. The config variable value in case of config variable of type multi string.
622 &quot;values&quot;: [ # Optional. The config variable value of data type multi string.
623 &quot;A String&quot;,
624 ],
625 },
626 &quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Optional. The config variable value in case of config variable of type secret.
627 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
628 },
629 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. The config variable value in case of config variable of type string.
630 },
631 },
632 &quot;authConfig&quot;: { # AuthConfig represents the authentication information. # Optional. The authentication information for this plugin instance.
633 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Api Key Config.
634 &quot;apiKey&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}`. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
635 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
636 },
637 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Required. The location of the API key. The default value is QUERY.
638 &quot;name&quot;: &quot;A String&quot;, # Required. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
639 },
640 &quot;authType&quot;: &quot;A String&quot;, # Required. The authentication type.
641 &quot;googleServiceAccountConfig&quot;: { # Config for Google service account authentication. # Google Service Account.
642 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. The service account to be used for authenticating request. The `iam.serviceAccounts.getAccessToken` permission should be granted on this service account to the impersonator service account.
643 },
644 &quot;oauth2ClientCredentialsConfig&quot;: { # Parameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. # Oauth2.0 Client Credentials.
645 &quot;clientId&quot;: &quot;A String&quot;, # Required. The client identifier.
646 &quot;clientSecret&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. Secret version reference containing the client secret. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
647 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
648 },
649 },
650 &quot;userPasswordConfig&quot;: { # Parameters to support Username and Password Authentication. # User Password.
651 &quot;password&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. Secret version reference containing the password. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
652 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
653 },
654 &quot;username&quot;: &quot;A String&quot;, # Required. Username.
655 },
656 },
657 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin instance was created.
658 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name for this plugin instance. Max length is 255 characters.
659 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
660 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique name of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
661 &quot;sourceEnvironmentsConfig&quot;: { # Optional. The source environment&#x27;s config present in the gateway instance linked to the plugin instance. The key is the `source_environment` name from the SourceEnvironment message.
662 &quot;a_key&quot;: { # Message representing the source environment details.
663 &quot;createTime&quot;: &quot;A String&quot;, # Optional. The time at which the environment was created at the source.
664 &quot;sourceEnvironment&quot;: &quot;A String&quot;, # Required. The name of the environment at the source. This should map to Deployment.
665 &quot;sourceEnvironmentUri&quot;: &quot;A String&quot;, # The location where additional information about source environments can be found. The location should be relative path of the environment manifest with respect to a plugin instance.
666 &quot;updateTime&quot;: &quot;A String&quot;, # Optional. The time at which the environment was last updated at the source.
667 },
668 },
669 &quot;sourceProjectId&quot;: &quot;A String&quot;, # Optional. The source project id of the plugin instance. This will be the id of runtime project in case of Google Cloud based plugins and org id in case of non-Google Cloud based plugins. This field will be a required field for Google provided on-ramp plugins.
670 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the plugin instance (e.g., enabled, disabled, provisioning).
671 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin instance was last updated.
672 },
673 ],
674 }</pre>
675 </div>
676
677 <div class="method">
678 <code class="details" id="list_next">list_next()</code>
679 <pre>Retrieves the next page of results.
680
681 Args:
682 previous_request: The request for the previous page. (required)
683 previous_response: The response from the request for the previous page. (required)
684
685 Returns:
686 A request object that you can call &#x27;execute()&#x27; on to request the next
687 page. Returns None if there are no more items in the collection.
688 </pre>
689 </div>
690
691 <div class="method">
692 <code class="details" id="manageSourceData">manageSourceData(name, body=None, x__xgafv=None)</code>
693 <pre>Manages data for a given plugin instance.
694
695 Args:
696 name: string, Required. The name of the plugin instance for which data needs to be managed. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` (required)
697 body: object, The request body.
698 The object takes the form of:
699
700 { # The ManagePluginInstanceSourceData method&#x27;s request.
701 &quot;action&quot;: &quot;A String&quot;, # Required. Action to be performed.
702 &quot;data&quot;: &quot;A String&quot;, # Required. Data to be managed.
703 &quot;dataType&quot;: &quot;A String&quot;, # Required. Type of data to be managed.
704 &quot;relativePath&quot;: &quot;A String&quot;, # Required. Relative path of data being managed for a given plugin instance.
705 }
706
707 x__xgafv: string, V1 error format.
708 Allowed values
709 1 - v1 error format
710 2 - v2 error format
711
712 Returns:
713 An object of the form:
714
715 { # The ManagePluginInstanceSourceData method&#x27;s response.
716 }</pre>
717 </div>
718
719 <div class="method">
720 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
721 <pre>Updates a plugin instance in the API hub. The following fields in the plugin_instance can be updated currently: * display_name * schedule_cron_expression The update_mask should be used to specify the fields being updated. To update the auth_config and additional_config of the plugin instance, use the ApplyPluginInstanceConfig method.
722
723 Args:
724 name: string, Identifier. The unique name of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}` (required)
725 body: object, The request body.
726 The object takes the form of:
727
728 { # Represents a plugin instance resource in the API Hub. A PluginInstance is a specific instance of a hub plugin with its own configuration, state, and execution details.
729 &quot;actions&quot;: [ # Required. The action status for the plugin instance.
730 { # PluginInstanceAction represents an action which can be executed in the plugin instance.
731 &quot;actionId&quot;: &quot;A String&quot;, # Required. This should map to one of the action id specified in actions_config in the plugin.
732 &quot;curationConfig&quot;: { # The curation information for this plugin instance. # Optional. This configuration should be provided if the plugin action is publishing data to API hub curate layer.
733 &quot;curationType&quot;: &quot;A String&quot;, # Required. The curation type for this plugin instance.
734 &quot;customCuration&quot;: { # Custom curation information for this plugin instance. # Optional. Custom curation information for this plugin instance.
735 &quot;curation&quot;: &quot;A String&quot;, # Required. The unique name of the curation resource. This will be the name of the curation resource in the format: `projects/{project}/locations/{location}/curations/{curation}`
736 },
737 },
738 &quot;hubInstanceAction&quot;: { # The execution status for the plugin instance. # Optional. The execution information for the plugin instance action done corresponding to an API hub instance.
739 &quot;currentExecutionState&quot;: &quot;A String&quot;, # Output only. The current state of the execution.
740 &quot;lastExecution&quot;: { # The result of the last execution of the plugin instance. # Output only. The last execution of the plugin instance.
741 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The last execution end time of the plugin instance.
742 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during the last execution.
743 &quot;result&quot;: &quot;A String&quot;, # Output only. The result of the last execution of the plugin instance.
744 &quot;resultMetadata&quot;: &quot;A String&quot;, # Output only. The result metadata of the last execution of the plugin instance. This will be a string representation of a JSON object and will be available on successful execution.
745 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The last execution start time of the plugin instance.
746 },
747 },
748 &quot;resourceConfig&quot;: { # The configuration of resources created for a given plugin instance action. # Output only. The configuration of resources created for a given plugin instance action. Note these will be returned only in case of non-Google Cloud plugins like OPDK.
749 &quot;actionType&quot;: &quot;A String&quot;, # Output only. The type of the action.
750 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Output only. The pubsub topic to publish the data to. Format is projects/{project}/topics/{topic}
751 },
752 &quot;scheduleCronExpression&quot;: &quot;A String&quot;, # Optional. The schedule for this plugin instance action. This can only be set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.
753 &quot;scheduleTimeZone&quot;: &quot;A String&quot;, # Optional. The time zone for the schedule cron expression. If not provided, UTC will be used.
754 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account used to publish data. Note, the service account will only be accepted for non-Google Cloud plugins like OPDK.
755 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the plugin action in the plugin instance.
756 },
757 ],
758 &quot;additionalConfig&quot;: { # Optional. The additional information for this plugin instance corresponding to the additional config template of the plugin. This information will be sent to plugin hosting service on each call to plugin hosted service. The key will be the config_variable_template.display_name to uniquely identify the config variable.
759 &quot;a_key&quot;: { # ConfigVariable represents a additional configuration variable present in a PluginInstance Config or AuthConfig, based on a ConfigVariableTemplate.
760 &quot;boolValue&quot;: True or False, # Optional. The config variable value in case of config variable of type boolean.
761 &quot;enumValue&quot;: { # ConfigValueOption represents an option for a config variable of type enum or multi select. # Optional. The config variable value in case of config variable of type enum.
762 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
763 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
764 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
765 },
766 &quot;intValue&quot;: &quot;A String&quot;, # Optional. The config variable value in case of config variable of type integer.
767 &quot;key&quot;: &quot;A String&quot;, # Output only. Key will be the id to uniquely identify the config variable.
768 &quot;multiIntValues&quot;: { # The config variable value of data type multi int. # Optional. The config variable value in case of config variable of type multi integer.
769 &quot;values&quot;: [ # Optional. The config variable value of data type multi int.
770 42,
771 ],
772 },
773 &quot;multiSelectValues&quot;: { # The config variable value of data type multi select. # Optional. The config variable value in case of config variable of type multi select.
774 &quot;values&quot;: [ # Optional. The config variable value of data type multi select.
775 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
776 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
777 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
778 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
779 },
780 ],
781 },
782 &quot;multiStringValues&quot;: { # The config variable value of data type multi string. # Optional. The config variable value in case of config variable of type multi string.
783 &quot;values&quot;: [ # Optional. The config variable value of data type multi string.
784 &quot;A String&quot;,
785 ],
786 },
787 &quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Optional. The config variable value in case of config variable of type secret.
788 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
789 },
790 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. The config variable value in case of config variable of type string.
791 },
792 },
793 &quot;authConfig&quot;: { # AuthConfig represents the authentication information. # Optional. The authentication information for this plugin instance.
794 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Api Key Config.
795 &quot;apiKey&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}`. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
796 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
797 },
798 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Required. The location of the API key. The default value is QUERY.
799 &quot;name&quot;: &quot;A String&quot;, # Required. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
800 },
801 &quot;authType&quot;: &quot;A String&quot;, # Required. The authentication type.
802 &quot;googleServiceAccountConfig&quot;: { # Config for Google service account authentication. # Google Service Account.
803 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. The service account to be used for authenticating request. The `iam.serviceAccounts.getAccessToken` permission should be granted on this service account to the impersonator service account.
804 },
805 &quot;oauth2ClientCredentialsConfig&quot;: { # Parameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. # Oauth2.0 Client Credentials.
806 &quot;clientId&quot;: &quot;A String&quot;, # Required. The client identifier.
807 &quot;clientSecret&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. Secret version reference containing the client secret. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
808 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
809 },
810 },
811 &quot;userPasswordConfig&quot;: { # Parameters to support Username and Password Authentication. # User Password.
812 &quot;password&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. Secret version reference containing the password. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
813 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
814 },
815 &quot;username&quot;: &quot;A String&quot;, # Required. Username.
816 },
817 },
818 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin instance was created.
819 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name for this plugin instance. Max length is 255 characters.
820 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
821 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique name of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
822 &quot;sourceEnvironmentsConfig&quot;: { # Optional. The source environment&#x27;s config present in the gateway instance linked to the plugin instance. The key is the `source_environment` name from the SourceEnvironment message.
823 &quot;a_key&quot;: { # Message representing the source environment details.
824 &quot;createTime&quot;: &quot;A String&quot;, # Optional. The time at which the environment was created at the source.
825 &quot;sourceEnvironment&quot;: &quot;A String&quot;, # Required. The name of the environment at the source. This should map to Deployment.
826 &quot;sourceEnvironmentUri&quot;: &quot;A String&quot;, # The location where additional information about source environments can be found. The location should be relative path of the environment manifest with respect to a plugin instance.
827 &quot;updateTime&quot;: &quot;A String&quot;, # Optional. The time at which the environment was last updated at the source.
828 },
829 },
830 &quot;sourceProjectId&quot;: &quot;A String&quot;, # Optional. The source project id of the plugin instance. This will be the id of runtime project in case of Google Cloud based plugins and org id in case of non-Google Cloud based plugins. This field will be a required field for Google provided on-ramp plugins.
831 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the plugin instance (e.g., enabled, disabled, provisioning).
832 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin instance was last updated.
833 }
834
835 updateMask: string, Optional. The list of fields to update.
836 x__xgafv: string, V1 error format.
837 Allowed values
838 1 - v1 error format
839 2 - v2 error format
840
841 Returns:
842 An object of the form:
843
844 { # Represents a plugin instance resource in the API Hub. A PluginInstance is a specific instance of a hub plugin with its own configuration, state, and execution details.
845 &quot;actions&quot;: [ # Required. The action status for the plugin instance.
846 { # PluginInstanceAction represents an action which can be executed in the plugin instance.
847 &quot;actionId&quot;: &quot;A String&quot;, # Required. This should map to one of the action id specified in actions_config in the plugin.
848 &quot;curationConfig&quot;: { # The curation information for this plugin instance. # Optional. This configuration should be provided if the plugin action is publishing data to API hub curate layer.
849 &quot;curationType&quot;: &quot;A String&quot;, # Required. The curation type for this plugin instance.
850 &quot;customCuration&quot;: { # Custom curation information for this plugin instance. # Optional. Custom curation information for this plugin instance.
851 &quot;curation&quot;: &quot;A String&quot;, # Required. The unique name of the curation resource. This will be the name of the curation resource in the format: `projects/{project}/locations/{location}/curations/{curation}`
852 },
853 },
854 &quot;hubInstanceAction&quot;: { # The execution status for the plugin instance. # Optional. The execution information for the plugin instance action done corresponding to an API hub instance.
855 &quot;currentExecutionState&quot;: &quot;A String&quot;, # Output only. The current state of the execution.
856 &quot;lastExecution&quot;: { # The result of the last execution of the plugin instance. # Output only. The last execution of the plugin instance.
857 &quot;endTime&quot;: &quot;A String&quot;, # Output only. The last execution end time of the plugin instance.
858 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during the last execution.
859 &quot;result&quot;: &quot;A String&quot;, # Output only. The result of the last execution of the plugin instance.
860 &quot;resultMetadata&quot;: &quot;A String&quot;, # Output only. The result metadata of the last execution of the plugin instance. This will be a string representation of a JSON object and will be available on successful execution.
861 &quot;startTime&quot;: &quot;A String&quot;, # Output only. The last execution start time of the plugin instance.
862 },
863 },
864 &quot;resourceConfig&quot;: { # The configuration of resources created for a given plugin instance action. # Output only. The configuration of resources created for a given plugin instance action. Note these will be returned only in case of non-Google Cloud plugins like OPDK.
865 &quot;actionType&quot;: &quot;A String&quot;, # Output only. The type of the action.
866 &quot;pubsubTopic&quot;: &quot;A String&quot;, # Output only. The pubsub topic to publish the data to. Format is projects/{project}/topics/{topic}
867 },
868 &quot;scheduleCronExpression&quot;: &quot;A String&quot;, # Optional. The schedule for this plugin instance action. This can only be set if the plugin supports API_HUB_SCHEDULE_TRIGGER mode for this action.
869 &quot;scheduleTimeZone&quot;: &quot;A String&quot;, # Optional. The time zone for the schedule cron expression. If not provided, UTC will be used.
870 &quot;serviceAccount&quot;: &quot;A String&quot;, # Optional. The service account used to publish data. Note, the service account will only be accepted for non-Google Cloud plugins like OPDK.
871 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the plugin action in the plugin instance.
872 },
873 ],
874 &quot;additionalConfig&quot;: { # Optional. The additional information for this plugin instance corresponding to the additional config template of the plugin. This information will be sent to plugin hosting service on each call to plugin hosted service. The key will be the config_variable_template.display_name to uniquely identify the config variable.
875 &quot;a_key&quot;: { # ConfigVariable represents a additional configuration variable present in a PluginInstance Config or AuthConfig, based on a ConfigVariableTemplate.
876 &quot;boolValue&quot;: True or False, # Optional. The config variable value in case of config variable of type boolean.
877 &quot;enumValue&quot;: { # ConfigValueOption represents an option for a config variable of type enum or multi select. # Optional. The config variable value in case of config variable of type enum.
878 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
879 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
880 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
881 },
882 &quot;intValue&quot;: &quot;A String&quot;, # Optional. The config variable value in case of config variable of type integer.
883 &quot;key&quot;: &quot;A String&quot;, # Output only. Key will be the id to uniquely identify the config variable.
884 &quot;multiIntValues&quot;: { # The config variable value of data type multi int. # Optional. The config variable value in case of config variable of type multi integer.
885 &quot;values&quot;: [ # Optional. The config variable value of data type multi int.
886 42,
887 ],
888 },
889 &quot;multiSelectValues&quot;: { # The config variable value of data type multi select. # Optional. The config variable value in case of config variable of type multi select.
890 &quot;values&quot;: [ # Optional. The config variable value of data type multi select.
891 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
892 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
893 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
894 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
895 },
896 ],
897 },
898 &quot;multiStringValues&quot;: { # The config variable value of data type multi string. # Optional. The config variable value in case of config variable of type multi string.
899 &quot;values&quot;: [ # Optional. The config variable value of data type multi string.
900 &quot;A String&quot;,
901 ],
902 },
903 &quot;secretValue&quot;: { # Secret provides a reference to entries in Secret Manager. # Optional. The config variable value in case of config variable of type secret.
904 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
905 },
906 &quot;stringValue&quot;: &quot;A String&quot;, # Optional. The config variable value in case of config variable of type string.
907 },
908 },
909 &quot;authConfig&quot;: { # AuthConfig represents the authentication information. # Optional. The authentication information for this plugin instance.
910 &quot;apiKeyConfig&quot;: { # Config for authentication with API key. # Api Key Config.
911 &quot;apiKey&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. The name of the SecretManager secret version resource storing the API key. Format: `projects/{project}/secrets/{secrete}/versions/{version}`. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
912 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
913 },
914 &quot;httpElementLocation&quot;: &quot;A String&quot;, # Required. The location of the API key. The default value is QUERY.
915 &quot;name&quot;: &quot;A String&quot;, # Required. The parameter name of the API key. E.g. If the API request is &quot;https://example.com/act?api_key=&quot;, &quot;api_key&quot; would be the parameter name.
916 },
917 &quot;authType&quot;: &quot;A String&quot;, # Required. The authentication type.
918 &quot;googleServiceAccountConfig&quot;: { # Config for Google service account authentication. # Google Service Account.
919 &quot;serviceAccount&quot;: &quot;A String&quot;, # Required. The service account to be used for authenticating request. The `iam.serviceAccounts.getAccessToken` permission should be granted on this service account to the impersonator service account.
920 },
921 &quot;oauth2ClientCredentialsConfig&quot;: { # Parameters to support Oauth 2.0 client credentials grant authentication. See https://tools.ietf.org/html/rfc6749#section-1.3.4 for more details. # Oauth2.0 Client Credentials.
922 &quot;clientId&quot;: &quot;A String&quot;, # Required. The client identifier.
923 &quot;clientSecret&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. Secret version reference containing the client secret. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
924 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
925 },
926 },
927 &quot;userPasswordConfig&quot;: { # Parameters to support Username and Password Authentication. # User Password.
928 &quot;password&quot;: { # Secret provides a reference to entries in Secret Manager. # Required. Secret version reference containing the password. The `secretmanager.versions.access` permission should be granted to the service account accessing the secret.
929 &quot;secretVersion&quot;: &quot;A String&quot;, # Required. The resource name of the secret version in the format, format as: `projects/*/secrets/*/versions/*`.
930 },
931 &quot;username&quot;: &quot;A String&quot;, # Required. Username.
932 },
933 },
934 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin instance was created.
935 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name for this plugin instance. Max length is 255 characters.
936 &quot;errorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during Create, Delete or ApplyConfig operation corresponding to the plugin instance.This field will only be populated if the plugin instance is in the ERROR or FAILED state.
937 &quot;name&quot;: &quot;A String&quot;, # Identifier. The unique name of the plugin instance resource. Format: `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
938 &quot;sourceEnvironmentsConfig&quot;: { # Optional. The source environment&#x27;s config present in the gateway instance linked to the plugin instance. The key is the `source_environment` name from the SourceEnvironment message.
939 &quot;a_key&quot;: { # Message representing the source environment details.
940 &quot;createTime&quot;: &quot;A String&quot;, # Optional. The time at which the environment was created at the source.
941 &quot;sourceEnvironment&quot;: &quot;A String&quot;, # Required. The name of the environment at the source. This should map to Deployment.
942 &quot;sourceEnvironmentUri&quot;: &quot;A String&quot;, # The location where additional information about source environments can be found. The location should be relative path of the environment manifest with respect to a plugin instance.
943 &quot;updateTime&quot;: &quot;A String&quot;, # Optional. The time at which the environment was last updated at the source.
944 },
945 },
946 &quot;sourceProjectId&quot;: &quot;A String&quot;, # Optional. The source project id of the plugin instance. This will be the id of runtime project in case of Google Cloud based plugins and org id in case of non-Google Cloud based plugins. This field will be a required field for Google provided on-ramp plugins.
947 &quot;state&quot;: &quot;A String&quot;, # Output only. The current state of the plugin instance (e.g., enabled, disabled, provisioning).
948 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin instance was last updated.
949 }</pre>
950 </div>
951
952 </body></html>