Debian Codegraph @

docs/dyn/apihub_v1.projects.locations.plugins.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></h1>
76 <h2>Instance Methods</h2>
77 <p class="toc_element">
78 <code><a href="apihub_v1.projects.locations.plugins.instances.html">instances()</a></code>
79 </p>
80 <p class="firstline">Returns the instances Resource.</p>
81
82 <p class="toc_element">
83 <code><a href="apihub_v1.projects.locations.plugins.styleGuide.html">styleGuide()</a></code>
84 </p>
85 <p class="firstline">Returns the styleGuide Resource.</p>
86
87 <p class="toc_element">
88 <code><a href="#close">close()</a></code></p>
89 <p class="firstline">Close httplib2 connections.</p>
90 <p class="toc_element">
91 <code><a href="#create">create(parent, body=None, pluginId=None, x__xgafv=None)</a></code></p>
92 <p class="firstline">Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create plugin instances.</p>
93 <p class="toc_element">
94 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
95 <p class="firstline">Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.</p>
96 <p class="toc_element">
97 <code><a href="#disable">disable(name, body=None, x__xgafv=None)</a></code></p>
98 <p class="firstline">Disables a plugin. The `state` of the plugin after disabling is `DISABLED`</p>
99 <p class="toc_element">
100 <code><a href="#enable">enable(name, body=None, x__xgafv=None)</a></code></p>
101 <p class="firstline">Enables a plugin. The `state` of the plugin after enabling is `ENABLED`</p>
102 <p class="toc_element">
103 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
104 <p class="firstline">Get an API Hub plugin.</p>
105 <p class="toc_element">
106 <code><a href="#getStyleGuide">getStyleGuide(name, x__xgafv=None)</a></code></p>
107 <p class="firstline">Get the style guide being used for linting.</p>
108 <p class="toc_element">
109 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
110 <p class="firstline">List all the plugins in a given project and location.</p>
111 <p class="toc_element">
112 <code><a href="#list_next">list_next()</a></code></p>
113 <p class="firstline">Retrieves the next page of results.</p>
114 <p class="toc_element">
115 <code><a href="#updateStyleGuide">updateStyleGuide(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
116 <p class="firstline">Update the styleGuide to be used for liniting in by API hub.</p>
117 <h3>Method Details</h3>
118 <div class="method">
119 <code class="details" id="close">close()</code>
120 <pre>Close httplib2 connections.</pre>
121 </div>
122
123 <div class="method">
124 <code class="details" id="create">create(parent, body=None, pluginId=None, x__xgafv=None)</code>
125 <pre>Create an API Hub plugin resource in the API hub. Once a plugin is created, it can be used to create plugin instances.
126
127 Args:
128 parent: string, Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}`. (required)
129 body: object, The request body.
130 The object takes the form of:
131
132 { # A plugin resource in the API Hub.
133 &quot;actionsConfig&quot;: [ # Optional. The configuration of actions supported by the plugin. **REQUIRED**: This field must be provided when creating or updating a Plugin. The server will reject requests if this field is missing.
134 { # PluginActionConfig represents the configuration of an action supported by a plugin.
135 &quot;description&quot;: &quot;A String&quot;, # Required. The description of the operation performed by the action.
136 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the action.
137 &quot;id&quot;: &quot;A String&quot;, # Required. The id of the action.
138 &quot;triggerMode&quot;: &quot;A String&quot;, # Required. The trigger mode supported by the action.
139 },
140 ],
141 &quot;configTemplate&quot;: { # ConfigTemplate represents the configuration template for a plugin. # Optional. The configuration template for the plugin.
142 &quot;additionalConfigTemplate&quot;: [ # Optional. The list of additional configuration variables for the plugin&#x27;s configuration.
143 { # ConfigVariableTemplate represents a configuration variable template present in a Plugin Config.
144 &quot;description&quot;: &quot;A String&quot;, # Optional. Description.
145 &quot;enumOptions&quot;: [ # Optional. Enum options. To be populated if `ValueType` is `ENUM`.
146 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
147 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
148 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
149 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
150 },
151 ],
152 &quot;id&quot;: &quot;A String&quot;, # Required. ID of the config variable. Must be unique within the configuration.
153 &quot;multiSelectOptions&quot;: [ # Optional. Multi select options. To be populated if `ValueType` is `MULTI_SELECT`.
154 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
155 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
156 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
157 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
158 },
159 ],
160 &quot;required&quot;: True or False, # Optional. Flag represents that this `ConfigVariable` must be provided for a PluginInstance.
161 &quot;validationRegex&quot;: &quot;A String&quot;, # Optional. Regular expression in RE2 syntax used for validating the `value` of a `ConfigVariable`.
162 &quot;valueType&quot;: &quot;A String&quot;, # Required. Type of the parameter: string, int, bool etc.
163 },
164 ],
165 &quot;authConfigTemplate&quot;: { # AuthConfigTemplate represents the authentication template for a plugin. # Optional. The authentication template for the plugin.
166 &quot;serviceAccount&quot;: { # Config for Google service account authentication. # Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account.
167 &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.
168 },
169 &quot;supportedAuthTypes&quot;: [ # Required. The list of authentication types supported by the plugin.
170 &quot;A String&quot;,
171 ],
172 },
173 },
174 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin was created.
175 &quot;description&quot;: &quot;A String&quot;, # Optional. The plugin description. Max length is 2000 characters (Unicode code points).
176 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the plugin. Max length is 50 characters (Unicode code points).
177 &quot;documentation&quot;: { # Documentation details. # Optional. The documentation of the plugin, that explains how to set up and use the plugin.
178 &quot;externalUri&quot;: &quot;A String&quot;, # Optional. The uri of the externally hosted documentation.
179 },
180 &quot;gatewayType&quot;: &quot;A String&quot;, # Optional. The type of the gateway.
181 &quot;hostingService&quot;: { # The information related to the service implemented by the plugin developer, used to invoke the plugin&#x27;s functionality. # Optional. This field is optional. It is used to notify the plugin hosting service for any lifecycle changes of the plugin instance and trigger execution of plugin instance actions in case of API hub managed actions. This field should be provided if the plugin instance lifecycle of the developed plugin needs to be managed from API hub. Also, in this case the plugin hosting service interface needs to be implemented. This field should not be provided if the plugin wants to manage plugin instance lifecycle events outside of hub interface and use plugin framework for only registering of plugin and plugin instances to capture the source of data into hub. Note, in this case the plugin hosting service interface is not required to be implemented. Also, the plugin instance lifecycle actions will be disabled from API hub&#x27;s UI.
182 &quot;serviceUri&quot;: &quot;A String&quot;, # Optional. The URI of the service implemented by the plugin developer, used to invoke the plugin&#x27;s functionality. This information is only required for user defined plugins.
183 },
184 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the plugin. Format: `projects/{project}/locations/{location}/plugins/{plugin}`
185 &quot;ownershipType&quot;: &quot;A String&quot;, # Output only. The type of the plugin, indicating whether it is &#x27;SYSTEM_OWNED&#x27; or &#x27;USER_OWNED&#x27;.
186 &quot;pluginCategory&quot;: &quot;A String&quot;, # Optional. The category of the plugin, identifying its primary category or purpose. This field is required for all plugins.
187 &quot;state&quot;: &quot;A String&quot;, # Output only. Represents the state of the plugin. Note this field will not be set for plugins developed via plugin framework as the state will be managed at plugin instance level.
188 &quot;type&quot;: { # The attribute values associated with resource. # Optional. The type of the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-plugin-type` attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute. Note this field is not required for plugins developed via plugin framework.
189 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
190 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
191 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
192 { # The value that can be assigned to the attribute when the data type is enum.
193 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
194 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
195 &quot;id&quot;: &quot;A String&quot;, # Required. The ID of the allowed value. * If provided, the same will be used. The service will throw an error if the specified id is already used by another allowed value in the same attribute resource. * If not provided, a system generated id derived from the display name will be used. In this case, the service will handle conflict resolution by adding a system generated suffix in case of duplicates. This value should be 4-63 characters, and valid characters are /a-z-/.
196 &quot;immutable&quot;: True or False, # Optional. When set to true, the allowed value cannot be updated or deleted by the user. It can only be true for System defined attributes.
197 },
198 ],
199 },
200 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
201 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
202 &quot;A String&quot;,
203 ],
204 },
205 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
206 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
207 &quot;A String&quot;,
208 ],
209 },
210 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
211 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
212 &quot;A String&quot;,
213 ],
214 },
215 },
216 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin was last updated.
217 }
218
219 pluginId: string, Optional. The ID to use for the Plugin resource, which will become the final component of the Plugin&#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 resource in the API hub instance. * If not provided, a system generated id will be used. This value should be 4-63 characters, overall resource name which will be of format `projects/{project}/locations/{location}/plugins/{plugin}`, its length is limited to 1000 characters and valid characters are /a-z[0-9]-_/.
220 x__xgafv: string, V1 error format.
221 Allowed values
222 1 - v1 error format
223 2 - v2 error format
224
225 Returns:
226 An object of the form:
227
228 { # A plugin resource in the API Hub.
229 &quot;actionsConfig&quot;: [ # Optional. The configuration of actions supported by the plugin. **REQUIRED**: This field must be provided when creating or updating a Plugin. The server will reject requests if this field is missing.
230 { # PluginActionConfig represents the configuration of an action supported by a plugin.
231 &quot;description&quot;: &quot;A String&quot;, # Required. The description of the operation performed by the action.
232 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the action.
233 &quot;id&quot;: &quot;A String&quot;, # Required. The id of the action.
234 &quot;triggerMode&quot;: &quot;A String&quot;, # Required. The trigger mode supported by the action.
235 },
236 ],
237 &quot;configTemplate&quot;: { # ConfigTemplate represents the configuration template for a plugin. # Optional. The configuration template for the plugin.
238 &quot;additionalConfigTemplate&quot;: [ # Optional. The list of additional configuration variables for the plugin&#x27;s configuration.
239 { # ConfigVariableTemplate represents a configuration variable template present in a Plugin Config.
240 &quot;description&quot;: &quot;A String&quot;, # Optional. Description.
241 &quot;enumOptions&quot;: [ # Optional. Enum options. To be populated if `ValueType` is `ENUM`.
242 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
243 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
244 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
245 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
246 },
247 ],
248 &quot;id&quot;: &quot;A String&quot;, # Required. ID of the config variable. Must be unique within the configuration.
249 &quot;multiSelectOptions&quot;: [ # Optional. Multi select options. To be populated if `ValueType` is `MULTI_SELECT`.
250 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
251 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
252 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
253 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
254 },
255 ],
256 &quot;required&quot;: True or False, # Optional. Flag represents that this `ConfigVariable` must be provided for a PluginInstance.
257 &quot;validationRegex&quot;: &quot;A String&quot;, # Optional. Regular expression in RE2 syntax used for validating the `value` of a `ConfigVariable`.
258 &quot;valueType&quot;: &quot;A String&quot;, # Required. Type of the parameter: string, int, bool etc.
259 },
260 ],
261 &quot;authConfigTemplate&quot;: { # AuthConfigTemplate represents the authentication template for a plugin. # Optional. The authentication template for the plugin.
262 &quot;serviceAccount&quot;: { # Config for Google service account authentication. # Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account.
263 &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.
264 },
265 &quot;supportedAuthTypes&quot;: [ # Required. The list of authentication types supported by the plugin.
266 &quot;A String&quot;,
267 ],
268 },
269 },
270 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin was created.
271 &quot;description&quot;: &quot;A String&quot;, # Optional. The plugin description. Max length is 2000 characters (Unicode code points).
272 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the plugin. Max length is 50 characters (Unicode code points).
273 &quot;documentation&quot;: { # Documentation details. # Optional. The documentation of the plugin, that explains how to set up and use the plugin.
274 &quot;externalUri&quot;: &quot;A String&quot;, # Optional. The uri of the externally hosted documentation.
275 },
276 &quot;gatewayType&quot;: &quot;A String&quot;, # Optional. The type of the gateway.
277 &quot;hostingService&quot;: { # The information related to the service implemented by the plugin developer, used to invoke the plugin&#x27;s functionality. # Optional. This field is optional. It is used to notify the plugin hosting service for any lifecycle changes of the plugin instance and trigger execution of plugin instance actions in case of API hub managed actions. This field should be provided if the plugin instance lifecycle of the developed plugin needs to be managed from API hub. Also, in this case the plugin hosting service interface needs to be implemented. This field should not be provided if the plugin wants to manage plugin instance lifecycle events outside of hub interface and use plugin framework for only registering of plugin and plugin instances to capture the source of data into hub. Note, in this case the plugin hosting service interface is not required to be implemented. Also, the plugin instance lifecycle actions will be disabled from API hub&#x27;s UI.
278 &quot;serviceUri&quot;: &quot;A String&quot;, # Optional. The URI of the service implemented by the plugin developer, used to invoke the plugin&#x27;s functionality. This information is only required for user defined plugins.
279 },
280 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the plugin. Format: `projects/{project}/locations/{location}/plugins/{plugin}`
281 &quot;ownershipType&quot;: &quot;A String&quot;, # Output only. The type of the plugin, indicating whether it is &#x27;SYSTEM_OWNED&#x27; or &#x27;USER_OWNED&#x27;.
282 &quot;pluginCategory&quot;: &quot;A String&quot;, # Optional. The category of the plugin, identifying its primary category or purpose. This field is required for all plugins.
283 &quot;state&quot;: &quot;A String&quot;, # Output only. Represents the state of the plugin. Note this field will not be set for plugins developed via plugin framework as the state will be managed at plugin instance level.
284 &quot;type&quot;: { # The attribute values associated with resource. # Optional. The type of the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-plugin-type` attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute. Note this field is not required for plugins developed via plugin framework.
285 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
286 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
287 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
288 { # The value that can be assigned to the attribute when the data type is enum.
289 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
290 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
291 &quot;id&quot;: &quot;A String&quot;, # Required. The ID of the allowed value. * If provided, the same will be used. The service will throw an error if the specified id is already used by another allowed value in the same attribute resource. * If not provided, a system generated id derived from the display name will be used. In this case, the service will handle conflict resolution by adding a system generated suffix in case of duplicates. This value should be 4-63 characters, and valid characters are /a-z-/.
292 &quot;immutable&quot;: True or False, # Optional. When set to true, the allowed value cannot be updated or deleted by the user. It can only be true for System defined attributes.
293 },
294 ],
295 },
296 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
297 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
298 &quot;A String&quot;,
299 ],
300 },
301 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
302 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
303 &quot;A String&quot;,
304 ],
305 },
306 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
307 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
308 &quot;A String&quot;,
309 ],
310 },
311 },
312 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin was last updated.
313 }</pre>
314 </div>
315
316 <div class="method">
317 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
318 <pre>Delete a Plugin in API hub. Note, only user owned plugins can be deleted via this method.
319
320 Args:
321 name: string, Required. The name of the Plugin resource to delete. Format: `projects/{project}/locations/{location}/plugins/{plugin}` (required)
322 x__xgafv: string, V1 error format.
323 Allowed values
324 1 - v1 error format
325 2 - v2 error format
326
327 Returns:
328 An object of the form:
329
330 { # This resource represents a long-running operation that is the result of a network API call.
331 &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.
332 &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.
333 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
334 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
335 {
336 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
337 },
338 ],
339 &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.
340 },
341 &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.
342 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
343 },
344 &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}`.
345 &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`.
346 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
347 },
348 }</pre>
349 </div>
350
351 <div class="method">
352 <code class="details" id="disable">disable(name, body=None, x__xgafv=None)</code>
353 <pre>Disables a plugin. The `state` of the plugin after disabling is `DISABLED`
354
355 Args:
356 name: string, Required. The name of the plugin to disable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. (required)
357 body: object, The request body.
358 The object takes the form of:
359
360 { # The DisablePlugin method&#x27;s request.
361 }
362
363 x__xgafv: string, V1 error format.
364 Allowed values
365 1 - v1 error format
366 2 - v2 error format
367
368 Returns:
369 An object of the form:
370
371 { # A plugin resource in the API Hub.
372 &quot;actionsConfig&quot;: [ # Optional. The configuration of actions supported by the plugin. **REQUIRED**: This field must be provided when creating or updating a Plugin. The server will reject requests if this field is missing.
373 { # PluginActionConfig represents the configuration of an action supported by a plugin.
374 &quot;description&quot;: &quot;A String&quot;, # Required. The description of the operation performed by the action.
375 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the action.
376 &quot;id&quot;: &quot;A String&quot;, # Required. The id of the action.
377 &quot;triggerMode&quot;: &quot;A String&quot;, # Required. The trigger mode supported by the action.
378 },
379 ],
380 &quot;configTemplate&quot;: { # ConfigTemplate represents the configuration template for a plugin. # Optional. The configuration template for the plugin.
381 &quot;additionalConfigTemplate&quot;: [ # Optional. The list of additional configuration variables for the plugin&#x27;s configuration.
382 { # ConfigVariableTemplate represents a configuration variable template present in a Plugin Config.
383 &quot;description&quot;: &quot;A String&quot;, # Optional. Description.
384 &quot;enumOptions&quot;: [ # Optional. Enum options. To be populated if `ValueType` is `ENUM`.
385 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
386 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
387 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
388 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
389 },
390 ],
391 &quot;id&quot;: &quot;A String&quot;, # Required. ID of the config variable. Must be unique within the configuration.
392 &quot;multiSelectOptions&quot;: [ # Optional. Multi select options. To be populated if `ValueType` is `MULTI_SELECT`.
393 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
394 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
395 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
396 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
397 },
398 ],
399 &quot;required&quot;: True or False, # Optional. Flag represents that this `ConfigVariable` must be provided for a PluginInstance.
400 &quot;validationRegex&quot;: &quot;A String&quot;, # Optional. Regular expression in RE2 syntax used for validating the `value` of a `ConfigVariable`.
401 &quot;valueType&quot;: &quot;A String&quot;, # Required. Type of the parameter: string, int, bool etc.
402 },
403 ],
404 &quot;authConfigTemplate&quot;: { # AuthConfigTemplate represents the authentication template for a plugin. # Optional. The authentication template for the plugin.
405 &quot;serviceAccount&quot;: { # Config for Google service account authentication. # Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account.
406 &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.
407 },
408 &quot;supportedAuthTypes&quot;: [ # Required. The list of authentication types supported by the plugin.
409 &quot;A String&quot;,
410 ],
411 },
412 },
413 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin was created.
414 &quot;description&quot;: &quot;A String&quot;, # Optional. The plugin description. Max length is 2000 characters (Unicode code points).
415 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the plugin. Max length is 50 characters (Unicode code points).
416 &quot;documentation&quot;: { # Documentation details. # Optional. The documentation of the plugin, that explains how to set up and use the plugin.
417 &quot;externalUri&quot;: &quot;A String&quot;, # Optional. The uri of the externally hosted documentation.
418 },
419 &quot;gatewayType&quot;: &quot;A String&quot;, # Optional. The type of the gateway.
420 &quot;hostingService&quot;: { # The information related to the service implemented by the plugin developer, used to invoke the plugin&#x27;s functionality. # Optional. This field is optional. It is used to notify the plugin hosting service for any lifecycle changes of the plugin instance and trigger execution of plugin instance actions in case of API hub managed actions. This field should be provided if the plugin instance lifecycle of the developed plugin needs to be managed from API hub. Also, in this case the plugin hosting service interface needs to be implemented. This field should not be provided if the plugin wants to manage plugin instance lifecycle events outside of hub interface and use plugin framework for only registering of plugin and plugin instances to capture the source of data into hub. Note, in this case the plugin hosting service interface is not required to be implemented. Also, the plugin instance lifecycle actions will be disabled from API hub&#x27;s UI.
421 &quot;serviceUri&quot;: &quot;A String&quot;, # Optional. The URI of the service implemented by the plugin developer, used to invoke the plugin&#x27;s functionality. This information is only required for user defined plugins.
422 },
423 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the plugin. Format: `projects/{project}/locations/{location}/plugins/{plugin}`
424 &quot;ownershipType&quot;: &quot;A String&quot;, # Output only. The type of the plugin, indicating whether it is &#x27;SYSTEM_OWNED&#x27; or &#x27;USER_OWNED&#x27;.
425 &quot;pluginCategory&quot;: &quot;A String&quot;, # Optional. The category of the plugin, identifying its primary category or purpose. This field is required for all plugins.
426 &quot;state&quot;: &quot;A String&quot;, # Output only. Represents the state of the plugin. Note this field will not be set for plugins developed via plugin framework as the state will be managed at plugin instance level.
427 &quot;type&quot;: { # The attribute values associated with resource. # Optional. The type of the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-plugin-type` attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute. Note this field is not required for plugins developed via plugin framework.
428 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
429 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
430 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
431 { # The value that can be assigned to the attribute when the data type is enum.
432 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
433 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
434 &quot;id&quot;: &quot;A String&quot;, # Required. The ID of the allowed value. * If provided, the same will be used. The service will throw an error if the specified id is already used by another allowed value in the same attribute resource. * If not provided, a system generated id derived from the display name will be used. In this case, the service will handle conflict resolution by adding a system generated suffix in case of duplicates. This value should be 4-63 characters, and valid characters are /a-z-/.
435 &quot;immutable&quot;: True or False, # Optional. When set to true, the allowed value cannot be updated or deleted by the user. It can only be true for System defined attributes.
436 },
437 ],
438 },
439 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
440 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
441 &quot;A String&quot;,
442 ],
443 },
444 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
445 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
446 &quot;A String&quot;,
447 ],
448 },
449 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
450 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
451 &quot;A String&quot;,
452 ],
453 },
454 },
455 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin was last updated.
456 }</pre>
457 </div>
458
459 <div class="method">
460 <code class="details" id="enable">enable(name, body=None, x__xgafv=None)</code>
461 <pre>Enables a plugin. The `state` of the plugin after enabling is `ENABLED`
462
463 Args:
464 name: string, Required. The name of the plugin to enable. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. (required)
465 body: object, The request body.
466 The object takes the form of:
467
468 { # The EnablePlugin method&#x27;s request.
469 }
470
471 x__xgafv: string, V1 error format.
472 Allowed values
473 1 - v1 error format
474 2 - v2 error format
475
476 Returns:
477 An object of the form:
478
479 { # A plugin resource in the API Hub.
480 &quot;actionsConfig&quot;: [ # Optional. The configuration of actions supported by the plugin. **REQUIRED**: This field must be provided when creating or updating a Plugin. The server will reject requests if this field is missing.
481 { # PluginActionConfig represents the configuration of an action supported by a plugin.
482 &quot;description&quot;: &quot;A String&quot;, # Required. The description of the operation performed by the action.
483 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the action.
484 &quot;id&quot;: &quot;A String&quot;, # Required. The id of the action.
485 &quot;triggerMode&quot;: &quot;A String&quot;, # Required. The trigger mode supported by the action.
486 },
487 ],
488 &quot;configTemplate&quot;: { # ConfigTemplate represents the configuration template for a plugin. # Optional. The configuration template for the plugin.
489 &quot;additionalConfigTemplate&quot;: [ # Optional. The list of additional configuration variables for the plugin&#x27;s configuration.
490 { # ConfigVariableTemplate represents a configuration variable template present in a Plugin Config.
491 &quot;description&quot;: &quot;A String&quot;, # Optional. Description.
492 &quot;enumOptions&quot;: [ # Optional. Enum options. To be populated if `ValueType` is `ENUM`.
493 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
494 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
495 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
496 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
497 },
498 ],
499 &quot;id&quot;: &quot;A String&quot;, # Required. ID of the config variable. Must be unique within the configuration.
500 &quot;multiSelectOptions&quot;: [ # Optional. Multi select options. To be populated if `ValueType` is `MULTI_SELECT`.
501 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
502 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
503 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
504 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
505 },
506 ],
507 &quot;required&quot;: True or False, # Optional. Flag represents that this `ConfigVariable` must be provided for a PluginInstance.
508 &quot;validationRegex&quot;: &quot;A String&quot;, # Optional. Regular expression in RE2 syntax used for validating the `value` of a `ConfigVariable`.
509 &quot;valueType&quot;: &quot;A String&quot;, # Required. Type of the parameter: string, int, bool etc.
510 },
511 ],
512 &quot;authConfigTemplate&quot;: { # AuthConfigTemplate represents the authentication template for a plugin. # Optional. The authentication template for the plugin.
513 &quot;serviceAccount&quot;: { # Config for Google service account authentication. # Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding 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;supportedAuthTypes&quot;: [ # Required. The list of authentication types supported by the plugin.
517 &quot;A String&quot;,
518 ],
519 },
520 },
521 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin was created.
522 &quot;description&quot;: &quot;A String&quot;, # Optional. The plugin description. Max length is 2000 characters (Unicode code points).
523 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the plugin. Max length is 50 characters (Unicode code points).
524 &quot;documentation&quot;: { # Documentation details. # Optional. The documentation of the plugin, that explains how to set up and use the plugin.
525 &quot;externalUri&quot;: &quot;A String&quot;, # Optional. The uri of the externally hosted documentation.
526 },
527 &quot;gatewayType&quot;: &quot;A String&quot;, # Optional. The type of the gateway.
528 &quot;hostingService&quot;: { # The information related to the service implemented by the plugin developer, used to invoke the plugin&#x27;s functionality. # Optional. This field is optional. It is used to notify the plugin hosting service for any lifecycle changes of the plugin instance and trigger execution of plugin instance actions in case of API hub managed actions. This field should be provided if the plugin instance lifecycle of the developed plugin needs to be managed from API hub. Also, in this case the plugin hosting service interface needs to be implemented. This field should not be provided if the plugin wants to manage plugin instance lifecycle events outside of hub interface and use plugin framework for only registering of plugin and plugin instances to capture the source of data into hub. Note, in this case the plugin hosting service interface is not required to be implemented. Also, the plugin instance lifecycle actions will be disabled from API hub&#x27;s UI.
529 &quot;serviceUri&quot;: &quot;A String&quot;, # Optional. The URI of the service implemented by the plugin developer, used to invoke the plugin&#x27;s functionality. This information is only required for user defined plugins.
530 },
531 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the plugin. Format: `projects/{project}/locations/{location}/plugins/{plugin}`
532 &quot;ownershipType&quot;: &quot;A String&quot;, # Output only. The type of the plugin, indicating whether it is &#x27;SYSTEM_OWNED&#x27; or &#x27;USER_OWNED&#x27;.
533 &quot;pluginCategory&quot;: &quot;A String&quot;, # Optional. The category of the plugin, identifying its primary category or purpose. This field is required for all plugins.
534 &quot;state&quot;: &quot;A String&quot;, # Output only. Represents the state of the plugin. Note this field will not be set for plugins developed via plugin framework as the state will be managed at plugin instance level.
535 &quot;type&quot;: { # The attribute values associated with resource. # Optional. The type of the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-plugin-type` attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute. Note this field is not required for plugins developed via plugin framework.
536 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
537 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
538 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
539 { # The value that can be assigned to the attribute when the data type is enum.
540 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
541 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
542 &quot;id&quot;: &quot;A String&quot;, # Required. The ID of the allowed value. * If provided, the same will be used. The service will throw an error if the specified id is already used by another allowed value in the same attribute resource. * If not provided, a system generated id derived from the display name will be used. In this case, the service will handle conflict resolution by adding a system generated suffix in case of duplicates. This value should be 4-63 characters, and valid characters are /a-z-/.
543 &quot;immutable&quot;: True or False, # Optional. When set to true, the allowed value cannot be updated or deleted by the user. It can only be true for System defined attributes.
544 },
545 ],
546 },
547 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
548 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
549 &quot;A String&quot;,
550 ],
551 },
552 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
553 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
554 &quot;A String&quot;,
555 ],
556 },
557 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
558 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
559 &quot;A String&quot;,
560 ],
561 },
562 },
563 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin was last updated.
564 }</pre>
565 </div>
566
567 <div class="method">
568 <code class="details" id="get">get(name, x__xgafv=None)</code>
569 <pre>Get an API Hub plugin.
570
571 Args:
572 name: string, Required. The name of the plugin to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}`. (required)
573 x__xgafv: string, V1 error format.
574 Allowed values
575 1 - v1 error format
576 2 - v2 error format
577
578 Returns:
579 An object of the form:
580
581 { # A plugin resource in the API Hub.
582 &quot;actionsConfig&quot;: [ # Optional. The configuration of actions supported by the plugin. **REQUIRED**: This field must be provided when creating or updating a Plugin. The server will reject requests if this field is missing.
583 { # PluginActionConfig represents the configuration of an action supported by a plugin.
584 &quot;description&quot;: &quot;A String&quot;, # Required. The description of the operation performed by the action.
585 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the action.
586 &quot;id&quot;: &quot;A String&quot;, # Required. The id of the action.
587 &quot;triggerMode&quot;: &quot;A String&quot;, # Required. The trigger mode supported by the action.
588 },
589 ],
590 &quot;configTemplate&quot;: { # ConfigTemplate represents the configuration template for a plugin. # Optional. The configuration template for the plugin.
591 &quot;additionalConfigTemplate&quot;: [ # Optional. The list of additional configuration variables for the plugin&#x27;s configuration.
592 { # ConfigVariableTemplate represents a configuration variable template present in a Plugin Config.
593 &quot;description&quot;: &quot;A String&quot;, # Optional. Description.
594 &quot;enumOptions&quot;: [ # Optional. Enum options. To be populated if `ValueType` is `ENUM`.
595 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
596 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
597 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
598 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
599 },
600 ],
601 &quot;id&quot;: &quot;A String&quot;, # Required. ID of the config variable. Must be unique within the configuration.
602 &quot;multiSelectOptions&quot;: [ # Optional. Multi select options. To be populated if `ValueType` is `MULTI_SELECT`.
603 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
604 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
605 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
606 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
607 },
608 ],
609 &quot;required&quot;: True or False, # Optional. Flag represents that this `ConfigVariable` must be provided for a PluginInstance.
610 &quot;validationRegex&quot;: &quot;A String&quot;, # Optional. Regular expression in RE2 syntax used for validating the `value` of a `ConfigVariable`.
611 &quot;valueType&quot;: &quot;A String&quot;, # Required. Type of the parameter: string, int, bool etc.
612 },
613 ],
614 &quot;authConfigTemplate&quot;: { # AuthConfigTemplate represents the authentication template for a plugin. # Optional. The authentication template for the plugin.
615 &quot;serviceAccount&quot;: { # Config for Google service account authentication. # Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account.
616 &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.
617 },
618 &quot;supportedAuthTypes&quot;: [ # Required. The list of authentication types supported by the plugin.
619 &quot;A String&quot;,
620 ],
621 },
622 },
623 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin was created.
624 &quot;description&quot;: &quot;A String&quot;, # Optional. The plugin description. Max length is 2000 characters (Unicode code points).
625 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the plugin. Max length is 50 characters (Unicode code points).
626 &quot;documentation&quot;: { # Documentation details. # Optional. The documentation of the plugin, that explains how to set up and use the plugin.
627 &quot;externalUri&quot;: &quot;A String&quot;, # Optional. The uri of the externally hosted documentation.
628 },
629 &quot;gatewayType&quot;: &quot;A String&quot;, # Optional. The type of the gateway.
630 &quot;hostingService&quot;: { # The information related to the service implemented by the plugin developer, used to invoke the plugin&#x27;s functionality. # Optional. This field is optional. It is used to notify the plugin hosting service for any lifecycle changes of the plugin instance and trigger execution of plugin instance actions in case of API hub managed actions. This field should be provided if the plugin instance lifecycle of the developed plugin needs to be managed from API hub. Also, in this case the plugin hosting service interface needs to be implemented. This field should not be provided if the plugin wants to manage plugin instance lifecycle events outside of hub interface and use plugin framework for only registering of plugin and plugin instances to capture the source of data into hub. Note, in this case the plugin hosting service interface is not required to be implemented. Also, the plugin instance lifecycle actions will be disabled from API hub&#x27;s UI.
631 &quot;serviceUri&quot;: &quot;A String&quot;, # Optional. The URI of the service implemented by the plugin developer, used to invoke the plugin&#x27;s functionality. This information is only required for user defined plugins.
632 },
633 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the plugin. Format: `projects/{project}/locations/{location}/plugins/{plugin}`
634 &quot;ownershipType&quot;: &quot;A String&quot;, # Output only. The type of the plugin, indicating whether it is &#x27;SYSTEM_OWNED&#x27; or &#x27;USER_OWNED&#x27;.
635 &quot;pluginCategory&quot;: &quot;A String&quot;, # Optional. The category of the plugin, identifying its primary category or purpose. This field is required for all plugins.
636 &quot;state&quot;: &quot;A String&quot;, # Output only. Represents the state of the plugin. Note this field will not be set for plugins developed via plugin framework as the state will be managed at plugin instance level.
637 &quot;type&quot;: { # The attribute values associated with resource. # Optional. The type of the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-plugin-type` attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute. Note this field is not required for plugins developed via plugin framework.
638 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
639 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
640 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
641 { # The value that can be assigned to the attribute when the data type is enum.
642 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
643 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
644 &quot;id&quot;: &quot;A String&quot;, # Required. The ID of the allowed value. * If provided, the same will be used. The service will throw an error if the specified id is already used by another allowed value in the same attribute resource. * If not provided, a system generated id derived from the display name will be used. In this case, the service will handle conflict resolution by adding a system generated suffix in case of duplicates. This value should be 4-63 characters, and valid characters are /a-z-/.
645 &quot;immutable&quot;: True or False, # Optional. When set to true, the allowed value cannot be updated or deleted by the user. It can only be true for System defined attributes.
646 },
647 ],
648 },
649 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
650 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
651 &quot;A String&quot;,
652 ],
653 },
654 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
655 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
656 &quot;A String&quot;,
657 ],
658 },
659 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
660 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
661 &quot;A String&quot;,
662 ],
663 },
664 },
665 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin was last updated.
666 }</pre>
667 </div>
668
669 <div class="method">
670 <code class="details" id="getStyleGuide">getStyleGuide(name, x__xgafv=None)</code>
671 <pre>Get the style guide being used for linting.
672
673 Args:
674 name: string, Required. The name of the spec to retrieve. Format: `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`. (required)
675 x__xgafv: string, V1 error format.
676 Allowed values
677 1 - v1 error format
678 2 - v2 error format
679
680 Returns:
681 An object of the form:
682
683 { # Represents a singleton style guide resource to be used for linting Open API specs.
684 &quot;contents&quot;: { # The style guide contents. # Required. Input only. The contents of the uploaded style guide.
685 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the style guide.
686 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content.
687 },
688 &quot;linter&quot;: &quot;A String&quot;, # Required. Target linter for the style guide.
689 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the style guide. Format: `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`
690 }</pre>
691 </div>
692
693 <div class="method">
694 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
695 <pre>List all the plugins in a given project and location.
696
697 Args:
698 parent: string, Required. The parent resource where this plugin will be created. Format: `projects/{project}/locations/{location}`. (required)
699 filter: string, Optional. An expression that filters the list of plugins. 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 `Plugins` are eligible for filtering: * `plugin_category` - The category of the Plugin. Allowed comparison operators: `=`. 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: * `plugin_category = ON_RAMP` - The plugin is of category on ramp.
700 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.
701 pageToken: string, Optional. A page token, received from a previous `ListPlugins` call. Provide this to retrieve the subsequent page. When paginating, all other parameters (except page_size) provided to `ListPlugins` must match the call that provided the page token.
702 x__xgafv: string, V1 error format.
703 Allowed values
704 1 - v1 error format
705 2 - v2 error format
706
707 Returns:
708 An object of the form:
709
710 { # The ListPlugins method&#x27;s response.
711 &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.
712 &quot;plugins&quot;: [ # The plugins from the specified parent resource.
713 { # A plugin resource in the API Hub.
714 &quot;actionsConfig&quot;: [ # Optional. The configuration of actions supported by the plugin. **REQUIRED**: This field must be provided when creating or updating a Plugin. The server will reject requests if this field is missing.
715 { # PluginActionConfig represents the configuration of an action supported by a plugin.
716 &quot;description&quot;: &quot;A String&quot;, # Required. The description of the operation performed by the action.
717 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the action.
718 &quot;id&quot;: &quot;A String&quot;, # Required. The id of the action.
719 &quot;triggerMode&quot;: &quot;A String&quot;, # Required. The trigger mode supported by the action.
720 },
721 ],
722 &quot;configTemplate&quot;: { # ConfigTemplate represents the configuration template for a plugin. # Optional. The configuration template for the plugin.
723 &quot;additionalConfigTemplate&quot;: [ # Optional. The list of additional configuration variables for the plugin&#x27;s configuration.
724 { # ConfigVariableTemplate represents a configuration variable template present in a Plugin Config.
725 &quot;description&quot;: &quot;A String&quot;, # Optional. Description.
726 &quot;enumOptions&quot;: [ # Optional. Enum options. To be populated if `ValueType` is `ENUM`.
727 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
728 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
729 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
730 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
731 },
732 ],
733 &quot;id&quot;: &quot;A String&quot;, # Required. ID of the config variable. Must be unique within the configuration.
734 &quot;multiSelectOptions&quot;: [ # Optional. Multi select options. To be populated if `ValueType` is `MULTI_SELECT`.
735 { # ConfigValueOption represents an option for a config variable of type enum or multi select.
736 &quot;description&quot;: &quot;A String&quot;, # Optional. Description of the option.
737 &quot;displayName&quot;: &quot;A String&quot;, # Required. Display name of the option.
738 &quot;id&quot;: &quot;A String&quot;, # Required. Id of the option.
739 },
740 ],
741 &quot;required&quot;: True or False, # Optional. Flag represents that this `ConfigVariable` must be provided for a PluginInstance.
742 &quot;validationRegex&quot;: &quot;A String&quot;, # Optional. Regular expression in RE2 syntax used for validating the `value` of a `ConfigVariable`.
743 &quot;valueType&quot;: &quot;A String&quot;, # Required. Type of the parameter: string, int, bool etc.
744 },
745 ],
746 &quot;authConfigTemplate&quot;: { # AuthConfigTemplate represents the authentication template for a plugin. # Optional. The authentication template for the plugin.
747 &quot;serviceAccount&quot;: { # Config for Google service account authentication. # Optional. The service account of the plugin hosting service. This service account should be granted the required permissions on the Auth Config parameters provided while creating the plugin instances corresponding to this plugin. For example, if the plugin instance auth config requires a secret manager secret, the service account should be granted the secretmanager.versions.access permission on the corresponding secret, if the plugin instance auth config contains a service account, the service account should be granted the iam.serviceAccounts.getAccessToken permission on the corresponding service account.
748 &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.
749 },
750 &quot;supportedAuthTypes&quot;: [ # Required. The list of authentication types supported by the plugin.
751 &quot;A String&quot;,
752 ],
753 },
754 },
755 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin was created.
756 &quot;description&quot;: &quot;A String&quot;, # Optional. The plugin description. Max length is 2000 characters (Unicode code points).
757 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the plugin. Max length is 50 characters (Unicode code points).
758 &quot;documentation&quot;: { # Documentation details. # Optional. The documentation of the plugin, that explains how to set up and use the plugin.
759 &quot;externalUri&quot;: &quot;A String&quot;, # Optional. The uri of the externally hosted documentation.
760 },
761 &quot;gatewayType&quot;: &quot;A String&quot;, # Optional. The type of the gateway.
762 &quot;hostingService&quot;: { # The information related to the service implemented by the plugin developer, used to invoke the plugin&#x27;s functionality. # Optional. This field is optional. It is used to notify the plugin hosting service for any lifecycle changes of the plugin instance and trigger execution of plugin instance actions in case of API hub managed actions. This field should be provided if the plugin instance lifecycle of the developed plugin needs to be managed from API hub. Also, in this case the plugin hosting service interface needs to be implemented. This field should not be provided if the plugin wants to manage plugin instance lifecycle events outside of hub interface and use plugin framework for only registering of plugin and plugin instances to capture the source of data into hub. Note, in this case the plugin hosting service interface is not required to be implemented. Also, the plugin instance lifecycle actions will be disabled from API hub&#x27;s UI.
763 &quot;serviceUri&quot;: &quot;A String&quot;, # Optional. The URI of the service implemented by the plugin developer, used to invoke the plugin&#x27;s functionality. This information is only required for user defined plugins.
764 },
765 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the plugin. Format: `projects/{project}/locations/{location}/plugins/{plugin}`
766 &quot;ownershipType&quot;: &quot;A String&quot;, # Output only. The type of the plugin, indicating whether it is &#x27;SYSTEM_OWNED&#x27; or &#x27;USER_OWNED&#x27;.
767 &quot;pluginCategory&quot;: &quot;A String&quot;, # Optional. The category of the plugin, identifying its primary category or purpose. This field is required for all plugins.
768 &quot;state&quot;: &quot;A String&quot;, # Output only. Represents the state of the plugin. Note this field will not be set for plugins developed via plugin framework as the state will be managed at plugin instance level.
769 &quot;type&quot;: { # The attribute values associated with resource. # Optional. The type of the API. This maps to the following system defined attribute: `projects/{project}/locations/{location}/attributes/system-plugin-type` attribute. The number of allowed values for this attribute will be based on the cardinality of the attribute. The same can be retrieved via GetAttribute API. All values should be from the list of allowed values defined for the attribute. Note this field is not required for plugins developed via plugin framework.
770 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
771 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
772 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
773 { # The value that can be assigned to the attribute when the data type is enum.
774 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
775 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
776 &quot;id&quot;: &quot;A String&quot;, # Required. The ID of the allowed value. * If provided, the same will be used. The service will throw an error if the specified id is already used by another allowed value in the same attribute resource. * If not provided, a system generated id derived from the display name will be used. In this case, the service will handle conflict resolution by adding a system generated suffix in case of duplicates. This value should be 4-63 characters, and valid characters are /a-z-/.
777 &quot;immutable&quot;: True or False, # Optional. When set to true, the allowed value cannot be updated or deleted by the user. It can only be true for System defined attributes.
778 },
779 ],
780 },
781 &quot;jsonValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is JSON.
782 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
783 &quot;A String&quot;,
784 ],
785 },
786 &quot;stringValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is string.
787 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
788 &quot;A String&quot;,
789 ],
790 },
791 &quot;uriValues&quot;: { # The attribute values of data type string or JSON. # The attribute values associated with a resource in case attribute data type is URL, URI or IP, like gs://bucket-name/object-name.
792 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
793 &quot;A String&quot;,
794 ],
795 },
796 },
797 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Timestamp indicating when the plugin was last updated.
798 },
799 ],
800 }</pre>
801 </div>
802
803 <div class="method">
804 <code class="details" id="list_next">list_next()</code>
805 <pre>Retrieves the next page of results.
806
807 Args:
808 previous_request: The request for the previous page. (required)
809 previous_response: The response from the request for the previous page. (required)
810
811 Returns:
812 A request object that you can call &#x27;execute()&#x27; on to request the next
813 page. Returns None if there are no more items in the collection.
814 </pre>
815 </div>
816
817 <div class="method">
818 <code class="details" id="updateStyleGuide">updateStyleGuide(name, body=None, updateMask=None, x__xgafv=None)</code>
819 <pre>Update the styleGuide to be used for liniting in by API hub.
820
821 Args:
822 name: string, Identifier. The name of the style guide. Format: `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide` (required)
823 body: object, The request body.
824 The object takes the form of:
825
826 { # Represents a singleton style guide resource to be used for linting Open API specs.
827 &quot;contents&quot;: { # The style guide contents. # Required. Input only. The contents of the uploaded style guide.
828 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the style guide.
829 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content.
830 },
831 &quot;linter&quot;: &quot;A String&quot;, # Required. Target linter for the style guide.
832 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the style guide. Format: `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`
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 singleton style guide resource to be used for linting Open API specs.
845 &quot;contents&quot;: { # The style guide contents. # Required. Input only. The contents of the uploaded style guide.
846 &quot;contents&quot;: &quot;A String&quot;, # Required. The contents of the style guide.
847 &quot;mimeType&quot;: &quot;A String&quot;, # Required. The mime type of the content.
848 },
849 &quot;linter&quot;: &quot;A String&quot;, # Required. Target linter for the style guide.
850 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the style guide. Format: `projects/{project}/locations/{location}/plugins/{plugin}/styleGuide`
851 }</pre>
852 </div>
853
854 </body></html>