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_beta.runtimeconfig.v1beta1; | 3 library googleapis_beta.runtimeconfig.v1beta1; |
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 48 matching lines...) Loading... |
59 * Creates a new RuntimeConfig resource. The configuration name must be | 59 * Creates a new RuntimeConfig resource. The configuration name must be |
60 * unique within project. | 60 * unique within project. |
61 * | 61 * |
62 * [request] - The metadata request object. | 62 * [request] - The metadata request object. |
63 * | 63 * |
64 * Request parameters: | 64 * Request parameters: |
65 * | 65 * |
66 * [parent] - The [project | 66 * [parent] - The [project |
67 * ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848
) | 67 * ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848
) |
68 * for this request, in the format `projects/[PROJECT_ID]`. | 68 * for this request, in the format `projects/[PROJECT_ID]`. |
69 * Value must have pattern "^projects/[^/]*$". | 69 * Value must have pattern "^projects/[^/]+$". |
| 70 * |
| 71 * [requestId] - An optional unique request_id. If server receives two Create |
| 72 * requests with |
| 73 * the same request_id then second request will be ignored and the resource |
| 74 * stored in the backend will be returned. Empty request_id fields are |
| 75 * ignored. |
| 76 * It is responsibility of the client to ensure uniqueness of the request_id |
| 77 * strings. |
| 78 * The strings are limited to 64 characters. |
70 * | 79 * |
71 * Completes with a [RuntimeConfig]. | 80 * Completes with a [RuntimeConfig]. |
72 * | 81 * |
73 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 82 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
74 * error. | 83 * error. |
75 * | 84 * |
76 * If the used [http.Client] completes with an error when making a REST call, | 85 * If the used [http.Client] completes with an error when making a REST call, |
77 * this method will complete with the same error. | 86 * this method will complete with the same error. |
78 */ | 87 */ |
79 async.Future<RuntimeConfig> create(RuntimeConfig request, core.String parent)
{ | 88 async.Future<RuntimeConfig> create(RuntimeConfig request, core.String parent,
{core.String requestId}) { |
80 var _url = null; | 89 var _url = null; |
81 var _queryParams = new core.Map(); | 90 var _queryParams = new core.Map(); |
82 var _uploadMedia = null; | 91 var _uploadMedia = null; |
83 var _uploadOptions = null; | 92 var _uploadOptions = null; |
84 var _downloadOptions = commons.DownloadOptions.Metadata; | 93 var _downloadOptions = commons.DownloadOptions.Metadata; |
85 var _body = null; | 94 var _body = null; |
86 | 95 |
87 if (request != null) { | 96 if (request != null) { |
88 _body = convert.JSON.encode((request).toJson()); | 97 _body = convert.JSON.encode((request).toJson()); |
89 } | 98 } |
90 if (parent == null) { | 99 if (parent == null) { |
91 throw new core.ArgumentError("Parameter parent is required."); | 100 throw new core.ArgumentError("Parameter parent is required."); |
92 } | 101 } |
| 102 if (requestId != null) { |
| 103 _queryParams["requestId"] = [requestId]; |
| 104 } |
93 | 105 |
94 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/con
figs'; | 106 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/con
figs'; |
95 | 107 |
96 var _response = _requester.request(_url, | 108 var _response = _requester.request(_url, |
97 "POST", | 109 "POST", |
98 body: _body, | 110 body: _body, |
99 queryParams: _queryParams, | 111 queryParams: _queryParams, |
100 uploadOptions: _uploadOptions, | 112 uploadOptions: _uploadOptions, |
101 uploadMedia: _uploadMedia, | 113 uploadMedia: _uploadMedia, |
102 downloadOptions: _downloadOptions); | 114 downloadOptions: _downloadOptions); |
103 return _response.then((data) => new RuntimeConfig.fromJson(data)); | 115 return _response.then((data) => new RuntimeConfig.fromJson(data)); |
104 } | 116 } |
105 | 117 |
106 /** | 118 /** |
107 * Deletes a RuntimeConfig resource. | 119 * Deletes a RuntimeConfig resource. |
108 * | 120 * |
109 * Request parameters: | 121 * Request parameters: |
110 * | 122 * |
111 * [name] - The RuntimeConfig resource to delete, in the format: | 123 * [name] - The RuntimeConfig resource to delete, in the format: |
112 * | 124 * |
113 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` | 125 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` |
114 * Value must have pattern "^projects/[^/] * / configs/[^/]*$". | 126 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". |
115 * | 127 * |
116 * Completes with a [Empty]. | 128 * Completes with a [Empty]. |
117 * | 129 * |
118 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 130 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
119 * error. | 131 * error. |
120 * | 132 * |
121 * If the used [http.Client] completes with an error when making a REST call, | 133 * If the used [http.Client] completes with an error when making a REST call, |
122 * this method will complete with the same error. | 134 * this method will complete with the same error. |
123 */ | 135 */ |
124 async.Future<Empty> delete(core.String name) { | 136 async.Future<Empty> delete(core.String name) { |
(...skipping 21 matching lines...) Loading... |
146 } | 158 } |
147 | 159 |
148 /** | 160 /** |
149 * Gets information about a RuntimeConfig resource. | 161 * Gets information about a RuntimeConfig resource. |
150 * | 162 * |
151 * Request parameters: | 163 * Request parameters: |
152 * | 164 * |
153 * [name] - The name of the RuntimeConfig resource to retrieve, in the format: | 165 * [name] - The name of the RuntimeConfig resource to retrieve, in the format: |
154 * | 166 * |
155 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` | 167 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` |
156 * Value must have pattern "^projects/[^/] * / configs/[^/]*$". | 168 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". |
157 * | 169 * |
158 * Completes with a [RuntimeConfig]. | 170 * Completes with a [RuntimeConfig]. |
159 * | 171 * |
160 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 172 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
161 * error. | 173 * error. |
162 * | 174 * |
163 * If the used [http.Client] completes with an error when making a REST call, | 175 * If the used [http.Client] completes with an error when making a REST call, |
164 * this method will complete with the same error. | 176 * this method will complete with the same error. |
165 */ | 177 */ |
166 async.Future<RuntimeConfig> get(core.String name) { | 178 async.Future<RuntimeConfig> get(core.String name) { |
(...skipping 21 matching lines...) Loading... |
188 } | 200 } |
189 | 201 |
190 /** | 202 /** |
191 * Lists all the RuntimeConfig resources within project. | 203 * Lists all the RuntimeConfig resources within project. |
192 * | 204 * |
193 * Request parameters: | 205 * Request parameters: |
194 * | 206 * |
195 * [parent] - The [project | 207 * [parent] - The [project |
196 * ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848
) | 208 * ID](https://support.google.com/cloud/answer/6158840?hl=en&ref_topic=6158848
) |
197 * for this request, in the format `projects/[PROJECT_ID]`. | 209 * for this request, in the format `projects/[PROJECT_ID]`. |
198 * Value must have pattern "^projects/[^/]*$". | 210 * Value must have pattern "^projects/[^/]+$". |
199 * | 211 * |
200 * [pageSize] - Specifies the number of results to return per page. If there | 212 * [pageSize] - Specifies the number of results to return per page. If there |
201 * are fewer | 213 * are fewer |
202 * elements than the specified number, returns all elements. | 214 * elements than the specified number, returns all elements. |
203 * | 215 * |
204 * [pageToken] - Specifies a page token to use. Set `pageToken` to a | 216 * [pageToken] - Specifies a page token to use. Set `pageToken` to a |
205 * `nextPageToken` | 217 * `nextPageToken` |
206 * returned by a previous list request to get the next page of results. | 218 * returned by a previous list request to get the next page of results. |
207 * | 219 * |
208 * Completes with a [ListConfigsResponse]. | 220 * Completes with a [ListConfigsResponse]. |
(...skipping 37 matching lines...) Loading... |
246 /** | 258 /** |
247 * Updates a RuntimeConfig resource. The configuration must exist beforehand. | 259 * Updates a RuntimeConfig resource. The configuration must exist beforehand. |
248 * | 260 * |
249 * [request] - The metadata request object. | 261 * [request] - The metadata request object. |
250 * | 262 * |
251 * Request parameters: | 263 * Request parameters: |
252 * | 264 * |
253 * [name] - The name of the RuntimeConfig resource to update, in the format: | 265 * [name] - The name of the RuntimeConfig resource to update, in the format: |
254 * | 266 * |
255 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` | 267 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` |
256 * Value must have pattern "^projects/[^/] * / configs/[^/]*$". | 268 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". |
257 * | 269 * |
258 * Completes with a [RuntimeConfig]. | 270 * Completes with a [RuntimeConfig]. |
259 * | 271 * |
260 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 272 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
261 * error. | 273 * error. |
262 * | 274 * |
263 * If the used [http.Client] completes with an error when making a REST call, | 275 * If the used [http.Client] completes with an error when making a REST call, |
264 * this method will complete with the same error. | 276 * this method will complete with the same error. |
265 */ | 277 */ |
266 async.Future<RuntimeConfig> update(RuntimeConfig request, core.String name) { | 278 async.Future<RuntimeConfig> update(RuntimeConfig request, core.String name) { |
(...skipping 33 matching lines...) Loading... |
300 _requester = client; | 312 _requester = client; |
301 | 313 |
302 /** | 314 /** |
303 * Gets the latest state of a long-running operation. Clients can use this | 315 * Gets the latest state of a long-running operation. Clients can use this |
304 * method to poll the operation result at intervals as recommended by the API | 316 * method to poll the operation result at intervals as recommended by the API |
305 * service. | 317 * service. |
306 * | 318 * |
307 * Request parameters: | 319 * Request parameters: |
308 * | 320 * |
309 * [name] - The name of the operation resource. | 321 * [name] - The name of the operation resource. |
310 * Value must have pattern "^projects/[^/] * / configs/[^/] * / | 322 * Value must have pattern "^projects/[^/]+/configs/[^/]+/operations/.+$". |
311 * operations/.*$". | |
312 * | 323 * |
313 * Completes with a [Operation]. | 324 * Completes with a [Operation]. |
314 * | 325 * |
315 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 326 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
316 * error. | 327 * error. |
317 * | 328 * |
318 * If the used [http.Client] completes with an error when making a REST call, | 329 * If the used [http.Client] completes with an error when making a REST call, |
319 * this method will complete with the same error. | 330 * this method will complete with the same error. |
320 */ | 331 */ |
321 async.Future<Operation> get(core.String name) { | 332 async.Future<Operation> get(core.String name) { |
(...skipping 41 matching lines...) Loading... |
363 * | 374 * |
364 * [request] - The metadata request object. | 375 * [request] - The metadata request object. |
365 * | 376 * |
366 * Request parameters: | 377 * Request parameters: |
367 * | 378 * |
368 * [parent] - The path to the RutimeConfig resource that this variable should | 379 * [parent] - The path to the RutimeConfig resource that this variable should |
369 * belong to. | 380 * belong to. |
370 * The configuration must exist beforehand; the path must by in the format: | 381 * The configuration must exist beforehand; the path must by in the format: |
371 * | 382 * |
372 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` | 383 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` |
373 * Value must have pattern "^projects/[^/] * / configs/[^/]*$". | 384 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". |
| 385 * |
| 386 * [requestId] - An optional unique request_id. If server receives two Create |
| 387 * requests with |
| 388 * the same request_id then second request will be ignored and the resource |
| 389 * stored in the backend will be returned. Empty request_id fields are |
| 390 * ignored. |
| 391 * It is responsibility of the client to ensure uniqueness of the request_id |
| 392 * strings. |
| 393 * The strings are limited to 64 characters. |
374 * | 394 * |
375 * Completes with a [Variable]. | 395 * Completes with a [Variable]. |
376 * | 396 * |
377 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 397 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
378 * error. | 398 * error. |
379 * | 399 * |
380 * If the used [http.Client] completes with an error when making a REST call, | 400 * If the used [http.Client] completes with an error when making a REST call, |
381 * this method will complete with the same error. | 401 * this method will complete with the same error. |
382 */ | 402 */ |
383 async.Future<Variable> create(Variable request, core.String parent) { | 403 async.Future<Variable> create(Variable request, core.String parent, {core.Stri
ng requestId}) { |
384 var _url = null; | 404 var _url = null; |
385 var _queryParams = new core.Map(); | 405 var _queryParams = new core.Map(); |
386 var _uploadMedia = null; | 406 var _uploadMedia = null; |
387 var _uploadOptions = null; | 407 var _uploadOptions = null; |
388 var _downloadOptions = commons.DownloadOptions.Metadata; | 408 var _downloadOptions = commons.DownloadOptions.Metadata; |
389 var _body = null; | 409 var _body = null; |
390 | 410 |
391 if (request != null) { | 411 if (request != null) { |
392 _body = convert.JSON.encode((request).toJson()); | 412 _body = convert.JSON.encode((request).toJson()); |
393 } | 413 } |
394 if (parent == null) { | 414 if (parent == null) { |
395 throw new core.ArgumentError("Parameter parent is required."); | 415 throw new core.ArgumentError("Parameter parent is required."); |
396 } | 416 } |
| 417 if (requestId != null) { |
| 418 _queryParams["requestId"] = [requestId]; |
| 419 } |
397 | 420 |
398 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/var
iables'; | 421 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/var
iables'; |
399 | 422 |
400 var _response = _requester.request(_url, | 423 var _response = _requester.request(_url, |
401 "POST", | 424 "POST", |
402 body: _body, | 425 body: _body, |
403 queryParams: _queryParams, | 426 queryParams: _queryParams, |
404 uploadOptions: _uploadOptions, | 427 uploadOptions: _uploadOptions, |
405 uploadMedia: _uploadMedia, | 428 uploadMedia: _uploadMedia, |
406 downloadOptions: _downloadOptions); | 429 downloadOptions: _downloadOptions); |
407 return _response.then((data) => new Variable.fromJson(data)); | 430 return _response.then((data) => new Variable.fromJson(data)); |
408 } | 431 } |
409 | 432 |
410 /** | 433 /** |
411 * Deletes a variable or multiple variables. | 434 * Deletes a variable or multiple variables. |
412 * | 435 * |
413 * If you specify a variable name, then that variable is deleted. If you | 436 * If you specify a variable name, then that variable is deleted. If you |
414 * specify a prefix and `recursive` is true, then all variables with that | 437 * specify a prefix and `recursive` is true, then all variables with that |
415 * prefix are deleted. You must set a `recursive` to true if you delete | 438 * prefix are deleted. You must set a `recursive` to true if you delete |
416 * variables by prefix. | 439 * variables by prefix. |
417 * | 440 * |
418 * Request parameters: | 441 * Request parameters: |
419 * | 442 * |
420 * [name] - The name of the variable to delete, in the format: | 443 * [name] - The name of the variable to delete, in the format: |
421 * | 444 * |
422 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` | 445 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` |
423 * Value must have pattern "^projects/[^/] * / configs/[^/] * / | 446 * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$". |
424 * variables/.*$". | |
425 * | 447 * |
426 * [recursive] - Set to `true` to recursively delete multiple variables with | 448 * [recursive] - Set to `true` to recursively delete multiple variables with |
427 * the same | 449 * the same |
428 * prefix. | 450 * prefix. |
429 * | 451 * |
430 * Completes with a [Empty]. | 452 * Completes with a [Empty]. |
431 * | 453 * |
432 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 454 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
433 * error. | 455 * error. |
434 * | 456 * |
(...skipping 28 matching lines...) Loading... |
463 } | 485 } |
464 | 486 |
465 /** | 487 /** |
466 * Gets information about a single variable. | 488 * Gets information about a single variable. |
467 * | 489 * |
468 * Request parameters: | 490 * Request parameters: |
469 * | 491 * |
470 * [name] - The name of the variable to return, in the format: | 492 * [name] - The name of the variable to return, in the format: |
471 * | 493 * |
472 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIBLE_NAME]` | 494 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIBLE_NAME]` |
473 * Value must have pattern "^projects/[^/] * / configs/[^/] * / | 495 * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$". |
474 * variables/.*$". | |
475 * | 496 * |
476 * Completes with a [Variable]. | 497 * Completes with a [Variable]. |
477 * | 498 * |
478 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 499 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
479 * error. | 500 * error. |
480 * | 501 * |
481 * If the used [http.Client] completes with an error when making a REST call, | 502 * If the used [http.Client] completes with an error when making a REST call, |
482 * this method will complete with the same error. | 503 * this method will complete with the same error. |
483 */ | 504 */ |
484 async.Future<Variable> get(core.String name) { | 505 async.Future<Variable> get(core.String name) { |
(...skipping 25 matching lines...) Loading... |
510 * filters. | 531 * filters. |
511 * This only lists variable names, not the values. | 532 * This only lists variable names, not the values. |
512 * | 533 * |
513 * Request parameters: | 534 * Request parameters: |
514 * | 535 * |
515 * [parent] - The path to the RuntimeConfig resource for which you want to | 536 * [parent] - The path to the RuntimeConfig resource for which you want to |
516 * list variables. | 537 * list variables. |
517 * The configuration must exist beforehand; the path must by in the format: | 538 * The configuration must exist beforehand; the path must by in the format: |
518 * | 539 * |
519 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` | 540 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` |
520 * Value must have pattern "^projects/[^/] * / configs/[^/]*$". | 541 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". |
521 * | 542 * |
522 * [pageSize] - Specifies the number of results to return per page. If there | 543 * [pageSize] - Specifies the number of results to return per page. If there |
523 * are fewer | 544 * are fewer |
524 * elements than the specified number, returns all elements. | 545 * elements than the specified number, returns all elements. |
525 * | 546 * |
526 * [filter] - Filters variables by matching the specified filter. For example: | 547 * [filter] - Filters variables by matching the specified filter. For example: |
527 * | 548 * |
528 * `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`. | 549 * `projects/example-project/config/[CONFIG_NAME]/variables/example-variable`. |
529 * | 550 * |
530 * [pageToken] - Specifies a page token to use. Set `pageToken` to a | 551 * [pageToken] - Specifies a page token to use. Set `pageToken` to a |
(...skipping 44 matching lines...) Loading... |
575 /** | 596 /** |
576 * Updates an existing variable with a new value. | 597 * Updates an existing variable with a new value. |
577 * | 598 * |
578 * [request] - The metadata request object. | 599 * [request] - The metadata request object. |
579 * | 600 * |
580 * Request parameters: | 601 * Request parameters: |
581 * | 602 * |
582 * [name] - The name of the variable to update, in the format: | 603 * [name] - The name of the variable to update, in the format: |
583 * | 604 * |
584 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` | 605 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/variables/[VARIABLE_NAME]` |
585 * Value must have pattern "^projects/[^/] * / configs/[^/] * / | 606 * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$". |
586 * variables/.*$". | |
587 * | 607 * |
588 * Completes with a [Variable]. | 608 * Completes with a [Variable]. |
589 * | 609 * |
590 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 610 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
591 * error. | 611 * error. |
592 * | 612 * |
593 * If the used [http.Client] completes with an error when making a REST call, | 613 * If the used [http.Client] completes with an error when making a REST call, |
594 * this method will complete with the same error. | 614 * this method will complete with the same error. |
595 */ | 615 */ |
596 async.Future<Variable> update(Variable request, core.String name) { | 616 async.Future<Variable> update(Variable request, core.String name) { |
(...skipping 41 matching lines...) Loading... |
638 * Changes](/deployment-manager/runtime-configurator/watching-a-variable) | 658 * Changes](/deployment-manager/runtime-configurator/watching-a-variable) |
639 * documentation. | 659 * documentation. |
640 * | 660 * |
641 * [request] - The metadata request object. | 661 * [request] - The metadata request object. |
642 * | 662 * |
643 * Request parameters: | 663 * Request parameters: |
644 * | 664 * |
645 * [name] - The name of the variable to watch, in the format: | 665 * [name] - The name of the variable to watch, in the format: |
646 * | 666 * |
647 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` | 667 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` |
648 * Value must have pattern "^projects/[^/] * / configs/[^/] * / | 668 * Value must have pattern "^projects/[^/]+/configs/[^/]+/variables/.+$". |
649 * variables/.*$". | |
650 * | 669 * |
651 * Completes with a [Variable]. | 670 * Completes with a [Variable]. |
652 * | 671 * |
653 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 672 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
654 * error. | 673 * error. |
655 * | 674 * |
656 * If the used [http.Client] completes with an error when making a REST call, | 675 * If the used [http.Client] completes with an error when making a REST call, |
657 * this method will complete with the same error. | 676 * this method will complete with the same error. |
658 */ | 677 */ |
659 async.Future<Variable> watch(WatchVariableRequest request, core.String name) { | 678 async.Future<Variable> watch(WatchVariableRequest request, core.String name) { |
(...skipping 40 matching lines...) Loading... |
700 * still exist and must be deleted prior to subsequent creation attempts. | 719 * still exist and must be deleted prior to subsequent creation attempts. |
701 * | 720 * |
702 * [request] - The metadata request object. | 721 * [request] - The metadata request object. |
703 * | 722 * |
704 * Request parameters: | 723 * Request parameters: |
705 * | 724 * |
706 * [parent] - The path to the configuration that will own the waiter. | 725 * [parent] - The path to the configuration that will own the waiter. |
707 * The configuration must exist beforehand; the path must by in the format: | 726 * The configuration must exist beforehand; the path must by in the format: |
708 * | 727 * |
709 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`. | 728 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]`. |
710 * Value must have pattern "^projects/[^/] * / configs/[^/]*$". | 729 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". |
| 730 * |
| 731 * [requestId] - An optional unique request_id. If server receives two Create |
| 732 * requests with |
| 733 * the same request_id then second request will be ignored and information |
| 734 * stored in the backend will be returned. Empty request_id fields are |
| 735 * ignored. |
| 736 * It is responsibility of the client to ensure uniqueness of the request_id |
| 737 * strings. |
| 738 * The strings are limited to 64 characters. |
711 * | 739 * |
712 * Completes with a [Operation]. | 740 * Completes with a [Operation]. |
713 * | 741 * |
714 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 742 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
715 * error. | 743 * error. |
716 * | 744 * |
717 * If the used [http.Client] completes with an error when making a REST call, | 745 * If the used [http.Client] completes with an error when making a REST call, |
718 * this method will complete with the same error. | 746 * this method will complete with the same error. |
719 */ | 747 */ |
720 async.Future<Operation> create(Waiter request, core.String parent) { | 748 async.Future<Operation> create(Waiter request, core.String parent, {core.Strin
g requestId}) { |
721 var _url = null; | 749 var _url = null; |
722 var _queryParams = new core.Map(); | 750 var _queryParams = new core.Map(); |
723 var _uploadMedia = null; | 751 var _uploadMedia = null; |
724 var _uploadOptions = null; | 752 var _uploadOptions = null; |
725 var _downloadOptions = commons.DownloadOptions.Metadata; | 753 var _downloadOptions = commons.DownloadOptions.Metadata; |
726 var _body = null; | 754 var _body = null; |
727 | 755 |
728 if (request != null) { | 756 if (request != null) { |
729 _body = convert.JSON.encode((request).toJson()); | 757 _body = convert.JSON.encode((request).toJson()); |
730 } | 758 } |
731 if (parent == null) { | 759 if (parent == null) { |
732 throw new core.ArgumentError("Parameter parent is required."); | 760 throw new core.ArgumentError("Parameter parent is required."); |
733 } | 761 } |
| 762 if (requestId != null) { |
| 763 _queryParams["requestId"] = [requestId]; |
| 764 } |
734 | 765 |
735 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/wai
ters'; | 766 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$parent') + '/wai
ters'; |
736 | 767 |
737 var _response = _requester.request(_url, | 768 var _response = _requester.request(_url, |
738 "POST", | 769 "POST", |
739 body: _body, | 770 body: _body, |
740 queryParams: _queryParams, | 771 queryParams: _queryParams, |
741 uploadOptions: _uploadOptions, | 772 uploadOptions: _uploadOptions, |
742 uploadMedia: _uploadMedia, | 773 uploadMedia: _uploadMedia, |
743 downloadOptions: _downloadOptions); | 774 downloadOptions: _downloadOptions); |
744 return _response.then((data) => new Operation.fromJson(data)); | 775 return _response.then((data) => new Operation.fromJson(data)); |
745 } | 776 } |
746 | 777 |
747 /** | 778 /** |
748 * Deletes the waiter with the specified name. | 779 * Deletes the waiter with the specified name. |
749 * | 780 * |
750 * Request parameters: | 781 * Request parameters: |
751 * | 782 * |
752 * [name] - The Waiter resource to delete, in the format: | 783 * [name] - The Waiter resource to delete, in the format: |
753 * | 784 * |
754 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]` | 785 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]` |
755 * Value must have pattern "^projects/[^/] * / configs/[^/] * / | 786 * Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$". |
756 * waiters/[^/]*$". | |
757 * | 787 * |
758 * Completes with a [Empty]. | 788 * Completes with a [Empty]. |
759 * | 789 * |
760 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 790 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
761 * error. | 791 * error. |
762 * | 792 * |
763 * If the used [http.Client] completes with an error when making a REST call, | 793 * If the used [http.Client] completes with an error when making a REST call, |
764 * this method will complete with the same error. | 794 * this method will complete with the same error. |
765 */ | 795 */ |
766 async.Future<Empty> delete(core.String name) { | 796 async.Future<Empty> delete(core.String name) { |
(...skipping 23 matching lines...) Loading... |
790 /** | 820 /** |
791 * Gets information about a single waiter. | 821 * Gets information about a single waiter. |
792 * | 822 * |
793 * Request parameters: | 823 * Request parameters: |
794 * | 824 * |
795 * [name] - The fully-qualified name of the Waiter resource object to | 825 * [name] - The fully-qualified name of the Waiter resource object to |
796 * retrieve, in the | 826 * retrieve, in the |
797 * format: | 827 * format: |
798 * | 828 * |
799 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]` | 829 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]/waiters/[WAITER_NAME]` |
800 * Value must have pattern "^projects/[^/] * / configs/[^/] * / | 830 * Value must have pattern "^projects/[^/]+/configs/[^/]+/waiters/[^/]+$". |
801 * waiters/[^/]*$". | |
802 * | 831 * |
803 * Completes with a [Waiter]. | 832 * Completes with a [Waiter]. |
804 * | 833 * |
805 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 834 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
806 * error. | 835 * error. |
807 * | 836 * |
808 * If the used [http.Client] completes with an error when making a REST call, | 837 * If the used [http.Client] completes with an error when making a REST call, |
809 * this method will complete with the same error. | 838 * this method will complete with the same error. |
810 */ | 839 */ |
811 async.Future<Waiter> get(core.String name) { | 840 async.Future<Waiter> get(core.String name) { |
(...skipping 23 matching lines...) Loading... |
835 /** | 864 /** |
836 * List waiters within the given configuration. | 865 * List waiters within the given configuration. |
837 * | 866 * |
838 * Request parameters: | 867 * Request parameters: |
839 * | 868 * |
840 * [parent] - The path to the configuration for which you want to get a list | 869 * [parent] - The path to the configuration for which you want to get a list |
841 * of waiters. | 870 * of waiters. |
842 * The configuration must exist beforehand; the path must by in the format: | 871 * The configuration must exist beforehand; the path must by in the format: |
843 * | 872 * |
844 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` | 873 * `projects/[PROJECT_ID]/configs/[CONFIG_NAME]` |
845 * Value must have pattern "^projects/[^/] * / configs/[^/]*$". | 874 * Value must have pattern "^projects/[^/]+/configs/[^/]+$". |
846 * | 875 * |
847 * [pageSize] - Specifies the number of results to return per page. If there | 876 * [pageSize] - Specifies the number of results to return per page. If there |
848 * are fewer | 877 * are fewer |
849 * elements than the specified number, returns all elements. | 878 * elements than the specified number, returns all elements. |
850 * | 879 * |
851 * [pageToken] - Specifies a page token to use. Set `pageToken` to a | 880 * [pageToken] - Specifies a page token to use. Set `pageToken` to a |
852 * `nextPageToken` | 881 * `nextPageToken` |
853 * returned by a previous list request to get the next page of results. | 882 * returned by a previous list request to get the next page of results. |
854 * | 883 * |
855 * Completes with a [ListWaitersResponse]. | 884 * Completes with a [ListWaitersResponse]. |
(...skipping 256 matching lines...) Loading... |
1112 * This resource represents a long-running operation that is the result of a | 1141 * This resource represents a long-running operation that is the result of a |
1113 * network API call. | 1142 * network API call. |
1114 */ | 1143 */ |
1115 class Operation { | 1144 class Operation { |
1116 /** | 1145 /** |
1117 * If the value is `false`, it means the operation is still in progress. | 1146 * If the value is `false`, it means the operation is still in progress. |
1118 * If true, the operation is completed, and either `error` or `response` is | 1147 * If true, the operation is completed, and either `error` or `response` is |
1119 * available. | 1148 * available. |
1120 */ | 1149 */ |
1121 core.bool done; | 1150 core.bool done; |
1122 /** The error result of the operation in case of failure. */ | 1151 /** The error result of the operation in case of failure or cancellation. */ |
1123 Status error; | 1152 Status error; |
1124 /** | 1153 /** |
1125 * Service-specific metadata associated with the operation. It typically | 1154 * Service-specific metadata associated with the operation. It typically |
1126 * contains progress information and common metadata such as create time. | 1155 * contains progress information and common metadata such as create time. |
1127 * Some services might not provide such metadata. Any method that returns a | 1156 * Some services might not provide such metadata. Any method that returns a |
1128 * long-running operation should document the metadata type, if any. | 1157 * long-running operation should document the metadata type, if any. |
1129 * | 1158 * |
1130 * The values for Object must be JSON objects. It can consist of `num`, | 1159 * The values for Object must be JSON objects. It can consist of `num`, |
1131 * `String`, `bool` and `null` as well as `Map` and `List` values. | 1160 * `String`, `bool` and `null` as well as `Map` and `List` values. |
1132 */ | 1161 */ |
(...skipping 466 matching lines...) Loading... |
1599 } | 1628 } |
1600 | 1629 |
1601 core.Map toJson() { | 1630 core.Map toJson() { |
1602 var _json = new core.Map(); | 1631 var _json = new core.Map(); |
1603 if (newerThan != null) { | 1632 if (newerThan != null) { |
1604 _json["newerThan"] = newerThan; | 1633 _json["newerThan"] = newerThan; |
1605 } | 1634 } |
1606 return _json; | 1635 return _json; |
1607 } | 1636 } |
1608 } | 1637 } |
OLD | NEW |