OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis.runtimeconfig.v1; | 3 library googleapis.runtimeconfig.v1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
137 uploadOptions: _uploadOptions, | 137 uploadOptions: _uploadOptions, |
138 uploadMedia: _uploadMedia, | 138 uploadMedia: _uploadMedia, |
139 downloadOptions: _downloadOptions); | 139 downloadOptions: _downloadOptions); |
140 return _response.then((data) => new Empty.fromJson(data)); | 140 return _response.then((data) => new Empty.fromJson(data)); |
141 } | 141 } |
142 | 142 |
143 /** | 143 /** |
144 * Lists operations that match the specified filter in the request. If the | 144 * Lists operations that match the specified filter in the request. If the |
145 * server doesn't support this method, it returns `UNIMPLEMENTED`. | 145 * server doesn't support this method, it returns `UNIMPLEMENTED`. |
146 * | 146 * |
147 * NOTE: the `name` binding below allows API services to override the binding | 147 * NOTE: the `name` binding allows API services to override the binding |
148 * to use different resource name schemes, such as `users / * /operations`. | 148 * to use different resource name schemes, such as `users / * /operations`. To |
| 149 * override the binding, API services can add a binding such as |
| 150 * `"/v1/{name=users / * }/operations"` to their service configuration. |
| 151 * For backwards compatibility, the default name includes the operations |
| 152 * collection id, however overriding users must ensure the name binding |
| 153 * is the parent resource, without the operations collection id. |
149 * | 154 * |
150 * Request parameters: | 155 * Request parameters: |
151 * | 156 * |
152 * [name] - The name of the operation collection. | 157 * [name] - The name of the operation's parent resource. |
153 * Value must have pattern "^operations$". | 158 * Value must have pattern "^operations$". |
154 * | 159 * |
155 * [filter] - The standard list filter. | 160 * [filter] - The standard list filter. |
156 * | 161 * |
157 * [pageToken] - The standard list page token. | 162 * [pageToken] - The standard list page token. |
158 * | 163 * |
159 * [pageSize] - The standard list page size. | 164 * [pageSize] - The standard list page size. |
160 * | 165 * |
161 * Completes with a [ListOperationsResponse]. | 166 * Completes with a [ListOperationsResponse]. |
162 * | 167 * |
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
204 | 209 |
205 | 210 |
206 /** The request message for Operations.CancelOperation. */ | 211 /** The request message for Operations.CancelOperation. */ |
207 class CancelOperationRequest { | 212 class CancelOperationRequest { |
208 | 213 |
209 CancelOperationRequest(); | 214 CancelOperationRequest(); |
210 | 215 |
211 CancelOperationRequest.fromJson(core.Map _json) { | 216 CancelOperationRequest.fromJson(core.Map _json) { |
212 } | 217 } |
213 | 218 |
214 core.Map toJson() { | 219 core.Map<core.String, core.Object> toJson() { |
215 var _json = new core.Map(); | 220 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
216 return _json; | 221 return _json; |
217 } | 222 } |
218 } | 223 } |
219 | 224 |
220 /** | 225 /** |
221 * A generic empty message that you can re-use to avoid defining duplicated | 226 * A generic empty message that you can re-use to avoid defining duplicated |
222 * empty messages in your APIs. A typical example is to use it as the request | 227 * empty messages in your APIs. A typical example is to use it as the request |
223 * or the response type of an API method. For instance: | 228 * or the response type of an API method. For instance: |
224 * | 229 * |
225 * service Foo { | 230 * service Foo { |
226 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 231 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
227 * } | 232 * } |
228 * | 233 * |
229 * The JSON representation for `Empty` is empty JSON object `{}`. | 234 * The JSON representation for `Empty` is empty JSON object `{}`. |
230 */ | 235 */ |
231 class Empty { | 236 class Empty { |
232 | 237 |
233 Empty(); | 238 Empty(); |
234 | 239 |
235 Empty.fromJson(core.Map _json) { | 240 Empty.fromJson(core.Map _json) { |
236 } | 241 } |
237 | 242 |
238 core.Map toJson() { | 243 core.Map<core.String, core.Object> toJson() { |
239 var _json = new core.Map(); | 244 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
240 return _json; | 245 return _json; |
241 } | 246 } |
242 } | 247 } |
243 | 248 |
244 /** The response message for Operations.ListOperations. */ | 249 /** The response message for Operations.ListOperations. */ |
245 class ListOperationsResponse { | 250 class ListOperationsResponse { |
246 /** The standard List next-page token. */ | 251 /** The standard List next-page token. */ |
247 core.String nextPageToken; | 252 core.String nextPageToken; |
248 /** A list of operations that matches the specified filter in the request. */ | 253 /** A list of operations that matches the specified filter in the request. */ |
249 core.List<Operation> operations; | 254 core.List<Operation> operations; |
250 | 255 |
251 ListOperationsResponse(); | 256 ListOperationsResponse(); |
252 | 257 |
253 ListOperationsResponse.fromJson(core.Map _json) { | 258 ListOperationsResponse.fromJson(core.Map _json) { |
254 if (_json.containsKey("nextPageToken")) { | 259 if (_json.containsKey("nextPageToken")) { |
255 nextPageToken = _json["nextPageToken"]; | 260 nextPageToken = _json["nextPageToken"]; |
256 } | 261 } |
257 if (_json.containsKey("operations")) { | 262 if (_json.containsKey("operations")) { |
258 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 263 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); |
259 } | 264 } |
260 } | 265 } |
261 | 266 |
262 core.Map toJson() { | 267 core.Map<core.String, core.Object> toJson() { |
263 var _json = new core.Map(); | 268 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
264 if (nextPageToken != null) { | 269 if (nextPageToken != null) { |
265 _json["nextPageToken"] = nextPageToken; | 270 _json["nextPageToken"] = nextPageToken; |
266 } | 271 } |
267 if (operations != null) { | 272 if (operations != null) { |
268 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 273 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; |
269 } | 274 } |
270 return _json; | 275 return _json; |
271 } | 276 } |
272 } | 277 } |
273 | 278 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
328 metadata = _json["metadata"]; | 333 metadata = _json["metadata"]; |
329 } | 334 } |
330 if (_json.containsKey("name")) { | 335 if (_json.containsKey("name")) { |
331 name = _json["name"]; | 336 name = _json["name"]; |
332 } | 337 } |
333 if (_json.containsKey("response")) { | 338 if (_json.containsKey("response")) { |
334 response = _json["response"]; | 339 response = _json["response"]; |
335 } | 340 } |
336 } | 341 } |
337 | 342 |
338 core.Map toJson() { | 343 core.Map<core.String, core.Object> toJson() { |
339 var _json = new core.Map(); | 344 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
340 if (done != null) { | 345 if (done != null) { |
341 _json["done"] = done; | 346 _json["done"] = done; |
342 } | 347 } |
343 if (error != null) { | 348 if (error != null) { |
344 _json["error"] = (error).toJson(); | 349 _json["error"] = (error).toJson(); |
345 } | 350 } |
346 if (metadata != null) { | 351 if (metadata != null) { |
347 _json["metadata"] = metadata; | 352 _json["metadata"] = metadata; |
348 } | 353 } |
349 if (name != null) { | 354 if (name != null) { |
(...skipping 19 matching lines...) Expand all Loading... |
369 * | 374 * |
370 * The `Status` message contains three pieces of data: error code, error | 375 * The `Status` message contains three pieces of data: error code, error |
371 * message, | 376 * message, |
372 * and error details. The error code should be an enum value of | 377 * and error details. The error code should be an enum value of |
373 * google.rpc.Code, but it may accept additional error codes if needed. The | 378 * google.rpc.Code, but it may accept additional error codes if needed. The |
374 * error message should be a developer-facing English message that helps | 379 * error message should be a developer-facing English message that helps |
375 * developers *understand* and *resolve* the error. If a localized user-facing | 380 * developers *understand* and *resolve* the error. If a localized user-facing |
376 * error message is needed, put the localized message in the error details or | 381 * error message is needed, put the localized message in the error details or |
377 * localize it in the client. The optional error details may contain arbitrary | 382 * localize it in the client. The optional error details may contain arbitrary |
378 * information about the error. There is a predefined set of error detail types | 383 * information about the error. There is a predefined set of error detail types |
379 * in the package `google.rpc` which can be used for common error conditions. | 384 * in the package `google.rpc` that can be used for common error conditions. |
380 * | 385 * |
381 * # Language mapping | 386 * # Language mapping |
382 * | 387 * |
383 * The `Status` message is the logical representation of the error model, but it | 388 * The `Status` message is the logical representation of the error model, but it |
384 * is not necessarily the actual wire format. When the `Status` message is | 389 * is not necessarily the actual wire format. When the `Status` message is |
385 * exposed in different client libraries and different wire protocols, it can be | 390 * exposed in different client libraries and different wire protocols, it can be |
386 * mapped differently. For example, it will likely be mapped to some exceptions | 391 * mapped differently. For example, it will likely be mapped to some exceptions |
387 * in Java, but more likely mapped to some error codes in C. | 392 * in Java, but more likely mapped to some error codes in C. |
388 * | 393 * |
389 * # Other uses | 394 * # Other uses |
390 * | 395 * |
391 * The error model and the `Status` message can be used in a variety of | 396 * The error model and the `Status` message can be used in a variety of |
392 * environments, either with or without APIs, to provide a | 397 * environments, either with or without APIs, to provide a |
393 * consistent developer experience across different environments. | 398 * consistent developer experience across different environments. |
394 * | 399 * |
395 * Example uses of this error model include: | 400 * Example uses of this error model include: |
396 * | 401 * |
397 * - Partial errors. If a service needs to return partial errors to the client, | 402 * - Partial errors. If a service needs to return partial errors to the client, |
398 * it may embed the `Status` in the normal response to indicate the partial | 403 * it may embed the `Status` in the normal response to indicate the partial |
399 * errors. | 404 * errors. |
400 * | 405 * |
401 * - Workflow errors. A typical workflow has multiple steps. Each step may | 406 * - Workflow errors. A typical workflow has multiple steps. Each step may |
402 * have a `Status` message for error reporting purpose. | 407 * have a `Status` message for error reporting. |
403 * | 408 * |
404 * - Batch operations. If a client uses batch request and batch response, the | 409 * - Batch operations. If a client uses batch request and batch response, the |
405 * `Status` message should be used directly inside batch response, one for | 410 * `Status` message should be used directly inside batch response, one for |
406 * each error sub-response. | 411 * each error sub-response. |
407 * | 412 * |
408 * - Asynchronous operations. If an API call embeds asynchronous operation | 413 * - Asynchronous operations. If an API call embeds asynchronous operation |
409 * results in its response, the status of those operations should be | 414 * results in its response, the status of those operations should be |
410 * represented directly using the `Status` message. | 415 * represented directly using the `Status` message. |
411 * | 416 * |
412 * - Logging. If some API errors are stored in logs, the message `Status` could | 417 * - Logging. If some API errors are stored in logs, the message `Status` could |
(...skipping 24 matching lines...) Expand all Loading... |
437 code = _json["code"]; | 442 code = _json["code"]; |
438 } | 443 } |
439 if (_json.containsKey("details")) { | 444 if (_json.containsKey("details")) { |
440 details = _json["details"]; | 445 details = _json["details"]; |
441 } | 446 } |
442 if (_json.containsKey("message")) { | 447 if (_json.containsKey("message")) { |
443 message = _json["message"]; | 448 message = _json["message"]; |
444 } | 449 } |
445 } | 450 } |
446 | 451 |
447 core.Map toJson() { | 452 core.Map<core.String, core.Object> toJson() { |
448 var _json = new core.Map(); | 453 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
449 if (code != null) { | 454 if (code != null) { |
450 _json["code"] = code; | 455 _json["code"] = code; |
451 } | 456 } |
452 if (details != null) { | 457 if (details != null) { |
453 _json["details"] = details; | 458 _json["details"] = details; |
454 } | 459 } |
455 if (message != null) { | 460 if (message != null) { |
456 _json["message"] = message; | 461 _json["message"] = message; |
457 } | 462 } |
458 return _json; | 463 return _json; |
459 } | 464 } |
460 } | 465 } |
OLD | NEW |