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 1253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1264 * * `user:{emailid}`: An email address that represents a specific Google | 1264 * * `user:{emailid}`: An email address that represents a specific Google |
1265 * account. For example, `alice@gmail.com` or `joe@example.com`. | 1265 * account. For example, `alice@gmail.com` or `joe@example.com`. |
1266 * | 1266 * |
1267 * | 1267 * |
1268 * * `serviceAccount:{emailid}`: An email address that represents a service | 1268 * * `serviceAccount:{emailid}`: An email address that represents a service |
1269 * account. For example, `my-other-app@appspot.gserviceaccount.com`. | 1269 * account. For example, `my-other-app@appspot.gserviceaccount.com`. |
1270 * | 1270 * |
1271 * * `group:{emailid}`: An email address that represents a Google group. | 1271 * * `group:{emailid}`: An email address that represents a Google group. |
1272 * For example, `admins@example.com`. | 1272 * For example, `admins@example.com`. |
1273 * | 1273 * |
| 1274 * |
1274 * * `domain:{domain}`: A Google Apps domain name that represents all the | 1275 * * `domain:{domain}`: A Google Apps domain name that represents all the |
1275 * users of that domain. For example, `google.com` or `example.com`. | 1276 * users of that domain. For example, `google.com` or `example.com`. |
1276 */ | 1277 */ |
1277 core.List<core.String> members; | 1278 core.List<core.String> members; |
1278 /** | 1279 /** |
1279 * Role that is assigned to `members`. | 1280 * Role that is assigned to `members`. |
1280 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. | 1281 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. |
1281 * Required | 1282 * Required |
1282 */ | 1283 */ |
1283 core.String role; | 1284 core.String role; |
1284 | 1285 |
1285 Binding(); | 1286 Binding(); |
1286 | 1287 |
1287 Binding.fromJson(core.Map _json) { | 1288 Binding.fromJson(core.Map _json) { |
1288 if (_json.containsKey("members")) { | 1289 if (_json.containsKey("members")) { |
1289 members = _json["members"]; | 1290 members = _json["members"]; |
1290 } | 1291 } |
1291 if (_json.containsKey("role")) { | 1292 if (_json.containsKey("role")) { |
1292 role = _json["role"]; | 1293 role = _json["role"]; |
1293 } | 1294 } |
1294 } | 1295 } |
1295 | 1296 |
1296 core.Map toJson() { | 1297 core.Map<core.String, core.Object> toJson() { |
1297 var _json = new core.Map(); | 1298 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1298 if (members != null) { | 1299 if (members != null) { |
1299 _json["members"] = members; | 1300 _json["members"] = members; |
1300 } | 1301 } |
1301 if (role != null) { | 1302 if (role != null) { |
1302 _json["role"] = role; | 1303 _json["role"] = role; |
1303 } | 1304 } |
1304 return _json; | 1305 return _json; |
1305 } | 1306 } |
1306 } | 1307 } |
1307 | 1308 |
(...skipping 26 matching lines...) Expand all Loading... |
1334 | 1335 |
1335 Cardinality.fromJson(core.Map _json) { | 1336 Cardinality.fromJson(core.Map _json) { |
1336 if (_json.containsKey("number")) { | 1337 if (_json.containsKey("number")) { |
1337 number = _json["number"]; | 1338 number = _json["number"]; |
1338 } | 1339 } |
1339 if (_json.containsKey("path")) { | 1340 if (_json.containsKey("path")) { |
1340 path = _json["path"]; | 1341 path = _json["path"]; |
1341 } | 1342 } |
1342 } | 1343 } |
1343 | 1344 |
1344 core.Map toJson() { | 1345 core.Map<core.String, core.Object> toJson() { |
1345 var _json = new core.Map(); | 1346 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1346 if (number != null) { | 1347 if (number != null) { |
1347 _json["number"] = number; | 1348 _json["number"] = number; |
1348 } | 1349 } |
1349 if (path != null) { | 1350 if (path != null) { |
1350 _json["path"] = path; | 1351 _json["path"] = path; |
1351 } | 1352 } |
1352 return _json; | 1353 return _json; |
1353 } | 1354 } |
1354 } | 1355 } |
1355 | 1356 |
1356 /** | 1357 /** |
1357 * A generic empty message that you can re-use to avoid defining duplicated | 1358 * A generic empty message that you can re-use to avoid defining duplicated |
1358 * empty messages in your APIs. A typical example is to use it as the request | 1359 * empty messages in your APIs. A typical example is to use it as the request |
1359 * or the response type of an API method. For instance: | 1360 * or the response type of an API method. For instance: |
1360 * | 1361 * |
1361 * service Foo { | 1362 * service Foo { |
1362 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); | 1363 * rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); |
1363 * } | 1364 * } |
1364 * | 1365 * |
1365 * The JSON representation for `Empty` is empty JSON object `{}`. | 1366 * The JSON representation for `Empty` is empty JSON object `{}`. |
1366 */ | 1367 */ |
1367 class Empty { | 1368 class Empty { |
1368 | 1369 |
1369 Empty(); | 1370 Empty(); |
1370 | 1371 |
1371 Empty.fromJson(core.Map _json) { | 1372 Empty.fromJson(core.Map _json) { |
1372 } | 1373 } |
1373 | 1374 |
1374 core.Map toJson() { | 1375 core.Map<core.String, core.Object> toJson() { |
1375 var _json = new core.Map(); | 1376 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1376 return _json; | 1377 return _json; |
1377 } | 1378 } |
1378 } | 1379 } |
1379 | 1380 |
1380 /** The condition that a Waiter resource is waiting for. */ | 1381 /** The condition that a Waiter resource is waiting for. */ |
1381 class EndCondition { | 1382 class EndCondition { |
1382 /** The cardinality of the `EndCondition`. */ | 1383 /** The cardinality of the `EndCondition`. */ |
1383 Cardinality cardinality; | 1384 Cardinality cardinality; |
1384 | 1385 |
1385 EndCondition(); | 1386 EndCondition(); |
1386 | 1387 |
1387 EndCondition.fromJson(core.Map _json) { | 1388 EndCondition.fromJson(core.Map _json) { |
1388 if (_json.containsKey("cardinality")) { | 1389 if (_json.containsKey("cardinality")) { |
1389 cardinality = new Cardinality.fromJson(_json["cardinality"]); | 1390 cardinality = new Cardinality.fromJson(_json["cardinality"]); |
1390 } | 1391 } |
1391 } | 1392 } |
1392 | 1393 |
1393 core.Map toJson() { | 1394 core.Map<core.String, core.Object> toJson() { |
1394 var _json = new core.Map(); | 1395 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1395 if (cardinality != null) { | 1396 if (cardinality != null) { |
1396 _json["cardinality"] = (cardinality).toJson(); | 1397 _json["cardinality"] = (cardinality).toJson(); |
1397 } | 1398 } |
1398 return _json; | 1399 return _json; |
1399 } | 1400 } |
1400 } | 1401 } |
1401 | 1402 |
1402 /** | 1403 /** |
1403 * `ListConfigs()` returns the following response. The order of returned | 1404 * `ListConfigs()` returns the following response. The order of returned |
1404 * objects is arbitrary; that is, it is not ordered in any particular way. | 1405 * objects is arbitrary; that is, it is not ordered in any particular way. |
(...skipping 17 matching lines...) Expand all Loading... |
1422 | 1423 |
1423 ListConfigsResponse.fromJson(core.Map _json) { | 1424 ListConfigsResponse.fromJson(core.Map _json) { |
1424 if (_json.containsKey("configs")) { | 1425 if (_json.containsKey("configs")) { |
1425 configs = _json["configs"].map((value) => new RuntimeConfig.fromJson(value
)).toList(); | 1426 configs = _json["configs"].map((value) => new RuntimeConfig.fromJson(value
)).toList(); |
1426 } | 1427 } |
1427 if (_json.containsKey("nextPageToken")) { | 1428 if (_json.containsKey("nextPageToken")) { |
1428 nextPageToken = _json["nextPageToken"]; | 1429 nextPageToken = _json["nextPageToken"]; |
1429 } | 1430 } |
1430 } | 1431 } |
1431 | 1432 |
1432 core.Map toJson() { | 1433 core.Map<core.String, core.Object> toJson() { |
1433 var _json = new core.Map(); | 1434 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1434 if (configs != null) { | 1435 if (configs != null) { |
1435 _json["configs"] = configs.map((value) => (value).toJson()).toList(); | 1436 _json["configs"] = configs.map((value) => (value).toJson()).toList(); |
1436 } | 1437 } |
1437 if (nextPageToken != null) { | 1438 if (nextPageToken != null) { |
1438 _json["nextPageToken"] = nextPageToken; | 1439 _json["nextPageToken"] = nextPageToken; |
1439 } | 1440 } |
1440 return _json; | 1441 return _json; |
1441 } | 1442 } |
1442 } | 1443 } |
1443 | 1444 |
(...skipping 17 matching lines...) Expand all Loading... |
1461 | 1462 |
1462 ListVariablesResponse.fromJson(core.Map _json) { | 1463 ListVariablesResponse.fromJson(core.Map _json) { |
1463 if (_json.containsKey("nextPageToken")) { | 1464 if (_json.containsKey("nextPageToken")) { |
1464 nextPageToken = _json["nextPageToken"]; | 1465 nextPageToken = _json["nextPageToken"]; |
1465 } | 1466 } |
1466 if (_json.containsKey("variables")) { | 1467 if (_json.containsKey("variables")) { |
1467 variables = _json["variables"].map((value) => new Variable.fromJson(value)
).toList(); | 1468 variables = _json["variables"].map((value) => new Variable.fromJson(value)
).toList(); |
1468 } | 1469 } |
1469 } | 1470 } |
1470 | 1471 |
1471 core.Map toJson() { | 1472 core.Map<core.String, core.Object> toJson() { |
1472 var _json = new core.Map(); | 1473 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1473 if (nextPageToken != null) { | 1474 if (nextPageToken != null) { |
1474 _json["nextPageToken"] = nextPageToken; | 1475 _json["nextPageToken"] = nextPageToken; |
1475 } | 1476 } |
1476 if (variables != null) { | 1477 if (variables != null) { |
1477 _json["variables"] = variables.map((value) => (value).toJson()).toList(); | 1478 _json["variables"] = variables.map((value) => (value).toJson()).toList(); |
1478 } | 1479 } |
1479 return _json; | 1480 return _json; |
1480 } | 1481 } |
1481 } | 1482 } |
1482 | 1483 |
(...skipping 17 matching lines...) Expand all Loading... |
1500 | 1501 |
1501 ListWaitersResponse.fromJson(core.Map _json) { | 1502 ListWaitersResponse.fromJson(core.Map _json) { |
1502 if (_json.containsKey("nextPageToken")) { | 1503 if (_json.containsKey("nextPageToken")) { |
1503 nextPageToken = _json["nextPageToken"]; | 1504 nextPageToken = _json["nextPageToken"]; |
1504 } | 1505 } |
1505 if (_json.containsKey("waiters")) { | 1506 if (_json.containsKey("waiters")) { |
1506 waiters = _json["waiters"].map((value) => new Waiter.fromJson(value)).toLi
st(); | 1507 waiters = _json["waiters"].map((value) => new Waiter.fromJson(value)).toLi
st(); |
1507 } | 1508 } |
1508 } | 1509 } |
1509 | 1510 |
1510 core.Map toJson() { | 1511 core.Map<core.String, core.Object> toJson() { |
1511 var _json = new core.Map(); | 1512 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1512 if (nextPageToken != null) { | 1513 if (nextPageToken != null) { |
1513 _json["nextPageToken"] = nextPageToken; | 1514 _json["nextPageToken"] = nextPageToken; |
1514 } | 1515 } |
1515 if (waiters != null) { | 1516 if (waiters != null) { |
1516 _json["waiters"] = waiters.map((value) => (value).toJson()).toList(); | 1517 _json["waiters"] = waiters.map((value) => (value).toJson()).toList(); |
1517 } | 1518 } |
1518 return _json; | 1519 return _json; |
1519 } | 1520 } |
1520 } | 1521 } |
1521 | 1522 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1576 metadata = _json["metadata"]; | 1577 metadata = _json["metadata"]; |
1577 } | 1578 } |
1578 if (_json.containsKey("name")) { | 1579 if (_json.containsKey("name")) { |
1579 name = _json["name"]; | 1580 name = _json["name"]; |
1580 } | 1581 } |
1581 if (_json.containsKey("response")) { | 1582 if (_json.containsKey("response")) { |
1582 response = _json["response"]; | 1583 response = _json["response"]; |
1583 } | 1584 } |
1584 } | 1585 } |
1585 | 1586 |
1586 core.Map toJson() { | 1587 core.Map<core.String, core.Object> toJson() { |
1587 var _json = new core.Map(); | 1588 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1588 if (done != null) { | 1589 if (done != null) { |
1589 _json["done"] = done; | 1590 _json["done"] = done; |
1590 } | 1591 } |
1591 if (error != null) { | 1592 if (error != null) { |
1592 _json["error"] = (error).toJson(); | 1593 _json["error"] = (error).toJson(); |
1593 } | 1594 } |
1594 if (metadata != null) { | 1595 if (metadata != null) { |
1595 _json["metadata"] = metadata; | 1596 _json["metadata"] = metadata; |
1596 } | 1597 } |
1597 if (name != null) { | 1598 if (name != null) { |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1674 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t
oList(); | 1675 bindings = _json["bindings"].map((value) => new Binding.fromJson(value)).t
oList(); |
1675 } | 1676 } |
1676 if (_json.containsKey("etag")) { | 1677 if (_json.containsKey("etag")) { |
1677 etag = _json["etag"]; | 1678 etag = _json["etag"]; |
1678 } | 1679 } |
1679 if (_json.containsKey("version")) { | 1680 if (_json.containsKey("version")) { |
1680 version = _json["version"]; | 1681 version = _json["version"]; |
1681 } | 1682 } |
1682 } | 1683 } |
1683 | 1684 |
1684 core.Map toJson() { | 1685 core.Map<core.String, core.Object> toJson() { |
1685 var _json = new core.Map(); | 1686 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1686 if (bindings != null) { | 1687 if (bindings != null) { |
1687 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); | 1688 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); |
1688 } | 1689 } |
1689 if (etag != null) { | 1690 if (etag != null) { |
1690 _json["etag"] = etag; | 1691 _json["etag"] = etag; |
1691 } | 1692 } |
1692 if (version != null) { | 1693 if (version != null) { |
1693 _json["version"] = version; | 1694 _json["version"] = version; |
1694 } | 1695 } |
1695 return _json; | 1696 return _json; |
(...skipping 27 matching lines...) Expand all Loading... |
1723 | 1724 |
1724 RuntimeConfig.fromJson(core.Map _json) { | 1725 RuntimeConfig.fromJson(core.Map _json) { |
1725 if (_json.containsKey("description")) { | 1726 if (_json.containsKey("description")) { |
1726 description = _json["description"]; | 1727 description = _json["description"]; |
1727 } | 1728 } |
1728 if (_json.containsKey("name")) { | 1729 if (_json.containsKey("name")) { |
1729 name = _json["name"]; | 1730 name = _json["name"]; |
1730 } | 1731 } |
1731 } | 1732 } |
1732 | 1733 |
1733 core.Map toJson() { | 1734 core.Map<core.String, core.Object> toJson() { |
1734 var _json = new core.Map(); | 1735 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1735 if (description != null) { | 1736 if (description != null) { |
1736 _json["description"] = description; | 1737 _json["description"] = description; |
1737 } | 1738 } |
1738 if (name != null) { | 1739 if (name != null) { |
1739 _json["name"] = name; | 1740 _json["name"] = name; |
1740 } | 1741 } |
1741 return _json; | 1742 return _json; |
1742 } | 1743 } |
1743 } | 1744 } |
1744 | 1745 |
1745 /** Request message for `SetIamPolicy` method. */ | 1746 /** Request message for `SetIamPolicy` method. */ |
1746 class SetIamPolicyRequest { | 1747 class SetIamPolicyRequest { |
1747 /** | 1748 /** |
1748 * REQUIRED: The complete policy to be applied to the `resource`. The size of | 1749 * REQUIRED: The complete policy to be applied to the `resource`. The size of |
1749 * the policy is limited to a few 10s of KB. An empty policy is a | 1750 * the policy is limited to a few 10s of KB. An empty policy is a |
1750 * valid policy but certain Cloud Platform services (such as Projects) | 1751 * valid policy but certain Cloud Platform services (such as Projects) |
1751 * might reject them. | 1752 * might reject them. |
1752 */ | 1753 */ |
1753 Policy policy; | 1754 Policy policy; |
1754 | 1755 |
1755 SetIamPolicyRequest(); | 1756 SetIamPolicyRequest(); |
1756 | 1757 |
1757 SetIamPolicyRequest.fromJson(core.Map _json) { | 1758 SetIamPolicyRequest.fromJson(core.Map _json) { |
1758 if (_json.containsKey("policy")) { | 1759 if (_json.containsKey("policy")) { |
1759 policy = new Policy.fromJson(_json["policy"]); | 1760 policy = new Policy.fromJson(_json["policy"]); |
1760 } | 1761 } |
1761 } | 1762 } |
1762 | 1763 |
1763 core.Map toJson() { | 1764 core.Map<core.String, core.Object> toJson() { |
1764 var _json = new core.Map(); | 1765 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1765 if (policy != null) { | 1766 if (policy != null) { |
1766 _json["policy"] = (policy).toJson(); | 1767 _json["policy"] = (policy).toJson(); |
1767 } | 1768 } |
1768 return _json; | 1769 return _json; |
1769 } | 1770 } |
1770 } | 1771 } |
1771 | 1772 |
1772 /** | 1773 /** |
1773 * The `Status` type defines a logical error model that is suitable for | 1774 * The `Status` type defines a logical error model that is suitable for |
1774 * different | 1775 * different |
1775 * programming environments, including REST APIs and RPC APIs. It is used by | 1776 * programming environments, including REST APIs and RPC APIs. It is used by |
1776 * [gRPC](https://github.com/grpc). The error model is designed to be: | 1777 * [gRPC](https://github.com/grpc). The error model is designed to be: |
1777 * | 1778 * |
1778 * - Simple to use and understand for most users | 1779 * - Simple to use and understand for most users |
1779 * - Flexible enough to meet unexpected needs | 1780 * - Flexible enough to meet unexpected needs |
1780 * | 1781 * |
1781 * # Overview | 1782 * # Overview |
1782 * | 1783 * |
1783 * The `Status` message contains three pieces of data: error code, error | 1784 * The `Status` message contains three pieces of data: error code, error |
1784 * message, | 1785 * message, |
1785 * and error details. The error code should be an enum value of | 1786 * and error details. The error code should be an enum value of |
1786 * google.rpc.Code, but it may accept additional error codes if needed. The | 1787 * google.rpc.Code, but it may accept additional error codes if needed. The |
1787 * error message should be a developer-facing English message that helps | 1788 * error message should be a developer-facing English message that helps |
1788 * developers *understand* and *resolve* the error. If a localized user-facing | 1789 * developers *understand* and *resolve* the error. If a localized user-facing |
1789 * error message is needed, put the localized message in the error details or | 1790 * error message is needed, put the localized message in the error details or |
1790 * localize it in the client. The optional error details may contain arbitrary | 1791 * localize it in the client. The optional error details may contain arbitrary |
1791 * information about the error. There is a predefined set of error detail types | 1792 * information about the error. There is a predefined set of error detail types |
1792 * in the package `google.rpc` which can be used for common error conditions. | 1793 * in the package `google.rpc` that can be used for common error conditions. |
1793 * | 1794 * |
1794 * # Language mapping | 1795 * # Language mapping |
1795 * | 1796 * |
1796 * The `Status` message is the logical representation of the error model, but it | 1797 * The `Status` message is the logical representation of the error model, but it |
1797 * is not necessarily the actual wire format. When the `Status` message is | 1798 * is not necessarily the actual wire format. When the `Status` message is |
1798 * exposed in different client libraries and different wire protocols, it can be | 1799 * exposed in different client libraries and different wire protocols, it can be |
1799 * mapped differently. For example, it will likely be mapped to some exceptions | 1800 * mapped differently. For example, it will likely be mapped to some exceptions |
1800 * in Java, but more likely mapped to some error codes in C. | 1801 * in Java, but more likely mapped to some error codes in C. |
1801 * | 1802 * |
1802 * # Other uses | 1803 * # Other uses |
1803 * | 1804 * |
1804 * The error model and the `Status` message can be used in a variety of | 1805 * The error model and the `Status` message can be used in a variety of |
1805 * environments, either with or without APIs, to provide a | 1806 * environments, either with or without APIs, to provide a |
1806 * consistent developer experience across different environments. | 1807 * consistent developer experience across different environments. |
1807 * | 1808 * |
1808 * Example uses of this error model include: | 1809 * Example uses of this error model include: |
1809 * | 1810 * |
1810 * - Partial errors. If a service needs to return partial errors to the client, | 1811 * - Partial errors. If a service needs to return partial errors to the client, |
1811 * it may embed the `Status` in the normal response to indicate the partial | 1812 * it may embed the `Status` in the normal response to indicate the partial |
1812 * errors. | 1813 * errors. |
1813 * | 1814 * |
1814 * - Workflow errors. A typical workflow has multiple steps. Each step may | 1815 * - Workflow errors. A typical workflow has multiple steps. Each step may |
1815 * have a `Status` message for error reporting purpose. | 1816 * have a `Status` message for error reporting. |
1816 * | 1817 * |
1817 * - Batch operations. If a client uses batch request and batch response, the | 1818 * - Batch operations. If a client uses batch request and batch response, the |
1818 * `Status` message should be used directly inside batch response, one for | 1819 * `Status` message should be used directly inside batch response, one for |
1819 * each error sub-response. | 1820 * each error sub-response. |
1820 * | 1821 * |
1821 * - Asynchronous operations. If an API call embeds asynchronous operation | 1822 * - Asynchronous operations. If an API call embeds asynchronous operation |
1822 * results in its response, the status of those operations should be | 1823 * results in its response, the status of those operations should be |
1823 * represented directly using the `Status` message. | 1824 * represented directly using the `Status` message. |
1824 * | 1825 * |
1825 * - Logging. If some API errors are stored in logs, the message `Status` could | 1826 * - Logging. If some API errors are stored in logs, the message `Status` could |
(...skipping 24 matching lines...) Expand all Loading... |
1850 code = _json["code"]; | 1851 code = _json["code"]; |
1851 } | 1852 } |
1852 if (_json.containsKey("details")) { | 1853 if (_json.containsKey("details")) { |
1853 details = _json["details"]; | 1854 details = _json["details"]; |
1854 } | 1855 } |
1855 if (_json.containsKey("message")) { | 1856 if (_json.containsKey("message")) { |
1856 message = _json["message"]; | 1857 message = _json["message"]; |
1857 } | 1858 } |
1858 } | 1859 } |
1859 | 1860 |
1860 core.Map toJson() { | 1861 core.Map<core.String, core.Object> toJson() { |
1861 var _json = new core.Map(); | 1862 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1862 if (code != null) { | 1863 if (code != null) { |
1863 _json["code"] = code; | 1864 _json["code"] = code; |
1864 } | 1865 } |
1865 if (details != null) { | 1866 if (details != null) { |
1866 _json["details"] = details; | 1867 _json["details"] = details; |
1867 } | 1868 } |
1868 if (message != null) { | 1869 if (message != null) { |
1869 _json["message"] = message; | 1870 _json["message"] = message; |
1870 } | 1871 } |
1871 return _json; | 1872 return _json; |
(...skipping 11 matching lines...) Expand all Loading... |
1883 core.List<core.String> permissions; | 1884 core.List<core.String> permissions; |
1884 | 1885 |
1885 TestIamPermissionsRequest(); | 1886 TestIamPermissionsRequest(); |
1886 | 1887 |
1887 TestIamPermissionsRequest.fromJson(core.Map _json) { | 1888 TestIamPermissionsRequest.fromJson(core.Map _json) { |
1888 if (_json.containsKey("permissions")) { | 1889 if (_json.containsKey("permissions")) { |
1889 permissions = _json["permissions"]; | 1890 permissions = _json["permissions"]; |
1890 } | 1891 } |
1891 } | 1892 } |
1892 | 1893 |
1893 core.Map toJson() { | 1894 core.Map<core.String, core.Object> toJson() { |
1894 var _json = new core.Map(); | 1895 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1895 if (permissions != null) { | 1896 if (permissions != null) { |
1896 _json["permissions"] = permissions; | 1897 _json["permissions"] = permissions; |
1897 } | 1898 } |
1898 return _json; | 1899 return _json; |
1899 } | 1900 } |
1900 } | 1901 } |
1901 | 1902 |
1902 /** Response message for `TestIamPermissions` method. */ | 1903 /** Response message for `TestIamPermissions` method. */ |
1903 class TestIamPermissionsResponse { | 1904 class TestIamPermissionsResponse { |
1904 /** | 1905 /** |
1905 * A subset of `TestPermissionsRequest.permissions` that the caller is | 1906 * A subset of `TestPermissionsRequest.permissions` that the caller is |
1906 * allowed. | 1907 * allowed. |
1907 */ | 1908 */ |
1908 core.List<core.String> permissions; | 1909 core.List<core.String> permissions; |
1909 | 1910 |
1910 TestIamPermissionsResponse(); | 1911 TestIamPermissionsResponse(); |
1911 | 1912 |
1912 TestIamPermissionsResponse.fromJson(core.Map _json) { | 1913 TestIamPermissionsResponse.fromJson(core.Map _json) { |
1913 if (_json.containsKey("permissions")) { | 1914 if (_json.containsKey("permissions")) { |
1914 permissions = _json["permissions"]; | 1915 permissions = _json["permissions"]; |
1915 } | 1916 } |
1916 } | 1917 } |
1917 | 1918 |
1918 core.Map toJson() { | 1919 core.Map<core.String, core.Object> toJson() { |
1919 var _json = new core.Map(); | 1920 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1920 if (permissions != null) { | 1921 if (permissions != null) { |
1921 _json["permissions"] = permissions; | 1922 _json["permissions"] = permissions; |
1922 } | 1923 } |
1923 return _json; | 1924 return _json; |
1924 } | 1925 } |
1925 } | 1926 } |
1926 | 1927 |
1927 /** | 1928 /** |
1928 * Describes a single variable within a RuntimeConfig resource. | 1929 * Describes a single variable within a RuntimeConfig resource. |
1929 * The name denotes the hierarchical variable name. For example, | 1930 * The name denotes the hierarchical variable name. For example, |
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1999 text = _json["text"]; | 2000 text = _json["text"]; |
2000 } | 2001 } |
2001 if (_json.containsKey("updateTime")) { | 2002 if (_json.containsKey("updateTime")) { |
2002 updateTime = _json["updateTime"]; | 2003 updateTime = _json["updateTime"]; |
2003 } | 2004 } |
2004 if (_json.containsKey("value")) { | 2005 if (_json.containsKey("value")) { |
2005 value = _json["value"]; | 2006 value = _json["value"]; |
2006 } | 2007 } |
2007 } | 2008 } |
2008 | 2009 |
2009 core.Map toJson() { | 2010 core.Map<core.String, core.Object> toJson() { |
2010 var _json = new core.Map(); | 2011 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2011 if (name != null) { | 2012 if (name != null) { |
2012 _json["name"] = name; | 2013 _json["name"] = name; |
2013 } | 2014 } |
2014 if (state != null) { | 2015 if (state != null) { |
2015 _json["state"] = state; | 2016 _json["state"] = state; |
2016 } | 2017 } |
2017 if (text != null) { | 2018 if (text != null) { |
2018 _json["text"] = text; | 2019 _json["text"] = text; |
2019 } | 2020 } |
2020 if (updateTime != null) { | 2021 if (updateTime != null) { |
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2122 name = _json["name"]; | 2123 name = _json["name"]; |
2123 } | 2124 } |
2124 if (_json.containsKey("success")) { | 2125 if (_json.containsKey("success")) { |
2125 success = new EndCondition.fromJson(_json["success"]); | 2126 success = new EndCondition.fromJson(_json["success"]); |
2126 } | 2127 } |
2127 if (_json.containsKey("timeout")) { | 2128 if (_json.containsKey("timeout")) { |
2128 timeout = _json["timeout"]; | 2129 timeout = _json["timeout"]; |
2129 } | 2130 } |
2130 } | 2131 } |
2131 | 2132 |
2132 core.Map toJson() { | 2133 core.Map<core.String, core.Object> toJson() { |
2133 var _json = new core.Map(); | 2134 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2134 if (createTime != null) { | 2135 if (createTime != null) { |
2135 _json["createTime"] = createTime; | 2136 _json["createTime"] = createTime; |
2136 } | 2137 } |
2137 if (done != null) { | 2138 if (done != null) { |
2138 _json["done"] = done; | 2139 _json["done"] = done; |
2139 } | 2140 } |
2140 if (error != null) { | 2141 if (error != null) { |
2141 _json["error"] = (error).toJson(); | 2142 _json["error"] = (error).toJson(); |
2142 } | 2143 } |
2143 if (failure != null) { | 2144 if (failure != null) { |
(...skipping 25 matching lines...) Expand all Loading... |
2169 core.String newerThan; | 2170 core.String newerThan; |
2170 | 2171 |
2171 WatchVariableRequest(); | 2172 WatchVariableRequest(); |
2172 | 2173 |
2173 WatchVariableRequest.fromJson(core.Map _json) { | 2174 WatchVariableRequest.fromJson(core.Map _json) { |
2174 if (_json.containsKey("newerThan")) { | 2175 if (_json.containsKey("newerThan")) { |
2175 newerThan = _json["newerThan"]; | 2176 newerThan = _json["newerThan"]; |
2176 } | 2177 } |
2177 } | 2178 } |
2178 | 2179 |
2179 core.Map toJson() { | 2180 core.Map<core.String, core.Object> toJson() { |
2180 var _json = new core.Map(); | 2181 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2181 if (newerThan != null) { | 2182 if (newerThan != null) { |
2182 _json["newerThan"] = newerThan; | 2183 _json["newerThan"] = newerThan; |
2183 } | 2184 } |
2184 return _json; | 2185 return _json; |
2185 } | 2186 } |
2186 } | 2187 } |
OLD | NEW |