| 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 340 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 351 ProjectsConfigsVariablesResourceApi(commons.ApiRequester client) : | 351 ProjectsConfigsVariablesResourceApi(commons.ApiRequester client) : |
| 352 _requester = client; | 352 _requester = client; |
| 353 | 353 |
| 354 /** | 354 /** |
| 355 * Creates a variable within the given configuration. You cannot create | 355 * Creates a variable within the given configuration. You cannot create |
| 356 * a variable with a name that is a prefix of an existing variable name, or a | 356 * a variable with a name that is a prefix of an existing variable name, or a |
| 357 * name that has an existing variable name as a prefix. | 357 * name that has an existing variable name as a prefix. |
| 358 * | 358 * |
| 359 * To learn more about creating a variable, read the | 359 * To learn more about creating a variable, read the |
| 360 * [Setting and Getting | 360 * [Setting and Getting |
| 361 * Data](/deployment-manager/runtime-configurator/seta-and-get-variables) | 361 * Data](/deployment-manager/runtime-configurator/set-and-get-variables) |
| 362 * documentation. | 362 * documentation. |
| 363 * | 363 * |
| 364 * [request] - The metadata request object. | 364 * [request] - The metadata request object. |
| 365 * | 365 * |
| 366 * Request parameters: | 366 * Request parameters: |
| 367 * | 367 * |
| 368 * [parent] - The path to the RutimeConfig resource that this variable should | 368 * [parent] - The path to the RutimeConfig resource that this variable should |
| 369 * belong to. | 369 * belong to. |
| 370 * The configuration must exist beforehand; the path must by in the format: | 370 * The configuration must exist beforehand; the path must by in the format: |
| 371 * | 371 * |
| (...skipping 1006 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1378 * the outcome of the `variables().watch` call and is visible through the | 1378 * the outcome of the `variables().watch` call and is visible through the |
| 1379 * `get` and `list` calls. | 1379 * `get` and `list` calls. |
| 1380 * Possible string values are: | 1380 * Possible string values are: |
| 1381 * - "VARIABLE_STATE_UNSPECIFIED" : Default variable state. | 1381 * - "VARIABLE_STATE_UNSPECIFIED" : Default variable state. |
| 1382 * - "UPDATED" : The variable was updated, while `variables().watch` was | 1382 * - "UPDATED" : The variable was updated, while `variables().watch` was |
| 1383 * executing. | 1383 * executing. |
| 1384 * - "DELETED" : The variable was deleted, while `variables().watch` was | 1384 * - "DELETED" : The variable was deleted, while `variables().watch` was |
| 1385 * executing. | 1385 * executing. |
| 1386 */ | 1386 */ |
| 1387 core.String state; | 1387 core.String state; |
| 1388 /** |
| 1389 * The textual value of the variable. The length of the value must be less |
| 1390 * than 4096 bytes. Empty values are also accepted. |
| 1391 * NB: Only one of value and string_value can be set at the same time. |
| 1392 */ |
| 1393 core.String text; |
| 1388 /** [Output Only] The time of the last variable update. */ | 1394 /** [Output Only] The time of the last variable update. */ |
| 1389 core.String updateTime; | 1395 core.String updateTime; |
| 1390 /** | 1396 /** |
| 1391 * The value of the variable. The length of the value must be less than 4096 | 1397 * The binary value of the variable. The length of the value must be less |
| 1392 * bytes. Empty values are also accepted. The value must be Base64 encoded. | 1398 * than 4096 bytes. Empty values are also accepted. The value must be |
| 1399 * Base64 encoded. |
| 1400 * NB: Only one of value and string_value can be set at the same time. |
| 1393 */ | 1401 */ |
| 1394 core.String value; | 1402 core.String value; |
| 1395 core.List<core.int> get valueAsBytes { | 1403 core.List<core.int> get valueAsBytes { |
| 1396 return convert.BASE64.decode(value); | 1404 return convert.BASE64.decode(value); |
| 1397 } | 1405 } |
| 1398 | 1406 |
| 1399 void set valueAsBytes(core.List<core.int> _bytes) { | 1407 void set valueAsBytes(core.List<core.int> _bytes) { |
| 1400 value = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "
-"); | 1408 value = convert.BASE64.encode(_bytes).replaceAll("/", "_").replaceAll("+", "
-"); |
| 1401 } | 1409 } |
| 1402 | 1410 |
| 1403 Variable(); | 1411 Variable(); |
| 1404 | 1412 |
| 1405 Variable.fromJson(core.Map _json) { | 1413 Variable.fromJson(core.Map _json) { |
| 1406 if (_json.containsKey("name")) { | 1414 if (_json.containsKey("name")) { |
| 1407 name = _json["name"]; | 1415 name = _json["name"]; |
| 1408 } | 1416 } |
| 1409 if (_json.containsKey("state")) { | 1417 if (_json.containsKey("state")) { |
| 1410 state = _json["state"]; | 1418 state = _json["state"]; |
| 1411 } | 1419 } |
| 1420 if (_json.containsKey("text")) { |
| 1421 text = _json["text"]; |
| 1422 } |
| 1412 if (_json.containsKey("updateTime")) { | 1423 if (_json.containsKey("updateTime")) { |
| 1413 updateTime = _json["updateTime"]; | 1424 updateTime = _json["updateTime"]; |
| 1414 } | 1425 } |
| 1415 if (_json.containsKey("value")) { | 1426 if (_json.containsKey("value")) { |
| 1416 value = _json["value"]; | 1427 value = _json["value"]; |
| 1417 } | 1428 } |
| 1418 } | 1429 } |
| 1419 | 1430 |
| 1420 core.Map toJson() { | 1431 core.Map toJson() { |
| 1421 var _json = new core.Map(); | 1432 var _json = new core.Map(); |
| 1422 if (name != null) { | 1433 if (name != null) { |
| 1423 _json["name"] = name; | 1434 _json["name"] = name; |
| 1424 } | 1435 } |
| 1425 if (state != null) { | 1436 if (state != null) { |
| 1426 _json["state"] = state; | 1437 _json["state"] = state; |
| 1427 } | 1438 } |
| 1439 if (text != null) { |
| 1440 _json["text"] = text; |
| 1441 } |
| 1428 if (updateTime != null) { | 1442 if (updateTime != null) { |
| 1429 _json["updateTime"] = updateTime; | 1443 _json["updateTime"] = updateTime; |
| 1430 } | 1444 } |
| 1431 if (value != null) { | 1445 if (value != null) { |
| 1432 _json["value"] = value; | 1446 _json["value"] = value; |
| 1433 } | 1447 } |
| 1434 return _json; | 1448 return _json; |
| 1435 } | 1449 } |
| 1436 } | 1450 } |
| 1437 | 1451 |
| 1438 /** | 1452 /** |
| 1439 * A Waiter resource waits for some end condition within a RuntimeConfig | 1453 * A Waiter resource waits for some end condition within a RuntimeConfig |
| 1440 * resource | 1454 * resource |
| 1441 * to be met before it returns. For example, assume you have a distributed | 1455 * to be met before it returns. For example, assume you have a distributed |
| 1442 * system where each node writes to a Variable resource indidicating the node's | 1456 * system where each node writes to a Variable resource indidicating the node's |
| 1443 * readiness as part of the startup process. | 1457 * readiness as part of the startup process. |
| 1444 * | 1458 * |
| 1445 * You then configure a Waiter resource with the success condition set to wait | 1459 * You then configure a Waiter resource with the success condition set to wait |
| 1446 * until some number of nodes have checked in. Afterwards, your application | 1460 * until some number of nodes have checked in. Afterwards, your application |
| 1447 * runs some arbitrary code after the condition has been met and the waiter | 1461 * runs some arbitrary code after the condition has been met and the waiter |
| 1448 * returns successfully. | 1462 * returns successfully. |
| 1449 * | 1463 * |
| 1450 * Once created, a Waiter resource is immutable. | 1464 * Once created, a Waiter resource is immutable. |
| 1451 * | 1465 * |
| 1452 * To learn more about using waiters, read the | 1466 * To learn more about using waiters, read the |
| 1453 * [Creating a Waiter](/deployment-manager/runtime-config/creating-a-water) | 1467 * [Creating a |
| 1468 * Waiter](/deployment-manager/runtime-configurator/creating-a-waiter) |
| 1454 * documentation. | 1469 * documentation. |
| 1455 */ | 1470 */ |
| 1456 class Waiter { | 1471 class Waiter { |
| 1457 /** | 1472 /** |
| 1458 * [Output Only] The instant at which this Waiter resource was created. Adding | 1473 * [Output Only] The instant at which this Waiter resource was created. Adding |
| 1459 * the value of `timeout` to this instant yields the timeout deadline for the | 1474 * the value of `timeout` to this instant yields the timeout deadline for the |
| 1460 * waiter. | 1475 * waiter. |
| 1461 */ | 1476 */ |
| 1462 core.String createTime; | 1477 core.String createTime; |
| 1463 /** | 1478 /** |
| (...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1584 } | 1599 } |
| 1585 | 1600 |
| 1586 core.Map toJson() { | 1601 core.Map toJson() { |
| 1587 var _json = new core.Map(); | 1602 var _json = new core.Map(); |
| 1588 if (newerThan != null) { | 1603 if (newerThan != null) { |
| 1589 _json["newerThan"] = newerThan; | 1604 _json["newerThan"] = newerThan; |
| 1590 } | 1605 } |
| 1591 return _json; | 1606 return _json; |
| 1592 } | 1607 } |
| 1593 } | 1608 } |
| OLD | NEW |