Debian Codegraph @

docs/dyn/apihub_v1.projects.locations.curations.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.curations.html">curations</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, curationId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Create a curation resource in the API hub. Once a curation resource is created, plugin instances can start using it.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Delete a curation resource in the API hub. A curation can only be deleted if it's not being used by any plugin instance.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Get curation resource details.</p>
89 <p class="toc_element">
90 <code><a href="#list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</a></code></p>
91 <p class="firstline">List curation resources in the API hub.</p>
92 <p class="toc_element">
93 <code><a href="#list_next">list_next()</a></code></p>
94 <p class="firstline">Retrieves the next page of results.</p>
95 <p class="toc_element">
96 <code><a href="#patch">patch(name, body=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Update a curation resource in the API hub. The following fields in the curation can be updated: * display_name * description The update_mask should be used to specify the fields being updated.</p>
98 <h3>Method Details</h3>
99 <div class="method">
100 <code class="details" id="close">close()</code>
101 <pre>Close httplib2 connections.</pre>
102 </div>
103
104 <div class="method">
105 <code class="details" id="create">create(parent, body=None, curationId=None, x__xgafv=None)</code>
106 <pre>Create a curation resource in the API hub. Once a curation resource is created, plugin instances can start using it.
107
108 Args:
109 parent: string, Required. The parent resource for the curation resource. Format: `projects/{project}/locations/{location}` (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # A curation resource in the API Hub.
114 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the curation was created.
115 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the curation.
116 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the curation.
117 &quot;endpoint&quot;: { # The endpoint to be triggered for curation. The endpoint will be invoked with a request payload containing ApiMetadata. Response should contain curated data in the form of ApiMetadata. # Required. The endpoint to be triggered for curation.
118 &quot;applicationIntegrationEndpointDetails&quot;: { # The details of the Application Integration endpoint to be triggered for curation. # Required. The details of the Application Integration endpoint to be triggered for curation.
119 &quot;triggerId&quot;: &quot;A String&quot;, # Required. The API trigger ID of the Application Integration workflow.
120 &quot;uri&quot;: &quot;A String&quot;, # Required. The endpoint URI should be a valid REST URI for triggering an Application Integration. Format: `https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute` or `https://{location}-integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute`
121 },
122 },
123 &quot;lastExecutionErrorCode&quot;: &quot;A String&quot;, # Output only. The error code of the last execution of the curation. The error code is populated only when the last execution state is failed.
124 &quot;lastExecutionErrorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during the last execution of the curation.
125 &quot;lastExecutionState&quot;: &quot;A String&quot;, # Output only. The last execution state of the curation.
126 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the curation. Format: `projects/{project}/locations/{location}/curations/{curation}`
127 &quot;pluginInstanceActions&quot;: [ # Output only. The plugin instances and associated actions that are using the curation. Note: A particular curation could be used by multiple plugin instances or multiple actions in a plugin instance.
128 { # The plugin instance and associated action that is using the curation.
129 &quot;actionId&quot;: &quot;A String&quot;, # Output only. The action ID that is using the curation. This should map to one of the action IDs specified in action configs in the plugin.
130 &quot;pluginInstance&quot;: &quot;A String&quot;, # Output only. Plugin instance that is using the curation. Format is `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
131 },
132 ],
133 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the curation was last updated.
134 }
135
136 curationId: string, Optional. The ID to use for the curation resource, which will become the final component of the curations&#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 curation resource in the API hub. * If not provided, a system generated ID will be used. This value should be 4-500 characters, and valid characters are /a-z[0-9]-_/.
137 x__xgafv: string, V1 error format.
138 Allowed values
139 1 - v1 error format
140 2 - v2 error format
141
142 Returns:
143 An object of the form:
144
145 { # A curation resource in the API Hub.
146 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the curation was created.
147 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the curation.
148 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the curation.
149 &quot;endpoint&quot;: { # The endpoint to be triggered for curation. The endpoint will be invoked with a request payload containing ApiMetadata. Response should contain curated data in the form of ApiMetadata. # Required. The endpoint to be triggered for curation.
150 &quot;applicationIntegrationEndpointDetails&quot;: { # The details of the Application Integration endpoint to be triggered for curation. # Required. The details of the Application Integration endpoint to be triggered for curation.
151 &quot;triggerId&quot;: &quot;A String&quot;, # Required. The API trigger ID of the Application Integration workflow.
152 &quot;uri&quot;: &quot;A String&quot;, # Required. The endpoint URI should be a valid REST URI for triggering an Application Integration. Format: `https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute` or `https://{location}-integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute`
153 },
154 },
155 &quot;lastExecutionErrorCode&quot;: &quot;A String&quot;, # Output only. The error code of the last execution of the curation. The error code is populated only when the last execution state is failed.
156 &quot;lastExecutionErrorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during the last execution of the curation.
157 &quot;lastExecutionState&quot;: &quot;A String&quot;, # Output only. The last execution state of the curation.
158 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the curation. Format: `projects/{project}/locations/{location}/curations/{curation}`
159 &quot;pluginInstanceActions&quot;: [ # Output only. The plugin instances and associated actions that are using the curation. Note: A particular curation could be used by multiple plugin instances or multiple actions in a plugin instance.
160 { # The plugin instance and associated action that is using the curation.
161 &quot;actionId&quot;: &quot;A String&quot;, # Output only. The action ID that is using the curation. This should map to one of the action IDs specified in action configs in the plugin.
162 &quot;pluginInstance&quot;: &quot;A String&quot;, # Output only. Plugin instance that is using the curation. Format is `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
163 },
164 ],
165 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the curation was last updated.
166 }</pre>
167 </div>
168
169 <div class="method">
170 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
171 <pre>Delete a curation resource in the API hub. A curation can only be deleted if it&#x27;s not being used by any plugin instance.
172
173 Args:
174 name: string, Required. The name of the curation resource to delete. Format: `projects/{project}/locations/{location}/curations/{curation}` (required)
175 x__xgafv: string, V1 error format.
176 Allowed values
177 1 - v1 error format
178 2 - v2 error format
179
180 Returns:
181 An object of the form:
182
183 { # A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); }
184 }</pre>
185 </div>
186
187 <div class="method">
188 <code class="details" id="get">get(name, x__xgafv=None)</code>
189 <pre>Get curation resource details.
190
191 Args:
192 name: string, Required. The name of the curation resource to retrieve. Format: `projects/{project}/locations/{location}/curations/{curation}` (required)
193 x__xgafv: string, V1 error format.
194 Allowed values
195 1 - v1 error format
196 2 - v2 error format
197
198 Returns:
199 An object of the form:
200
201 { # A curation resource in the API Hub.
202 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the curation was created.
203 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the curation.
204 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the curation.
205 &quot;endpoint&quot;: { # The endpoint to be triggered for curation. The endpoint will be invoked with a request payload containing ApiMetadata. Response should contain curated data in the form of ApiMetadata. # Required. The endpoint to be triggered for curation.
206 &quot;applicationIntegrationEndpointDetails&quot;: { # The details of the Application Integration endpoint to be triggered for curation. # Required. The details of the Application Integration endpoint to be triggered for curation.
207 &quot;triggerId&quot;: &quot;A String&quot;, # Required. The API trigger ID of the Application Integration workflow.
208 &quot;uri&quot;: &quot;A String&quot;, # Required. The endpoint URI should be a valid REST URI for triggering an Application Integration. Format: `https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute` or `https://{location}-integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute`
209 },
210 },
211 &quot;lastExecutionErrorCode&quot;: &quot;A String&quot;, # Output only. The error code of the last execution of the curation. The error code is populated only when the last execution state is failed.
212 &quot;lastExecutionErrorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during the last execution of the curation.
213 &quot;lastExecutionState&quot;: &quot;A String&quot;, # Output only. The last execution state of the curation.
214 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the curation. Format: `projects/{project}/locations/{location}/curations/{curation}`
215 &quot;pluginInstanceActions&quot;: [ # Output only. The plugin instances and associated actions that are using the curation. Note: A particular curation could be used by multiple plugin instances or multiple actions in a plugin instance.
216 { # The plugin instance and associated action that is using the curation.
217 &quot;actionId&quot;: &quot;A String&quot;, # Output only. The action ID that is using the curation. This should map to one of the action IDs specified in action configs in the plugin.
218 &quot;pluginInstance&quot;: &quot;A String&quot;, # Output only. Plugin instance that is using the curation. Format is `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
219 },
220 ],
221 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the curation was last updated.
222 }</pre>
223 </div>
224
225 <div class="method">
226 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
227 <pre>List curation resources in the API hub.
228
229 Args:
230 parent: string, Required. The parent, which owns this collection of curation resources. Format: `projects/{project}/locations/{location}` (required)
231 filter: string, Optional. An expression that filters the list of curation resources. 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 case insensitive. The following fields in the `curation resource` are eligible for filtering: * `create_time` - The time at which the curation was created. The value should be in the (RFC3339)[https://tools.ietf.org/html/rfc3339] format. Allowed comparison operators: `&gt;` and `&lt;`. * `display_name` - The display name of the curation. Allowed comparison operators: `=`. * `state` - The state of the curation. 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: * `create_time &lt; \&quot;2021-08-15T14:50:00Z\&quot; AND create_time &gt; \&quot;2021-08-10T12:00:00Z\&quot;` - The curation resource was created before _2021-08-15 14:50:00 UTC_ and after _2021-08-10 12:00:00 UTC_.
232 pageSize: integer, Optional. The maximum number of curation resources to return. The service may return fewer than this value. If unspecified, at most 50 curations will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
233 pageToken: string, Optional. A page token, received from a previous `ListCurations` call. Provide this to retrieve the subsequent page. When paginating, all other parameters (except page_size) provided to `ListCurations` must match the call that provided the page token.
234 x__xgafv: string, V1 error format.
235 Allowed values
236 1 - v1 error format
237 2 - v2 error format
238
239 Returns:
240 An object of the form:
241
242 { # The ListCurations method&#x27;s response.
243 &quot;curations&quot;: [ # The curation resources present in the API hub.
244 { # A curation resource in the API Hub.
245 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the curation was created.
246 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the curation.
247 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the curation.
248 &quot;endpoint&quot;: { # The endpoint to be triggered for curation. The endpoint will be invoked with a request payload containing ApiMetadata. Response should contain curated data in the form of ApiMetadata. # Required. The endpoint to be triggered for curation.
249 &quot;applicationIntegrationEndpointDetails&quot;: { # The details of the Application Integration endpoint to be triggered for curation. # Required. The details of the Application Integration endpoint to be triggered for curation.
250 &quot;triggerId&quot;: &quot;A String&quot;, # Required. The API trigger ID of the Application Integration workflow.
251 &quot;uri&quot;: &quot;A String&quot;, # Required. The endpoint URI should be a valid REST URI for triggering an Application Integration. Format: `https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute` or `https://{location}-integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute`
252 },
253 },
254 &quot;lastExecutionErrorCode&quot;: &quot;A String&quot;, # Output only. The error code of the last execution of the curation. The error code is populated only when the last execution state is failed.
255 &quot;lastExecutionErrorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during the last execution of the curation.
256 &quot;lastExecutionState&quot;: &quot;A String&quot;, # Output only. The last execution state of the curation.
257 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the curation. Format: `projects/{project}/locations/{location}/curations/{curation}`
258 &quot;pluginInstanceActions&quot;: [ # Output only. The plugin instances and associated actions that are using the curation. Note: A particular curation could be used by multiple plugin instances or multiple actions in a plugin instance.
259 { # The plugin instance and associated action that is using the curation.
260 &quot;actionId&quot;: &quot;A String&quot;, # Output only. The action ID that is using the curation. This should map to one of the action IDs specified in action configs in the plugin.
261 &quot;pluginInstance&quot;: &quot;A String&quot;, # Output only. Plugin instance that is using the curation. Format is `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
262 },
263 ],
264 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the curation was last updated.
265 },
266 ],
267 &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.
268 }</pre>
269 </div>
270
271 <div class="method">
272 <code class="details" id="list_next">list_next()</code>
273 <pre>Retrieves the next page of results.
274
275 Args:
276 previous_request: The request for the previous page. (required)
277 previous_response: The response from the request for the previous page. (required)
278
279 Returns:
280 A request object that you can call &#x27;execute()&#x27; on to request the next
281 page. Returns None if there are no more items in the collection.
282 </pre>
283 </div>
284
285 <div class="method">
286 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
287 <pre>Update a curation resource in the API hub. The following fields in the curation can be updated: * display_name * description The update_mask should be used to specify the fields being updated.
288
289 Args:
290 name: string, Identifier. The name of the curation. Format: `projects/{project}/locations/{location}/curations/{curation}` (required)
291 body: object, The request body.
292 The object takes the form of:
293
294 { # A curation resource in the API Hub.
295 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the curation was created.
296 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the curation.
297 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the curation.
298 &quot;endpoint&quot;: { # The endpoint to be triggered for curation. The endpoint will be invoked with a request payload containing ApiMetadata. Response should contain curated data in the form of ApiMetadata. # Required. The endpoint to be triggered for curation.
299 &quot;applicationIntegrationEndpointDetails&quot;: { # The details of the Application Integration endpoint to be triggered for curation. # Required. The details of the Application Integration endpoint to be triggered for curation.
300 &quot;triggerId&quot;: &quot;A String&quot;, # Required. The API trigger ID of the Application Integration workflow.
301 &quot;uri&quot;: &quot;A String&quot;, # Required. The endpoint URI should be a valid REST URI for triggering an Application Integration. Format: `https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute` or `https://{location}-integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute`
302 },
303 },
304 &quot;lastExecutionErrorCode&quot;: &quot;A String&quot;, # Output only. The error code of the last execution of the curation. The error code is populated only when the last execution state is failed.
305 &quot;lastExecutionErrorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during the last execution of the curation.
306 &quot;lastExecutionState&quot;: &quot;A String&quot;, # Output only. The last execution state of the curation.
307 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the curation. Format: `projects/{project}/locations/{location}/curations/{curation}`
308 &quot;pluginInstanceActions&quot;: [ # Output only. The plugin instances and associated actions that are using the curation. Note: A particular curation could be used by multiple plugin instances or multiple actions in a plugin instance.
309 { # The plugin instance and associated action that is using the curation.
310 &quot;actionId&quot;: &quot;A String&quot;, # Output only. The action ID that is using the curation. This should map to one of the action IDs specified in action configs in the plugin.
311 &quot;pluginInstance&quot;: &quot;A String&quot;, # Output only. Plugin instance that is using the curation. Format is `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
312 },
313 ],
314 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the curation was last updated.
315 }
316
317 updateMask: string, Optional. The list of fields to update.
318 x__xgafv: string, V1 error format.
319 Allowed values
320 1 - v1 error format
321 2 - v2 error format
322
323 Returns:
324 An object of the form:
325
326 { # A curation resource in the API Hub.
327 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the curation was created.
328 &quot;description&quot;: &quot;A String&quot;, # Optional. The description of the curation.
329 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the curation.
330 &quot;endpoint&quot;: { # The endpoint to be triggered for curation. The endpoint will be invoked with a request payload containing ApiMetadata. Response should contain curated data in the form of ApiMetadata. # Required. The endpoint to be triggered for curation.
331 &quot;applicationIntegrationEndpointDetails&quot;: { # The details of the Application Integration endpoint to be triggered for curation. # Required. The details of the Application Integration endpoint to be triggered for curation.
332 &quot;triggerId&quot;: &quot;A String&quot;, # Required. The API trigger ID of the Application Integration workflow.
333 &quot;uri&quot;: &quot;A String&quot;, # Required. The endpoint URI should be a valid REST URI for triggering an Application Integration. Format: `https://integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute` or `https://{location}-integrations.googleapis.com/v1/{name=projects/*/locations/*/integrations/*}:execute`
334 },
335 },
336 &quot;lastExecutionErrorCode&quot;: &quot;A String&quot;, # Output only. The error code of the last execution of the curation. The error code is populated only when the last execution state is failed.
337 &quot;lastExecutionErrorMessage&quot;: &quot;A String&quot;, # Output only. Error message describing the failure, if any, during the last execution of the curation.
338 &quot;lastExecutionState&quot;: &quot;A String&quot;, # Output only. The last execution state of the curation.
339 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the curation. Format: `projects/{project}/locations/{location}/curations/{curation}`
340 &quot;pluginInstanceActions&quot;: [ # Output only. The plugin instances and associated actions that are using the curation. Note: A particular curation could be used by multiple plugin instances or multiple actions in a plugin instance.
341 { # The plugin instance and associated action that is using the curation.
342 &quot;actionId&quot;: &quot;A String&quot;, # Output only. The action ID that is using the curation. This should map to one of the action IDs specified in action configs in the plugin.
343 &quot;pluginInstance&quot;: &quot;A String&quot;, # Output only. Plugin instance that is using the curation. Format is `projects/{project}/locations/{location}/plugins/{plugin}/instances/{instance}`
344 },
345 ],
346 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the curation was last updated.
347 }</pre>
348 </div>
349
350 </body></html>