Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(901)

Side by Side Diff: generated/googleapis/lib/servicemanagement/v1.dart

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.servicemanagement.v1; 3 library googleapis.servicemanagement.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_1; 10 import 'package:http/http.dart' as http_1;
(...skipping 1338 matching lines...) Expand 10 before | Expand all | Expand 10 after
1349 core.String description; 1349 core.String description;
1350 1350
1351 Advice(); 1351 Advice();
1352 1352
1353 Advice.fromJson(core.Map _json) { 1353 Advice.fromJson(core.Map _json) {
1354 if (_json.containsKey("description")) { 1354 if (_json.containsKey("description")) {
1355 description = _json["description"]; 1355 description = _json["description"];
1356 } 1356 }
1357 } 1357 }
1358 1358
1359 core.Map toJson() { 1359 core.Map<core.String, core.Object> toJson() {
1360 var _json = new core.Map(); 1360 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1361 if (description != null) { 1361 if (description != null) {
1362 _json["description"] = description; 1362 _json["description"] = description;
1363 } 1363 }
1364 return _json; 1364 return _json;
1365 } 1365 }
1366 } 1366 }
1367 1367
1368 /** Api is a light-weight descriptor for a protocol buffer service. */ 1368 /** Api is a light-weight descriptor for a protocol buffer service. */
1369 class Api { 1369 class Api {
1370 /** The methods of this api, in unspecified order. */ 1370 /** The methods of this api, in unspecified order. */
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
1433 sourceContext = new SourceContext.fromJson(_json["sourceContext"]); 1433 sourceContext = new SourceContext.fromJson(_json["sourceContext"]);
1434 } 1434 }
1435 if (_json.containsKey("syntax")) { 1435 if (_json.containsKey("syntax")) {
1436 syntax = _json["syntax"]; 1436 syntax = _json["syntax"];
1437 } 1437 }
1438 if (_json.containsKey("version")) { 1438 if (_json.containsKey("version")) {
1439 version = _json["version"]; 1439 version = _json["version"];
1440 } 1440 }
1441 } 1441 }
1442 1442
1443 core.Map toJson() { 1443 core.Map<core.String, core.Object> toJson() {
1444 var _json = new core.Map(); 1444 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1445 if (methods != null) { 1445 if (methods != null) {
1446 _json["methods"] = methods.map((value) => (value).toJson()).toList(); 1446 _json["methods"] = methods.map((value) => (value).toJson()).toList();
1447 } 1447 }
1448 if (mixins != null) { 1448 if (mixins != null) {
1449 _json["mixins"] = mixins.map((value) => (value).toJson()).toList(); 1449 _json["mixins"] = mixins.map((value) => (value).toJson()).toList();
1450 } 1450 }
1451 if (name != null) { 1451 if (name != null) {
1452 _json["name"] = name; 1452 _json["name"] = name;
1453 } 1453 }
1454 if (options != null) { 1454 if (options != null) {
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
1541 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf ig.fromJson(value)).toList(); 1541 auditLogConfigs = _json["auditLogConfigs"].map((value) => new AuditLogConf ig.fromJson(value)).toList();
1542 } 1542 }
1543 if (_json.containsKey("exemptedMembers")) { 1543 if (_json.containsKey("exemptedMembers")) {
1544 exemptedMembers = _json["exemptedMembers"]; 1544 exemptedMembers = _json["exemptedMembers"];
1545 } 1545 }
1546 if (_json.containsKey("service")) { 1546 if (_json.containsKey("service")) {
1547 service = _json["service"]; 1547 service = _json["service"];
1548 } 1548 }
1549 } 1549 }
1550 1550
1551 core.Map toJson() { 1551 core.Map<core.String, core.Object> toJson() {
1552 var _json = new core.Map(); 1552 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1553 if (auditLogConfigs != null) { 1553 if (auditLogConfigs != null) {
1554 _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson() ).toList(); 1554 _json["auditLogConfigs"] = auditLogConfigs.map((value) => (value).toJson() ).toList();
1555 } 1555 }
1556 if (exemptedMembers != null) { 1556 if (exemptedMembers != null) {
1557 _json["exemptedMembers"] = exemptedMembers; 1557 _json["exemptedMembers"] = exemptedMembers;
1558 } 1558 }
1559 if (service != null) { 1559 if (service != null) {
1560 _json["service"] = service; 1560 _json["service"] = service;
1561 } 1561 }
1562 return _json; 1562 return _json;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
1605 1605
1606 AuditLogConfig.fromJson(core.Map _json) { 1606 AuditLogConfig.fromJson(core.Map _json) {
1607 if (_json.containsKey("exemptedMembers")) { 1607 if (_json.containsKey("exemptedMembers")) {
1608 exemptedMembers = _json["exemptedMembers"]; 1608 exemptedMembers = _json["exemptedMembers"];
1609 } 1609 }
1610 if (_json.containsKey("logType")) { 1610 if (_json.containsKey("logType")) {
1611 logType = _json["logType"]; 1611 logType = _json["logType"];
1612 } 1612 }
1613 } 1613 }
1614 1614
1615 core.Map toJson() { 1615 core.Map<core.String, core.Object> toJson() {
1616 var _json = new core.Map(); 1616 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1617 if (exemptedMembers != null) { 1617 if (exemptedMembers != null) {
1618 _json["exemptedMembers"] = exemptedMembers; 1618 _json["exemptedMembers"] = exemptedMembers;
1619 } 1619 }
1620 if (logType != null) { 1620 if (logType != null) {
1621 _json["logType"] = logType; 1621 _json["logType"] = logType;
1622 } 1622 }
1623 return _json; 1623 return _json;
1624 } 1624 }
1625 } 1625 }
1626 1626
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
1688 id = _json["id"]; 1688 id = _json["id"];
1689 } 1689 }
1690 if (_json.containsKey("issuer")) { 1690 if (_json.containsKey("issuer")) {
1691 issuer = _json["issuer"]; 1691 issuer = _json["issuer"];
1692 } 1692 }
1693 if (_json.containsKey("jwksUri")) { 1693 if (_json.containsKey("jwksUri")) {
1694 jwksUri = _json["jwksUri"]; 1694 jwksUri = _json["jwksUri"];
1695 } 1695 }
1696 } 1696 }
1697 1697
1698 core.Map toJson() { 1698 core.Map<core.String, core.Object> toJson() {
1699 var _json = new core.Map(); 1699 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1700 if (audiences != null) { 1700 if (audiences != null) {
1701 _json["audiences"] = audiences; 1701 _json["audiences"] = audiences;
1702 } 1702 }
1703 if (id != null) { 1703 if (id != null) {
1704 _json["id"] = id; 1704 _json["id"] = id;
1705 } 1705 }
1706 if (issuer != null) { 1706 if (issuer != null) {
1707 _json["issuer"] = issuer; 1707 _json["issuer"] = issuer;
1708 } 1708 }
1709 if (jwksUri != null) { 1709 if (jwksUri != null) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1751 1751
1752 AuthRequirement.fromJson(core.Map _json) { 1752 AuthRequirement.fromJson(core.Map _json) {
1753 if (_json.containsKey("audiences")) { 1753 if (_json.containsKey("audiences")) {
1754 audiences = _json["audiences"]; 1754 audiences = _json["audiences"];
1755 } 1755 }
1756 if (_json.containsKey("providerId")) { 1756 if (_json.containsKey("providerId")) {
1757 providerId = _json["providerId"]; 1757 providerId = _json["providerId"];
1758 } 1758 }
1759 } 1759 }
1760 1760
1761 core.Map toJson() { 1761 core.Map<core.String, core.Object> toJson() {
1762 var _json = new core.Map(); 1762 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1763 if (audiences != null) { 1763 if (audiences != null) {
1764 _json["audiences"] = audiences; 1764 _json["audiences"] = audiences;
1765 } 1765 }
1766 if (providerId != null) { 1766 if (providerId != null) {
1767 _json["providerId"] = providerId; 1767 _json["providerId"] = providerId;
1768 } 1768 }
1769 return _json; 1769 return _json;
1770 } 1770 }
1771 } 1771 }
1772 1772
(...skipping 27 matching lines...) Expand all
1800 1800
1801 Authentication.fromJson(core.Map _json) { 1801 Authentication.fromJson(core.Map _json) {
1802 if (_json.containsKey("providers")) { 1802 if (_json.containsKey("providers")) {
1803 providers = _json["providers"].map((value) => new AuthProvider.fromJson(va lue)).toList(); 1803 providers = _json["providers"].map((value) => new AuthProvider.fromJson(va lue)).toList();
1804 } 1804 }
1805 if (_json.containsKey("rules")) { 1805 if (_json.containsKey("rules")) {
1806 rules = _json["rules"].map((value) => new AuthenticationRule.fromJson(valu e)).toList(); 1806 rules = _json["rules"].map((value) => new AuthenticationRule.fromJson(valu e)).toList();
1807 } 1807 }
1808 } 1808 }
1809 1809
1810 core.Map toJson() { 1810 core.Map<core.String, core.Object> toJson() {
1811 var _json = new core.Map(); 1811 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1812 if (providers != null) { 1812 if (providers != null) {
1813 _json["providers"] = providers.map((value) => (value).toJson()).toList(); 1813 _json["providers"] = providers.map((value) => (value).toJson()).toList();
1814 } 1814 }
1815 if (rules != null) { 1815 if (rules != null) {
1816 _json["rules"] = rules.map((value) => (value).toJson()).toList(); 1816 _json["rules"] = rules.map((value) => (value).toJson()).toList();
1817 } 1817 }
1818 return _json; 1818 return _json;
1819 } 1819 }
1820 } 1820 }
1821 1821
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1867 oauth = new OAuthRequirements.fromJson(_json["oauth"]); 1867 oauth = new OAuthRequirements.fromJson(_json["oauth"]);
1868 } 1868 }
1869 if (_json.containsKey("requirements")) { 1869 if (_json.containsKey("requirements")) {
1870 requirements = _json["requirements"].map((value) => new AuthRequirement.fr omJson(value)).toList(); 1870 requirements = _json["requirements"].map((value) => new AuthRequirement.fr omJson(value)).toList();
1871 } 1871 }
1872 if (_json.containsKey("selector")) { 1872 if (_json.containsKey("selector")) {
1873 selector = _json["selector"]; 1873 selector = _json["selector"];
1874 } 1874 }
1875 } 1875 }
1876 1876
1877 core.Map toJson() { 1877 core.Map<core.String, core.Object> toJson() {
1878 var _json = new core.Map(); 1878 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1879 if (allowWithoutCredential != null) { 1879 if (allowWithoutCredential != null) {
1880 _json["allowWithoutCredential"] = allowWithoutCredential; 1880 _json["allowWithoutCredential"] = allowWithoutCredential;
1881 } 1881 }
1882 if (customAuth != null) { 1882 if (customAuth != null) {
1883 _json["customAuth"] = (customAuth).toJson(); 1883 _json["customAuth"] = (customAuth).toJson();
1884 } 1884 }
1885 if (oauth != null) { 1885 if (oauth != null) {
1886 _json["oauth"] = (oauth).toJson(); 1886 _json["oauth"] = (oauth).toJson();
1887 } 1887 }
1888 if (requirements != null) { 1888 if (requirements != null) {
(...skipping 26 matching lines...) Expand all
1915 core.String provider; 1915 core.String provider;
1916 1916
1917 AuthorizationConfig(); 1917 AuthorizationConfig();
1918 1918
1919 AuthorizationConfig.fromJson(core.Map _json) { 1919 AuthorizationConfig.fromJson(core.Map _json) {
1920 if (_json.containsKey("provider")) { 1920 if (_json.containsKey("provider")) {
1921 provider = _json["provider"]; 1921 provider = _json["provider"];
1922 } 1922 }
1923 } 1923 }
1924 1924
1925 core.Map toJson() { 1925 core.Map<core.String, core.Object> toJson() {
1926 var _json = new core.Map(); 1926 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1927 if (provider != null) { 1927 if (provider != null) {
1928 _json["provider"] = provider; 1928 _json["provider"] = provider;
1929 } 1929 }
1930 return _json; 1930 return _json;
1931 } 1931 }
1932 } 1932 }
1933 1933
1934 /** `Backend` defines the backend configuration for a service. */ 1934 /** `Backend` defines the backend configuration for a service. */
1935 class Backend { 1935 class Backend {
1936 /** 1936 /**
1937 * A list of API backend rules that apply to individual API methods. 1937 * A list of API backend rules that apply to individual API methods.
1938 * 1938 *
1939 * **NOTE:** All service configuration rules follow "last one wins" order. 1939 * **NOTE:** All service configuration rules follow "last one wins" order.
1940 */ 1940 */
1941 core.List<BackendRule> rules; 1941 core.List<BackendRule> rules;
1942 1942
1943 Backend(); 1943 Backend();
1944 1944
1945 Backend.fromJson(core.Map _json) { 1945 Backend.fromJson(core.Map _json) {
1946 if (_json.containsKey("rules")) { 1946 if (_json.containsKey("rules")) {
1947 rules = _json["rules"].map((value) => new BackendRule.fromJson(value)).toL ist(); 1947 rules = _json["rules"].map((value) => new BackendRule.fromJson(value)).toL ist();
1948 } 1948 }
1949 } 1949 }
1950 1950
1951 core.Map toJson() { 1951 core.Map<core.String, core.Object> toJson() {
1952 var _json = new core.Map(); 1952 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1953 if (rules != null) { 1953 if (rules != null) {
1954 _json["rules"] = rules.map((value) => (value).toJson()).toList(); 1954 _json["rules"] = rules.map((value) => (value).toJson()).toList();
1955 } 1955 }
1956 return _json; 1956 return _json;
1957 } 1957 }
1958 } 1958 }
1959 1959
1960 /** A backend rule provides configuration for an individual API element. */ 1960 /** A backend rule provides configuration for an individual API element. */
1961 class BackendRule { 1961 class BackendRule {
1962 /** The address of the API backend. */ 1962 /** The address of the API backend. */
(...skipping 25 matching lines...) Expand all
1988 deadline = _json["deadline"]; 1988 deadline = _json["deadline"];
1989 } 1989 }
1990 if (_json.containsKey("minDeadline")) { 1990 if (_json.containsKey("minDeadline")) {
1991 minDeadline = _json["minDeadline"]; 1991 minDeadline = _json["minDeadline"];
1992 } 1992 }
1993 if (_json.containsKey("selector")) { 1993 if (_json.containsKey("selector")) {
1994 selector = _json["selector"]; 1994 selector = _json["selector"];
1995 } 1995 }
1996 } 1996 }
1997 1997
1998 core.Map toJson() { 1998 core.Map<core.String, core.Object> toJson() {
1999 var _json = new core.Map(); 1999 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2000 if (address != null) { 2000 if (address != null) {
2001 _json["address"] = address; 2001 _json["address"] = address;
2002 } 2002 }
2003 if (deadline != null) { 2003 if (deadline != null) {
2004 _json["deadline"] = deadline; 2004 _json["deadline"] = deadline;
2005 } 2005 }
2006 if (minDeadline != null) { 2006 if (minDeadline != null) {
2007 _json["minDeadline"] = minDeadline; 2007 _json["minDeadline"] = minDeadline;
2008 } 2008 }
2009 if (selector != null) { 2009 if (selector != null) {
2010 _json["selector"] = selector; 2010 _json["selector"] = selector;
2011 } 2011 }
2012 return _json; 2012 return _json;
2013 } 2013 }
2014 } 2014 }
2015 2015
2016 /** Associates `members` with a `role`. */ 2016 /** Associates `members` with a `role`. */
2017 class Binding { 2017 class Binding {
2018 /** 2018 /**
2019 * The condition that is associated with this binding.
2020 * NOTE: an unsatisfied condition will not allow user access via current
2021 * binding. Different bindings, including their conditions, are examined
2022 * independently.
2023 * This field is GOOGLE_INTERNAL.
2024 */
2025 Expr condition;
2026 /**
2019 * Specifies the identities requesting access for a Cloud Platform resource. 2027 * Specifies the identities requesting access for a Cloud Platform resource.
2020 * `members` can have the following values: 2028 * `members` can have the following values:
2021 * 2029 *
2022 * * `allUsers`: A special identifier that represents anyone who is 2030 * * `allUsers`: A special identifier that represents anyone who is
2023 * on the internet; with or without a Google account. 2031 * on the internet; with or without a Google account.
2024 * 2032 *
2025 * * `allAuthenticatedUsers`: A special identifier that represents anyone 2033 * * `allAuthenticatedUsers`: A special identifier that represents anyone
2026 * who is authenticated with a Google account or a service account. 2034 * who is authenticated with a Google account or a service account.
2027 * 2035 *
2028 * * `user:{emailid}`: An email address that represents a specific Google 2036 * * `user:{emailid}`: An email address that represents a specific Google
(...skipping 14 matching lines...) Expand all
2043 /** 2051 /**
2044 * Role that is assigned to `members`. 2052 * Role that is assigned to `members`.
2045 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`. 2053 * For example, `roles/viewer`, `roles/editor`, or `roles/owner`.
2046 * Required 2054 * Required
2047 */ 2055 */
2048 core.String role; 2056 core.String role;
2049 2057
2050 Binding(); 2058 Binding();
2051 2059
2052 Binding.fromJson(core.Map _json) { 2060 Binding.fromJson(core.Map _json) {
2061 if (_json.containsKey("condition")) {
2062 condition = new Expr.fromJson(_json["condition"]);
2063 }
2053 if (_json.containsKey("members")) { 2064 if (_json.containsKey("members")) {
2054 members = _json["members"]; 2065 members = _json["members"];
2055 } 2066 }
2056 if (_json.containsKey("role")) { 2067 if (_json.containsKey("role")) {
2057 role = _json["role"]; 2068 role = _json["role"];
2058 } 2069 }
2059 } 2070 }
2060 2071
2061 core.Map toJson() { 2072 core.Map<core.String, core.Object> toJson() {
2062 var _json = new core.Map(); 2073 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2074 if (condition != null) {
2075 _json["condition"] = (condition).toJson();
2076 }
2063 if (members != null) { 2077 if (members != null) {
2064 _json["members"] = members; 2078 _json["members"] = members;
2065 } 2079 }
2066 if (role != null) { 2080 if (role != null) {
2067 _json["role"] = role; 2081 _json["role"] = role;
2068 } 2082 }
2069 return _json; 2083 return _json;
2070 } 2084 }
2071 } 2085 }
2072 2086
(...skipping 14 matching lines...) Expand all
2087 core.List<ConfigChange> configChanges; 2101 core.List<ConfigChange> configChanges;
2088 2102
2089 ChangeReport(); 2103 ChangeReport();
2090 2104
2091 ChangeReport.fromJson(core.Map _json) { 2105 ChangeReport.fromJson(core.Map _json) {
2092 if (_json.containsKey("configChanges")) { 2106 if (_json.containsKey("configChanges")) {
2093 configChanges = _json["configChanges"].map((value) => new ConfigChange.fro mJson(value)).toList(); 2107 configChanges = _json["configChanges"].map((value) => new ConfigChange.fro mJson(value)).toList();
2094 } 2108 }
2095 } 2109 }
2096 2110
2097 core.Map toJson() { 2111 core.Map<core.String, core.Object> toJson() {
2098 var _json = new core.Map(); 2112 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2099 if (configChanges != null) { 2113 if (configChanges != null) {
2100 _json["configChanges"] = configChanges.map((value) => (value).toJson()).to List(); 2114 _json["configChanges"] = configChanges.map((value) => (value).toJson()).to List();
2101 } 2115 }
2102 return _json; 2116 return _json;
2103 } 2117 }
2104 } 2118 }
2105 2119
2106 /** Write a Cloud Audit log */ 2120 /** Write a Cloud Audit log */
2107 class CloudAuditOptions { 2121 class CloudAuditOptions {
2108 /** 2122 /**
2109 * The log_name to populate in the Cloud Audit Record. 2123 * The log_name to populate in the Cloud Audit Record.
2110 * Possible string values are: 2124 * Possible string values are:
2111 * - "UNSPECIFIED_LOG_NAME" : Default. Should not be used. 2125 * - "UNSPECIFIED_LOG_NAME" : Default. Should not be used.
2112 * - "ADMIN_ACTIVITY" : Corresponds to "cloudaudit.googleapis.com/activity" 2126 * - "ADMIN_ACTIVITY" : Corresponds to "cloudaudit.googleapis.com/activity"
2113 * - "DATA_ACCESS" : Corresponds to "cloudaudit.googleapis.com/data_access" 2127 * - "DATA_ACCESS" : Corresponds to "cloudaudit.googleapis.com/data_access"
2114 */ 2128 */
2115 core.String logName; 2129 core.String logName;
2116 2130
2117 CloudAuditOptions(); 2131 CloudAuditOptions();
2118 2132
2119 CloudAuditOptions.fromJson(core.Map _json) { 2133 CloudAuditOptions.fromJson(core.Map _json) {
2120 if (_json.containsKey("logName")) { 2134 if (_json.containsKey("logName")) {
2121 logName = _json["logName"]; 2135 logName = _json["logName"];
2122 } 2136 }
2123 } 2137 }
2124 2138
2125 core.Map toJson() { 2139 core.Map<core.String, core.Object> toJson() {
2126 var _json = new core.Map(); 2140 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2127 if (logName != null) { 2141 if (logName != null) {
2128 _json["logName"] = logName; 2142 _json["logName"] = logName;
2129 } 2143 }
2130 return _json; 2144 return _json;
2131 } 2145 }
2132 } 2146 }
2133 2147
2134 /** A condition to be met. */ 2148 /** A condition to be met. */
2135 class Condition { 2149 class Condition {
2136 /** 2150 /**
2137 * Trusted attributes supplied by the IAM system. 2151 * Trusted attributes supplied by the IAM system.
2138 * Possible string values are: 2152 * Possible string values are:
2139 * - "NO_ATTR" : Default non-attribute. 2153 * - "NO_ATTR" : Default non-attribute.
2140 * - "AUTHORITY" : Either principal or (if present) authority selector. 2154 * - "AUTHORITY" : Either principal or (if present) authority selector.
2141 * - "ATTRIBUTION" : The principal (even if an authority selector is present), 2155 * - "ATTRIBUTION" : The principal (even if an authority selector is present),
2142 * which 2156 * which
2143 * must only be used for attribution, not authorization. 2157 * must only be used for attribution, not authorization.
2144 * - "APPROVER" : An approver (distinct from the requester) that has 2158 * - "APPROVER" : An approver (distinct from the requester) that has
2145 * authorized this 2159 * authorized this
2146 * request. 2160 * request.
2147 * When used with IN, the condition indicates that one of the approvers 2161 * When used with IN, the condition indicates that one of the approvers
2148 * associated with the request matches the specified principal, or is a 2162 * associated with the request matches the specified principal, or is a
2149 * member of the specified group. Approvers can only grant additional 2163 * member of the specified group. Approvers can only grant additional
2150 * access, and are thus only used in a strictly positive context 2164 * access, and are thus only used in a strictly positive context
2151 * (e.g. ALLOW/IN or DENY/NOT_IN). 2165 * (e.g. ALLOW/IN or DENY/NOT_IN).
2152 * See: go/rpc-security-policy-dynamicauth.
2153 * - "JUSTIFICATION_TYPE" : What types of justifications have been supplied 2166 * - "JUSTIFICATION_TYPE" : What types of justifications have been supplied
2154 * with this request. 2167 * with this request.
2155 * String values should match enum names from tech.iam.JustificationType, 2168 * String values should match enum names from tech.iam.JustificationType,
2156 * e.g. "MANUAL_STRING". It is not permitted to grant access based on 2169 * e.g. "MANUAL_STRING". It is not permitted to grant access based on
2157 * the *absence* of a justification, so justification conditions can only 2170 * the *absence* of a justification, so justification conditions can only
2158 * be used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN). 2171 * be used in a "positive" context (e.g., ALLOW/IN or DENY/NOT_IN).
2159 * 2172 *
2160 * Multiple justifications, e.g., a Buganizer ID and a manually-entered 2173 * Multiple justifications, e.g., a Buganizer ID and a manually-entered
2161 * reason, are normal and supported. 2174 * reason, are normal and supported.
2162 */ 2175 */
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
2210 sys = _json["sys"]; 2223 sys = _json["sys"];
2211 } 2224 }
2212 if (_json.containsKey("value")) { 2225 if (_json.containsKey("value")) {
2213 value = _json["value"]; 2226 value = _json["value"];
2214 } 2227 }
2215 if (_json.containsKey("values")) { 2228 if (_json.containsKey("values")) {
2216 values = _json["values"]; 2229 values = _json["values"];
2217 } 2230 }
2218 } 2231 }
2219 2232
2220 core.Map toJson() { 2233 core.Map<core.String, core.Object> toJson() {
2221 var _json = new core.Map(); 2234 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2222 if (iam != null) { 2235 if (iam != null) {
2223 _json["iam"] = iam; 2236 _json["iam"] = iam;
2224 } 2237 }
2225 if (op != null) { 2238 if (op != null) {
2226 _json["op"] = op; 2239 _json["op"] = op;
2227 } 2240 }
2228 if (svc != null) { 2241 if (svc != null) {
2229 _json["svc"] = svc; 2242 _json["svc"] = svc;
2230 } 2243 }
2231 if (sys != null) { 2244 if (sys != null) {
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
2307 element = _json["element"]; 2320 element = _json["element"];
2308 } 2321 }
2309 if (_json.containsKey("newValue")) { 2322 if (_json.containsKey("newValue")) {
2310 newValue = _json["newValue"]; 2323 newValue = _json["newValue"];
2311 } 2324 }
2312 if (_json.containsKey("oldValue")) { 2325 if (_json.containsKey("oldValue")) {
2313 oldValue = _json["oldValue"]; 2326 oldValue = _json["oldValue"];
2314 } 2327 }
2315 } 2328 }
2316 2329
2317 core.Map toJson() { 2330 core.Map<core.String, core.Object> toJson() {
2318 var _json = new core.Map(); 2331 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2319 if (advices != null) { 2332 if (advices != null) {
2320 _json["advices"] = advices.map((value) => (value).toJson()).toList(); 2333 _json["advices"] = advices.map((value) => (value).toJson()).toList();
2321 } 2334 }
2322 if (changeType != null) { 2335 if (changeType != null) {
2323 _json["changeType"] = changeType; 2336 _json["changeType"] = changeType;
2324 } 2337 }
2325 if (element != null) { 2338 if (element != null) {
2326 _json["element"] = element; 2339 _json["element"] = element;
2327 } 2340 }
2328 if (newValue != null) { 2341 if (newValue != null) {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
2372 fileContents = _json["fileContents"]; 2385 fileContents = _json["fileContents"];
2373 } 2386 }
2374 if (_json.containsKey("filePath")) { 2387 if (_json.containsKey("filePath")) {
2375 filePath = _json["filePath"]; 2388 filePath = _json["filePath"];
2376 } 2389 }
2377 if (_json.containsKey("fileType")) { 2390 if (_json.containsKey("fileType")) {
2378 fileType = _json["fileType"]; 2391 fileType = _json["fileType"];
2379 } 2392 }
2380 } 2393 }
2381 2394
2382 core.Map toJson() { 2395 core.Map<core.String, core.Object> toJson() {
2383 var _json = new core.Map(); 2396 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2384 if (fileContents != null) { 2397 if (fileContents != null) {
2385 _json["fileContents"] = fileContents; 2398 _json["fileContents"] = fileContents;
2386 } 2399 }
2387 if (filePath != null) { 2400 if (filePath != null) {
2388 _json["filePath"] = filePath; 2401 _json["filePath"] = filePath;
2389 } 2402 }
2390 if (fileType != null) { 2403 if (fileType != null) {
2391 _json["fileType"] = fileType; 2404 _json["fileType"] = fileType;
2392 } 2405 }
2393 return _json; 2406 return _json;
2394 } 2407 }
2395 } 2408 }
2396 2409
2397 /** Represents a service configuration with its name and id. */ 2410 /** Represents a service configuration with its name and id. */
2398 class ConfigRef { 2411 class ConfigRef {
2399 /** 2412 /**
2400 * Resource name of a service config. It must have the following 2413 * Resource name of a service config. It must have the following
2401 * format: "services/{service name}/configs/{config id}". 2414 * format: "services/{service name}/configs/{config id}".
2402 */ 2415 */
2403 core.String name; 2416 core.String name;
2404 2417
2405 ConfigRef(); 2418 ConfigRef();
2406 2419
2407 ConfigRef.fromJson(core.Map _json) { 2420 ConfigRef.fromJson(core.Map _json) {
2408 if (_json.containsKey("name")) { 2421 if (_json.containsKey("name")) {
2409 name = _json["name"]; 2422 name = _json["name"];
2410 } 2423 }
2411 } 2424 }
2412 2425
2413 core.Map toJson() { 2426 core.Map<core.String, core.Object> toJson() {
2414 var _json = new core.Map(); 2427 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2415 if (name != null) { 2428 if (name != null) {
2416 _json["name"] = name; 2429 _json["name"] = name;
2417 } 2430 }
2418 return _json; 2431 return _json;
2419 } 2432 }
2420 } 2433 }
2421 2434
2422 /** 2435 /**
2423 * Represents a source file which is used to generate the service configuration 2436 * Represents a source file which is used to generate the service configuration
2424 * defined by `google.api.Service`. 2437 * defined by `google.api.Service`.
(...skipping 15 matching lines...) Expand all
2440 2453
2441 ConfigSource.fromJson(core.Map _json) { 2454 ConfigSource.fromJson(core.Map _json) {
2442 if (_json.containsKey("files")) { 2455 if (_json.containsKey("files")) {
2443 files = _json["files"].map((value) => new ConfigFile.fromJson(value)).toLi st(); 2456 files = _json["files"].map((value) => new ConfigFile.fromJson(value)).toLi st();
2444 } 2457 }
2445 if (_json.containsKey("id")) { 2458 if (_json.containsKey("id")) {
2446 id = _json["id"]; 2459 id = _json["id"];
2447 } 2460 }
2448 } 2461 }
2449 2462
2450 core.Map toJson() { 2463 core.Map<core.String, core.Object> toJson() {
2451 var _json = new core.Map(); 2464 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2452 if (files != null) { 2465 if (files != null) {
2453 _json["files"] = files.map((value) => (value).toJson()).toList(); 2466 _json["files"] = files.map((value) => (value).toJson()).toList();
2454 } 2467 }
2455 if (id != null) { 2468 if (id != null) {
2456 _json["id"] = id; 2469 _json["id"] = id;
2457 } 2470 }
2458 return _json; 2471 return _json;
2459 } 2472 }
2460 } 2473 }
2461 2474
(...skipping 25 matching lines...) Expand all
2487 core.List<ContextRule> rules; 2500 core.List<ContextRule> rules;
2488 2501
2489 Context(); 2502 Context();
2490 2503
2491 Context.fromJson(core.Map _json) { 2504 Context.fromJson(core.Map _json) {
2492 if (_json.containsKey("rules")) { 2505 if (_json.containsKey("rules")) {
2493 rules = _json["rules"].map((value) => new ContextRule.fromJson(value)).toL ist(); 2506 rules = _json["rules"].map((value) => new ContextRule.fromJson(value)).toL ist();
2494 } 2507 }
2495 } 2508 }
2496 2509
2497 core.Map toJson() { 2510 core.Map<core.String, core.Object> toJson() {
2498 var _json = new core.Map(); 2511 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2499 if (rules != null) { 2512 if (rules != null) {
2500 _json["rules"] = rules.map((value) => (value).toJson()).toList(); 2513 _json["rules"] = rules.map((value) => (value).toJson()).toList();
2501 } 2514 }
2502 return _json; 2515 return _json;
2503 } 2516 }
2504 } 2517 }
2505 2518
2506 /** 2519 /**
2507 * A context rule provides information about the context for an individual API 2520 * A context rule provides information about the context for an individual API
2508 * element. 2521 * element.
(...skipping 17 matching lines...) Expand all
2526 provided = _json["provided"]; 2539 provided = _json["provided"];
2527 } 2540 }
2528 if (_json.containsKey("requested")) { 2541 if (_json.containsKey("requested")) {
2529 requested = _json["requested"]; 2542 requested = _json["requested"];
2530 } 2543 }
2531 if (_json.containsKey("selector")) { 2544 if (_json.containsKey("selector")) {
2532 selector = _json["selector"]; 2545 selector = _json["selector"];
2533 } 2546 }
2534 } 2547 }
2535 2548
2536 core.Map toJson() { 2549 core.Map<core.String, core.Object> toJson() {
2537 var _json = new core.Map(); 2550 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2538 if (provided != null) { 2551 if (provided != null) {
2539 _json["provided"] = provided; 2552 _json["provided"] = provided;
2540 } 2553 }
2541 if (requested != null) { 2554 if (requested != null) {
2542 _json["requested"] = requested; 2555 _json["requested"] = requested;
2543 } 2556 }
2544 if (selector != null) { 2557 if (selector != null) {
2545 _json["selector"] = selector; 2558 _json["selector"] = selector;
2546 } 2559 }
2547 return _json; 2560 return _json;
(...skipping 13 matching lines...) Expand all
2561 core.String environment; 2574 core.String environment;
2562 2575
2563 Control(); 2576 Control();
2564 2577
2565 Control.fromJson(core.Map _json) { 2578 Control.fromJson(core.Map _json) {
2566 if (_json.containsKey("environment")) { 2579 if (_json.containsKey("environment")) {
2567 environment = _json["environment"]; 2580 environment = _json["environment"];
2568 } 2581 }
2569 } 2582 }
2570 2583
2571 core.Map toJson() { 2584 core.Map<core.String, core.Object> toJson() {
2572 var _json = new core.Map(); 2585 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2573 if (environment != null) { 2586 if (environment != null) {
2574 _json["environment"] = environment; 2587 _json["environment"] = environment;
2575 } 2588 }
2576 return _json; 2589 return _json;
2577 } 2590 }
2578 } 2591 }
2579 2592
2580 /** Options for counters */ 2593 /** Options for counters */
2581 class CounterOptions { 2594 class CounterOptions {
2582 /** The field value to attribute. */ 2595 /** The field value to attribute. */
2583 core.String field; 2596 core.String field;
2584 /** The metric to update. */ 2597 /** The metric to update. */
2585 core.String metric; 2598 core.String metric;
2586 2599
2587 CounterOptions(); 2600 CounterOptions();
2588 2601
2589 CounterOptions.fromJson(core.Map _json) { 2602 CounterOptions.fromJson(core.Map _json) {
2590 if (_json.containsKey("field")) { 2603 if (_json.containsKey("field")) {
2591 field = _json["field"]; 2604 field = _json["field"];
2592 } 2605 }
2593 if (_json.containsKey("metric")) { 2606 if (_json.containsKey("metric")) {
2594 metric = _json["metric"]; 2607 metric = _json["metric"];
2595 } 2608 }
2596 } 2609 }
2597 2610
2598 core.Map toJson() { 2611 core.Map<core.String, core.Object> toJson() {
2599 var _json = new core.Map(); 2612 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2600 if (field != null) { 2613 if (field != null) {
2601 _json["field"] = field; 2614 _json["field"] = field;
2602 } 2615 }
2603 if (metric != null) { 2616 if (metric != null) {
2604 _json["metric"] = metric; 2617 _json["metric"] = metric;
2605 } 2618 }
2606 return _json; 2619 return _json;
2607 } 2620 }
2608 } 2621 }
2609 2622
2610 /** Configuration for a custom authentication provider. */ 2623 /** Configuration for a custom authentication provider. */
2611 class CustomAuthRequirements { 2624 class CustomAuthRequirements {
2612 /** 2625 /**
2613 * A configuration string containing connection information for the 2626 * A configuration string containing connection information for the
2614 * authentication provider, typically formatted as a SmartService string 2627 * authentication provider, typically formatted as a SmartService string
2615 * (go/smartservice). 2628 * (go/smartservice).
2616 */ 2629 */
2617 core.String provider; 2630 core.String provider;
2618 2631
2619 CustomAuthRequirements(); 2632 CustomAuthRequirements();
2620 2633
2621 CustomAuthRequirements.fromJson(core.Map _json) { 2634 CustomAuthRequirements.fromJson(core.Map _json) {
2622 if (_json.containsKey("provider")) { 2635 if (_json.containsKey("provider")) {
2623 provider = _json["provider"]; 2636 provider = _json["provider"];
2624 } 2637 }
2625 } 2638 }
2626 2639
2627 core.Map toJson() { 2640 core.Map<core.String, core.Object> toJson() {
2628 var _json = new core.Map(); 2641 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2629 if (provider != null) { 2642 if (provider != null) {
2630 _json["provider"] = provider; 2643 _json["provider"] = provider;
2631 } 2644 }
2632 return _json; 2645 return _json;
2633 } 2646 }
2634 } 2647 }
2635 2648
2636 /** 2649 /**
2637 * Customize service error responses. For example, list any service 2650 * Customize service error responses. For example, list any service
2638 * specific protobuf types that can appear in error detail lists of 2651 * specific protobuf types that can appear in error detail lists of
(...skipping 22 matching lines...) Expand all
2661 2674
2662 CustomError.fromJson(core.Map _json) { 2675 CustomError.fromJson(core.Map _json) {
2663 if (_json.containsKey("rules")) { 2676 if (_json.containsKey("rules")) {
2664 rules = _json["rules"].map((value) => new CustomErrorRule.fromJson(value)) .toList(); 2677 rules = _json["rules"].map((value) => new CustomErrorRule.fromJson(value)) .toList();
2665 } 2678 }
2666 if (_json.containsKey("types")) { 2679 if (_json.containsKey("types")) {
2667 types = _json["types"]; 2680 types = _json["types"];
2668 } 2681 }
2669 } 2682 }
2670 2683
2671 core.Map toJson() { 2684 core.Map<core.String, core.Object> toJson() {
2672 var _json = new core.Map(); 2685 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2673 if (rules != null) { 2686 if (rules != null) {
2674 _json["rules"] = rules.map((value) => (value).toJson()).toList(); 2687 _json["rules"] = rules.map((value) => (value).toJson()).toList();
2675 } 2688 }
2676 if (types != null) { 2689 if (types != null) {
2677 _json["types"] = types; 2690 _json["types"] = types;
2678 } 2691 }
2679 return _json; 2692 return _json;
2680 } 2693 }
2681 } 2694 }
2682 2695
(...skipping 15 matching lines...) Expand all
2698 2711
2699 CustomErrorRule.fromJson(core.Map _json) { 2712 CustomErrorRule.fromJson(core.Map _json) {
2700 if (_json.containsKey("isErrorType")) { 2713 if (_json.containsKey("isErrorType")) {
2701 isErrorType = _json["isErrorType"]; 2714 isErrorType = _json["isErrorType"];
2702 } 2715 }
2703 if (_json.containsKey("selector")) { 2716 if (_json.containsKey("selector")) {
2704 selector = _json["selector"]; 2717 selector = _json["selector"];
2705 } 2718 }
2706 } 2719 }
2707 2720
2708 core.Map toJson() { 2721 core.Map<core.String, core.Object> toJson() {
2709 var _json = new core.Map(); 2722 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2710 if (isErrorType != null) { 2723 if (isErrorType != null) {
2711 _json["isErrorType"] = isErrorType; 2724 _json["isErrorType"] = isErrorType;
2712 } 2725 }
2713 if (selector != null) { 2726 if (selector != null) {
2714 _json["selector"] = selector; 2727 _json["selector"] = selector;
2715 } 2728 }
2716 return _json; 2729 return _json;
2717 } 2730 }
2718 } 2731 }
2719 2732
2720 /** A custom pattern is used for defining custom HTTP verb. */ 2733 /** A custom pattern is used for defining custom HTTP verb. */
2721 class CustomHttpPattern { 2734 class CustomHttpPattern {
2722 /** The name of this custom HTTP verb. */ 2735 /** The name of this custom HTTP verb. */
2723 core.String kind; 2736 core.String kind;
2724 /** The path matched by this custom verb. */ 2737 /** The path matched by this custom verb. */
2725 core.String path; 2738 core.String path;
2726 2739
2727 CustomHttpPattern(); 2740 CustomHttpPattern();
2728 2741
2729 CustomHttpPattern.fromJson(core.Map _json) { 2742 CustomHttpPattern.fromJson(core.Map _json) {
2730 if (_json.containsKey("kind")) { 2743 if (_json.containsKey("kind")) {
2731 kind = _json["kind"]; 2744 kind = _json["kind"];
2732 } 2745 }
2733 if (_json.containsKey("path")) { 2746 if (_json.containsKey("path")) {
2734 path = _json["path"]; 2747 path = _json["path"];
2735 } 2748 }
2736 } 2749 }
2737 2750
2738 core.Map toJson() { 2751 core.Map<core.String, core.Object> toJson() {
2739 var _json = new core.Map(); 2752 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2740 if (kind != null) { 2753 if (kind != null) {
2741 _json["kind"] = kind; 2754 _json["kind"] = kind;
2742 } 2755 }
2743 if (path != null) { 2756 if (path != null) {
2744 _json["path"] = path; 2757 _json["path"] = path;
2745 } 2758 }
2746 return _json; 2759 return _json;
2747 } 2760 }
2748 } 2761 }
2749 2762
2750 /** Write a Data Access (Gin) log */ 2763 /** Write a Data Access (Gin) log */
2751 class DataAccessOptions { 2764 class DataAccessOptions {
2752 2765
2753 DataAccessOptions(); 2766 DataAccessOptions();
2754 2767
2755 DataAccessOptions.fromJson(core.Map _json) { 2768 DataAccessOptions.fromJson(core.Map _json) {
2756 } 2769 }
2757 2770
2758 core.Map toJson() { 2771 core.Map<core.String, core.Object> toJson() {
2759 var _json = new core.Map(); 2772 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2760 return _json; 2773 return _json;
2761 } 2774 }
2762 } 2775 }
2763 2776
2764 /** 2777 /**
2765 * Strategy used to delete a service. This strategy is a placeholder only 2778 * Strategy used to delete a service. This strategy is a placeholder only
2766 * used by the system generated rollout to delete a service. 2779 * used by the system generated rollout to delete a service.
2767 */ 2780 */
2768 class DeleteServiceStrategy { 2781 class DeleteServiceStrategy {
2769 2782
2770 DeleteServiceStrategy(); 2783 DeleteServiceStrategy();
2771 2784
2772 DeleteServiceStrategy.fromJson(core.Map _json) { 2785 DeleteServiceStrategy.fromJson(core.Map _json) {
2773 } 2786 }
2774 2787
2775 core.Map toJson() { 2788 core.Map<core.String, core.Object> toJson() {
2776 var _json = new core.Map(); 2789 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2777 return _json; 2790 return _json;
2778 } 2791 }
2779 } 2792 }
2780 2793
2781 /** Represents a diagnostic message (error or warning) */ 2794 /** Represents a diagnostic message (error or warning) */
2782 class Diagnostic { 2795 class Diagnostic {
2783 /** 2796 /**
2784 * The kind of diagnostic information provided. 2797 * The kind of diagnostic information provided.
2785 * Possible string values are: 2798 * Possible string values are:
2786 * - "WARNING" : Warnings and errors 2799 * - "WARNING" : Warnings and errors
(...skipping 12 matching lines...) Expand all
2799 kind = _json["kind"]; 2812 kind = _json["kind"];
2800 } 2813 }
2801 if (_json.containsKey("location")) { 2814 if (_json.containsKey("location")) {
2802 location = _json["location"]; 2815 location = _json["location"];
2803 } 2816 }
2804 if (_json.containsKey("message")) { 2817 if (_json.containsKey("message")) {
2805 message = _json["message"]; 2818 message = _json["message"];
2806 } 2819 }
2807 } 2820 }
2808 2821
2809 core.Map toJson() { 2822 core.Map<core.String, core.Object> toJson() {
2810 var _json = new core.Map(); 2823 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2811 if (kind != null) { 2824 if (kind != null) {
2812 _json["kind"] = kind; 2825 _json["kind"] = kind;
2813 } 2826 }
2814 if (location != null) { 2827 if (location != null) {
2815 _json["location"] = location; 2828 _json["location"] = location;
2816 } 2829 }
2817 if (message != null) { 2830 if (message != null) {
2818 _json["message"] = message; 2831 _json["message"] = message;
2819 } 2832 }
2820 return _json; 2833 return _json;
(...skipping 16 matching lines...) Expand all
2837 core.String consumerId; 2850 core.String consumerId;
2838 2851
2839 DisableServiceRequest(); 2852 DisableServiceRequest();
2840 2853
2841 DisableServiceRequest.fromJson(core.Map _json) { 2854 DisableServiceRequest.fromJson(core.Map _json) {
2842 if (_json.containsKey("consumerId")) { 2855 if (_json.containsKey("consumerId")) {
2843 consumerId = _json["consumerId"]; 2856 consumerId = _json["consumerId"];
2844 } 2857 }
2845 } 2858 }
2846 2859
2847 core.Map toJson() { 2860 core.Map<core.String, core.Object> toJson() {
2848 var _json = new core.Map(); 2861 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2849 if (consumerId != null) { 2862 if (consumerId != null) {
2850 _json["consumerId"] = consumerId; 2863 _json["consumerId"] = consumerId;
2851 } 2864 }
2852 return _json; 2865 return _json;
2853 } 2866 }
2854 } 2867 }
2855 2868
2856 /** 2869 /**
2857 * `Documentation` provides the information for describing a service. 2870 * `Documentation` provides the information for describing a service.
2858 * 2871 *
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
2958 pages = _json["pages"].map((value) => new Page.fromJson(value)).toList(); 2971 pages = _json["pages"].map((value) => new Page.fromJson(value)).toList();
2959 } 2972 }
2960 if (_json.containsKey("rules")) { 2973 if (_json.containsKey("rules")) {
2961 rules = _json["rules"].map((value) => new DocumentationRule.fromJson(value )).toList(); 2974 rules = _json["rules"].map((value) => new DocumentationRule.fromJson(value )).toList();
2962 } 2975 }
2963 if (_json.containsKey("summary")) { 2976 if (_json.containsKey("summary")) {
2964 summary = _json["summary"]; 2977 summary = _json["summary"];
2965 } 2978 }
2966 } 2979 }
2967 2980
2968 core.Map toJson() { 2981 core.Map<core.String, core.Object> toJson() {
2969 var _json = new core.Map(); 2982 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2970 if (documentationRootUrl != null) { 2983 if (documentationRootUrl != null) {
2971 _json["documentationRootUrl"] = documentationRootUrl; 2984 _json["documentationRootUrl"] = documentationRootUrl;
2972 } 2985 }
2973 if (overview != null) { 2986 if (overview != null) {
2974 _json["overview"] = overview; 2987 _json["overview"] = overview;
2975 } 2988 }
2976 if (pages != null) { 2989 if (pages != null) {
2977 _json["pages"] = pages.map((value) => (value).toJson()).toList(); 2990 _json["pages"] = pages.map((value) => (value).toJson()).toList();
2978 } 2991 }
2979 if (rules != null) { 2992 if (rules != null) {
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
3013 deprecationDescription = _json["deprecationDescription"]; 3026 deprecationDescription = _json["deprecationDescription"];
3014 } 3027 }
3015 if (_json.containsKey("description")) { 3028 if (_json.containsKey("description")) {
3016 description = _json["description"]; 3029 description = _json["description"];
3017 } 3030 }
3018 if (_json.containsKey("selector")) { 3031 if (_json.containsKey("selector")) {
3019 selector = _json["selector"]; 3032 selector = _json["selector"];
3020 } 3033 }
3021 } 3034 }
3022 3035
3023 core.Map toJson() { 3036 core.Map<core.String, core.Object> toJson() {
3024 var _json = new core.Map(); 3037 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3025 if (deprecationDescription != null) { 3038 if (deprecationDescription != null) {
3026 _json["deprecationDescription"] = deprecationDescription; 3039 _json["deprecationDescription"] = deprecationDescription;
3027 } 3040 }
3028 if (description != null) { 3041 if (description != null) {
3029 _json["description"] = description; 3042 _json["description"] = description;
3030 } 3043 }
3031 if (selector != null) { 3044 if (selector != null) {
3032 _json["selector"] = selector; 3045 _json["selector"] = selector;
3033 } 3046 }
3034 return _json; 3047 return _json;
(...skipping 16 matching lines...) Expand all
3051 core.String consumerId; 3064 core.String consumerId;
3052 3065
3053 EnableServiceRequest(); 3066 EnableServiceRequest();
3054 3067
3055 EnableServiceRequest.fromJson(core.Map _json) { 3068 EnableServiceRequest.fromJson(core.Map _json) {
3056 if (_json.containsKey("consumerId")) { 3069 if (_json.containsKey("consumerId")) {
3057 consumerId = _json["consumerId"]; 3070 consumerId = _json["consumerId"];
3058 } 3071 }
3059 } 3072 }
3060 3073
3061 core.Map toJson() { 3074 core.Map<core.String, core.Object> toJson() {
3062 var _json = new core.Map(); 3075 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3063 if (consumerId != null) { 3076 if (consumerId != null) {
3064 _json["consumerId"] = consumerId; 3077 _json["consumerId"] = consumerId;
3065 } 3078 }
3066 return _json; 3079 return _json;
3067 } 3080 }
3068 } 3081 }
3069 3082
3070 /** 3083 /**
3071 * `Endpoint` describes a network endpoint that serves a set of APIs. 3084 * `Endpoint` describes a network endpoint that serves a set of APIs.
3072 * A service may expose any number of endpoints, and all endpoints share the 3085 * A service may expose any number of endpoints, and all endpoints share the
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
3139 features = _json["features"]; 3152 features = _json["features"];
3140 } 3153 }
3141 if (_json.containsKey("name")) { 3154 if (_json.containsKey("name")) {
3142 name = _json["name"]; 3155 name = _json["name"];
3143 } 3156 }
3144 if (_json.containsKey("target")) { 3157 if (_json.containsKey("target")) {
3145 target = _json["target"]; 3158 target = _json["target"];
3146 } 3159 }
3147 } 3160 }
3148 3161
3149 core.Map toJson() { 3162 core.Map<core.String, core.Object> toJson() {
3150 var _json = new core.Map(); 3163 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3151 if (aliases != null) { 3164 if (aliases != null) {
3152 _json["aliases"] = aliases; 3165 _json["aliases"] = aliases;
3153 } 3166 }
3154 if (allowCors != null) { 3167 if (allowCors != null) {
3155 _json["allowCors"] = allowCors; 3168 _json["allowCors"] = allowCors;
3156 } 3169 }
3157 if (apis != null) { 3170 if (apis != null) {
3158 _json["apis"] = apis; 3171 _json["apis"] = apis;
3159 } 3172 }
3160 if (features != null) { 3173 if (features != null) {
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
3201 options = _json["options"].map((value) => new Option.fromJson(value)).toLi st(); 3214 options = _json["options"].map((value) => new Option.fromJson(value)).toLi st();
3202 } 3215 }
3203 if (_json.containsKey("sourceContext")) { 3216 if (_json.containsKey("sourceContext")) {
3204 sourceContext = new SourceContext.fromJson(_json["sourceContext"]); 3217 sourceContext = new SourceContext.fromJson(_json["sourceContext"]);
3205 } 3218 }
3206 if (_json.containsKey("syntax")) { 3219 if (_json.containsKey("syntax")) {
3207 syntax = _json["syntax"]; 3220 syntax = _json["syntax"];
3208 } 3221 }
3209 } 3222 }
3210 3223
3211 core.Map toJson() { 3224 core.Map<core.String, core.Object> toJson() {
3212 var _json = new core.Map(); 3225 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3213 if (enumvalue != null) { 3226 if (enumvalue != null) {
3214 _json["enumvalue"] = enumvalue.map((value) => (value).toJson()).toList(); 3227 _json["enumvalue"] = enumvalue.map((value) => (value).toJson()).toList();
3215 } 3228 }
3216 if (name != null) { 3229 if (name != null) {
3217 _json["name"] = name; 3230 _json["name"] = name;
3218 } 3231 }
3219 if (options != null) { 3232 if (options != null) {
3220 _json["options"] = options.map((value) => (value).toJson()).toList(); 3233 _json["options"] = options.map((value) => (value).toJson()).toList();
3221 } 3234 }
3222 if (sourceContext != null) { 3235 if (sourceContext != null) {
(...skipping 22 matching lines...) Expand all
3245 name = _json["name"]; 3258 name = _json["name"];
3246 } 3259 }
3247 if (_json.containsKey("number")) { 3260 if (_json.containsKey("number")) {
3248 number = _json["number"]; 3261 number = _json["number"];
3249 } 3262 }
3250 if (_json.containsKey("options")) { 3263 if (_json.containsKey("options")) {
3251 options = _json["options"].map((value) => new Option.fromJson(value)).toLi st(); 3264 options = _json["options"].map((value) => new Option.fromJson(value)).toLi st();
3252 } 3265 }
3253 } 3266 }
3254 3267
3255 core.Map toJson() { 3268 core.Map<core.String, core.Object> toJson() {
3256 var _json = new core.Map(); 3269 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3257 if (name != null) { 3270 if (name != null) {
3258 _json["name"] = name; 3271 _json["name"] = name;
3259 } 3272 }
3260 if (number != null) { 3273 if (number != null) {
3261 _json["number"] = number; 3274 _json["number"] = number;
3262 } 3275 }
3263 if (options != null) { 3276 if (options != null) {
3264 _json["options"] = options.map((value) => (value).toJson()).toList(); 3277 _json["options"] = options.map((value) => (value).toJson()).toList();
3265 } 3278 }
3266 return _json; 3279 return _json;
3267 } 3280 }
3268 } 3281 }
3269 3282
3270 /** 3283 /**
3271 * Experimental service configuration. These configuration options can 3284 * Experimental service configuration. These configuration options can
3272 * only be used by whitelisted users. 3285 * only be used by whitelisted users.
3273 */ 3286 */
3274 class Experimental { 3287 class Experimental {
3275 /** Authorization configuration. */ 3288 /** Authorization configuration. */
3276 AuthorizationConfig authorization; 3289 AuthorizationConfig authorization;
3277 3290
3278 Experimental(); 3291 Experimental();
3279 3292
3280 Experimental.fromJson(core.Map _json) { 3293 Experimental.fromJson(core.Map _json) {
3281 if (_json.containsKey("authorization")) { 3294 if (_json.containsKey("authorization")) {
3282 authorization = new AuthorizationConfig.fromJson(_json["authorization"]); 3295 authorization = new AuthorizationConfig.fromJson(_json["authorization"]);
3283 } 3296 }
3284 } 3297 }
3285 3298
3286 core.Map toJson() { 3299 core.Map<core.String, core.Object> toJson() {
3287 var _json = new core.Map(); 3300 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3288 if (authorization != null) { 3301 if (authorization != null) {
3289 _json["authorization"] = (authorization).toJson(); 3302 _json["authorization"] = (authorization).toJson();
3290 } 3303 }
3291 return _json; 3304 return _json;
3292 } 3305 }
3293 } 3306 }
3294 3307
3308 /**
3309 * Represents an expression text. Example:
3310 *
3311 * title: "User account presence"
3312 * description: "Determines whether the request has a user account"
3313 * expression: "size(request.user) > 0"
3314 */
3315 class Expr {
3316 /**
3317 * An optional description of the expression. This is a longer text which
3318 * describes the expression, e.g. when hovered over it in a UI.
3319 */
3320 core.String description;
3321 /**
3322 * Textual representation of an expression in
3323 * [Common Expression Language](http://go/api-expr) syntax.
3324 *
3325 * The application context of the containing message determines which
3326 * well-known feature set of CEL is supported.
3327 */
3328 core.String expression;
3329 /**
3330 * An optional string indicating the location of the expression for error
3331 * reporting, e.g. a file name and a position in the file.
3332 */
3333 core.String location;
3334 /**
3335 * An optional title for the expression, i.e. a short string describing
3336 * its purpose. This can be used e.g. in UIs which allow to enter the
3337 * expression.
3338 */
3339 core.String title;
3340
3341 Expr();
3342
3343 Expr.fromJson(core.Map _json) {
3344 if (_json.containsKey("description")) {
3345 description = _json["description"];
3346 }
3347 if (_json.containsKey("expression")) {
3348 expression = _json["expression"];
3349 }
3350 if (_json.containsKey("location")) {
3351 location = _json["location"];
3352 }
3353 if (_json.containsKey("title")) {
3354 title = _json["title"];
3355 }
3356 }
3357
3358 core.Map<core.String, core.Object> toJson() {
3359 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3360 if (description != null) {
3361 _json["description"] = description;
3362 }
3363 if (expression != null) {
3364 _json["expression"] = expression;
3365 }
3366 if (location != null) {
3367 _json["location"] = location;
3368 }
3369 if (title != null) {
3370 _json["title"] = title;
3371 }
3372 return _json;
3373 }
3374 }
3375
3295 /** A single field of a message type. */ 3376 /** A single field of a message type. */
3296 class Field { 3377 class Field {
3297 /** 3378 /**
3298 * The field cardinality. 3379 * The field cardinality.
3299 * Possible string values are: 3380 * Possible string values are:
3300 * - "CARDINALITY_UNKNOWN" : For fields with unknown cardinality. 3381 * - "CARDINALITY_UNKNOWN" : For fields with unknown cardinality.
3301 * - "CARDINALITY_OPTIONAL" : For optional fields. 3382 * - "CARDINALITY_OPTIONAL" : For optional fields.
3302 * - "CARDINALITY_REQUIRED" : For required fields. Proto2 syntax only. 3383 * - "CARDINALITY_REQUIRED" : For required fields. Proto2 syntax only.
3303 * - "CARDINALITY_REPEATED" : For repeated fields. 3384 * - "CARDINALITY_REPEATED" : For repeated fields.
3304 */ 3385 */
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
3380 options = _json["options"].map((value) => new Option.fromJson(value)).toLi st(); 3461 options = _json["options"].map((value) => new Option.fromJson(value)).toLi st();
3381 } 3462 }
3382 if (_json.containsKey("packed")) { 3463 if (_json.containsKey("packed")) {
3383 packed = _json["packed"]; 3464 packed = _json["packed"];
3384 } 3465 }
3385 if (_json.containsKey("typeUrl")) { 3466 if (_json.containsKey("typeUrl")) {
3386 typeUrl = _json["typeUrl"]; 3467 typeUrl = _json["typeUrl"];
3387 } 3468 }
3388 } 3469 }
3389 3470
3390 core.Map toJson() { 3471 core.Map<core.String, core.Object> toJson() {
3391 var _json = new core.Map(); 3472 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3392 if (cardinality != null) { 3473 if (cardinality != null) {
3393 _json["cardinality"] = cardinality; 3474 _json["cardinality"] = cardinality;
3394 } 3475 }
3395 if (defaultValue != null) { 3476 if (defaultValue != null) {
3396 _json["defaultValue"] = defaultValue; 3477 _json["defaultValue"] = defaultValue;
3397 } 3478 }
3398 if (jsonName != null) { 3479 if (jsonName != null) {
3399 _json["jsonName"] = jsonName; 3480 _json["jsonName"] = jsonName;
3400 } 3481 }
3401 if (kind != null) { 3482 if (kind != null) {
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after
3474 flowName = _json["flowName"]; 3555 flowName = _json["flowName"];
3475 } 3556 }
3476 if (_json.containsKey("resourceNames")) { 3557 if (_json.containsKey("resourceNames")) {
3477 resourceNames = _json["resourceNames"]; 3558 resourceNames = _json["resourceNames"];
3478 } 3559 }
3479 if (_json.containsKey("startTime")) { 3560 if (_json.containsKey("startTime")) {
3480 startTime = _json["startTime"]; 3561 startTime = _json["startTime"];
3481 } 3562 }
3482 } 3563 }
3483 3564
3484 core.Map toJson() { 3565 core.Map<core.String, core.Object> toJson() {
3485 var _json = new core.Map(); 3566 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3486 if (cancelState != null) { 3567 if (cancelState != null) {
3487 _json["cancelState"] = cancelState; 3568 _json["cancelState"] = cancelState;
3488 } 3569 }
3489 if (deadline != null) { 3570 if (deadline != null) {
3490 _json["deadline"] = deadline; 3571 _json["deadline"] = deadline;
3491 } 3572 }
3492 if (flowName != null) { 3573 if (flowName != null) {
3493 _json["flowName"] = flowName; 3574 _json["flowName"] = flowName;
3494 } 3575 }
3495 if (resourceNames != null) { 3576 if (resourceNames != null) {
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
3531 3612
3532 GenerateConfigReportRequest.fromJson(core.Map _json) { 3613 GenerateConfigReportRequest.fromJson(core.Map _json) {
3533 if (_json.containsKey("newConfig")) { 3614 if (_json.containsKey("newConfig")) {
3534 newConfig = _json["newConfig"]; 3615 newConfig = _json["newConfig"];
3535 } 3616 }
3536 if (_json.containsKey("oldConfig")) { 3617 if (_json.containsKey("oldConfig")) {
3537 oldConfig = _json["oldConfig"]; 3618 oldConfig = _json["oldConfig"];
3538 } 3619 }
3539 } 3620 }
3540 3621
3541 core.Map toJson() { 3622 core.Map<core.String, core.Object> toJson() {
3542 var _json = new core.Map(); 3623 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3543 if (newConfig != null) { 3624 if (newConfig != null) {
3544 _json["newConfig"] = newConfig; 3625 _json["newConfig"] = newConfig;
3545 } 3626 }
3546 if (oldConfig != null) { 3627 if (oldConfig != null) {
3547 _json["oldConfig"] = oldConfig; 3628 _json["oldConfig"] = oldConfig;
3548 } 3629 }
3549 return _json; 3630 return _json;
3550 } 3631 }
3551 } 3632 }
3552 3633
(...skipping 25 matching lines...) Expand all
3578 diagnostics = _json["diagnostics"].map((value) => new Diagnostic.fromJson( value)).toList(); 3659 diagnostics = _json["diagnostics"].map((value) => new Diagnostic.fromJson( value)).toList();
3579 } 3660 }
3580 if (_json.containsKey("id")) { 3661 if (_json.containsKey("id")) {
3581 id = _json["id"]; 3662 id = _json["id"];
3582 } 3663 }
3583 if (_json.containsKey("serviceName")) { 3664 if (_json.containsKey("serviceName")) {
3584 serviceName = _json["serviceName"]; 3665 serviceName = _json["serviceName"];
3585 } 3666 }
3586 } 3667 }
3587 3668
3588 core.Map toJson() { 3669 core.Map<core.String, core.Object> toJson() {
3589 var _json = new core.Map(); 3670 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3590 if (changeReports != null) { 3671 if (changeReports != null) {
3591 _json["changeReports"] = changeReports.map((value) => (value).toJson()).to List(); 3672 _json["changeReports"] = changeReports.map((value) => (value).toJson()).to List();
3592 } 3673 }
3593 if (diagnostics != null) { 3674 if (diagnostics != null) {
3594 _json["diagnostics"] = diagnostics.map((value) => (value).toJson()).toList (); 3675 _json["diagnostics"] = diagnostics.map((value) => (value).toJson()).toList ();
3595 } 3676 }
3596 if (id != null) { 3677 if (id != null) {
3597 _json["id"] = id; 3678 _json["id"] = id;
3598 } 3679 }
3599 if (serviceName != null) { 3680 if (serviceName != null) {
3600 _json["serviceName"] = serviceName; 3681 _json["serviceName"] = serviceName;
3601 } 3682 }
3602 return _json; 3683 return _json;
3603 } 3684 }
3604 } 3685 }
3605 3686
3606 /** Request message for `GetIamPolicy` method. */ 3687 /** Request message for `GetIamPolicy` method. */
3607 class GetIamPolicyRequest { 3688 class GetIamPolicyRequest {
3608 3689
3609 GetIamPolicyRequest(); 3690 GetIamPolicyRequest();
3610 3691
3611 GetIamPolicyRequest.fromJson(core.Map _json) { 3692 GetIamPolicyRequest.fromJson(core.Map _json) {
3612 } 3693 }
3613 3694
3614 core.Map toJson() { 3695 core.Map<core.String, core.Object> toJson() {
3615 var _json = new core.Map(); 3696 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3616 return _json; 3697 return _json;
3617 } 3698 }
3618 } 3699 }
3619 3700
3620 /** 3701 /**
3621 * Defines the HTTP configuration for a service. It contains a list of 3702 * Defines the HTTP configuration for an API service. It contains a list of
3622 * HttpRule, each specifying the mapping of an RPC method 3703 * HttpRule, each specifying the mapping of an RPC method
3623 * to one or more HTTP REST API methods. 3704 * to one or more HTTP REST API methods.
3624 */ 3705 */
3625 class Http { 3706 class Http {
3626 /** 3707 /**
3627 * When set to true, URL path parmeters will be fully URI-decoded except in 3708 * When set to true, URL path parmeters will be fully URI-decoded except in
3628 * cases of single segment matches in reserved expansion, where "%2F" will be 3709 * cases of single segment matches in reserved expansion, where "%2F" will be
3629 * left encoded. 3710 * left encoded.
3630 * 3711 *
3631 * The default behavior is to not decode RFC 6570 reserved characters in multi 3712 * The default behavior is to not decode RFC 6570 reserved characters in multi
(...skipping 11 matching lines...) Expand all
3643 3724
3644 Http.fromJson(core.Map _json) { 3725 Http.fromJson(core.Map _json) {
3645 if (_json.containsKey("fullyDecodeReservedExpansion")) { 3726 if (_json.containsKey("fullyDecodeReservedExpansion")) {
3646 fullyDecodeReservedExpansion = _json["fullyDecodeReservedExpansion"]; 3727 fullyDecodeReservedExpansion = _json["fullyDecodeReservedExpansion"];
3647 } 3728 }
3648 if (_json.containsKey("rules")) { 3729 if (_json.containsKey("rules")) {
3649 rules = _json["rules"].map((value) => new HttpRule.fromJson(value)).toList (); 3730 rules = _json["rules"].map((value) => new HttpRule.fromJson(value)).toList ();
3650 } 3731 }
3651 } 3732 }
3652 3733
3653 core.Map toJson() { 3734 core.Map<core.String, core.Object> toJson() {
3654 var _json = new core.Map(); 3735 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3655 if (fullyDecodeReservedExpansion != null) { 3736 if (fullyDecodeReservedExpansion != null) {
3656 _json["fullyDecodeReservedExpansion"] = fullyDecodeReservedExpansion; 3737 _json["fullyDecodeReservedExpansion"] = fullyDecodeReservedExpansion;
3657 } 3738 }
3658 if (rules != null) { 3739 if (rules != null) {
3659 _json["rules"] = rules.map((value) => (value).toJson()).toList(); 3740 _json["rules"] = rules.map((value) => (value).toJson()).toList();
3660 } 3741 }
3661 return _json; 3742 return _json;
3662 } 3743 }
3663 } 3744 }
3664 3745
3665 /** 3746 /**
3666 * `HttpRule` defines the mapping of an RPC method to one or more HTTP 3747 * `HttpRule` defines the mapping of an RPC method to one or more HTTP
3667 * REST APIs. The mapping determines what portions of the request 3748 * REST API methods. The mapping specifies how different portions of the RPC
3668 * message are populated from the path, query parameters, or body of 3749 * request message are mapped to URL path, URL query parameters, and
3669 * the HTTP request. The mapping is typically specified as an 3750 * HTTP request body. The mapping is typically specified as an
3670 * `google.api.http` annotation, see "google/api/annotations.proto" 3751 * `google.api.http` annotation on the RPC method,
3671 * for details. 3752 * see "google/api/annotations.proto" for details.
3672 * 3753 *
3673 * The mapping consists of a field specifying the path template and 3754 * The mapping consists of a field specifying the path template and
3674 * method kind. The path template can refer to fields in the request 3755 * method kind. The path template can refer to fields in the request
3675 * message, as in the example below which describes a REST GET 3756 * message, as in the example below which describes a REST GET
3676 * operation on a resource collection of messages: 3757 * operation on a resource collection of messages:
3677 * 3758 *
3678 * 3759 *
3679 * service Messaging { 3760 * service Messaging {
3680 * rpc GetMessage(GetMessageRequest) returns (Message) { 3761 * rpc GetMessage(GetMessageRequest) returns (Message) {
3681 * option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}"; 3762 * option (google.api.http).get = "/v1/messages/{message_id}/{sub.subfield}";
(...skipping 28 matching lines...) Expand all
3710 * 3791 *
3711 * In general, not only fields but also field paths can be referenced 3792 * In general, not only fields but also field paths can be referenced
3712 * from a path pattern. Fields mapped to the path pattern cannot be 3793 * from a path pattern. Fields mapped to the path pattern cannot be
3713 * repeated and must have a primitive (non-message) type. 3794 * repeated and must have a primitive (non-message) type.
3714 * 3795 *
3715 * Any fields in the request message which are not bound by the path 3796 * Any fields in the request message which are not bound by the path
3716 * pattern automatically become (optional) HTTP query 3797 * pattern automatically become (optional) HTTP query
3717 * parameters. Assume the following definition of the request message: 3798 * parameters. Assume the following definition of the request message:
3718 * 3799 *
3719 * 3800 *
3801 * service Messaging {
3802 * rpc GetMessage(GetMessageRequest) returns (Message) {
3803 * option (google.api.http).get = "/v1/messages/{message_id}";
3804 * }
3805 * }
3720 * message GetMessageRequest { 3806 * message GetMessageRequest {
3721 * message SubMessage { 3807 * message SubMessage {
3722 * string subfield = 1; 3808 * string subfield = 1;
3723 * } 3809 * }
3724 * string message_id = 1; // mapped to the URL 3810 * string message_id = 1; // mapped to the URL
3725 * int64 revision = 2; // becomes a parameter 3811 * int64 revision = 2; // becomes a parameter
3726 * SubMessage sub = 3; // `sub.subfield` becomes a parameter 3812 * SubMessage sub = 3; // `sub.subfield` becomes a parameter
3727 * } 3813 * }
3728 * 3814 *
3729 * 3815 *
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
3827 * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")` 3913 * `GET /v1/messages/123456` | `GetMessage(message_id: "123456")`
3828 * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id: 3914 * `GET /v1/users/me/messages/123456` | `GetMessage(user_id: "me" message_id:
3829 * "123456")` 3915 * "123456")`
3830 * 3916 *
3831 * # Rules for HTTP mapping 3917 * # Rules for HTTP mapping
3832 * 3918 *
3833 * The rules for mapping HTTP path, query parameters, and body fields 3919 * The rules for mapping HTTP path, query parameters, and body fields
3834 * to the request message are as follows: 3920 * to the request message are as follows:
3835 * 3921 *
3836 * 1. The `body` field specifies either `*` or a field path, or is 3922 * 1. The `body` field specifies either `*` or a field path, or is
3837 * omitted. If omitted, it assumes there is no HTTP body. 3923 * omitted. If omitted, it indicates there is no HTTP request body.
3838 * 2. Leaf fields (recursive expansion of nested messages in the 3924 * 2. Leaf fields (recursive expansion of nested messages in the
3839 * request) can be classified into three types: 3925 * request) can be classified into three types:
3840 * (a) Matched in the URL template. 3926 * (a) Matched in the URL template.
3841 * (b) Covered by body (if body is `*`, everything except (a) fields; 3927 * (b) Covered by body (if body is `*`, everything except (a) fields;
3842 * else everything under the body field) 3928 * else everything under the body field)
3843 * (c) All other fields. 3929 * (c) All other fields.
3844 * 3. URL query parameters found in the HTTP request are mapped to (c) fields. 3930 * 3. URL query parameters found in the HTTP request are mapped to (c) fields.
3845 * 4. Any body sent with an HTTP request can contain only (b) fields. 3931 * 4. Any body sent with an HTTP request can contain only (b) fields.
3846 * 3932 *
3847 * The syntax of the path template is as follows: 3933 * The syntax of the path template is as follows:
3848 * 3934 *
3849 * Template = "/" Segments [ Verb ] ; 3935 * Template = "/" Segments [ Verb ] ;
3850 * Segments = Segment { "/" Segment } ; 3936 * Segments = Segment { "/" Segment } ;
3851 * Segment = "*" | "**" | LITERAL | Variable ; 3937 * Segment = "*" | "**" | LITERAL | Variable ;
3852 * Variable = "{" FieldPath [ "=" Segments ] "}" ; 3938 * Variable = "{" FieldPath [ "=" Segments ] "}" ;
3853 * FieldPath = IDENT { "." IDENT } ; 3939 * FieldPath = IDENT { "." IDENT } ;
3854 * Verb = ":" LITERAL ; 3940 * Verb = ":" LITERAL ;
3855 * 3941 *
3856 * The syntax `*` matches a single path segment. It follows the semantics of 3942 * The syntax `*` matches a single path segment. The syntax `**` matches zero
3857 * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2 Simple String 3943 * or more path segments, which must be the last part of the path except the
3858 * Expansion. 3944 * `Verb`. The syntax `LITERAL` matches literal text in the path.
3859 * 3945 *
3860 * The syntax `**` matches zero or more path segments. It follows the semantics 3946 * The syntax `Variable` matches part of the URL path as specified by its
3861 * of [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.3 Reserved 3947 * template. A variable template must not contain other variables. If a variable
3862 * Expansion. NOTE: it must be the last segment in the path except the Verb.
3863 *
3864 * The syntax `LITERAL` matches literal text in the URL path.
3865 *
3866 * The syntax `Variable` matches the entire path as specified by its template;
3867 * this nested template must not contain further variables. If a variable
3868 * matches a single path segment, its template may be omitted, e.g. `{var}` 3948 * matches a single path segment, its template may be omitted, e.g. `{var}`
3869 * is equivalent to `{var=*}`. 3949 * is equivalent to `{var=*}`.
3870 * 3950 *
3951 * If a variable contains exactly one path segment, such as `"{var}"` or
3952 * `"{var=*}"`, when such a variable is expanded into a URL path, all characters
3953 * except `[-_.~0-9a-zA-Z]` are percent-encoded. Such variables show up in the
3954 * Discovery Document as `{var}`.
3955 *
3956 * If a variable contains one or more path segments, such as `"{var=foo / * }"`
3957 * or `"{var=**}"`, when such a variable is expanded into a URL path, all
3958 * characters except `[-_.~/0-9a-zA-Z]` are percent-encoded. Such variables
3959 * show up in the Discovery Document as `{+var}`.
3960 *
3961 * NOTE: While the single segment variable matches the semantics of
3962 * [RFC 6570](https://tools.ietf.org/html/rfc6570) Section 3.2.2
3963 * Simple String Expansion, the multi segment variable **does not** match
3964 * RFC 6570 Reserved Expansion. The reason is that the Reserved Expansion
3965 * does not expand special characters like `?` and `#`, which would lead
3966 * to invalid URLs.
3967 *
3871 * NOTE: the field paths in variables and in the `body` must not refer to 3968 * NOTE: the field paths in variables and in the `body` must not refer to
3872 * repeated fields or map fields. 3969 * repeated fields or map fields.
3873 *
3874 * Use CustomHttpPattern to specify any HTTP method that is not included in the
3875 * `pattern` field, such as HEAD, or "*" to leave the HTTP method unspecified
3876 * for
3877 * a given URL path rule. The wild-card rule is useful for services that provide
3878 * content to Web (HTML) clients.
3879 */ 3970 */
3880 class HttpRule { 3971 class HttpRule {
3881 /** 3972 /**
3882 * Additional HTTP bindings for the selector. Nested bindings must 3973 * Additional HTTP bindings for the selector. Nested bindings must
3883 * not contain an `additional_bindings` field themselves (that is, 3974 * not contain an `additional_bindings` field themselves (that is,
3884 * the nesting may only be one level deep). 3975 * the nesting may only be one level deep).
3885 */ 3976 */
3886 core.List<HttpRule> additionalBindings; 3977 core.List<HttpRule> additionalBindings;
3887 /** 3978 /**
3888 * The name of the request field whose value is mapped to the HTTP body, or 3979 * The name of the request field whose value is mapped to the HTTP body, or
3889 * `*` for mapping all fields not captured by the path pattern to the HTTP 3980 * `*` for mapping all fields not captured by the path pattern to the HTTP
3890 * body. NOTE: the referred field must not be a repeated field and must be 3981 * body. NOTE: the referred field must not be a repeated field and must be
3891 * present at the top-level of request message type. 3982 * present at the top-level of request message type.
3892 */ 3983 */
3893 core.String body; 3984 core.String body;
3894 /** Custom pattern is used for defining custom verbs. */ 3985 /**
3986 * The custom pattern is used for specifying an HTTP method that is not
3987 * included in the `pattern` field, such as HEAD, or "*" to leave the
3988 * HTTP method unspecified for this rule. The wild-card rule is useful
3989 * for services that provide content to Web (HTML) clients.
3990 */
3895 CustomHttpPattern custom; 3991 CustomHttpPattern custom;
3896 /** Used for deleting a resource. */ 3992 /** Used for deleting a resource. */
3897 core.String delete; 3993 core.String delete;
3898 /** Used for listing and getting information about resources. */ 3994 /** Used for listing and getting information about resources. */
3899 core.String get; 3995 core.String get;
3900 /** 3996 /**
3901 * Use this only for Scotty Requests. Do not use this for bytestream methods. 3997 * Use this only for Scotty Requests. Do not use this for bytestream methods.
3902 * For media support, add instead [][google.bytestream.RestByteStream] as an 3998 * For media support, add instead [][google.bytestream.RestByteStream] as an
3903 * API to your configuration. 3999 * API to your configuration.
3904 */ 4000 */
(...skipping 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
3937 * }; 4033 * };
3938 * } 4034 * }
3939 * 4035 *
3940 * This method has the automatically derived collection name 4036 * This method has the automatically derived collection name
3941 * "projects.aggregated". Because, semantically, this rpc is actually an 4037 * "projects.aggregated". Because, semantically, this rpc is actually an
3942 * operation on the "projects.addresses" collection, the `rest_collection` 4038 * operation on the "projects.addresses" collection, the `rest_collection`
3943 * field is configured to override the derived collection name. 4039 * field is configured to override the derived collection name.
3944 */ 4040 */
3945 core.String restCollection; 4041 core.String restCollection;
3946 /** 4042 /**
4043 * Optional. The rest method name is by default derived from the URL
4044 * pattern. If specified, this field overrides the default method name.
4045 * Example:
4046 *
4047 * rpc CreateResource(CreateResourceRequest)
4048 * returns (CreateResourceResponse) {
4049 * option (google.api.http) = {
4050 * post: "/v1/resources",
4051 * body: "resource",
4052 * rest_method_name: "insert"
4053 * };
4054 * }
4055 *
4056 * This method has the automatically derived rest method name "create", but
4057 * for backwards compatability with apiary, it is specified as insert.
4058 */
4059 core.String restMethodName;
4060 /**
3947 * Selects methods to which this rule applies. 4061 * Selects methods to which this rule applies.
3948 * 4062 *
3949 * Refer to selector for syntax details. 4063 * Refer to selector for syntax details.
3950 */ 4064 */
3951 core.String selector; 4065 core.String selector;
3952 4066
3953 HttpRule(); 4067 HttpRule();
3954 4068
3955 HttpRule.fromJson(core.Map _json) { 4069 HttpRule.fromJson(core.Map _json) {
3956 if (_json.containsKey("additionalBindings")) { 4070 if (_json.containsKey("additionalBindings")) {
(...skipping 25 matching lines...) Expand all
3982 } 4096 }
3983 if (_json.containsKey("put")) { 4097 if (_json.containsKey("put")) {
3984 put = _json["put"]; 4098 put = _json["put"];
3985 } 4099 }
3986 if (_json.containsKey("responseBody")) { 4100 if (_json.containsKey("responseBody")) {
3987 responseBody = _json["responseBody"]; 4101 responseBody = _json["responseBody"];
3988 } 4102 }
3989 if (_json.containsKey("restCollection")) { 4103 if (_json.containsKey("restCollection")) {
3990 restCollection = _json["restCollection"]; 4104 restCollection = _json["restCollection"];
3991 } 4105 }
4106 if (_json.containsKey("restMethodName")) {
4107 restMethodName = _json["restMethodName"];
4108 }
3992 if (_json.containsKey("selector")) { 4109 if (_json.containsKey("selector")) {
3993 selector = _json["selector"]; 4110 selector = _json["selector"];
3994 } 4111 }
3995 } 4112 }
3996 4113
3997 core.Map toJson() { 4114 core.Map<core.String, core.Object> toJson() {
3998 var _json = new core.Map(); 4115 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
3999 if (additionalBindings != null) { 4116 if (additionalBindings != null) {
4000 _json["additionalBindings"] = additionalBindings.map((value) => (value).to Json()).toList(); 4117 _json["additionalBindings"] = additionalBindings.map((value) => (value).to Json()).toList();
4001 } 4118 }
4002 if (body != null) { 4119 if (body != null) {
4003 _json["body"] = body; 4120 _json["body"] = body;
4004 } 4121 }
4005 if (custom != null) { 4122 if (custom != null) {
4006 _json["custom"] = (custom).toJson(); 4123 _json["custom"] = (custom).toJson();
4007 } 4124 }
4008 if (delete != null) { 4125 if (delete != null) {
(...skipping 16 matching lines...) Expand all
4025 } 4142 }
4026 if (put != null) { 4143 if (put != null) {
4027 _json["put"] = put; 4144 _json["put"] = put;
4028 } 4145 }
4029 if (responseBody != null) { 4146 if (responseBody != null) {
4030 _json["responseBody"] = responseBody; 4147 _json["responseBody"] = responseBody;
4031 } 4148 }
4032 if (restCollection != null) { 4149 if (restCollection != null) {
4033 _json["restCollection"] = restCollection; 4150 _json["restCollection"] = restCollection;
4034 } 4151 }
4152 if (restMethodName != null) {
4153 _json["restMethodName"] = restMethodName;
4154 }
4035 if (selector != null) { 4155 if (selector != null) {
4036 _json["selector"] = selector; 4156 _json["selector"] = selector;
4037 } 4157 }
4038 return _json; 4158 return _json;
4039 } 4159 }
4040 } 4160 }
4041 4161
4042 /** A description of a label. */ 4162 /** A description of a label. */
4043 class LabelDescriptor { 4163 class LabelDescriptor {
4044 /** A human-readable description for the label. */ 4164 /** A human-readable description for the label. */
(...skipping 16 matching lines...) Expand all
4061 description = _json["description"]; 4181 description = _json["description"];
4062 } 4182 }
4063 if (_json.containsKey("key")) { 4183 if (_json.containsKey("key")) {
4064 key = _json["key"]; 4184 key = _json["key"];
4065 } 4185 }
4066 if (_json.containsKey("valueType")) { 4186 if (_json.containsKey("valueType")) {
4067 valueType = _json["valueType"]; 4187 valueType = _json["valueType"];
4068 } 4188 }
4069 } 4189 }
4070 4190
4071 core.Map toJson() { 4191 core.Map<core.String, core.Object> toJson() {
4072 var _json = new core.Map(); 4192 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4073 if (description != null) { 4193 if (description != null) {
4074 _json["description"] = description; 4194 _json["description"] = description;
4075 } 4195 }
4076 if (key != null) { 4196 if (key != null) {
4077 _json["key"] = key; 4197 _json["key"] = key;
4078 } 4198 }
4079 if (valueType != null) { 4199 if (valueType != null) {
4080 _json["valueType"] = valueType; 4200 _json["valueType"] = valueType;
4081 } 4201 }
4082 return _json; 4202 return _json;
(...skipping 11 matching lines...) Expand all
4094 4214
4095 ListOperationsResponse.fromJson(core.Map _json) { 4215 ListOperationsResponse.fromJson(core.Map _json) {
4096 if (_json.containsKey("nextPageToken")) { 4216 if (_json.containsKey("nextPageToken")) {
4097 nextPageToken = _json["nextPageToken"]; 4217 nextPageToken = _json["nextPageToken"];
4098 } 4218 }
4099 if (_json.containsKey("operations")) { 4219 if (_json.containsKey("operations")) {
4100 operations = _json["operations"].map((value) => new Operation.fromJson(val ue)).toList(); 4220 operations = _json["operations"].map((value) => new Operation.fromJson(val ue)).toList();
4101 } 4221 }
4102 } 4222 }
4103 4223
4104 core.Map toJson() { 4224 core.Map<core.String, core.Object> toJson() {
4105 var _json = new core.Map(); 4225 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4106 if (nextPageToken != null) { 4226 if (nextPageToken != null) {
4107 _json["nextPageToken"] = nextPageToken; 4227 _json["nextPageToken"] = nextPageToken;
4108 } 4228 }
4109 if (operations != null) { 4229 if (operations != null) {
4110 _json["operations"] = operations.map((value) => (value).toJson()).toList() ; 4230 _json["operations"] = operations.map((value) => (value).toJson()).toList() ;
4111 } 4231 }
4112 return _json; 4232 return _json;
4113 } 4233 }
4114 } 4234 }
4115 4235
4116 /** Response message for ListServiceConfigs method. */ 4236 /** Response message for ListServiceConfigs method. */
4117 class ListServiceConfigsResponse { 4237 class ListServiceConfigsResponse {
4118 /** The token of the next page of results. */ 4238 /** The token of the next page of results. */
4119 core.String nextPageToken; 4239 core.String nextPageToken;
4120 /** The list of service configuration resources. */ 4240 /** The list of service configuration resources. */
4121 core.List<Service> serviceConfigs; 4241 core.List<Service> serviceConfigs;
4122 4242
4123 ListServiceConfigsResponse(); 4243 ListServiceConfigsResponse();
4124 4244
4125 ListServiceConfigsResponse.fromJson(core.Map _json) { 4245 ListServiceConfigsResponse.fromJson(core.Map _json) {
4126 if (_json.containsKey("nextPageToken")) { 4246 if (_json.containsKey("nextPageToken")) {
4127 nextPageToken = _json["nextPageToken"]; 4247 nextPageToken = _json["nextPageToken"];
4128 } 4248 }
4129 if (_json.containsKey("serviceConfigs")) { 4249 if (_json.containsKey("serviceConfigs")) {
4130 serviceConfigs = _json["serviceConfigs"].map((value) => new Service.fromJs on(value)).toList(); 4250 serviceConfigs = _json["serviceConfigs"].map((value) => new Service.fromJs on(value)).toList();
4131 } 4251 }
4132 } 4252 }
4133 4253
4134 core.Map toJson() { 4254 core.Map<core.String, core.Object> toJson() {
4135 var _json = new core.Map(); 4255 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4136 if (nextPageToken != null) { 4256 if (nextPageToken != null) {
4137 _json["nextPageToken"] = nextPageToken; 4257 _json["nextPageToken"] = nextPageToken;
4138 } 4258 }
4139 if (serviceConfigs != null) { 4259 if (serviceConfigs != null) {
4140 _json["serviceConfigs"] = serviceConfigs.map((value) => (value).toJson()). toList(); 4260 _json["serviceConfigs"] = serviceConfigs.map((value) => (value).toJson()). toList();
4141 } 4261 }
4142 return _json; 4262 return _json;
4143 } 4263 }
4144 } 4264 }
4145 4265
4146 /** Response message for ListServiceRollouts method. */ 4266 /** Response message for ListServiceRollouts method. */
4147 class ListServiceRolloutsResponse { 4267 class ListServiceRolloutsResponse {
4148 /** The token of the next page of results. */ 4268 /** The token of the next page of results. */
4149 core.String nextPageToken; 4269 core.String nextPageToken;
4150 /** The list of rollout resources. */ 4270 /** The list of rollout resources. */
4151 core.List<Rollout> rollouts; 4271 core.List<Rollout> rollouts;
4152 4272
4153 ListServiceRolloutsResponse(); 4273 ListServiceRolloutsResponse();
4154 4274
4155 ListServiceRolloutsResponse.fromJson(core.Map _json) { 4275 ListServiceRolloutsResponse.fromJson(core.Map _json) {
4156 if (_json.containsKey("nextPageToken")) { 4276 if (_json.containsKey("nextPageToken")) {
4157 nextPageToken = _json["nextPageToken"]; 4277 nextPageToken = _json["nextPageToken"];
4158 } 4278 }
4159 if (_json.containsKey("rollouts")) { 4279 if (_json.containsKey("rollouts")) {
4160 rollouts = _json["rollouts"].map((value) => new Rollout.fromJson(value)).t oList(); 4280 rollouts = _json["rollouts"].map((value) => new Rollout.fromJson(value)).t oList();
4161 } 4281 }
4162 } 4282 }
4163 4283
4164 core.Map toJson() { 4284 core.Map<core.String, core.Object> toJson() {
4165 var _json = new core.Map(); 4285 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4166 if (nextPageToken != null) { 4286 if (nextPageToken != null) {
4167 _json["nextPageToken"] = nextPageToken; 4287 _json["nextPageToken"] = nextPageToken;
4168 } 4288 }
4169 if (rollouts != null) { 4289 if (rollouts != null) {
4170 _json["rollouts"] = rollouts.map((value) => (value).toJson()).toList(); 4290 _json["rollouts"] = rollouts.map((value) => (value).toJson()).toList();
4171 } 4291 }
4172 return _json; 4292 return _json;
4173 } 4293 }
4174 } 4294 }
4175 4295
(...skipping 10 matching lines...) Expand all
4186 4306
4187 ListServicesResponse.fromJson(core.Map _json) { 4307 ListServicesResponse.fromJson(core.Map _json) {
4188 if (_json.containsKey("nextPageToken")) { 4308 if (_json.containsKey("nextPageToken")) {
4189 nextPageToken = _json["nextPageToken"]; 4309 nextPageToken = _json["nextPageToken"];
4190 } 4310 }
4191 if (_json.containsKey("services")) { 4311 if (_json.containsKey("services")) {
4192 services = _json["services"].map((value) => new ManagedService.fromJson(va lue)).toList(); 4312 services = _json["services"].map((value) => new ManagedService.fromJson(va lue)).toList();
4193 } 4313 }
4194 } 4314 }
4195 4315
4196 core.Map toJson() { 4316 core.Map<core.String, core.Object> toJson() {
4197 var _json = new core.Map(); 4317 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4198 if (nextPageToken != null) { 4318 if (nextPageToken != null) {
4199 _json["nextPageToken"] = nextPageToken; 4319 _json["nextPageToken"] = nextPageToken;
4200 } 4320 }
4201 if (services != null) { 4321 if (services != null) {
4202 _json["services"] = services.map((value) => (value).toJson()).toList(); 4322 _json["services"] = services.map((value) => (value).toJson()).toList();
4203 } 4323 }
4204 return _json; 4324 return _json;
4205 } 4325 }
4206 } 4326 }
4207 4327
(...skipping 13 matching lines...) Expand all
4221 cloudAudit = new CloudAuditOptions.fromJson(_json["cloudAudit"]); 4341 cloudAudit = new CloudAuditOptions.fromJson(_json["cloudAudit"]);
4222 } 4342 }
4223 if (_json.containsKey("counter")) { 4343 if (_json.containsKey("counter")) {
4224 counter = new CounterOptions.fromJson(_json["counter"]); 4344 counter = new CounterOptions.fromJson(_json["counter"]);
4225 } 4345 }
4226 if (_json.containsKey("dataAccess")) { 4346 if (_json.containsKey("dataAccess")) {
4227 dataAccess = new DataAccessOptions.fromJson(_json["dataAccess"]); 4347 dataAccess = new DataAccessOptions.fromJson(_json["dataAccess"]);
4228 } 4348 }
4229 } 4349 }
4230 4350
4231 core.Map toJson() { 4351 core.Map<core.String, core.Object> toJson() {
4232 var _json = new core.Map(); 4352 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4233 if (cloudAudit != null) { 4353 if (cloudAudit != null) {
4234 _json["cloudAudit"] = (cloudAudit).toJson(); 4354 _json["cloudAudit"] = (cloudAudit).toJson();
4235 } 4355 }
4236 if (counter != null) { 4356 if (counter != null) {
4237 _json["counter"] = (counter).toJson(); 4357 _json["counter"] = (counter).toJson();
4238 } 4358 }
4239 if (dataAccess != null) { 4359 if (dataAccess != null) {
4240 _json["dataAccess"] = (dataAccess).toJson(); 4360 _json["dataAccess"] = (dataAccess).toJson();
4241 } 4361 }
4242 return _json; 4362 return _json;
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
4288 displayName = _json["displayName"]; 4408 displayName = _json["displayName"];
4289 } 4409 }
4290 if (_json.containsKey("labels")) { 4410 if (_json.containsKey("labels")) {
4291 labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value )).toList(); 4411 labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value )).toList();
4292 } 4412 }
4293 if (_json.containsKey("name")) { 4413 if (_json.containsKey("name")) {
4294 name = _json["name"]; 4414 name = _json["name"];
4295 } 4415 }
4296 } 4416 }
4297 4417
4298 core.Map toJson() { 4418 core.Map<core.String, core.Object> toJson() {
4299 var _json = new core.Map(); 4419 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4300 if (description != null) { 4420 if (description != null) {
4301 _json["description"] = description; 4421 _json["description"] = description;
4302 } 4422 }
4303 if (displayName != null) { 4423 if (displayName != null) {
4304 _json["displayName"] = displayName; 4424 _json["displayName"] = displayName;
4305 } 4425 }
4306 if (labels != null) { 4426 if (labels != null) {
4307 _json["labels"] = labels.map((value) => (value).toJson()).toList(); 4427 _json["labels"] = labels.map((value) => (value).toJson()).toList();
4308 } 4428 }
4309 if (name != null) { 4429 if (name != null) {
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
4364 4484
4365 Logging.fromJson(core.Map _json) { 4485 Logging.fromJson(core.Map _json) {
4366 if (_json.containsKey("consumerDestinations")) { 4486 if (_json.containsKey("consumerDestinations")) {
4367 consumerDestinations = _json["consumerDestinations"].map((value) => new Lo ggingDestination.fromJson(value)).toList(); 4487 consumerDestinations = _json["consumerDestinations"].map((value) => new Lo ggingDestination.fromJson(value)).toList();
4368 } 4488 }
4369 if (_json.containsKey("producerDestinations")) { 4489 if (_json.containsKey("producerDestinations")) {
4370 producerDestinations = _json["producerDestinations"].map((value) => new Lo ggingDestination.fromJson(value)).toList(); 4490 producerDestinations = _json["producerDestinations"].map((value) => new Lo ggingDestination.fromJson(value)).toList();
4371 } 4491 }
4372 } 4492 }
4373 4493
4374 core.Map toJson() { 4494 core.Map<core.String, core.Object> toJson() {
4375 var _json = new core.Map(); 4495 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4376 if (consumerDestinations != null) { 4496 if (consumerDestinations != null) {
4377 _json["consumerDestinations"] = consumerDestinations.map((value) => (value ).toJson()).toList(); 4497 _json["consumerDestinations"] = consumerDestinations.map((value) => (value ).toJson()).toList();
4378 } 4498 }
4379 if (producerDestinations != null) { 4499 if (producerDestinations != null) {
4380 _json["producerDestinations"] = producerDestinations.map((value) => (value ).toJson()).toList(); 4500 _json["producerDestinations"] = producerDestinations.map((value) => (value ).toJson()).toList();
4381 } 4501 }
4382 return _json; 4502 return _json;
4383 } 4503 }
4384 } 4504 }
4385 4505
(...skipping 19 matching lines...) Expand all
4405 4525
4406 LoggingDestination.fromJson(core.Map _json) { 4526 LoggingDestination.fromJson(core.Map _json) {
4407 if (_json.containsKey("logs")) { 4527 if (_json.containsKey("logs")) {
4408 logs = _json["logs"]; 4528 logs = _json["logs"];
4409 } 4529 }
4410 if (_json.containsKey("monitoredResource")) { 4530 if (_json.containsKey("monitoredResource")) {
4411 monitoredResource = _json["monitoredResource"]; 4531 monitoredResource = _json["monitoredResource"];
4412 } 4532 }
4413 } 4533 }
4414 4534
4415 core.Map toJson() { 4535 core.Map<core.String, core.Object> toJson() {
4416 var _json = new core.Map(); 4536 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4417 if (logs != null) { 4537 if (logs != null) {
4418 _json["logs"] = logs; 4538 _json["logs"] = logs;
4419 } 4539 }
4420 if (monitoredResource != null) { 4540 if (monitoredResource != null) {
4421 _json["monitoredResource"] = monitoredResource; 4541 _json["monitoredResource"] = monitoredResource;
4422 } 4542 }
4423 return _json; 4543 return _json;
4424 } 4544 }
4425 } 4545 }
4426 4546
(...skipping 14 matching lines...) Expand all
4441 4561
4442 ManagedService.fromJson(core.Map _json) { 4562 ManagedService.fromJson(core.Map _json) {
4443 if (_json.containsKey("producerProjectId")) { 4563 if (_json.containsKey("producerProjectId")) {
4444 producerProjectId = _json["producerProjectId"]; 4564 producerProjectId = _json["producerProjectId"];
4445 } 4565 }
4446 if (_json.containsKey("serviceName")) { 4566 if (_json.containsKey("serviceName")) {
4447 serviceName = _json["serviceName"]; 4567 serviceName = _json["serviceName"];
4448 } 4568 }
4449 } 4569 }
4450 4570
4451 core.Map toJson() { 4571 core.Map<core.String, core.Object> toJson() {
4452 var _json = new core.Map(); 4572 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4453 if (producerProjectId != null) { 4573 if (producerProjectId != null) {
4454 _json["producerProjectId"] = producerProjectId; 4574 _json["producerProjectId"] = producerProjectId;
4455 } 4575 }
4456 if (serviceName != null) { 4576 if (serviceName != null) {
4457 _json["serviceName"] = serviceName; 4577 _json["serviceName"] = serviceName;
4458 } 4578 }
4459 return _json; 4579 return _json;
4460 } 4580 }
4461 } 4581 }
4462 4582
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
4509 enabled = _json["enabled"]; 4629 enabled = _json["enabled"];
4510 } 4630 }
4511 if (_json.containsKey("maxDirectDownloadSize")) { 4631 if (_json.containsKey("maxDirectDownloadSize")) {
4512 maxDirectDownloadSize = _json["maxDirectDownloadSize"]; 4632 maxDirectDownloadSize = _json["maxDirectDownloadSize"];
4513 } 4633 }
4514 if (_json.containsKey("useDirectDownload")) { 4634 if (_json.containsKey("useDirectDownload")) {
4515 useDirectDownload = _json["useDirectDownload"]; 4635 useDirectDownload = _json["useDirectDownload"];
4516 } 4636 }
4517 } 4637 }
4518 4638
4519 core.Map toJson() { 4639 core.Map<core.String, core.Object> toJson() {
4520 var _json = new core.Map(); 4640 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4521 if (completeNotification != null) { 4641 if (completeNotification != null) {
4522 _json["completeNotification"] = completeNotification; 4642 _json["completeNotification"] = completeNotification;
4523 } 4643 }
4524 if (downloadService != null) { 4644 if (downloadService != null) {
4525 _json["downloadService"] = downloadService; 4645 _json["downloadService"] = downloadService;
4526 } 4646 }
4527 if (dropzone != null) { 4647 if (dropzone != null) {
4528 _json["dropzone"] = dropzone; 4648 _json["dropzone"] = dropzone;
4529 } 4649 }
4530 if (enabled != null) { 4650 if (enabled != null) {
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
4602 progressNotification = _json["progressNotification"]; 4722 progressNotification = _json["progressNotification"];
4603 } 4723 }
4604 if (_json.containsKey("startNotification")) { 4724 if (_json.containsKey("startNotification")) {
4605 startNotification = _json["startNotification"]; 4725 startNotification = _json["startNotification"];
4606 } 4726 }
4607 if (_json.containsKey("uploadService")) { 4727 if (_json.containsKey("uploadService")) {
4608 uploadService = _json["uploadService"]; 4728 uploadService = _json["uploadService"];
4609 } 4729 }
4610 } 4730 }
4611 4731
4612 core.Map toJson() { 4732 core.Map<core.String, core.Object> toJson() {
4613 var _json = new core.Map(); 4733 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4614 if (completeNotification != null) { 4734 if (completeNotification != null) {
4615 _json["completeNotification"] = completeNotification; 4735 _json["completeNotification"] = completeNotification;
4616 } 4736 }
4617 if (dropzone != null) { 4737 if (dropzone != null) {
4618 _json["dropzone"] = dropzone; 4738 _json["dropzone"] = dropzone;
4619 } 4739 }
4620 if (enabled != null) { 4740 if (enabled != null) {
4621 _json["enabled"] = enabled; 4741 _json["enabled"] = enabled;
4622 } 4742 }
4623 if (maxSize != null) { 4743 if (maxSize != null) {
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
4680 responseStreaming = _json["responseStreaming"]; 4800 responseStreaming = _json["responseStreaming"];
4681 } 4801 }
4682 if (_json.containsKey("responseTypeUrl")) { 4802 if (_json.containsKey("responseTypeUrl")) {
4683 responseTypeUrl = _json["responseTypeUrl"]; 4803 responseTypeUrl = _json["responseTypeUrl"];
4684 } 4804 }
4685 if (_json.containsKey("syntax")) { 4805 if (_json.containsKey("syntax")) {
4686 syntax = _json["syntax"]; 4806 syntax = _json["syntax"];
4687 } 4807 }
4688 } 4808 }
4689 4809
4690 core.Map toJson() { 4810 core.Map<core.String, core.Object> toJson() {
4691 var _json = new core.Map(); 4811 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4692 if (name != null) { 4812 if (name != null) {
4693 _json["name"] = name; 4813 _json["name"] = name;
4694 } 4814 }
4695 if (options != null) { 4815 if (options != null) {
4696 _json["options"] = options.map((value) => (value).toJson()).toList(); 4816 _json["options"] = options.map((value) => (value).toJson()).toList();
4697 } 4817 }
4698 if (requestStreaming != null) { 4818 if (requestStreaming != null) {
4699 _json["requestStreaming"] = requestStreaming; 4819 _json["requestStreaming"] = requestStreaming;
4700 } 4820 }
4701 if (requestTypeUrl != null) { 4821 if (requestTypeUrl != null) {
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after
4878 type = _json["type"]; 4998 type = _json["type"];
4879 } 4999 }
4880 if (_json.containsKey("unit")) { 5000 if (_json.containsKey("unit")) {
4881 unit = _json["unit"]; 5001 unit = _json["unit"];
4882 } 5002 }
4883 if (_json.containsKey("valueType")) { 5003 if (_json.containsKey("valueType")) {
4884 valueType = _json["valueType"]; 5004 valueType = _json["valueType"];
4885 } 5005 }
4886 } 5006 }
4887 5007
4888 core.Map toJson() { 5008 core.Map<core.String, core.Object> toJson() {
4889 var _json = new core.Map(); 5009 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4890 if (description != null) { 5010 if (description != null) {
4891 _json["description"] = description; 5011 _json["description"] = description;
4892 } 5012 }
4893 if (displayName != null) { 5013 if (displayName != null) {
4894 _json["displayName"] = displayName; 5014 _json["displayName"] = displayName;
4895 } 5015 }
4896 if (labels != null) { 5016 if (labels != null) {
4897 _json["labels"] = labels.map((value) => (value).toJson()).toList(); 5017 _json["labels"] = labels.map((value) => (value).toJson()).toList();
4898 } 5018 }
4899 if (metricKind != null) { 5019 if (metricKind != null) {
(...skipping 10 matching lines...) Expand all
4910 } 5030 }
4911 if (valueType != null) { 5031 if (valueType != null) {
4912 _json["valueType"] = valueType; 5032 _json["valueType"] = valueType;
4913 } 5033 }
4914 return _json; 5034 return _json;
4915 } 5035 }
4916 } 5036 }
4917 5037
4918 /** 5038 /**
4919 * Bind API methods to metrics. Binding a method to a metric causes that 5039 * Bind API methods to metrics. Binding a method to a metric causes that
4920 * metric's configured quota, billing, and monitoring behaviors to apply to the 5040 * metric's configured quota behaviors to apply to the method call.
4921 * method call.
4922 *
4923 * Used by metric-based quotas only.
4924 */ 5041 */
4925 class MetricRule { 5042 class MetricRule {
4926 /** 5043 /**
4927 * Metrics to update when the selected methods are called, and the associated 5044 * Metrics to update when the selected methods are called, and the associated
4928 * cost applied to each metric. 5045 * cost applied to each metric.
4929 * 5046 *
4930 * The key of the map is the metric name, and the values are the amount 5047 * The key of the map is the metric name, and the values are the amount
4931 * increased for the metric against which the quota limits are defined. 5048 * increased for the metric against which the quota limits are defined.
4932 * The value must not be negative. 5049 * The value must not be negative.
4933 */ 5050 */
4934 core.Map<core.String, core.String> metricCosts; 5051 core.Map<core.String, core.String> metricCosts;
4935 /** 5052 /**
4936 * Selects the methods to which this rule applies. 5053 * Selects the methods to which this rule applies.
4937 * 5054 *
4938 * Refer to selector for syntax details. 5055 * Refer to selector for syntax details.
4939 */ 5056 */
4940 core.String selector; 5057 core.String selector;
4941 5058
4942 MetricRule(); 5059 MetricRule();
4943 5060
4944 MetricRule.fromJson(core.Map _json) { 5061 MetricRule.fromJson(core.Map _json) {
4945 if (_json.containsKey("metricCosts")) { 5062 if (_json.containsKey("metricCosts")) {
4946 metricCosts = _json["metricCosts"]; 5063 metricCosts = _json["metricCosts"];
4947 } 5064 }
4948 if (_json.containsKey("selector")) { 5065 if (_json.containsKey("selector")) {
4949 selector = _json["selector"]; 5066 selector = _json["selector"];
4950 } 5067 }
4951 } 5068 }
4952 5069
4953 core.Map toJson() { 5070 core.Map<core.String, core.Object> toJson() {
4954 var _json = new core.Map(); 5071 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
4955 if (metricCosts != null) { 5072 if (metricCosts != null) {
4956 _json["metricCosts"] = metricCosts; 5073 _json["metricCosts"] = metricCosts;
4957 } 5074 }
4958 if (selector != null) { 5075 if (selector != null) {
4959 _json["selector"] = selector; 5076 _json["selector"] = selector;
4960 } 5077 }
4961 return _json; 5078 return _json;
4962 } 5079 }
4963 } 5080 }
4964 5081
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
5054 5171
5055 Mixin.fromJson(core.Map _json) { 5172 Mixin.fromJson(core.Map _json) {
5056 if (_json.containsKey("name")) { 5173 if (_json.containsKey("name")) {
5057 name = _json["name"]; 5174 name = _json["name"];
5058 } 5175 }
5059 if (_json.containsKey("root")) { 5176 if (_json.containsKey("root")) {
5060 root = _json["root"]; 5177 root = _json["root"];
5061 } 5178 }
5062 } 5179 }
5063 5180
5064 core.Map toJson() { 5181 core.Map<core.String, core.Object> toJson() {
5065 var _json = new core.Map(); 5182 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5066 if (name != null) { 5183 if (name != null) {
5067 _json["name"] = name; 5184 _json["name"] = name;
5068 } 5185 }
5069 if (root != null) { 5186 if (root != null) {
5070 _json["root"] = root; 5187 _json["root"] = root;
5071 } 5188 }
5072 return _json; 5189 return _json;
5073 } 5190 }
5074 } 5191 }
5075 5192
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
5132 labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value )).toList(); 5249 labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value )).toList();
5133 } 5250 }
5134 if (_json.containsKey("name")) { 5251 if (_json.containsKey("name")) {
5135 name = _json["name"]; 5252 name = _json["name"];
5136 } 5253 }
5137 if (_json.containsKey("type")) { 5254 if (_json.containsKey("type")) {
5138 type = _json["type"]; 5255 type = _json["type"];
5139 } 5256 }
5140 } 5257 }
5141 5258
5142 core.Map toJson() { 5259 core.Map<core.String, core.Object> toJson() {
5143 var _json = new core.Map(); 5260 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5144 if (description != null) { 5261 if (description != null) {
5145 _json["description"] = description; 5262 _json["description"] = description;
5146 } 5263 }
5147 if (displayName != null) { 5264 if (displayName != null) {
5148 _json["displayName"] = displayName; 5265 _json["displayName"] = displayName;
5149 } 5266 }
5150 if (labels != null) { 5267 if (labels != null) {
5151 _json["labels"] = labels.map((value) => (value).toJson()).toList(); 5268 _json["labels"] = labels.map((value) => (value).toJson()).toList();
5152 } 5269 }
5153 if (name != null) { 5270 if (name != null) {
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
5219 5336
5220 Monitoring.fromJson(core.Map _json) { 5337 Monitoring.fromJson(core.Map _json) {
5221 if (_json.containsKey("consumerDestinations")) { 5338 if (_json.containsKey("consumerDestinations")) {
5222 consumerDestinations = _json["consumerDestinations"].map((value) => new Mo nitoringDestination.fromJson(value)).toList(); 5339 consumerDestinations = _json["consumerDestinations"].map((value) => new Mo nitoringDestination.fromJson(value)).toList();
5223 } 5340 }
5224 if (_json.containsKey("producerDestinations")) { 5341 if (_json.containsKey("producerDestinations")) {
5225 producerDestinations = _json["producerDestinations"].map((value) => new Mo nitoringDestination.fromJson(value)).toList(); 5342 producerDestinations = _json["producerDestinations"].map((value) => new Mo nitoringDestination.fromJson(value)).toList();
5226 } 5343 }
5227 } 5344 }
5228 5345
5229 core.Map toJson() { 5346 core.Map<core.String, core.Object> toJson() {
5230 var _json = new core.Map(); 5347 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5231 if (consumerDestinations != null) { 5348 if (consumerDestinations != null) {
5232 _json["consumerDestinations"] = consumerDestinations.map((value) => (value ).toJson()).toList(); 5349 _json["consumerDestinations"] = consumerDestinations.map((value) => (value ).toJson()).toList();
5233 } 5350 }
5234 if (producerDestinations != null) { 5351 if (producerDestinations != null) {
5235 _json["producerDestinations"] = producerDestinations.map((value) => (value ).toJson()).toList(); 5352 _json["producerDestinations"] = producerDestinations.map((value) => (value ).toJson()).toList();
5236 } 5353 }
5237 return _json; 5354 return _json;
5238 } 5355 }
5239 } 5356 }
5240 5357
(...skipping 17 matching lines...) Expand all
5258 5375
5259 MonitoringDestination.fromJson(core.Map _json) { 5376 MonitoringDestination.fromJson(core.Map _json) {
5260 if (_json.containsKey("metrics")) { 5377 if (_json.containsKey("metrics")) {
5261 metrics = _json["metrics"]; 5378 metrics = _json["metrics"];
5262 } 5379 }
5263 if (_json.containsKey("monitoredResource")) { 5380 if (_json.containsKey("monitoredResource")) {
5264 monitoredResource = _json["monitoredResource"]; 5381 monitoredResource = _json["monitoredResource"];
5265 } 5382 }
5266 } 5383 }
5267 5384
5268 core.Map toJson() { 5385 core.Map<core.String, core.Object> toJson() {
5269 var _json = new core.Map(); 5386 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5270 if (metrics != null) { 5387 if (metrics != null) {
5271 _json["metrics"] = metrics; 5388 _json["metrics"] = metrics;
5272 } 5389 }
5273 if (monitoredResource != null) { 5390 if (monitoredResource != null) {
5274 _json["monitoredResource"] = monitoredResource; 5391 _json["monitoredResource"] = monitoredResource;
5275 } 5392 }
5276 return _json; 5393 return _json;
5277 } 5394 }
5278 } 5395 }
5279 5396
(...skipping 30 matching lines...) Expand all
5310 core.String canonicalScopes; 5427 core.String canonicalScopes;
5311 5428
5312 OAuthRequirements(); 5429 OAuthRequirements();
5313 5430
5314 OAuthRequirements.fromJson(core.Map _json) { 5431 OAuthRequirements.fromJson(core.Map _json) {
5315 if (_json.containsKey("canonicalScopes")) { 5432 if (_json.containsKey("canonicalScopes")) {
5316 canonicalScopes = _json["canonicalScopes"]; 5433 canonicalScopes = _json["canonicalScopes"];
5317 } 5434 }
5318 } 5435 }
5319 5436
5320 core.Map toJson() { 5437 core.Map<core.String, core.Object> toJson() {
5321 var _json = new core.Map(); 5438 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5322 if (canonicalScopes != null) { 5439 if (canonicalScopes != null) {
5323 _json["canonicalScopes"] = canonicalScopes; 5440 _json["canonicalScopes"] = canonicalScopes;
5324 } 5441 }
5325 return _json; 5442 return _json;
5326 } 5443 }
5327 } 5444 }
5328 5445
5329 /** 5446 /**
5330 * This resource represents a long-running operation that is the result of a 5447 * This resource represents a long-running operation that is the result of a
5331 * network API call. 5448 * network API call.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
5383 metadata = _json["metadata"]; 5500 metadata = _json["metadata"];
5384 } 5501 }
5385 if (_json.containsKey("name")) { 5502 if (_json.containsKey("name")) {
5386 name = _json["name"]; 5503 name = _json["name"];
5387 } 5504 }
5388 if (_json.containsKey("response")) { 5505 if (_json.containsKey("response")) {
5389 response = _json["response"]; 5506 response = _json["response"];
5390 } 5507 }
5391 } 5508 }
5392 5509
5393 core.Map toJson() { 5510 core.Map<core.String, core.Object> toJson() {
5394 var _json = new core.Map(); 5511 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5395 if (done != null) { 5512 if (done != null) {
5396 _json["done"] = done; 5513 _json["done"] = done;
5397 } 5514 }
5398 if (error != null) { 5515 if (error != null) {
5399 _json["error"] = (error).toJson(); 5516 _json["error"] = (error).toJson();
5400 } 5517 }
5401 if (metadata != null) { 5518 if (metadata != null) {
5402 _json["metadata"] = metadata; 5519 _json["metadata"] = metadata;
5403 } 5520 }
5404 if (name != null) { 5521 if (name != null) {
(...skipping 30 matching lines...) Expand all
5435 resourceNames = _json["resourceNames"]; 5552 resourceNames = _json["resourceNames"];
5436 } 5553 }
5437 if (_json.containsKey("startTime")) { 5554 if (_json.containsKey("startTime")) {
5438 startTime = _json["startTime"]; 5555 startTime = _json["startTime"];
5439 } 5556 }
5440 if (_json.containsKey("steps")) { 5557 if (_json.containsKey("steps")) {
5441 steps = _json["steps"].map((value) => new Step.fromJson(value)).toList(); 5558 steps = _json["steps"].map((value) => new Step.fromJson(value)).toList();
5442 } 5559 }
5443 } 5560 }
5444 5561
5445 core.Map toJson() { 5562 core.Map<core.String, core.Object> toJson() {
5446 var _json = new core.Map(); 5563 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5447 if (progressPercentage != null) { 5564 if (progressPercentage != null) {
5448 _json["progressPercentage"] = progressPercentage; 5565 _json["progressPercentage"] = progressPercentage;
5449 } 5566 }
5450 if (resourceNames != null) { 5567 if (resourceNames != null) {
5451 _json["resourceNames"] = resourceNames; 5568 _json["resourceNames"] = resourceNames;
5452 } 5569 }
5453 if (startTime != null) { 5570 if (startTime != null) {
5454 _json["startTime"] = startTime; 5571 _json["startTime"] = startTime;
5455 } 5572 }
5456 if (steps != null) { 5573 if (steps != null) {
(...skipping 30 matching lines...) Expand all
5487 5604
5488 Option.fromJson(core.Map _json) { 5605 Option.fromJson(core.Map _json) {
5489 if (_json.containsKey("name")) { 5606 if (_json.containsKey("name")) {
5490 name = _json["name"]; 5607 name = _json["name"];
5491 } 5608 }
5492 if (_json.containsKey("value")) { 5609 if (_json.containsKey("value")) {
5493 value = _json["value"]; 5610 value = _json["value"];
5494 } 5611 }
5495 } 5612 }
5496 5613
5497 core.Map toJson() { 5614 core.Map<core.String, core.Object> toJson() {
5498 var _json = new core.Map(); 5615 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5499 if (name != null) { 5616 if (name != null) {
5500 _json["name"] = name; 5617 _json["name"] = name;
5501 } 5618 }
5502 if (value != null) { 5619 if (value != null) {
5503 _json["value"] = value; 5620 _json["value"] = value;
5504 } 5621 }
5505 return _json; 5622 return _json;
5506 } 5623 }
5507 } 5624 }
5508 5625
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
5547 content = _json["content"]; 5664 content = _json["content"];
5548 } 5665 }
5549 if (_json.containsKey("name")) { 5666 if (_json.containsKey("name")) {
5550 name = _json["name"]; 5667 name = _json["name"];
5551 } 5668 }
5552 if (_json.containsKey("subpages")) { 5669 if (_json.containsKey("subpages")) {
5553 subpages = _json["subpages"].map((value) => new Page.fromJson(value)).toLi st(); 5670 subpages = _json["subpages"].map((value) => new Page.fromJson(value)).toLi st();
5554 } 5671 }
5555 } 5672 }
5556 5673
5557 core.Map toJson() { 5674 core.Map<core.String, core.Object> toJson() {
5558 var _json = new core.Map(); 5675 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5559 if (content != null) { 5676 if (content != null) {
5560 _json["content"] = content; 5677 _json["content"] = content;
5561 } 5678 }
5562 if (name != null) { 5679 if (name != null) {
5563 _json["name"] = name; 5680 _json["name"] = name;
5564 } 5681 }
5565 if (subpages != null) { 5682 if (subpages != null) {
5566 _json["subpages"] = subpages.map((value) => (value).toJson()).toList(); 5683 _json["subpages"] = subpages.map((value) => (value).toJson()).toList();
5567 } 5684 }
5568 return _json; 5685 return _json;
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
5600 * } 5717 * }
5601 * 5718 *
5602 * For a description of IAM and its features, see the 5719 * For a description of IAM and its features, see the
5603 * [IAM developer's guide](https://cloud.google.com/iam). 5720 * [IAM developer's guide](https://cloud.google.com/iam).
5604 */ 5721 */
5605 class Policy { 5722 class Policy {
5606 /** Specifies cloud audit logging configuration for this policy. */ 5723 /** Specifies cloud audit logging configuration for this policy. */
5607 core.List<AuditConfig> auditConfigs; 5724 core.List<AuditConfig> auditConfigs;
5608 /** 5725 /**
5609 * Associates a list of `members` to a `role`. 5726 * Associates a list of `members` to a `role`.
5610 * Multiple `bindings` must not be specified for the same `role`.
5611 * `bindings` with no members will result in an error. 5727 * `bindings` with no members will result in an error.
5612 */ 5728 */
5613 core.List<Binding> bindings; 5729 core.List<Binding> bindings;
5614 /** 5730 /**
5615 * `etag` is used for optimistic concurrency control as a way to help 5731 * `etag` is used for optimistic concurrency control as a way to help
5616 * prevent simultaneous updates of a policy from overwriting each other. 5732 * prevent simultaneous updates of a policy from overwriting each other.
5617 * It is strongly suggested that systems make use of the `etag` in the 5733 * It is strongly suggested that systems make use of the `etag` in the
5618 * read-modify-write cycle to perform policy updates in order to avoid race 5734 * read-modify-write cycle to perform policy updates in order to avoid race
5619 * conditions: An `etag` is returned in the response to `getIamPolicy`, and 5735 * conditions: An `etag` is returned in the response to `getIamPolicy`, and
5620 * systems are expected to put that etag in the request to `setIamPolicy` to 5736 * systems are expected to put that etag in the request to `setIamPolicy` to
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
5663 iamOwned = _json["iamOwned"]; 5779 iamOwned = _json["iamOwned"];
5664 } 5780 }
5665 if (_json.containsKey("rules")) { 5781 if (_json.containsKey("rules")) {
5666 rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList(); 5782 rules = _json["rules"].map((value) => new Rule.fromJson(value)).toList();
5667 } 5783 }
5668 if (_json.containsKey("version")) { 5784 if (_json.containsKey("version")) {
5669 version = _json["version"]; 5785 version = _json["version"];
5670 } 5786 }
5671 } 5787 }
5672 5788
5673 core.Map toJson() { 5789 core.Map<core.String, core.Object> toJson() {
5674 var _json = new core.Map(); 5790 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5675 if (auditConfigs != null) { 5791 if (auditConfigs != null) {
5676 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi st(); 5792 _json["auditConfigs"] = auditConfigs.map((value) => (value).toJson()).toLi st();
5677 } 5793 }
5678 if (bindings != null) { 5794 if (bindings != null) {
5679 _json["bindings"] = bindings.map((value) => (value).toJson()).toList(); 5795 _json["bindings"] = bindings.map((value) => (value).toJson()).toList();
5680 } 5796 }
5681 if (etag != null) { 5797 if (etag != null) {
5682 _json["etag"] = etag; 5798 _json["etag"] = etag;
5683 } 5799 }
5684 if (iamOwned != null) { 5800 if (iamOwned != null) {
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
5738 * display_name: Read requests 5854 * display_name: Read requests
5739 * metric_kind: DELTA 5855 * metric_kind: DELTA
5740 * value_type: INT64 5856 * value_type: INT64
5741 * 5857 *
5742 * - name: library.googleapis.com/write_calls 5858 * - name: library.googleapis.com/write_calls
5743 * display_name: Write requests 5859 * display_name: Write requests
5744 * metric_kind: DELTA 5860 * metric_kind: DELTA
5745 * value_type: INT64 5861 * value_type: INT64
5746 */ 5862 */
5747 class Quota { 5863 class Quota {
5748 /** 5864 /** List of `QuotaLimit` definitions for the service. */
5749 * List of `QuotaLimit` definitions for the service.
5750 *
5751 * Used by metric-based quotas only.
5752 */
5753 core.List<QuotaLimit> limits; 5865 core.List<QuotaLimit> limits;
5754 /** 5866 /**
5755 * List of `MetricRule` definitions, each one mapping a selected method to one 5867 * List of `MetricRule` definitions, each one mapping a selected method to one
5756 * or more metrics. 5868 * or more metrics.
5757 *
5758 * Used by metric-based quotas only.
5759 */ 5869 */
5760 core.List<MetricRule> metricRules; 5870 core.List<MetricRule> metricRules;
5761 5871
5762 Quota(); 5872 Quota();
5763 5873
5764 Quota.fromJson(core.Map _json) { 5874 Quota.fromJson(core.Map _json) {
5765 if (_json.containsKey("limits")) { 5875 if (_json.containsKey("limits")) {
5766 limits = _json["limits"].map((value) => new QuotaLimit.fromJson(value)).to List(); 5876 limits = _json["limits"].map((value) => new QuotaLimit.fromJson(value)).to List();
5767 } 5877 }
5768 if (_json.containsKey("metricRules")) { 5878 if (_json.containsKey("metricRules")) {
5769 metricRules = _json["metricRules"].map((value) => new MetricRule.fromJson( value)).toList(); 5879 metricRules = _json["metricRules"].map((value) => new MetricRule.fromJson( value)).toList();
5770 } 5880 }
5771 } 5881 }
5772 5882
5773 core.Map toJson() { 5883 core.Map<core.String, core.Object> toJson() {
5774 var _json = new core.Map(); 5884 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5775 if (limits != null) { 5885 if (limits != null) {
5776 _json["limits"] = limits.map((value) => (value).toJson()).toList(); 5886 _json["limits"] = limits.map((value) => (value).toJson()).toList();
5777 } 5887 }
5778 if (metricRules != null) { 5888 if (metricRules != null) {
5779 _json["metricRules"] = metricRules.map((value) => (value).toJson()).toList (); 5889 _json["metricRules"] = metricRules.map((value) => (value).toJson()).toList ();
5780 } 5890 }
5781 return _json; 5891 return _json;
5782 } 5892 }
5783 } 5893 }
5784 5894
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
5851 * the same metric will be checked together during runtime. The metric must be 5961 * the same metric will be checked together during runtime. The metric must be
5852 * defined within the service config. 5962 * defined within the service config.
5853 * 5963 *
5854 * Used by metric-based quotas only. 5964 * Used by metric-based quotas only.
5855 */ 5965 */
5856 core.String metric; 5966 core.String metric;
5857 /** 5967 /**
5858 * Name of the quota limit. The name is used to refer to the limit when 5968 * Name of the quota limit. The name is used to refer to the limit when
5859 * overriding the default limit on per-consumer basis. 5969 * overriding the default limit on per-consumer basis.
5860 * 5970 *
5861 * For group-based quota limits, the name must be unique within the quota
5862 * group. If a name is not provided, it will be generated from the limit_by
5863 * and duration fields.
5864 *
5865 * For metric-based quota limits, the name must be provided, and it must be 5971 * For metric-based quota limits, the name must be provided, and it must be
5866 * unique within the service. The name can only include alphanumeric 5972 * unique within the service. The name can only include alphanumeric
5867 * characters as well as '-'. 5973 * characters as well as '-'.
5868 * 5974 *
5869 * The maximum length of the limit name is 64 characters. 5975 * The maximum length of the limit name is 64 characters.
5870 * 5976 *
5871 * The name of a limit is used as a unique identifier for this limit. 5977 * The name of a limit is used as a unique identifier for this limit.
5872 * Therefore, once a limit has been put into use, its name should be 5978 * Therefore, once a limit has been put into use, its name should be
5873 * immutable. You can use the display_name field to provide a user-friendly 5979 * immutable. You can use the display_name field to provide a user-friendly
5874 * name for the limit. The display name can be evolved over time without 5980 * name for the limit. The display name can be evolved over time without
5875 * affecting the identity of the limit. 5981 * affecting the identity of the limit.
5876 */ 5982 */
5877 core.String name; 5983 core.String name;
5878 /** 5984 /**
5879 * Specify the unit of the quota limit. It uses the same syntax as 5985 * Specify the unit of the quota limit. It uses the same syntax as
5880 * Metric.unit. The supported unit kinds are determined by the quota 5986 * Metric.unit. The supported unit kinds are determined by the quota
5881 * backend system. 5987 * backend system.
5882 * 5988 *
5883 * The [Google Service Control](https://cloud.google.com/service-control) 5989 * The [Google Service Control](https://cloud.google.com/service-control)
5884 * supports the following unit components: 5990 * supports the following unit components:
5885 * * One of the time intevals: 5991 * * One of the time intevals:
5886 * * "/min" for quota every minute. 5992 * * "/min" for quota every minute.
5887 * * "/d" for quota every 24 hours, starting 00:00 US Pacific Time. 5993 * * "/d" for quota every 24 hours, starting 00:00 US Pacific Time.
5888 * * Otherwise the quota won't be reset by time, such as storage limit. 5994 * * Otherwise the quota won't be reset by time, such as storage limit.
5889 * * One and only one of the granted containers: 5995 * * One and only one of the granted containers:
5890 * * "/{organization}" quota for an organization. 5996 * * "/{project}" quota for a project
5891 * * "/{project}" quota for a project.
5892 * * "/{folder}" quota for a folder.
5893 * * "/{resource}" quota for a universal resource.
5894 * * Zero or more quota segmentation dimension. Not all combos are valid.
5895 * * "/{region}" quota for every region. Not to be used with time intervals.
5896 * * Otherwise the resources granted on the target is not segmented.
5897 * * "/{zone}" quota for every zone. Not to be used with time intervals.
5898 * * Otherwise the resources granted on the target is not segmented.
5899 * * "/{resource}" quota for a resource associated with a project or org.
5900 * 5997 *
5901 * Here are some examples: 5998 * Here are some examples:
5902 * * "1/min/{project}" for quota per minute per project. 5999 * * "1/min/{project}" for quota per minute per project.
5903 * * "1/min/{user}" for quota per minute per user.
5904 * * "1/min/{organization}" for quota per minute per organization.
5905 * 6000 *
5906 * Note: the order of unit components is insignificant. 6001 * Note: the order of unit components is insignificant.
5907 * The "1" at the beginning is required to follow the metric unit syntax. 6002 * The "1" at the beginning is required to follow the metric unit syntax.
5908 * 6003 *
5909 * Used by metric-based quotas only. 6004 * Used by metric-based quotas only.
5910 */ 6005 */
5911 core.String unit; 6006 core.String unit;
5912 /** 6007 /** Tiered limit values, currently only STANDARD is supported. */
5913 * Tiered limit values. Also allows for regional or zone overrides for these
5914 * values if "/{region}" or "/{zone}" is specified in the unit field.
5915 *
5916 * Currently supported tiers from low to high:
5917 * VERY_LOW, LOW, STANDARD, HIGH, VERY_HIGH
5918 *
5919 * To apply different limit values for users according to their tiers, specify
5920 * the values for the tiers you want to differentiate. For example:
5921 * {LOW:100, STANDARD:500, HIGH:1000, VERY_HIGH:5000}
5922 *
5923 * The limit value for each tier is optional except for the tier STANDARD.
5924 * The limit value for an unspecified tier falls to the value of its next
5925 * tier towards tier STANDARD. For the above example, the limit value for tier
5926 * STANDARD is 500.
5927 *
5928 * To apply the same limit value for all users, just specify limit value for
5929 * tier STANDARD. For example: {STANDARD:500}.
5930 *
5931 * To apply a regional overide for a tier, add a map entry with key
5932 * "<TIER>/<region>", where <region> is a region name. Similarly, for a zone
5933 * override, add a map entry with key "<TIER>/{zone}".
5934 * Further, a wildcard can be used at the end of a zone name in order to
5935 * specify zone level overrides. For example:
5936 * LOW: 10, STANDARD: 50, HIGH: 100,
5937 * LOW/us-central1: 20, STANDARD/us-central1: 60, HIGH/us-central1: 200,
5938 * LOW/us-central1-*: 10, STANDARD/us-central1-*: 20, HIGH/us-central1-*: 80
5939 *
5940 * The regional overrides tier set for each region must be the same as
5941 * the tier set for default limit values. Same rule applies for zone overrides
5942 * tier as well.
5943 *
5944 * Used by metric-based quotas only.
5945 */
5946 core.Map<core.String, core.String> values; 6008 core.Map<core.String, core.String> values;
5947 6009
5948 QuotaLimit(); 6010 QuotaLimit();
5949 6011
5950 QuotaLimit.fromJson(core.Map _json) { 6012 QuotaLimit.fromJson(core.Map _json) {
5951 if (_json.containsKey("defaultLimit")) { 6013 if (_json.containsKey("defaultLimit")) {
5952 defaultLimit = _json["defaultLimit"]; 6014 defaultLimit = _json["defaultLimit"];
5953 } 6015 }
5954 if (_json.containsKey("description")) { 6016 if (_json.containsKey("description")) {
5955 description = _json["description"]; 6017 description = _json["description"];
(...skipping 17 matching lines...) Expand all
5973 name = _json["name"]; 6035 name = _json["name"];
5974 } 6036 }
5975 if (_json.containsKey("unit")) { 6037 if (_json.containsKey("unit")) {
5976 unit = _json["unit"]; 6038 unit = _json["unit"];
5977 } 6039 }
5978 if (_json.containsKey("values")) { 6040 if (_json.containsKey("values")) {
5979 values = _json["values"]; 6041 values = _json["values"];
5980 } 6042 }
5981 } 6043 }
5982 6044
5983 core.Map toJson() { 6045 core.Map<core.String, core.Object> toJson() {
5984 var _json = new core.Map(); 6046 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
5985 if (defaultLimit != null) { 6047 if (defaultLimit != null) {
5986 _json["defaultLimit"] = defaultLimit; 6048 _json["defaultLimit"] = defaultLimit;
5987 } 6049 }
5988 if (description != null) { 6050 if (description != null) {
5989 _json["description"] = description; 6051 _json["description"] = description;
5990 } 6052 }
5991 if (displayName != null) { 6053 if (displayName != null) {
5992 _json["displayName"] = displayName; 6054 _json["displayName"] = displayName;
5993 } 6055 }
5994 if (duration != null) { 6056 if (duration != null) {
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
6088 serviceName = _json["serviceName"]; 6150 serviceName = _json["serviceName"];
6089 } 6151 }
6090 if (_json.containsKey("status")) { 6152 if (_json.containsKey("status")) {
6091 status = _json["status"]; 6153 status = _json["status"];
6092 } 6154 }
6093 if (_json.containsKey("trafficPercentStrategy")) { 6155 if (_json.containsKey("trafficPercentStrategy")) {
6094 trafficPercentStrategy = new TrafficPercentStrategy.fromJson(_json["traffi cPercentStrategy"]); 6156 trafficPercentStrategy = new TrafficPercentStrategy.fromJson(_json["traffi cPercentStrategy"]);
6095 } 6157 }
6096 } 6158 }
6097 6159
6098 core.Map toJson() { 6160 core.Map<core.String, core.Object> toJson() {
6099 var _json = new core.Map(); 6161 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6100 if (createTime != null) { 6162 if (createTime != null) {
6101 _json["createTime"] = createTime; 6163 _json["createTime"] = createTime;
6102 } 6164 }
6103 if (createdBy != null) { 6165 if (createdBy != null) {
6104 _json["createdBy"] = createdBy; 6166 _json["createdBy"] = createdBy;
6105 } 6167 }
6106 if (deleteServiceStrategy != null) { 6168 if (deleteServiceStrategy != null) {
6107 _json["deleteServiceStrategy"] = (deleteServiceStrategy).toJson(); 6169 _json["deleteServiceStrategy"] = (deleteServiceStrategy).toJson();
6108 } 6170 }
6109 if (rolloutId != null) { 6171 if (rolloutId != null) {
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after
6186 logConfig = _json["logConfig"].map((value) => new LogConfig.fromJson(value )).toList(); 6248 logConfig = _json["logConfig"].map((value) => new LogConfig.fromJson(value )).toList();
6187 } 6249 }
6188 if (_json.containsKey("notIn")) { 6250 if (_json.containsKey("notIn")) {
6189 notIn = _json["notIn"]; 6251 notIn = _json["notIn"];
6190 } 6252 }
6191 if (_json.containsKey("permissions")) { 6253 if (_json.containsKey("permissions")) {
6192 permissions = _json["permissions"]; 6254 permissions = _json["permissions"];
6193 } 6255 }
6194 } 6256 }
6195 6257
6196 core.Map toJson() { 6258 core.Map<core.String, core.Object> toJson() {
6197 var _json = new core.Map(); 6259 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6198 if (action != null) { 6260 if (action != null) {
6199 _json["action"] = action; 6261 _json["action"] = action;
6200 } 6262 }
6201 if (conditions != null) { 6263 if (conditions != null) {
6202 _json["conditions"] = conditions.map((value) => (value).toJson()).toList() ; 6264 _json["conditions"] = conditions.map((value) => (value).toJson()).toList() ;
6203 } 6265 }
6204 if (description != null) { 6266 if (description != null) {
6205 _json["description"] = description; 6267 _json["description"] = description;
6206 } 6268 }
6207 if (in_ != null) { 6269 if (in_ != null) {
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
6310 * by the Service.monitoring and Service.logging configurations. 6372 * by the Service.monitoring and Service.logging configurations.
6311 */ 6373 */
6312 core.List<MonitoredResourceDescriptor> monitoredResources; 6374 core.List<MonitoredResourceDescriptor> monitoredResources;
6313 /** Monitoring configuration. */ 6375 /** Monitoring configuration. */
6314 Monitoring monitoring; 6376 Monitoring monitoring;
6315 /** 6377 /**
6316 * The DNS address at which this service is available, 6378 * The DNS address at which this service is available,
6317 * e.g. `calendar.googleapis.com`. 6379 * e.g. `calendar.googleapis.com`.
6318 */ 6380 */
6319 core.String name; 6381 core.String name;
6320 /** 6382 /** The Google project that owns this service. */
6321 * The id of the Google developer project that owns the service.
6322 * Members of this project can manage the service configuration,
6323 * manage consumption of the service, etc.
6324 */
6325 core.String producerProjectId; 6383 core.String producerProjectId;
6326 /** Quota configuration. */ 6384 /** Quota configuration. */
6327 Quota quota; 6385 Quota quota;
6328 /** 6386 /**
6329 * Output only. The source information for this configuration if available. 6387 * Output only. The source information for this configuration if available.
6330 */ 6388 */
6331 SourceInfo sourceInfo; 6389 SourceInfo sourceInfo;
6332 /** System parameter configuration. */ 6390 /** System parameter configuration. */
6333 SystemParameters systemParameters; 6391 SystemParameters systemParameters;
6334 /** 6392 /**
6335 * A list of all proto message types included in this API service. 6393 * A list of all proto message types included in this API service.
6336 * It serves similar purpose as [google.api.Service.types], except that 6394 * It serves similar purpose as [google.api.Service.types], except that
6337 * these types are not needed by user-defined APIs. Therefore, they will not 6395 * these types are not needed by user-defined APIs. Therefore, they will not
6338 * show up in the generated discovery doc. This field should only be used 6396 * show up in the generated discovery doc. This field should only be used
6339 * to define system APIs in ESF. 6397 * to define system APIs in ESF.
6340 */ 6398 */
6341 core.List<Type> systemTypes; 6399 core.List<Type> systemTypes;
6342 /** The product title associated with this service. */ 6400 /** The product title for this service. */
6343 core.String title; 6401 core.String title;
6344 /** 6402 /**
6345 * A list of all proto message types included in this API service. 6403 * A list of all proto message types included in this API service.
6346 * Types referenced directly or indirectly by the `apis` are 6404 * Types referenced directly or indirectly by the `apis` are
6347 * automatically included. Messages which are not referenced but 6405 * automatically included. Messages which are not referenced but
6348 * shall be included, such as types used by the `google.protobuf.Any` type, 6406 * shall be included, such as types used by the `google.protobuf.Any` type,
6349 * should be listed here by name. Example: 6407 * should be listed here by name. Example:
6350 * 6408 *
6351 * types: 6409 * types:
6352 * - name: google.protobuf.Int32 6410 * - name: google.protobuf.Int32
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
6439 types = _json["types"].map((value) => new Type.fromJson(value)).toList(); 6497 types = _json["types"].map((value) => new Type.fromJson(value)).toList();
6440 } 6498 }
6441 if (_json.containsKey("usage")) { 6499 if (_json.containsKey("usage")) {
6442 usage = new Usage.fromJson(_json["usage"]); 6500 usage = new Usage.fromJson(_json["usage"]);
6443 } 6501 }
6444 if (_json.containsKey("visibility")) { 6502 if (_json.containsKey("visibility")) {
6445 visibility = new Visibility.fromJson(_json["visibility"]); 6503 visibility = new Visibility.fromJson(_json["visibility"]);
6446 } 6504 }
6447 } 6505 }
6448 6506
6449 core.Map toJson() { 6507 core.Map<core.String, core.Object> toJson() {
6450 var _json = new core.Map(); 6508 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6451 if (apis != null) { 6509 if (apis != null) {
6452 _json["apis"] = apis.map((value) => (value).toJson()).toList(); 6510 _json["apis"] = apis.map((value) => (value).toJson()).toList();
6453 } 6511 }
6454 if (authentication != null) { 6512 if (authentication != null) {
6455 _json["authentication"] = (authentication).toJson(); 6513 _json["authentication"] = (authentication).toJson();
6456 } 6514 }
6457 if (backend != null) { 6515 if (backend != null) {
6458 _json["backend"] = (backend).toJson(); 6516 _json["backend"] = (backend).toJson();
6459 } 6517 }
6460 if (configVersion != null) { 6518 if (configVersion != null) {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
6558 6616
6559 SetIamPolicyRequest.fromJson(core.Map _json) { 6617 SetIamPolicyRequest.fromJson(core.Map _json) {
6560 if (_json.containsKey("policy")) { 6618 if (_json.containsKey("policy")) {
6561 policy = new Policy.fromJson(_json["policy"]); 6619 policy = new Policy.fromJson(_json["policy"]);
6562 } 6620 }
6563 if (_json.containsKey("updateMask")) { 6621 if (_json.containsKey("updateMask")) {
6564 updateMask = _json["updateMask"]; 6622 updateMask = _json["updateMask"];
6565 } 6623 }
6566 } 6624 }
6567 6625
6568 core.Map toJson() { 6626 core.Map<core.String, core.Object> toJson() {
6569 var _json = new core.Map(); 6627 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6570 if (policy != null) { 6628 if (policy != null) {
6571 _json["policy"] = (policy).toJson(); 6629 _json["policy"] = (policy).toJson();
6572 } 6630 }
6573 if (updateMask != null) { 6631 if (updateMask != null) {
6574 _json["updateMask"] = updateMask; 6632 _json["updateMask"] = updateMask;
6575 } 6633 }
6576 return _json; 6634 return _json;
6577 } 6635 }
6578 } 6636 }
6579 6637
6580 /** 6638 /**
6581 * `SourceContext` represents information about the source of a 6639 * `SourceContext` represents information about the source of a
6582 * protobuf element, like the file in which it is defined. 6640 * protobuf element, like the file in which it is defined.
6583 */ 6641 */
6584 class SourceContext { 6642 class SourceContext {
6585 /** 6643 /**
6586 * The path-qualified name of the .proto file that contained the associated 6644 * The path-qualified name of the .proto file that contained the associated
6587 * protobuf element. For example: `"google/protobuf/source_context.proto"`. 6645 * protobuf element. For example: `"google/protobuf/source_context.proto"`.
6588 */ 6646 */
6589 core.String fileName; 6647 core.String fileName;
6590 6648
6591 SourceContext(); 6649 SourceContext();
6592 6650
6593 SourceContext.fromJson(core.Map _json) { 6651 SourceContext.fromJson(core.Map _json) {
6594 if (_json.containsKey("fileName")) { 6652 if (_json.containsKey("fileName")) {
6595 fileName = _json["fileName"]; 6653 fileName = _json["fileName"];
6596 } 6654 }
6597 } 6655 }
6598 6656
6599 core.Map toJson() { 6657 core.Map<core.String, core.Object> toJson() {
6600 var _json = new core.Map(); 6658 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6601 if (fileName != null) { 6659 if (fileName != null) {
6602 _json["fileName"] = fileName; 6660 _json["fileName"] = fileName;
6603 } 6661 }
6604 return _json; 6662 return _json;
6605 } 6663 }
6606 } 6664 }
6607 6665
6608 /** Source information used to create a Service Config */ 6666 /** Source information used to create a Service Config */
6609 class SourceInfo { 6667 class SourceInfo {
6610 /** 6668 /**
6611 * All files used during config generation. 6669 * All files used during config generation.
6612 * 6670 *
6613 * The values for Object must be JSON objects. It can consist of `num`, 6671 * The values for Object must be JSON objects. It can consist of `num`,
6614 * `String`, `bool` and `null` as well as `Map` and `List` values. 6672 * `String`, `bool` and `null` as well as `Map` and `List` values.
6615 */ 6673 */
6616 core.List<core.Map<core.String, core.Object>> sourceFiles; 6674 core.List<core.Map<core.String, core.Object>> sourceFiles;
6617 6675
6618 SourceInfo(); 6676 SourceInfo();
6619 6677
6620 SourceInfo.fromJson(core.Map _json) { 6678 SourceInfo.fromJson(core.Map _json) {
6621 if (_json.containsKey("sourceFiles")) { 6679 if (_json.containsKey("sourceFiles")) {
6622 sourceFiles = _json["sourceFiles"]; 6680 sourceFiles = _json["sourceFiles"];
6623 } 6681 }
6624 } 6682 }
6625 6683
6626 core.Map toJson() { 6684 core.Map<core.String, core.Object> toJson() {
6627 var _json = new core.Map(); 6685 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6628 if (sourceFiles != null) { 6686 if (sourceFiles != null) {
6629 _json["sourceFiles"] = sourceFiles; 6687 _json["sourceFiles"] = sourceFiles;
6630 } 6688 }
6631 return _json; 6689 return _json;
6632 } 6690 }
6633 } 6691 }
6634 6692
6635 /** 6693 /**
6636 * The `Status` type defines a logical error model that is suitable for 6694 * The `Status` type defines a logical error model that is suitable for
6637 * different 6695 * different
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
6713 code = _json["code"]; 6771 code = _json["code"];
6714 } 6772 }
6715 if (_json.containsKey("details")) { 6773 if (_json.containsKey("details")) {
6716 details = _json["details"]; 6774 details = _json["details"];
6717 } 6775 }
6718 if (_json.containsKey("message")) { 6776 if (_json.containsKey("message")) {
6719 message = _json["message"]; 6777 message = _json["message"];
6720 } 6778 }
6721 } 6779 }
6722 6780
6723 core.Map toJson() { 6781 core.Map<core.String, core.Object> toJson() {
6724 var _json = new core.Map(); 6782 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6725 if (code != null) { 6783 if (code != null) {
6726 _json["code"] = code; 6784 _json["code"] = code;
6727 } 6785 }
6728 if (details != null) { 6786 if (details != null) {
6729 _json["details"] = details; 6787 _json["details"] = details;
6730 } 6788 }
6731 if (message != null) { 6789 if (message != null) {
6732 _json["message"] = message; 6790 _json["message"] = message;
6733 } 6791 }
6734 return _json; 6792 return _json;
(...skipping 22 matching lines...) Expand all
6757 6815
6758 Step.fromJson(core.Map _json) { 6816 Step.fromJson(core.Map _json) {
6759 if (_json.containsKey("description")) { 6817 if (_json.containsKey("description")) {
6760 description = _json["description"]; 6818 description = _json["description"];
6761 } 6819 }
6762 if (_json.containsKey("status")) { 6820 if (_json.containsKey("status")) {
6763 status = _json["status"]; 6821 status = _json["status"];
6764 } 6822 }
6765 } 6823 }
6766 6824
6767 core.Map toJson() { 6825 core.Map<core.String, core.Object> toJson() {
6768 var _json = new core.Map(); 6826 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6769 if (description != null) { 6827 if (description != null) {
6770 _json["description"] = description; 6828 _json["description"] = description;
6771 } 6829 }
6772 if (status != null) { 6830 if (status != null) {
6773 _json["status"] = status; 6831 _json["status"] = status;
6774 } 6832 }
6775 return _json; 6833 return _json;
6776 } 6834 }
6777 } 6835 }
6778 6836
(...skipping 12 matching lines...) Expand all
6791 6849
6792 SubmitConfigSourceRequest.fromJson(core.Map _json) { 6850 SubmitConfigSourceRequest.fromJson(core.Map _json) {
6793 if (_json.containsKey("configSource")) { 6851 if (_json.containsKey("configSource")) {
6794 configSource = new ConfigSource.fromJson(_json["configSource"]); 6852 configSource = new ConfigSource.fromJson(_json["configSource"]);
6795 } 6853 }
6796 if (_json.containsKey("validateOnly")) { 6854 if (_json.containsKey("validateOnly")) {
6797 validateOnly = _json["validateOnly"]; 6855 validateOnly = _json["validateOnly"];
6798 } 6856 }
6799 } 6857 }
6800 6858
6801 core.Map toJson() { 6859 core.Map<core.String, core.Object> toJson() {
6802 var _json = new core.Map(); 6860 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6803 if (configSource != null) { 6861 if (configSource != null) {
6804 _json["configSource"] = (configSource).toJson(); 6862 _json["configSource"] = (configSource).toJson();
6805 } 6863 }
6806 if (validateOnly != null) { 6864 if (validateOnly != null) {
6807 _json["validateOnly"] = validateOnly; 6865 _json["validateOnly"] = validateOnly;
6808 } 6866 }
6809 return _json; 6867 return _json;
6810 } 6868 }
6811 } 6869 }
6812 6870
6813 /** Response message for SubmitConfigSource method. */ 6871 /** Response message for SubmitConfigSource method. */
6814 class SubmitConfigSourceResponse { 6872 class SubmitConfigSourceResponse {
6815 /** The generated service configuration. */ 6873 /** The generated service configuration. */
6816 Service serviceConfig; 6874 Service serviceConfig;
6817 6875
6818 SubmitConfigSourceResponse(); 6876 SubmitConfigSourceResponse();
6819 6877
6820 SubmitConfigSourceResponse.fromJson(core.Map _json) { 6878 SubmitConfigSourceResponse.fromJson(core.Map _json) {
6821 if (_json.containsKey("serviceConfig")) { 6879 if (_json.containsKey("serviceConfig")) {
6822 serviceConfig = new Service.fromJson(_json["serviceConfig"]); 6880 serviceConfig = new Service.fromJson(_json["serviceConfig"]);
6823 } 6881 }
6824 } 6882 }
6825 6883
6826 core.Map toJson() { 6884 core.Map<core.String, core.Object> toJson() {
6827 var _json = new core.Map(); 6885 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6828 if (serviceConfig != null) { 6886 if (serviceConfig != null) {
6829 _json["serviceConfig"] = (serviceConfig).toJson(); 6887 _json["serviceConfig"] = (serviceConfig).toJson();
6830 } 6888 }
6831 return _json; 6889 return _json;
6832 } 6890 }
6833 } 6891 }
6834 6892
6835 /** 6893 /**
6836 * Define a parameter's name and location. The parameter may be passed as either 6894 * Define a parameter's name and location. The parameter may be passed as either
6837 * an HTTP header or a URL query parameter, and if both are passed the behavior 6895 * an HTTP header or a URL query parameter, and if both are passed the behavior
(...skipping 22 matching lines...) Expand all
6860 httpHeader = _json["httpHeader"]; 6918 httpHeader = _json["httpHeader"];
6861 } 6919 }
6862 if (_json.containsKey("name")) { 6920 if (_json.containsKey("name")) {
6863 name = _json["name"]; 6921 name = _json["name"];
6864 } 6922 }
6865 if (_json.containsKey("urlQueryParameter")) { 6923 if (_json.containsKey("urlQueryParameter")) {
6866 urlQueryParameter = _json["urlQueryParameter"]; 6924 urlQueryParameter = _json["urlQueryParameter"];
6867 } 6925 }
6868 } 6926 }
6869 6927
6870 core.Map toJson() { 6928 core.Map<core.String, core.Object> toJson() {
6871 var _json = new core.Map(); 6929 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6872 if (httpHeader != null) { 6930 if (httpHeader != null) {
6873 _json["httpHeader"] = httpHeader; 6931 _json["httpHeader"] = httpHeader;
6874 } 6932 }
6875 if (name != null) { 6933 if (name != null) {
6876 _json["name"] = name; 6934 _json["name"] = name;
6877 } 6935 }
6878 if (urlQueryParameter != null) { 6936 if (urlQueryParameter != null) {
6879 _json["urlQueryParameter"] = urlQueryParameter; 6937 _json["urlQueryParameter"] = urlQueryParameter;
6880 } 6938 }
6881 return _json; 6939 return _json;
(...skipping 25 matching lines...) Expand all
6907 6965
6908 SystemParameterRule.fromJson(core.Map _json) { 6966 SystemParameterRule.fromJson(core.Map _json) {
6909 if (_json.containsKey("parameters")) { 6967 if (_json.containsKey("parameters")) {
6910 parameters = _json["parameters"].map((value) => new SystemParameter.fromJs on(value)).toList(); 6968 parameters = _json["parameters"].map((value) => new SystemParameter.fromJs on(value)).toList();
6911 } 6969 }
6912 if (_json.containsKey("selector")) { 6970 if (_json.containsKey("selector")) {
6913 selector = _json["selector"]; 6971 selector = _json["selector"];
6914 } 6972 }
6915 } 6973 }
6916 6974
6917 core.Map toJson() { 6975 core.Map<core.String, core.Object> toJson() {
6918 var _json = new core.Map(); 6976 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6919 if (parameters != null) { 6977 if (parameters != null) {
6920 _json["parameters"] = parameters.map((value) => (value).toJson()).toList() ; 6978 _json["parameters"] = parameters.map((value) => (value).toJson()).toList() ;
6921 } 6979 }
6922 if (selector != null) { 6980 if (selector != null) {
6923 _json["selector"] = selector; 6981 _json["selector"] = selector;
6924 } 6982 }
6925 return _json; 6983 return _json;
6926 } 6984 }
6927 } 6985 }
6928 6986
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
6969 core.List<SystemParameterRule> rules; 7027 core.List<SystemParameterRule> rules;
6970 7028
6971 SystemParameters(); 7029 SystemParameters();
6972 7030
6973 SystemParameters.fromJson(core.Map _json) { 7031 SystemParameters.fromJson(core.Map _json) {
6974 if (_json.containsKey("rules")) { 7032 if (_json.containsKey("rules")) {
6975 rules = _json["rules"].map((value) => new SystemParameterRule.fromJson(val ue)).toList(); 7033 rules = _json["rules"].map((value) => new SystemParameterRule.fromJson(val ue)).toList();
6976 } 7034 }
6977 } 7035 }
6978 7036
6979 core.Map toJson() { 7037 core.Map<core.String, core.Object> toJson() {
6980 var _json = new core.Map(); 7038 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
6981 if (rules != null) { 7039 if (rules != null) {
6982 _json["rules"] = rules.map((value) => (value).toJson()).toList(); 7040 _json["rules"] = rules.map((value) => (value).toJson()).toList();
6983 } 7041 }
6984 return _json; 7042 return _json;
6985 } 7043 }
6986 } 7044 }
6987 7045
6988 /** Request message for `TestIamPermissions` method. */ 7046 /** Request message for `TestIamPermissions` method. */
6989 class TestIamPermissionsRequest { 7047 class TestIamPermissionsRequest {
6990 /** 7048 /**
6991 * The set of permissions to check for the `resource`. Permissions with 7049 * The set of permissions to check for the `resource`. Permissions with
6992 * wildcards (such as '*' or 'storage.*') are not allowed. For more 7050 * wildcards (such as '*' or 'storage.*') are not allowed. For more
6993 * information see 7051 * information see
6994 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). 7052 * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions).
6995 */ 7053 */
6996 core.List<core.String> permissions; 7054 core.List<core.String> permissions;
6997 7055
6998 TestIamPermissionsRequest(); 7056 TestIamPermissionsRequest();
6999 7057
7000 TestIamPermissionsRequest.fromJson(core.Map _json) { 7058 TestIamPermissionsRequest.fromJson(core.Map _json) {
7001 if (_json.containsKey("permissions")) { 7059 if (_json.containsKey("permissions")) {
7002 permissions = _json["permissions"]; 7060 permissions = _json["permissions"];
7003 } 7061 }
7004 } 7062 }
7005 7063
7006 core.Map toJson() { 7064 core.Map<core.String, core.Object> toJson() {
7007 var _json = new core.Map(); 7065 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7008 if (permissions != null) { 7066 if (permissions != null) {
7009 _json["permissions"] = permissions; 7067 _json["permissions"] = permissions;
7010 } 7068 }
7011 return _json; 7069 return _json;
7012 } 7070 }
7013 } 7071 }
7014 7072
7015 /** Response message for `TestIamPermissions` method. */ 7073 /** Response message for `TestIamPermissions` method. */
7016 class TestIamPermissionsResponse { 7074 class TestIamPermissionsResponse {
7017 /** 7075 /**
7018 * A subset of `TestPermissionsRequest.permissions` that the caller is 7076 * A subset of `TestPermissionsRequest.permissions` that the caller is
7019 * allowed. 7077 * allowed.
7020 */ 7078 */
7021 core.List<core.String> permissions; 7079 core.List<core.String> permissions;
7022 7080
7023 TestIamPermissionsResponse(); 7081 TestIamPermissionsResponse();
7024 7082
7025 TestIamPermissionsResponse.fromJson(core.Map _json) { 7083 TestIamPermissionsResponse.fromJson(core.Map _json) {
7026 if (_json.containsKey("permissions")) { 7084 if (_json.containsKey("permissions")) {
7027 permissions = _json["permissions"]; 7085 permissions = _json["permissions"];
7028 } 7086 }
7029 } 7087 }
7030 7088
7031 core.Map toJson() { 7089 core.Map<core.String, core.Object> toJson() {
7032 var _json = new core.Map(); 7090 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7033 if (permissions != null) { 7091 if (permissions != null) {
7034 _json["permissions"] = permissions; 7092 _json["permissions"] = permissions;
7035 } 7093 }
7036 return _json; 7094 return _json;
7037 } 7095 }
7038 } 7096 }
7039 7097
7040 /** 7098 /**
7041 * Strategy that specifies how Google Service Control should select 7099 * Strategy that specifies how clients of Google Service Controller want to
7042 * different 7100 * send traffic to use different config versions. This is generally
7043 * versions of service configurations based on traffic percentage. 7101 * used by API proxy to split traffic based on your configured precentage for
7102 * each config version.
7044 * 7103 *
7045 * One example of how to gradually rollout a new service configuration using 7104 * One example of how to gradually rollout a new service configuration using
7046 * this 7105 * this
7047 * strategy: 7106 * strategy:
7048 * Day 1 7107 * Day 1
7049 * 7108 *
7050 * Rollout { 7109 * Rollout {
7051 * id: "example.googleapis.com/rollout_20160206" 7110 * id: "example.googleapis.com/rollout_20160206"
7052 * traffic_percent_strategy { 7111 * traffic_percent_strategy {
7053 * percentages: { 7112 * percentages: {
(...skipping 23 matching lines...) Expand all
7077 core.Map<core.String, core.double> percentages; 7136 core.Map<core.String, core.double> percentages;
7078 7137
7079 TrafficPercentStrategy(); 7138 TrafficPercentStrategy();
7080 7139
7081 TrafficPercentStrategy.fromJson(core.Map _json) { 7140 TrafficPercentStrategy.fromJson(core.Map _json) {
7082 if (_json.containsKey("percentages")) { 7141 if (_json.containsKey("percentages")) {
7083 percentages = _json["percentages"]; 7142 percentages = _json["percentages"];
7084 } 7143 }
7085 } 7144 }
7086 7145
7087 core.Map toJson() { 7146 core.Map<core.String, core.Object> toJson() {
7088 var _json = new core.Map(); 7147 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7089 if (percentages != null) { 7148 if (percentages != null) {
7090 _json["percentages"] = percentages; 7149 _json["percentages"] = percentages;
7091 } 7150 }
7092 return _json; 7151 return _json;
7093 } 7152 }
7094 } 7153 }
7095 7154
7096 /** A protocol buffer message type. */ 7155 /** A protocol buffer message type. */
7097 class Type { 7156 class Type {
7098 /** The list of fields. */ 7157 /** The list of fields. */
(...skipping 30 matching lines...) Expand all
7129 options = _json["options"].map((value) => new Option.fromJson(value)).toLi st(); 7188 options = _json["options"].map((value) => new Option.fromJson(value)).toLi st();
7130 } 7189 }
7131 if (_json.containsKey("sourceContext")) { 7190 if (_json.containsKey("sourceContext")) {
7132 sourceContext = new SourceContext.fromJson(_json["sourceContext"]); 7191 sourceContext = new SourceContext.fromJson(_json["sourceContext"]);
7133 } 7192 }
7134 if (_json.containsKey("syntax")) { 7193 if (_json.containsKey("syntax")) {
7135 syntax = _json["syntax"]; 7194 syntax = _json["syntax"];
7136 } 7195 }
7137 } 7196 }
7138 7197
7139 core.Map toJson() { 7198 core.Map<core.String, core.Object> toJson() {
7140 var _json = new core.Map(); 7199 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7141 if (fields != null) { 7200 if (fields != null) {
7142 _json["fields"] = fields.map((value) => (value).toJson()).toList(); 7201 _json["fields"] = fields.map((value) => (value).toJson()).toList();
7143 } 7202 }
7144 if (name != null) { 7203 if (name != null) {
7145 _json["name"] = name; 7204 _json["name"] = name;
7146 } 7205 }
7147 if (oneofs != null) { 7206 if (oneofs != null) {
7148 _json["oneofs"] = oneofs; 7207 _json["oneofs"] = oneofs;
7149 } 7208 }
7150 if (options != null) { 7209 if (options != null) {
(...skipping 15 matching lines...) Expand all
7166 ManagedService service; 7225 ManagedService service;
7167 7226
7168 UndeleteServiceResponse(); 7227 UndeleteServiceResponse();
7169 7228
7170 UndeleteServiceResponse.fromJson(core.Map _json) { 7229 UndeleteServiceResponse.fromJson(core.Map _json) {
7171 if (_json.containsKey("service")) { 7230 if (_json.containsKey("service")) {
7172 service = new ManagedService.fromJson(_json["service"]); 7231 service = new ManagedService.fromJson(_json["service"]);
7173 } 7232 }
7174 } 7233 }
7175 7234
7176 core.Map toJson() { 7235 core.Map<core.String, core.Object> toJson() {
7177 var _json = new core.Map(); 7236 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7178 if (service != null) { 7237 if (service != null) {
7179 _json["service"] = (service).toJson(); 7238 _json["service"] = (service).toJson();
7180 } 7239 }
7181 return _json; 7240 return _json;
7182 } 7241 }
7183 } 7242 }
7184 7243
7185 /** Configuration controlling usage of a service. */ 7244 /** Configuration controlling usage of a service. */
7186 class Usage { 7245 class Usage {
7187 /** 7246 /**
(...skipping 27 matching lines...) Expand all
7215 producerNotificationChannel = _json["producerNotificationChannel"]; 7274 producerNotificationChannel = _json["producerNotificationChannel"];
7216 } 7275 }
7217 if (_json.containsKey("requirements")) { 7276 if (_json.containsKey("requirements")) {
7218 requirements = _json["requirements"]; 7277 requirements = _json["requirements"];
7219 } 7278 }
7220 if (_json.containsKey("rules")) { 7279 if (_json.containsKey("rules")) {
7221 rules = _json["rules"].map((value) => new UsageRule.fromJson(value)).toLis t(); 7280 rules = _json["rules"].map((value) => new UsageRule.fromJson(value)).toLis t();
7222 } 7281 }
7223 } 7282 }
7224 7283
7225 core.Map toJson() { 7284 core.Map<core.String, core.Object> toJson() {
7226 var _json = new core.Map(); 7285 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7227 if (producerNotificationChannel != null) { 7286 if (producerNotificationChannel != null) {
7228 _json["producerNotificationChannel"] = producerNotificationChannel; 7287 _json["producerNotificationChannel"] = producerNotificationChannel;
7229 } 7288 }
7230 if (requirements != null) { 7289 if (requirements != null) {
7231 _json["requirements"] = requirements; 7290 _json["requirements"] = requirements;
7232 } 7291 }
7233 if (rules != null) { 7292 if (rules != null) {
7234 _json["rules"] = rules.map((value) => (value).toJson()).toList(); 7293 _json["rules"] = rules.map((value) => (value).toJson()).toList();
7235 } 7294 }
7236 return _json; 7295 return _json;
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
7279 7338
7280 UsageRule.fromJson(core.Map _json) { 7339 UsageRule.fromJson(core.Map _json) {
7281 if (_json.containsKey("allowUnregisteredCalls")) { 7340 if (_json.containsKey("allowUnregisteredCalls")) {
7282 allowUnregisteredCalls = _json["allowUnregisteredCalls"]; 7341 allowUnregisteredCalls = _json["allowUnregisteredCalls"];
7283 } 7342 }
7284 if (_json.containsKey("selector")) { 7343 if (_json.containsKey("selector")) {
7285 selector = _json["selector"]; 7344 selector = _json["selector"];
7286 } 7345 }
7287 } 7346 }
7288 7347
7289 core.Map toJson() { 7348 core.Map<core.String, core.Object> toJson() {
7290 var _json = new core.Map(); 7349 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7291 if (allowUnregisteredCalls != null) { 7350 if (allowUnregisteredCalls != null) {
7292 _json["allowUnregisteredCalls"] = allowUnregisteredCalls; 7351 _json["allowUnregisteredCalls"] = allowUnregisteredCalls;
7293 } 7352 }
7294 if (selector != null) { 7353 if (selector != null) {
7295 _json["selector"] = selector; 7354 _json["selector"] = selector;
7296 } 7355 }
7297 return _json; 7356 return _json;
7298 } 7357 }
7299 } 7358 }
7300 7359
(...skipping 30 matching lines...) Expand all
7331 core.List<VisibilityRule> rules; 7390 core.List<VisibilityRule> rules;
7332 7391
7333 Visibility(); 7392 Visibility();
7334 7393
7335 Visibility.fromJson(core.Map _json) { 7394 Visibility.fromJson(core.Map _json) {
7336 if (_json.containsKey("rules")) { 7395 if (_json.containsKey("rules")) {
7337 rules = _json["rules"].map((value) => new VisibilityRule.fromJson(value)). toList(); 7396 rules = _json["rules"].map((value) => new VisibilityRule.fromJson(value)). toList();
7338 } 7397 }
7339 } 7398 }
7340 7399
7341 core.Map toJson() { 7400 core.Map<core.String, core.Object> toJson() {
7342 var _json = new core.Map(); 7401 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7343 if (rules != null) { 7402 if (rules != null) {
7344 _json["rules"] = rules.map((value) => (value).toJson()).toList(); 7403 _json["rules"] = rules.map((value) => (value).toJson()).toList();
7345 } 7404 }
7346 return _json; 7405 return _json;
7347 } 7406 }
7348 } 7407 }
7349 7408
7350 /** 7409 /**
7351 * A visibility rule provides visibility configuration for an individual API 7410 * A visibility rule provides visibility configuration for an individual API
7352 * element. 7411 * element.
(...skipping 28 matching lines...) Expand all
7381 7440
7382 VisibilityRule.fromJson(core.Map _json) { 7441 VisibilityRule.fromJson(core.Map _json) {
7383 if (_json.containsKey("restriction")) { 7442 if (_json.containsKey("restriction")) {
7384 restriction = _json["restriction"]; 7443 restriction = _json["restriction"];
7385 } 7444 }
7386 if (_json.containsKey("selector")) { 7445 if (_json.containsKey("selector")) {
7387 selector = _json["selector"]; 7446 selector = _json["selector"];
7388 } 7447 }
7389 } 7448 }
7390 7449
7391 core.Map toJson() { 7450 core.Map<core.String, core.Object> toJson() {
7392 var _json = new core.Map(); 7451 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
7393 if (restriction != null) { 7452 if (restriction != null) {
7394 _json["restriction"] = restriction; 7453 _json["restriction"] = restriction;
7395 } 7454 }
7396 if (selector != null) { 7455 if (selector != null) {
7397 _json["selector"] = selector; 7456 _json["selector"] = selector;
7398 } 7457 }
7399 return _json; 7458 return _json;
7400 } 7459 }
7401 } 7460 }
OLDNEW
« no previous file with comments | « generated/googleapis/lib/servicecontrol/v1.dart ('k') | generated/googleapis/lib/serviceuser/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698