Debian Codegraph @

docs/dyn/apihub_v1.projects.locations.dependencies.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.dependencies.html">dependencies</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, dependencyId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Create a dependency between two entities in the API hub.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, x__xgafv=None)</a></code></p>
85 <p class="firstline">Delete the dependency resource.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Get details about a dependency resource in the API hub.</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 dependencies based on the provided filter and pagination parameters.</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 dependency based on the update_mask provided in the request. The following fields in the dependency can be updated: * description</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, dependencyId=None, x__xgafv=None)</code>
106 <pre>Create a dependency between two entities in the API hub.
107
108 Args:
109 parent: string, Required. The parent resource for the dependency resource. Format: `projects/{project}/locations/{location}` (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # A dependency resource defined in the API hub describes a dependency directed from a consumer to a supplier entity. A dependency can be defined between two Operations or between an Operation and External API.
114 &quot;attributes&quot;: { # Optional. The list of user defined attributes associated with the dependency resource. The key is the attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the attribute values associated with the resource.
115 &quot;a_key&quot;: { # The attribute values associated with resource.
116 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
117 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
118 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
119 { # The value that can be assigned to the attribute when the data type is enum.
120 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
121 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
122 &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-/.
123 &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.
124 },
125 ],
126 },
127 &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.
128 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
129 &quot;A String&quot;,
130 ],
131 },
132 &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.
133 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
134 &quot;A String&quot;,
135 ],
136 },
137 &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.
138 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
139 &quot;A String&quot;,
140 ],
141 },
142 },
143 },
144 &quot;consumer&quot;: { # Reference to an entity participating in a dependency. # Required. Immutable. The entity acting as the consumer in the dependency.
145 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the entity.
146 &quot;externalApiResourceName&quot;: &quot;A String&quot;, # The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
147 &quot;operationResourceName&quot;: &quot;A String&quot;, # The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
148 },
149 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the dependency was created.
150 &quot;description&quot;: &quot;A String&quot;, # Optional. Human readable description corresponding of the dependency.
151 &quot;discoveryMode&quot;: &quot;A String&quot;, # Output only. Discovery mode of the dependency.
152 &quot;errorDetail&quot;: { # Details describing error condition of a dependency. # Output only. Error details of a dependency if the system has detected it internally.
153 &quot;error&quot;: &quot;A String&quot;, # Optional. Error in the dependency.
154 &quot;errorTime&quot;: &quot;A String&quot;, # Optional. Timestamp at which the error was found.
155 },
156 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the dependency in the API Hub. Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
157 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the dependency.
158 &quot;supplier&quot;: { # Reference to an entity participating in a dependency. # Required. Immutable. The entity acting as the supplier in the dependency.
159 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the entity.
160 &quot;externalApiResourceName&quot;: &quot;A String&quot;, # The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
161 &quot;operationResourceName&quot;: &quot;A String&quot;, # The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
162 },
163 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the dependency was last updated.
164 }
165
166 dependencyId: string, Optional. The ID to use for the dependency resource, which will become the final component of the dependency&#x27;s resource name. This field is optional. * If provided, the same will be used. The service will throw an error if duplicate id is provided by the client. * 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]-_`.
167 x__xgafv: string, V1 error format.
168 Allowed values
169 1 - v1 error format
170 2 - v2 error format
171
172 Returns:
173 An object of the form:
174
175 { # A dependency resource defined in the API hub describes a dependency directed from a consumer to a supplier entity. A dependency can be defined between two Operations or between an Operation and External API.
176 &quot;attributes&quot;: { # Optional. The list of user defined attributes associated with the dependency resource. The key is the attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the attribute values associated with the resource.
177 &quot;a_key&quot;: { # The attribute values associated with resource.
178 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
179 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
180 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
181 { # The value that can be assigned to the attribute when the data type is enum.
182 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
183 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
184 &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-/.
185 &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.
186 },
187 ],
188 },
189 &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.
190 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
191 &quot;A String&quot;,
192 ],
193 },
194 &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.
195 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
196 &quot;A String&quot;,
197 ],
198 },
199 &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.
200 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
201 &quot;A String&quot;,
202 ],
203 },
204 },
205 },
206 &quot;consumer&quot;: { # Reference to an entity participating in a dependency. # Required. Immutable. The entity acting as the consumer in the dependency.
207 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the entity.
208 &quot;externalApiResourceName&quot;: &quot;A String&quot;, # The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
209 &quot;operationResourceName&quot;: &quot;A String&quot;, # The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
210 },
211 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the dependency was created.
212 &quot;description&quot;: &quot;A String&quot;, # Optional. Human readable description corresponding of the dependency.
213 &quot;discoveryMode&quot;: &quot;A String&quot;, # Output only. Discovery mode of the dependency.
214 &quot;errorDetail&quot;: { # Details describing error condition of a dependency. # Output only. Error details of a dependency if the system has detected it internally.
215 &quot;error&quot;: &quot;A String&quot;, # Optional. Error in the dependency.
216 &quot;errorTime&quot;: &quot;A String&quot;, # Optional. Timestamp at which the error was found.
217 },
218 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the dependency in the API Hub. Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
219 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the dependency.
220 &quot;supplier&quot;: { # Reference to an entity participating in a dependency. # Required. Immutable. The entity acting as the supplier in the dependency.
221 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the entity.
222 &quot;externalApiResourceName&quot;: &quot;A String&quot;, # The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
223 &quot;operationResourceName&quot;: &quot;A String&quot;, # The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
224 },
225 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the dependency was last updated.
226 }</pre>
227 </div>
228
229 <div class="method">
230 <code class="details" id="delete">delete(name, x__xgafv=None)</code>
231 <pre>Delete the dependency resource.
232
233 Args:
234 name: string, Required. The name of the dependency resource to delete. Format: `projects/{project}/locations/{location}/dependencies/{dependency}` (required)
235 x__xgafv: string, V1 error format.
236 Allowed values
237 1 - v1 error format
238 2 - v2 error format
239
240 Returns:
241 An object of the form:
242
243 { # 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); }
244 }</pre>
245 </div>
246
247 <div class="method">
248 <code class="details" id="get">get(name, x__xgafv=None)</code>
249 <pre>Get details about a dependency resource in the API hub.
250
251 Args:
252 name: string, Required. The name of the dependency resource to retrieve. Format: `projects/{project}/locations/{location}/dependencies/{dependency}` (required)
253 x__xgafv: string, V1 error format.
254 Allowed values
255 1 - v1 error format
256 2 - v2 error format
257
258 Returns:
259 An object of the form:
260
261 { # A dependency resource defined in the API hub describes a dependency directed from a consumer to a supplier entity. A dependency can be defined between two Operations or between an Operation and External API.
262 &quot;attributes&quot;: { # Optional. The list of user defined attributes associated with the dependency resource. The key is the attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the attribute values associated with the resource.
263 &quot;a_key&quot;: { # The attribute values associated with resource.
264 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
265 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
266 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
267 { # The value that can be assigned to the attribute when the data type is enum.
268 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
269 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
270 &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-/.
271 &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.
272 },
273 ],
274 },
275 &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.
276 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
277 &quot;A String&quot;,
278 ],
279 },
280 &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.
281 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
282 &quot;A String&quot;,
283 ],
284 },
285 &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.
286 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
287 &quot;A String&quot;,
288 ],
289 },
290 },
291 },
292 &quot;consumer&quot;: { # Reference to an entity participating in a dependency. # Required. Immutable. The entity acting as the consumer in the dependency.
293 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the entity.
294 &quot;externalApiResourceName&quot;: &quot;A String&quot;, # The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
295 &quot;operationResourceName&quot;: &quot;A String&quot;, # The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
296 },
297 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the dependency was created.
298 &quot;description&quot;: &quot;A String&quot;, # Optional. Human readable description corresponding of the dependency.
299 &quot;discoveryMode&quot;: &quot;A String&quot;, # Output only. Discovery mode of the dependency.
300 &quot;errorDetail&quot;: { # Details describing error condition of a dependency. # Output only. Error details of a dependency if the system has detected it internally.
301 &quot;error&quot;: &quot;A String&quot;, # Optional. Error in the dependency.
302 &quot;errorTime&quot;: &quot;A String&quot;, # Optional. Timestamp at which the error was found.
303 },
304 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the dependency in the API Hub. Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
305 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the dependency.
306 &quot;supplier&quot;: { # Reference to an entity participating in a dependency. # Required. Immutable. The entity acting as the supplier in the dependency.
307 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the entity.
308 &quot;externalApiResourceName&quot;: &quot;A String&quot;, # The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
309 &quot;operationResourceName&quot;: &quot;A String&quot;, # The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
310 },
311 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the dependency was last updated.
312 }</pre>
313 </div>
314
315 <div class="method">
316 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
317 <pre>List dependencies based on the provided filter and pagination parameters.
318
319 Args:
320 parent: string, Required. The parent which owns this collection of dependency resources. Format: `projects/{project}/locations/{location}` (required)
321 filter: string, Optional. An expression that filters the list of Dependencies. A filter expression consists of a field name, a comparison operator, and a value for filtering. The value must be a string. Allowed comparison operator is `=`. Filters are not case sensitive. The following fields in the `Dependency` are eligible for filtering: * `consumer.operation_resource_name` - The operation resource name for the consumer entity involved in a dependency. Allowed comparison operators: `=`. * `consumer.external_api_resource_name` - The external api resource name for the consumer entity involved in a dependency. Allowed comparison operators: `=`. * `supplier.operation_resource_name` - The operation resource name for the supplier entity involved in a dependency. Allowed comparison operators: `=`. * `supplier.external_api_resource_name` - The external api resource name for the supplier entity involved in a dependency. 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. For example, `consumer.operation_resource_name = \&quot;projects/p1/locations/global/apis/a1/versions/v1/operations/o1\&quot; OR supplier.operation_resource_name = \&quot;projects/p1/locations/global/apis/a1/versions/v1/operations/o1\&quot;` - The dependencies with either consumer or supplier operation resource name as _projects/p1/locations/global/apis/a1/versions/v1/operations/o1_.
322 pageSize: integer, Optional. The maximum number of dependency resources to return. The service may return fewer than this value. If unspecified, at most 50 dependencies will be returned. The maximum value is 1000; values above 1000 will be coerced to 1000.
323 pageToken: string, Optional. A page token, received from a previous `ListDependencies` call. Provide this to retrieve the subsequent page. When paginating, all other parameters provided to `ListDependencies` must match the call that provided the page token.
324 x__xgafv: string, V1 error format.
325 Allowed values
326 1 - v1 error format
327 2 - v2 error format
328
329 Returns:
330 An object of the form:
331
332 { # The ListDependencies method&#x27;s response.
333 &quot;dependencies&quot;: [ # The dependency resources present in the API hub.
334 { # A dependency resource defined in the API hub describes a dependency directed from a consumer to a supplier entity. A dependency can be defined between two Operations or between an Operation and External API.
335 &quot;attributes&quot;: { # Optional. The list of user defined attributes associated with the dependency resource. The key is the attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the attribute values associated with the resource.
336 &quot;a_key&quot;: { # The attribute values associated with resource.
337 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
338 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
339 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
340 { # The value that can be assigned to the attribute when the data type is enum.
341 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
342 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
343 &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-/.
344 &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.
345 },
346 ],
347 },
348 &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.
349 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
350 &quot;A String&quot;,
351 ],
352 },
353 &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.
354 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
355 &quot;A String&quot;,
356 ],
357 },
358 &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.
359 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
360 &quot;A String&quot;,
361 ],
362 },
363 },
364 },
365 &quot;consumer&quot;: { # Reference to an entity participating in a dependency. # Required. Immutable. The entity acting as the consumer in the dependency.
366 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the entity.
367 &quot;externalApiResourceName&quot;: &quot;A String&quot;, # The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
368 &quot;operationResourceName&quot;: &quot;A String&quot;, # The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
369 },
370 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the dependency was created.
371 &quot;description&quot;: &quot;A String&quot;, # Optional. Human readable description corresponding of the dependency.
372 &quot;discoveryMode&quot;: &quot;A String&quot;, # Output only. Discovery mode of the dependency.
373 &quot;errorDetail&quot;: { # Details describing error condition of a dependency. # Output only. Error details of a dependency if the system has detected it internally.
374 &quot;error&quot;: &quot;A String&quot;, # Optional. Error in the dependency.
375 &quot;errorTime&quot;: &quot;A String&quot;, # Optional. Timestamp at which the error was found.
376 },
377 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the dependency in the API Hub. Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
378 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the dependency.
379 &quot;supplier&quot;: { # Reference to an entity participating in a dependency. # Required. Immutable. The entity acting as the supplier in the dependency.
380 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the entity.
381 &quot;externalApiResourceName&quot;: &quot;A String&quot;, # The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
382 &quot;operationResourceName&quot;: &quot;A String&quot;, # The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
383 },
384 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the dependency was last updated.
385 },
386 ],
387 &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.
388 }</pre>
389 </div>
390
391 <div class="method">
392 <code class="details" id="list_next">list_next()</code>
393 <pre>Retrieves the next page of results.
394
395 Args:
396 previous_request: The request for the previous page. (required)
397 previous_response: The response from the request for the previous page. (required)
398
399 Returns:
400 A request object that you can call &#x27;execute()&#x27; on to request the next
401 page. Returns None if there are no more items in the collection.
402 </pre>
403 </div>
404
405 <div class="method">
406 <code class="details" id="patch">patch(name, body=None, updateMask=None, x__xgafv=None)</code>
407 <pre>Update a dependency based on the update_mask provided in the request. The following fields in the dependency can be updated: * description
408
409 Args:
410 name: string, Identifier. The name of the dependency in the API Hub. Format: `projects/{project}/locations/{location}/dependencies/{dependency}` (required)
411 body: object, The request body.
412 The object takes the form of:
413
414 { # A dependency resource defined in the API hub describes a dependency directed from a consumer to a supplier entity. A dependency can be defined between two Operations or between an Operation and External API.
415 &quot;attributes&quot;: { # Optional. The list of user defined attributes associated with the dependency resource. The key is the attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the attribute values associated with the resource.
416 &quot;a_key&quot;: { # The attribute values associated with resource.
417 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
418 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
419 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
420 { # The value that can be assigned to the attribute when the data type is enum.
421 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
422 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
423 &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-/.
424 &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.
425 },
426 ],
427 },
428 &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.
429 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
430 &quot;A String&quot;,
431 ],
432 },
433 &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.
434 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
435 &quot;A String&quot;,
436 ],
437 },
438 &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.
439 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
440 &quot;A String&quot;,
441 ],
442 },
443 },
444 },
445 &quot;consumer&quot;: { # Reference to an entity participating in a dependency. # Required. Immutable. The entity acting as the consumer in the dependency.
446 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the entity.
447 &quot;externalApiResourceName&quot;: &quot;A String&quot;, # The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
448 &quot;operationResourceName&quot;: &quot;A String&quot;, # The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
449 },
450 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the dependency was created.
451 &quot;description&quot;: &quot;A String&quot;, # Optional. Human readable description corresponding of the dependency.
452 &quot;discoveryMode&quot;: &quot;A String&quot;, # Output only. Discovery mode of the dependency.
453 &quot;errorDetail&quot;: { # Details describing error condition of a dependency. # Output only. Error details of a dependency if the system has detected it internally.
454 &quot;error&quot;: &quot;A String&quot;, # Optional. Error in the dependency.
455 &quot;errorTime&quot;: &quot;A String&quot;, # Optional. Timestamp at which the error was found.
456 },
457 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the dependency in the API Hub. Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
458 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the dependency.
459 &quot;supplier&quot;: { # Reference to an entity participating in a dependency. # Required. Immutable. The entity acting as the supplier in the dependency.
460 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the entity.
461 &quot;externalApiResourceName&quot;: &quot;A String&quot;, # The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
462 &quot;operationResourceName&quot;: &quot;A String&quot;, # The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
463 },
464 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the dependency was last updated.
465 }
466
467 updateMask: string, Required. The list of fields to update.
468 x__xgafv: string, V1 error format.
469 Allowed values
470 1 - v1 error format
471 2 - v2 error format
472
473 Returns:
474 An object of the form:
475
476 { # A dependency resource defined in the API hub describes a dependency directed from a consumer to a supplier entity. A dependency can be defined between two Operations or between an Operation and External API.
477 &quot;attributes&quot;: { # Optional. The list of user defined attributes associated with the dependency resource. The key is the attribute name. It will be of the format: `projects/{project}/locations/{location}/attributes/{attribute}`. The value is the attribute values associated with the resource.
478 &quot;a_key&quot;: { # The attribute values associated with resource.
479 &quot;attribute&quot;: &quot;A String&quot;, # Output only. The name of the attribute. Format: projects/{project}/locations/{location}/attributes/{attribute}
480 &quot;enumValues&quot;: { # The attribute values of data type enum. # The attribute values associated with a resource in case attribute data type is enum.
481 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is enum.
482 { # The value that can be assigned to the attribute when the data type is enum.
483 &quot;description&quot;: &quot;A String&quot;, # Optional. The detailed description of the allowed value.
484 &quot;displayName&quot;: &quot;A String&quot;, # Required. The display name of the allowed value.
485 &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-/.
486 &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.
487 },
488 ],
489 },
490 &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.
491 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
492 &quot;A String&quot;,
493 ],
494 },
495 &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.
496 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
497 &quot;A String&quot;,
498 ],
499 },
500 &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.
501 &quot;values&quot;: [ # Required. The attribute values in case attribute data type is string or JSON.
502 &quot;A String&quot;,
503 ],
504 },
505 },
506 },
507 &quot;consumer&quot;: { # Reference to an entity participating in a dependency. # Required. Immutable. The entity acting as the consumer in the dependency.
508 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the entity.
509 &quot;externalApiResourceName&quot;: &quot;A String&quot;, # The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
510 &quot;operationResourceName&quot;: &quot;A String&quot;, # The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
511 },
512 &quot;createTime&quot;: &quot;A String&quot;, # Output only. The time at which the dependency was created.
513 &quot;description&quot;: &quot;A String&quot;, # Optional. Human readable description corresponding of the dependency.
514 &quot;discoveryMode&quot;: &quot;A String&quot;, # Output only. Discovery mode of the dependency.
515 &quot;errorDetail&quot;: { # Details describing error condition of a dependency. # Output only. Error details of a dependency if the system has detected it internally.
516 &quot;error&quot;: &quot;A String&quot;, # Optional. Error in the dependency.
517 &quot;errorTime&quot;: &quot;A String&quot;, # Optional. Timestamp at which the error was found.
518 },
519 &quot;name&quot;: &quot;A String&quot;, # Identifier. The name of the dependency in the API Hub. Format: `projects/{project}/locations/{location}/dependencies/{dependency}`
520 &quot;state&quot;: &quot;A String&quot;, # Output only. State of the dependency.
521 &quot;supplier&quot;: { # Reference to an entity participating in a dependency. # Required. Immutable. The entity acting as the supplier in the dependency.
522 &quot;displayName&quot;: &quot;A String&quot;, # Output only. Display name of the entity.
523 &quot;externalApiResourceName&quot;: &quot;A String&quot;, # The resource name of an external API in the API Hub. Format: `projects/{project}/locations/{location}/externalApis/{external_api}`
524 &quot;operationResourceName&quot;: &quot;A String&quot;, # The resource name of an operation in the API Hub. Format: `projects/{project}/locations/{location}/apis/{api}/versions/{version}/operations/{operation}`
525 },
526 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. The time at which the dependency was last updated.
527 }</pre>
528 </div>
529
530 </body></html>