Debian Codegraph @

docs/dyn/agentregistry_v1alpha.projects.locations.services.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="agentregistry_v1alpha.html">Agent Registry API</a> . <a href="agentregistry_v1alpha.projects.html">projects</a> . <a href="agentregistry_v1alpha.projects.locations.html">locations</a> . <a href="agentregistry_v1alpha.projects.locations.services.html">services</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, requestId=None, serviceId=None, x__xgafv=None)</a></code></p>
82 <p class="firstline">Creates a new Service in a given project and location.</p>
83 <p class="toc_element">
84 <code><a href="#delete">delete(name, requestId=None, x__xgafv=None)</a></code></p>
85 <p class="firstline">Deletes a single Service.</p>
86 <p class="toc_element">
87 <code><a href="#get">get(name, x__xgafv=None)</a></code></p>
88 <p class="firstline">Gets details of a single Service.</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">Lists Services in a given project and location.</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, requestId=None, updateMask=None, x__xgafv=None)</a></code></p>
97 <p class="firstline">Updates the parameters of a single Service.</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, requestId=None, serviceId=None, x__xgafv=None)</code>
106 <pre>Creates a new Service in a given project and location.
107
108 Args:
109 parent: string, Required. The project and location to create the Service in. Expected format: `projects/{project}/locations/{location}`. (required)
110 body: object, The request body.
111 The object takes the form of:
112
113 { # Represents a user-defined Service.
114 &quot;agentSpec&quot;: { # The spec of the agent. # Optional. The spec of the Agent. When `agent_spec` is set, the type of the service is Agent.
115 &quot;content&quot;: { # Optional. The content of the Agent spec in the JSON format. This payload is validated against the schema for the specified type. The content size is limited to `10KB`.
116 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
117 },
118 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the agent spec content.
119 },
120 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time.
121 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of an Service. Can have a maximum length of `2048` characters.
122 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-defined display name for the Service. Can have a maximum length of `63` characters.
123 &quot;endpointSpec&quot;: { # The spec of the endpoint. # Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type of the service is Endpoint.
124 &quot;content&quot;: { # Optional. The content of the endpoint spec. Reserved for future use.
125 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
126 },
127 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the endpoint spec content.
128 },
129 &quot;interfaces&quot;: [ # Optional. The connection details for the Service.
130 { # Represents the connection details for an Agent or MCP Server.
131 &quot;protocolBinding&quot;: &quot;A String&quot;, # Required. The protocol binding of the interface.
132 &quot;url&quot;: &quot;A String&quot;, # Required. The destination URL.
133 },
134 ],
135 &quot;mcpServerSpec&quot;: { # The spec of the MCP Server. # Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the type of the service is MCP Server.
136 &quot;content&quot;: { # Optional. The content of the MCP Server spec. This payload is validated against the schema for the specified type. The content size is limited to `10KB`.
137 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
138 },
139 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the MCP Server spec content.
140 },
141 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Service. Format: `projects/{project}/locations/{location}/services/{service}`.
142 &quot;registryResource&quot;: &quot;A String&quot;, # Output only. The resource name of the resulting Agent, MCP Server, or Endpoint. Format: * `projects/{project}/locations/{location}/mcpServers/{mcp_server}` * `projects/{project}/locations/{location}/agents/{agent}` * `projects/{project}/locations/{location}/endpoints/{endpoint}`
143 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time.
144 }
145
146 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
147 serviceId: string, Required. The ID to use for the service, which will become the final component of the service&#x27;s resource name. This value should be 4-63 characters, and valid characters are `/a-z-/`.
148 x__xgafv: string, V1 error format.
149 Allowed values
150 1 - v1 error format
151 2 - v2 error format
152
153 Returns:
154 An object of the form:
155
156 { # This resource represents a long-running operation that is the result of a network API call.
157 &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.
158 &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.
159 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
160 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
161 {
162 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
163 },
164 ],
165 &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.
166 },
167 &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.
168 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
169 },
170 &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}`.
171 &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`.
172 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
173 },
174 }</pre>
175 </div>
176
177 <div class="method">
178 <code class="details" id="delete">delete(name, requestId=None, x__xgafv=None)</code>
179 <pre>Deletes a single Service.
180
181 Args:
182 name: string, Required. The name of the Service. Format: `projects/{project}/locations/{location}/services/{service}`. (required)
183 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes after the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
184 x__xgafv: string, V1 error format.
185 Allowed values
186 1 - v1 error format
187 2 - v2 error format
188
189 Returns:
190 An object of the form:
191
192 { # This resource represents a long-running operation that is the result of a network API call.
193 &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.
194 &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.
195 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
196 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
197 {
198 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
199 },
200 ],
201 &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.
202 },
203 &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.
204 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
205 },
206 &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}`.
207 &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`.
208 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
209 },
210 }</pre>
211 </div>
212
213 <div class="method">
214 <code class="details" id="get">get(name, x__xgafv=None)</code>
215 <pre>Gets details of a single Service.
216
217 Args:
218 name: string, Required. The name of the Service. Format: `projects/{project}/locations/{location}/services/{service}`. (required)
219 x__xgafv: string, V1 error format.
220 Allowed values
221 1 - v1 error format
222 2 - v2 error format
223
224 Returns:
225 An object of the form:
226
227 { # Represents a user-defined Service.
228 &quot;agentSpec&quot;: { # The spec of the agent. # Optional. The spec of the Agent. When `agent_spec` is set, the type of the service is Agent.
229 &quot;content&quot;: { # Optional. The content of the Agent spec in the JSON format. This payload is validated against the schema for the specified type. The content size is limited to `10KB`.
230 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
231 },
232 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the agent spec content.
233 },
234 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time.
235 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of an Service. Can have a maximum length of `2048` characters.
236 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-defined display name for the Service. Can have a maximum length of `63` characters.
237 &quot;endpointSpec&quot;: { # The spec of the endpoint. # Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type of the service is Endpoint.
238 &quot;content&quot;: { # Optional. The content of the endpoint spec. Reserved for future use.
239 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
240 },
241 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the endpoint spec content.
242 },
243 &quot;interfaces&quot;: [ # Optional. The connection details for the Service.
244 { # Represents the connection details for an Agent or MCP Server.
245 &quot;protocolBinding&quot;: &quot;A String&quot;, # Required. The protocol binding of the interface.
246 &quot;url&quot;: &quot;A String&quot;, # Required. The destination URL.
247 },
248 ],
249 &quot;mcpServerSpec&quot;: { # The spec of the MCP Server. # Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the type of the service is MCP Server.
250 &quot;content&quot;: { # Optional. The content of the MCP Server spec. This payload is validated against the schema for the specified type. The content size is limited to `10KB`.
251 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
252 },
253 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the MCP Server spec content.
254 },
255 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Service. Format: `projects/{project}/locations/{location}/services/{service}`.
256 &quot;registryResource&quot;: &quot;A String&quot;, # Output only. The resource name of the resulting Agent, MCP Server, or Endpoint. Format: * `projects/{project}/locations/{location}/mcpServers/{mcp_server}` * `projects/{project}/locations/{location}/agents/{agent}` * `projects/{project}/locations/{location}/endpoints/{endpoint}`
257 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time.
258 }</pre>
259 </div>
260
261 <div class="method">
262 <code class="details" id="list">list(parent, filter=None, pageSize=None, pageToken=None, x__xgafv=None)</code>
263 <pre>Lists Services in a given project and location.
264
265 Args:
266 parent: string, Required. The project and location to list services in. Expected format: `projects/{project}/locations/{location}`. (required)
267 filter: string, Optional. A query string used to filter the list of services returned. The filter expression must follow AIP-160 syntax. Filtering is supported on the `name`, `display_name`, `description`, and `labels` fields. Some examples: * `name = &quot;projects/p1/locations/l1/services/s1&quot;` * `display_name = &quot;my-service&quot;` * `description : &quot;myservice description&quot;` * `labels.env = &quot;prod&quot;`
268 pageSize: integer, Optional. Requested page size. Server may return fewer items than requested. If unspecified, server will pick an appropriate default.
269 pageToken: string, Optional. A token identifying a page of results the server should return.
270 x__xgafv: string, V1 error format.
271 Allowed values
272 1 - v1 error format
273 2 - v2 error format
274
275 Returns:
276 An object of the form:
277
278 { # Message for response to listing Services
279 &quot;nextPageToken&quot;: &quot;A String&quot;, # A token identifying a page of results the server should return. Used in page_token.
280 &quot;services&quot;: [ # The list of Service resources matching the parent and filter criteria in the request. Each Service resource follows the format: `projects/{project}/locations/{location}/services/{service}`.
281 { # Represents a user-defined Service.
282 &quot;agentSpec&quot;: { # The spec of the agent. # Optional. The spec of the Agent. When `agent_spec` is set, the type of the service is Agent.
283 &quot;content&quot;: { # Optional. The content of the Agent spec in the JSON format. This payload is validated against the schema for the specified type. The content size is limited to `10KB`.
284 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
285 },
286 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the agent spec content.
287 },
288 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time.
289 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of an Service. Can have a maximum length of `2048` characters.
290 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-defined display name for the Service. Can have a maximum length of `63` characters.
291 &quot;endpointSpec&quot;: { # The spec of the endpoint. # Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type of the service is Endpoint.
292 &quot;content&quot;: { # Optional. The content of the endpoint spec. Reserved for future use.
293 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
294 },
295 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the endpoint spec content.
296 },
297 &quot;interfaces&quot;: [ # Optional. The connection details for the Service.
298 { # Represents the connection details for an Agent or MCP Server.
299 &quot;protocolBinding&quot;: &quot;A String&quot;, # Required. The protocol binding of the interface.
300 &quot;url&quot;: &quot;A String&quot;, # Required. The destination URL.
301 },
302 ],
303 &quot;mcpServerSpec&quot;: { # The spec of the MCP Server. # Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the type of the service is MCP Server.
304 &quot;content&quot;: { # Optional. The content of the MCP Server spec. This payload is validated against the schema for the specified type. The content size is limited to `10KB`.
305 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
306 },
307 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the MCP Server spec content.
308 },
309 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Service. Format: `projects/{project}/locations/{location}/services/{service}`.
310 &quot;registryResource&quot;: &quot;A String&quot;, # Output only. The resource name of the resulting Agent, MCP Server, or Endpoint. Format: * `projects/{project}/locations/{location}/mcpServers/{mcp_server}` * `projects/{project}/locations/{location}/agents/{agent}` * `projects/{project}/locations/{location}/endpoints/{endpoint}`
311 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time.
312 },
313 ],
314 }</pre>
315 </div>
316
317 <div class="method">
318 <code class="details" id="list_next">list_next()</code>
319 <pre>Retrieves the next page of results.
320
321 Args:
322 previous_request: The request for the previous page. (required)
323 previous_response: The response from the request for the previous page. (required)
324
325 Returns:
326 A request object that you can call &#x27;execute()&#x27; on to request the next
327 page. Returns None if there are no more items in the collection.
328 </pre>
329 </div>
330
331 <div class="method">
332 <code class="details" id="patch">patch(name, body=None, requestId=None, updateMask=None, x__xgafv=None)</code>
333 <pre>Updates the parameters of a single Service.
334
335 Args:
336 name: string, Identifier. The resource name of the Service. Format: `projects/{project}/locations/{location}/services/{service}`. (required)
337 body: object, The request body.
338 The object takes the form of:
339
340 { # Represents a user-defined Service.
341 &quot;agentSpec&quot;: { # The spec of the agent. # Optional. The spec of the Agent. When `agent_spec` is set, the type of the service is Agent.
342 &quot;content&quot;: { # Optional. The content of the Agent spec in the JSON format. This payload is validated against the schema for the specified type. The content size is limited to `10KB`.
343 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
344 },
345 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the agent spec content.
346 },
347 &quot;createTime&quot;: &quot;A String&quot;, # Output only. Create time.
348 &quot;description&quot;: &quot;A String&quot;, # Optional. User-defined description of an Service. Can have a maximum length of `2048` characters.
349 &quot;displayName&quot;: &quot;A String&quot;, # Optional. User-defined display name for the Service. Can have a maximum length of `63` characters.
350 &quot;endpointSpec&quot;: { # The spec of the endpoint. # Optional. The spec of the Endpoint. When `endpoint_spec` is set, the type of the service is Endpoint.
351 &quot;content&quot;: { # Optional. The content of the endpoint spec. Reserved for future use.
352 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
353 },
354 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the endpoint spec content.
355 },
356 &quot;interfaces&quot;: [ # Optional. The connection details for the Service.
357 { # Represents the connection details for an Agent or MCP Server.
358 &quot;protocolBinding&quot;: &quot;A String&quot;, # Required. The protocol binding of the interface.
359 &quot;url&quot;: &quot;A String&quot;, # Required. The destination URL.
360 },
361 ],
362 &quot;mcpServerSpec&quot;: { # The spec of the MCP Server. # Optional. The spec of the MCP Server. When `mcp_server_spec` is set, the type of the service is MCP Server.
363 &quot;content&quot;: { # Optional. The content of the MCP Server spec. This payload is validated against the schema for the specified type. The content size is limited to `10KB`.
364 &quot;a_key&quot;: &quot;&quot;, # Properties of the object.
365 },
366 &quot;type&quot;: &quot;A String&quot;, # Required. The type of the MCP Server spec content.
367 },
368 &quot;name&quot;: &quot;A String&quot;, # Identifier. The resource name of the Service. Format: `projects/{project}/locations/{location}/services/{service}`.
369 &quot;registryResource&quot;: &quot;A String&quot;, # Output only. The resource name of the resulting Agent, MCP Server, or Endpoint. Format: * `projects/{project}/locations/{location}/mcpServers/{mcp_server}` * `projects/{project}/locations/{location}/agents/{agent}` * `projects/{project}/locations/{location}/endpoints/{endpoint}`
370 &quot;updateTime&quot;: &quot;A String&quot;, # Output only. Update time.
371 }
372
373 requestId: string, Optional. An optional request ID to identify requests. Specify a unique request ID so that if you must retry your request, the server will know to ignore the request if it has already been completed. The server will guarantee that for at least 60 minutes since the first request. For example, consider a situation where you make an initial request and the request times out. If you make the request again with the same request ID, the server can check if original operation with the same request ID was received, and if so, will ignore the second request. This prevents clients from accidentally creating duplicate commitments. The request ID must be a valid UUID with the exception that zero UUID is not supported (00000000-0000-0000-0000-000000000000).
374 updateMask: string, Optional. Field mask is used to specify the fields to be overwritten in the Service resource by the update. The fields specified in the update_mask are relative to the resource, not the full request. A field will be overwritten if it is in the mask. If the user does not provide a mask then all fields present in the request will be overwritten.
375 x__xgafv: string, V1 error format.
376 Allowed values
377 1 - v1 error format
378 2 - v2 error format
379
380 Returns:
381 An object of the form:
382
383 { # This resource represents a long-running operation that is the result of a network API call.
384 &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.
385 &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.
386 &quot;code&quot;: 42, # The status code, which should be an enum value of google.rpc.Code.
387 &quot;details&quot;: [ # A list of messages that carry the error details. There is a common set of message types for APIs to use.
388 {
389 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
390 },
391 ],
392 &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.
393 },
394 &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.
395 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
396 },
397 &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}`.
398 &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`.
399 &quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
400 },
401 }</pre>
402 </div>
403
404 </body></html>