OLD | NEW |
1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
2 | 2 |
3 library googleapis_beta.logging.v2beta1; | 3 library googleapis_beta.logging.v2beta1; |
4 | 4 |
5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
8 | 8 |
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
(...skipping 1067 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1078 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". | 1078 * Value must have pattern "^projects/[^/]+/sinks/[^/]+$". |
1079 * | 1079 * |
1080 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of | 1080 * [uniqueWriterIdentity] - Optional. See sinks.create for a description of |
1081 * this field. When updating a sink, the effect of this field on the value of | 1081 * this field. When updating a sink, the effect of this field on the value of |
1082 * writer_identity in the updated sink depends on both the old and new values | 1082 * writer_identity in the updated sink depends on both the old and new values |
1083 * of this field: | 1083 * of this field: |
1084 * If the old and new values of this field are both false or both true, then | 1084 * If the old and new values of this field are both false or both true, then |
1085 * there is no change to the sink's writer_identity. | 1085 * there is no change to the sink's writer_identity. |
1086 * If the old value is false and the new value is true, then writer_identity | 1086 * If the old value is false and the new value is true, then writer_identity |
1087 * is changed to a unique service account. | 1087 * is changed to a unique service account. |
1088 * It is an error if the old value is true and the new value is false. | 1088 * It is an error if the old value is true and the new value is set to false |
| 1089 * or defaulted to false. |
1089 * | 1090 * |
1090 * Completes with a [LogSink]. | 1091 * Completes with a [LogSink]. |
1091 * | 1092 * |
1092 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 1093 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
1093 * error. | 1094 * error. |
1094 * | 1095 * |
1095 * If the used [http.Client] completes with an error when making a REST call, | 1096 * If the used [http.Client] completes with an error when making a REST call, |
1096 * this method will complete with the same error. | 1097 * this method will complete with the same error. |
1097 */ | 1098 */ |
1098 async.Future<LogSink> update(LogSink request, core.String sinkName, {core.bool
uniqueWriterIdentity}) { | 1099 async.Future<LogSink> update(LogSink request, core.String sinkName, {core.bool
uniqueWriterIdentity}) { |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1138 * } | 1139 * } |
1139 * The JSON representation for Empty is empty JSON object {}. | 1140 * The JSON representation for Empty is empty JSON object {}. |
1140 */ | 1141 */ |
1141 class Empty { | 1142 class Empty { |
1142 | 1143 |
1143 Empty(); | 1144 Empty(); |
1144 | 1145 |
1145 Empty.fromJson(core.Map _json) { | 1146 Empty.fromJson(core.Map _json) { |
1146 } | 1147 } |
1147 | 1148 |
1148 core.Map toJson() { | 1149 core.Map<core.String, core.Object> toJson() { |
1149 var _json = new core.Map(); | 1150 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1150 return _json; | 1151 return _json; |
1151 } | 1152 } |
1152 } | 1153 } |
1153 | 1154 |
1154 /** | 1155 /** |
1155 * A common proto for logging HTTP requests. Only contains semantics defined by | 1156 * A common proto for logging HTTP requests. Only contains semantics defined by |
1156 * the HTTP specification. Product-specific logging information MUST be defined | 1157 * the HTTP specification. Product-specific logging information MUST be defined |
1157 * in a separate message. | 1158 * in a separate message. |
1158 */ | 1159 */ |
1159 class HttpRequest { | 1160 class HttpRequest { |
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1263 serverIp = _json["serverIp"]; | 1264 serverIp = _json["serverIp"]; |
1264 } | 1265 } |
1265 if (_json.containsKey("status")) { | 1266 if (_json.containsKey("status")) { |
1266 status = _json["status"]; | 1267 status = _json["status"]; |
1267 } | 1268 } |
1268 if (_json.containsKey("userAgent")) { | 1269 if (_json.containsKey("userAgent")) { |
1269 userAgent = _json["userAgent"]; | 1270 userAgent = _json["userAgent"]; |
1270 } | 1271 } |
1271 } | 1272 } |
1272 | 1273 |
1273 core.Map toJson() { | 1274 core.Map<core.String, core.Object> toJson() { |
1274 var _json = new core.Map(); | 1275 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1275 if (cacheFillBytes != null) { | 1276 if (cacheFillBytes != null) { |
1276 _json["cacheFillBytes"] = cacheFillBytes; | 1277 _json["cacheFillBytes"] = cacheFillBytes; |
1277 } | 1278 } |
1278 if (cacheHit != null) { | 1279 if (cacheHit != null) { |
1279 _json["cacheHit"] = cacheHit; | 1280 _json["cacheHit"] = cacheHit; |
1280 } | 1281 } |
1281 if (cacheLookup != null) { | 1282 if (cacheLookup != null) { |
1282 _json["cacheLookup"] = cacheLookup; | 1283 _json["cacheLookup"] = cacheLookup; |
1283 } | 1284 } |
1284 if (cacheValidatedWithOriginServer != null) { | 1285 if (cacheValidatedWithOriginServer != null) { |
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1340 description = _json["description"]; | 1341 description = _json["description"]; |
1341 } | 1342 } |
1342 if (_json.containsKey("key")) { | 1343 if (_json.containsKey("key")) { |
1343 key = _json["key"]; | 1344 key = _json["key"]; |
1344 } | 1345 } |
1345 if (_json.containsKey("valueType")) { | 1346 if (_json.containsKey("valueType")) { |
1346 valueType = _json["valueType"]; | 1347 valueType = _json["valueType"]; |
1347 } | 1348 } |
1348 } | 1349 } |
1349 | 1350 |
1350 core.Map toJson() { | 1351 core.Map<core.String, core.Object> toJson() { |
1351 var _json = new core.Map(); | 1352 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1352 if (description != null) { | 1353 if (description != null) { |
1353 _json["description"] = description; | 1354 _json["description"] = description; |
1354 } | 1355 } |
1355 if (key != null) { | 1356 if (key != null) { |
1356 _json["key"] = key; | 1357 _json["key"] = key; |
1357 } | 1358 } |
1358 if (valueType != null) { | 1359 if (valueType != null) { |
1359 _json["valueType"] = valueType; | 1360 _json["valueType"] = valueType; |
1360 } | 1361 } |
1361 return _json; | 1362 return _json; |
(...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1429 pageToken = _json["pageToken"]; | 1430 pageToken = _json["pageToken"]; |
1430 } | 1431 } |
1431 if (_json.containsKey("projectIds")) { | 1432 if (_json.containsKey("projectIds")) { |
1432 projectIds = _json["projectIds"]; | 1433 projectIds = _json["projectIds"]; |
1433 } | 1434 } |
1434 if (_json.containsKey("resourceNames")) { | 1435 if (_json.containsKey("resourceNames")) { |
1435 resourceNames = _json["resourceNames"]; | 1436 resourceNames = _json["resourceNames"]; |
1436 } | 1437 } |
1437 } | 1438 } |
1438 | 1439 |
1439 core.Map toJson() { | 1440 core.Map<core.String, core.Object> toJson() { |
1440 var _json = new core.Map(); | 1441 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1441 if (filter != null) { | 1442 if (filter != null) { |
1442 _json["filter"] = filter; | 1443 _json["filter"] = filter; |
1443 } | 1444 } |
1444 if (orderBy != null) { | 1445 if (orderBy != null) { |
1445 _json["orderBy"] = orderBy; | 1446 _json["orderBy"] = orderBy; |
1446 } | 1447 } |
1447 if (pageSize != null) { | 1448 if (pageSize != null) { |
1448 _json["pageSize"] = pageSize; | 1449 _json["pageSize"] = pageSize; |
1449 } | 1450 } |
1450 if (pageToken != null) { | 1451 if (pageToken != null) { |
(...skipping 30 matching lines...) Expand all Loading... |
1481 | 1482 |
1482 ListLogEntriesResponse.fromJson(core.Map _json) { | 1483 ListLogEntriesResponse.fromJson(core.Map _json) { |
1483 if (_json.containsKey("entries")) { | 1484 if (_json.containsKey("entries")) { |
1484 entries = _json["entries"].map((value) => new LogEntry.fromJson(value)).to
List(); | 1485 entries = _json["entries"].map((value) => new LogEntry.fromJson(value)).to
List(); |
1485 } | 1486 } |
1486 if (_json.containsKey("nextPageToken")) { | 1487 if (_json.containsKey("nextPageToken")) { |
1487 nextPageToken = _json["nextPageToken"]; | 1488 nextPageToken = _json["nextPageToken"]; |
1488 } | 1489 } |
1489 } | 1490 } |
1490 | 1491 |
1491 core.Map toJson() { | 1492 core.Map<core.String, core.Object> toJson() { |
1492 var _json = new core.Map(); | 1493 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1493 if (entries != null) { | 1494 if (entries != null) { |
1494 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 1495 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
1495 } | 1496 } |
1496 if (nextPageToken != null) { | 1497 if (nextPageToken != null) { |
1497 _json["nextPageToken"] = nextPageToken; | 1498 _json["nextPageToken"] = nextPageToken; |
1498 } | 1499 } |
1499 return _json; | 1500 return _json; |
1500 } | 1501 } |
1501 } | 1502 } |
1502 | 1503 |
(...skipping 12 matching lines...) Expand all Loading... |
1515 | 1516 |
1516 ListLogMetricsResponse.fromJson(core.Map _json) { | 1517 ListLogMetricsResponse.fromJson(core.Map _json) { |
1517 if (_json.containsKey("metrics")) { | 1518 if (_json.containsKey("metrics")) { |
1518 metrics = _json["metrics"].map((value) => new LogMetric.fromJson(value)).t
oList(); | 1519 metrics = _json["metrics"].map((value) => new LogMetric.fromJson(value)).t
oList(); |
1519 } | 1520 } |
1520 if (_json.containsKey("nextPageToken")) { | 1521 if (_json.containsKey("nextPageToken")) { |
1521 nextPageToken = _json["nextPageToken"]; | 1522 nextPageToken = _json["nextPageToken"]; |
1522 } | 1523 } |
1523 } | 1524 } |
1524 | 1525 |
1525 core.Map toJson() { | 1526 core.Map<core.String, core.Object> toJson() { |
1526 var _json = new core.Map(); | 1527 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1527 if (metrics != null) { | 1528 if (metrics != null) { |
1528 _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); | 1529 _json["metrics"] = metrics.map((value) => (value).toJson()).toList(); |
1529 } | 1530 } |
1530 if (nextPageToken != null) { | 1531 if (nextPageToken != null) { |
1531 _json["nextPageToken"] = nextPageToken; | 1532 _json["nextPageToken"] = nextPageToken; |
1532 } | 1533 } |
1533 return _json; | 1534 return _json; |
1534 } | 1535 } |
1535 } | 1536 } |
1536 | 1537 |
(...skipping 15 matching lines...) Expand all Loading... |
1552 | 1553 |
1553 ListLogsResponse.fromJson(core.Map _json) { | 1554 ListLogsResponse.fromJson(core.Map _json) { |
1554 if (_json.containsKey("logNames")) { | 1555 if (_json.containsKey("logNames")) { |
1555 logNames = _json["logNames"]; | 1556 logNames = _json["logNames"]; |
1556 } | 1557 } |
1557 if (_json.containsKey("nextPageToken")) { | 1558 if (_json.containsKey("nextPageToken")) { |
1558 nextPageToken = _json["nextPageToken"]; | 1559 nextPageToken = _json["nextPageToken"]; |
1559 } | 1560 } |
1560 } | 1561 } |
1561 | 1562 |
1562 core.Map toJson() { | 1563 core.Map<core.String, core.Object> toJson() { |
1563 var _json = new core.Map(); | 1564 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1564 if (logNames != null) { | 1565 if (logNames != null) { |
1565 _json["logNames"] = logNames; | 1566 _json["logNames"] = logNames; |
1566 } | 1567 } |
1567 if (nextPageToken != null) { | 1568 if (nextPageToken != null) { |
1568 _json["nextPageToken"] = nextPageToken; | 1569 _json["nextPageToken"] = nextPageToken; |
1569 } | 1570 } |
1570 return _json; | 1571 return _json; |
1571 } | 1572 } |
1572 } | 1573 } |
1573 | 1574 |
(...skipping 12 matching lines...) Expand all Loading... |
1586 | 1587 |
1587 ListMonitoredResourceDescriptorsResponse.fromJson(core.Map _json) { | 1588 ListMonitoredResourceDescriptorsResponse.fromJson(core.Map _json) { |
1588 if (_json.containsKey("nextPageToken")) { | 1589 if (_json.containsKey("nextPageToken")) { |
1589 nextPageToken = _json["nextPageToken"]; | 1590 nextPageToken = _json["nextPageToken"]; |
1590 } | 1591 } |
1591 if (_json.containsKey("resourceDescriptors")) { | 1592 if (_json.containsKey("resourceDescriptors")) { |
1592 resourceDescriptors = _json["resourceDescriptors"].map((value) => new Moni
toredResourceDescriptor.fromJson(value)).toList(); | 1593 resourceDescriptors = _json["resourceDescriptors"].map((value) => new Moni
toredResourceDescriptor.fromJson(value)).toList(); |
1593 } | 1594 } |
1594 } | 1595 } |
1595 | 1596 |
1596 core.Map toJson() { | 1597 core.Map<core.String, core.Object> toJson() { |
1597 var _json = new core.Map(); | 1598 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1598 if (nextPageToken != null) { | 1599 if (nextPageToken != null) { |
1599 _json["nextPageToken"] = nextPageToken; | 1600 _json["nextPageToken"] = nextPageToken; |
1600 } | 1601 } |
1601 if (resourceDescriptors != null) { | 1602 if (resourceDescriptors != null) { |
1602 _json["resourceDescriptors"] = resourceDescriptors.map((value) => (value).
toJson()).toList(); | 1603 _json["resourceDescriptors"] = resourceDescriptors.map((value) => (value).
toJson()).toList(); |
1603 } | 1604 } |
1604 return _json; | 1605 return _json; |
1605 } | 1606 } |
1606 } | 1607 } |
1607 | 1608 |
(...skipping 12 matching lines...) Expand all Loading... |
1620 | 1621 |
1621 ListSinksResponse.fromJson(core.Map _json) { | 1622 ListSinksResponse.fromJson(core.Map _json) { |
1622 if (_json.containsKey("nextPageToken")) { | 1623 if (_json.containsKey("nextPageToken")) { |
1623 nextPageToken = _json["nextPageToken"]; | 1624 nextPageToken = _json["nextPageToken"]; |
1624 } | 1625 } |
1625 if (_json.containsKey("sinks")) { | 1626 if (_json.containsKey("sinks")) { |
1626 sinks = _json["sinks"].map((value) => new LogSink.fromJson(value)).toList(
); | 1627 sinks = _json["sinks"].map((value) => new LogSink.fromJson(value)).toList(
); |
1627 } | 1628 } |
1628 } | 1629 } |
1629 | 1630 |
1630 core.Map toJson() { | 1631 core.Map<core.String, core.Object> toJson() { |
1631 var _json = new core.Map(); | 1632 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1632 if (nextPageToken != null) { | 1633 if (nextPageToken != null) { |
1633 _json["nextPageToken"] = nextPageToken; | 1634 _json["nextPageToken"] = nextPageToken; |
1634 } | 1635 } |
1635 if (sinks != null) { | 1636 if (sinks != null) { |
1636 _json["sinks"] = sinks.map((value) => (value).toJson()).toList(); | 1637 _json["sinks"] = sinks.map((value) => (value).toJson()).toList(); |
1637 } | 1638 } |
1638 return _json; | 1639 return _json; |
1639 } | 1640 } |
1640 } | 1641 } |
1641 | 1642 |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1789 textPayload = _json["textPayload"]; | 1790 textPayload = _json["textPayload"]; |
1790 } | 1791 } |
1791 if (_json.containsKey("timestamp")) { | 1792 if (_json.containsKey("timestamp")) { |
1792 timestamp = _json["timestamp"]; | 1793 timestamp = _json["timestamp"]; |
1793 } | 1794 } |
1794 if (_json.containsKey("trace")) { | 1795 if (_json.containsKey("trace")) { |
1795 trace = _json["trace"]; | 1796 trace = _json["trace"]; |
1796 } | 1797 } |
1797 } | 1798 } |
1798 | 1799 |
1799 core.Map toJson() { | 1800 core.Map<core.String, core.Object> toJson() { |
1800 var _json = new core.Map(); | 1801 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1801 if (httpRequest != null) { | 1802 if (httpRequest != null) { |
1802 _json["httpRequest"] = (httpRequest).toJson(); | 1803 _json["httpRequest"] = (httpRequest).toJson(); |
1803 } | 1804 } |
1804 if (insertId != null) { | 1805 if (insertId != null) { |
1805 _json["insertId"] = insertId; | 1806 _json["insertId"] = insertId; |
1806 } | 1807 } |
1807 if (jsonPayload != null) { | 1808 if (jsonPayload != null) { |
1808 _json["jsonPayload"] = jsonPayload; | 1809 _json["jsonPayload"] = jsonPayload; |
1809 } | 1810 } |
1810 if (labels != null) { | 1811 if (labels != null) { |
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1879 id = _json["id"]; | 1880 id = _json["id"]; |
1880 } | 1881 } |
1881 if (_json.containsKey("last")) { | 1882 if (_json.containsKey("last")) { |
1882 last = _json["last"]; | 1883 last = _json["last"]; |
1883 } | 1884 } |
1884 if (_json.containsKey("producer")) { | 1885 if (_json.containsKey("producer")) { |
1885 producer = _json["producer"]; | 1886 producer = _json["producer"]; |
1886 } | 1887 } |
1887 } | 1888 } |
1888 | 1889 |
1889 core.Map toJson() { | 1890 core.Map<core.String, core.Object> toJson() { |
1890 var _json = new core.Map(); | 1891 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1891 if (first != null) { | 1892 if (first != null) { |
1892 _json["first"] = first; | 1893 _json["first"] = first; |
1893 } | 1894 } |
1894 if (id != null) { | 1895 if (id != null) { |
1895 _json["id"] = id; | 1896 _json["id"] = id; |
1896 } | 1897 } |
1897 if (last != null) { | 1898 if (last != null) { |
1898 _json["last"] = last; | 1899 _json["last"] = last; |
1899 } | 1900 } |
1900 if (producer != null) { | 1901 if (producer != null) { |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1935 file = _json["file"]; | 1936 file = _json["file"]; |
1936 } | 1937 } |
1937 if (_json.containsKey("function")) { | 1938 if (_json.containsKey("function")) { |
1938 function = _json["function"]; | 1939 function = _json["function"]; |
1939 } | 1940 } |
1940 if (_json.containsKey("line")) { | 1941 if (_json.containsKey("line")) { |
1941 line = _json["line"]; | 1942 line = _json["line"]; |
1942 } | 1943 } |
1943 } | 1944 } |
1944 | 1945 |
1945 core.Map toJson() { | 1946 core.Map<core.String, core.Object> toJson() { |
1946 var _json = new core.Map(); | 1947 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
1947 if (file != null) { | 1948 if (file != null) { |
1948 _json["file"] = file; | 1949 _json["file"] = file; |
1949 } | 1950 } |
1950 if (function != null) { | 1951 if (function != null) { |
1951 _json["function"] = function; | 1952 _json["function"] = function; |
1952 } | 1953 } |
1953 if (line != null) { | 1954 if (line != null) { |
1954 _json["line"] = line; | 1955 _json["line"] = line; |
1955 } | 1956 } |
1956 return _json; | 1957 return _json; |
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1992 severity = _json["severity"]; | 1993 severity = _json["severity"]; |
1993 } | 1994 } |
1994 if (_json.containsKey("sourceLocation")) { | 1995 if (_json.containsKey("sourceLocation")) { |
1995 sourceLocation = new SourceLocation.fromJson(_json["sourceLocation"]); | 1996 sourceLocation = new SourceLocation.fromJson(_json["sourceLocation"]); |
1996 } | 1997 } |
1997 if (_json.containsKey("time")) { | 1998 if (_json.containsKey("time")) { |
1998 time = _json["time"]; | 1999 time = _json["time"]; |
1999 } | 2000 } |
2000 } | 2001 } |
2001 | 2002 |
2002 core.Map toJson() { | 2003 core.Map<core.String, core.Object> toJson() { |
2003 var _json = new core.Map(); | 2004 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2004 if (logMessage != null) { | 2005 if (logMessage != null) { |
2005 _json["logMessage"] = logMessage; | 2006 _json["logMessage"] = logMessage; |
2006 } | 2007 } |
2007 if (severity != null) { | 2008 if (severity != null) { |
2008 _json["severity"] = severity; | 2009 _json["severity"] = severity; |
2009 } | 2010 } |
2010 if (sourceLocation != null) { | 2011 if (sourceLocation != null) { |
2011 _json["sourceLocation"] = (sourceLocation).toJson(); | 2012 _json["sourceLocation"] = (sourceLocation).toJson(); |
2012 } | 2013 } |
2013 if (time != null) { | 2014 if (time != null) { |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2066 filter = _json["filter"]; | 2067 filter = _json["filter"]; |
2067 } | 2068 } |
2068 if (_json.containsKey("name")) { | 2069 if (_json.containsKey("name")) { |
2069 name = _json["name"]; | 2070 name = _json["name"]; |
2070 } | 2071 } |
2071 if (_json.containsKey("version")) { | 2072 if (_json.containsKey("version")) { |
2072 version = _json["version"]; | 2073 version = _json["version"]; |
2073 } | 2074 } |
2074 } | 2075 } |
2075 | 2076 |
2076 core.Map toJson() { | 2077 core.Map<core.String, core.Object> toJson() { |
2077 var _json = new core.Map(); | 2078 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2078 if (description != null) { | 2079 if (description != null) { |
2079 _json["description"] = description; | 2080 _json["description"] = description; |
2080 } | 2081 } |
2081 if (filter != null) { | 2082 if (filter != null) { |
2082 _json["filter"] = filter; | 2083 _json["filter"] = filter; |
2083 } | 2084 } |
2084 if (name != null) { | 2085 if (name != null) { |
2085 _json["name"] = name; | 2086 _json["name"] = name; |
2086 } | 2087 } |
2087 if (version != null) { | 2088 if (version != null) { |
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2199 outputVersionFormat = _json["outputVersionFormat"]; | 2200 outputVersionFormat = _json["outputVersionFormat"]; |
2200 } | 2201 } |
2201 if (_json.containsKey("startTime")) { | 2202 if (_json.containsKey("startTime")) { |
2202 startTime = _json["startTime"]; | 2203 startTime = _json["startTime"]; |
2203 } | 2204 } |
2204 if (_json.containsKey("writerIdentity")) { | 2205 if (_json.containsKey("writerIdentity")) { |
2205 writerIdentity = _json["writerIdentity"]; | 2206 writerIdentity = _json["writerIdentity"]; |
2206 } | 2207 } |
2207 } | 2208 } |
2208 | 2209 |
2209 core.Map toJson() { | 2210 core.Map<core.String, core.Object> toJson() { |
2210 var _json = new core.Map(); | 2211 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2211 if (destination != null) { | 2212 if (destination != null) { |
2212 _json["destination"] = destination; | 2213 _json["destination"] = destination; |
2213 } | 2214 } |
2214 if (endTime != null) { | 2215 if (endTime != null) { |
2215 _json["endTime"] = endTime; | 2216 _json["endTime"] = endTime; |
2216 } | 2217 } |
2217 if (filter != null) { | 2218 if (filter != null) { |
2218 _json["filter"] = filter; | 2219 _json["filter"] = filter; |
2219 } | 2220 } |
2220 if (includeChildren != null) { | 2221 if (includeChildren != null) { |
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2268 | 2269 |
2269 MonitoredResource.fromJson(core.Map _json) { | 2270 MonitoredResource.fromJson(core.Map _json) { |
2270 if (_json.containsKey("labels")) { | 2271 if (_json.containsKey("labels")) { |
2271 labels = _json["labels"]; | 2272 labels = _json["labels"]; |
2272 } | 2273 } |
2273 if (_json.containsKey("type")) { | 2274 if (_json.containsKey("type")) { |
2274 type = _json["type"]; | 2275 type = _json["type"]; |
2275 } | 2276 } |
2276 } | 2277 } |
2277 | 2278 |
2278 core.Map toJson() { | 2279 core.Map<core.String, core.Object> toJson() { |
2279 var _json = new core.Map(); | 2280 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2280 if (labels != null) { | 2281 if (labels != null) { |
2281 _json["labels"] = labels; | 2282 _json["labels"] = labels; |
2282 } | 2283 } |
2283 if (type != null) { | 2284 if (type != null) { |
2284 _json["type"] = type; | 2285 _json["type"] = type; |
2285 } | 2286 } |
2286 return _json; | 2287 return _json; |
2287 } | 2288 } |
2288 } | 2289 } |
2289 | 2290 |
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2344 labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value
)).toList(); | 2345 labels = _json["labels"].map((value) => new LabelDescriptor.fromJson(value
)).toList(); |
2345 } | 2346 } |
2346 if (_json.containsKey("name")) { | 2347 if (_json.containsKey("name")) { |
2347 name = _json["name"]; | 2348 name = _json["name"]; |
2348 } | 2349 } |
2349 if (_json.containsKey("type")) { | 2350 if (_json.containsKey("type")) { |
2350 type = _json["type"]; | 2351 type = _json["type"]; |
2351 } | 2352 } |
2352 } | 2353 } |
2353 | 2354 |
2354 core.Map toJson() { | 2355 core.Map<core.String, core.Object> toJson() { |
2355 var _json = new core.Map(); | 2356 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2356 if (description != null) { | 2357 if (description != null) { |
2357 _json["description"] = description; | 2358 _json["description"] = description; |
2358 } | 2359 } |
2359 if (displayName != null) { | 2360 if (displayName != null) { |
2360 _json["displayName"] = displayName; | 2361 _json["displayName"] = displayName; |
2361 } | 2362 } |
2362 if (labels != null) { | 2363 if (labels != null) { |
2363 _json["labels"] = labels.map((value) => (value).toJson()).toList(); | 2364 _json["labels"] = labels.map((value) => (value).toJson()).toList(); |
2364 } | 2365 } |
2365 if (name != null) { | 2366 if (name != null) { |
(...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2566 userAgent = _json["userAgent"]; | 2567 userAgent = _json["userAgent"]; |
2567 } | 2568 } |
2568 if (_json.containsKey("versionId")) { | 2569 if (_json.containsKey("versionId")) { |
2569 versionId = _json["versionId"]; | 2570 versionId = _json["versionId"]; |
2570 } | 2571 } |
2571 if (_json.containsKey("wasLoadingRequest")) { | 2572 if (_json.containsKey("wasLoadingRequest")) { |
2572 wasLoadingRequest = _json["wasLoadingRequest"]; | 2573 wasLoadingRequest = _json["wasLoadingRequest"]; |
2573 } | 2574 } |
2574 } | 2575 } |
2575 | 2576 |
2576 core.Map toJson() { | 2577 core.Map<core.String, core.Object> toJson() { |
2577 var _json = new core.Map(); | 2578 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2578 if (appEngineRelease != null) { | 2579 if (appEngineRelease != null) { |
2579 _json["appEngineRelease"] = appEngineRelease; | 2580 _json["appEngineRelease"] = appEngineRelease; |
2580 } | 2581 } |
2581 if (appId != null) { | 2582 if (appId != null) { |
2582 _json["appId"] = appId; | 2583 _json["appId"] = appId; |
2583 } | 2584 } |
2584 if (cost != null) { | 2585 if (cost != null) { |
2585 _json["cost"] = cost; | 2586 _json["cost"] = cost; |
2586 } | 2587 } |
2587 if (endTime != null) { | 2588 if (endTime != null) { |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2700 file = _json["file"]; | 2701 file = _json["file"]; |
2701 } | 2702 } |
2702 if (_json.containsKey("functionName")) { | 2703 if (_json.containsKey("functionName")) { |
2703 functionName = _json["functionName"]; | 2704 functionName = _json["functionName"]; |
2704 } | 2705 } |
2705 if (_json.containsKey("line")) { | 2706 if (_json.containsKey("line")) { |
2706 line = _json["line"]; | 2707 line = _json["line"]; |
2707 } | 2708 } |
2708 } | 2709 } |
2709 | 2710 |
2710 core.Map toJson() { | 2711 core.Map<core.String, core.Object> toJson() { |
2711 var _json = new core.Map(); | 2712 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2712 if (file != null) { | 2713 if (file != null) { |
2713 _json["file"] = file; | 2714 _json["file"] = file; |
2714 } | 2715 } |
2715 if (functionName != null) { | 2716 if (functionName != null) { |
2716 _json["functionName"] = functionName; | 2717 _json["functionName"] = functionName; |
2717 } | 2718 } |
2718 if (line != null) { | 2719 if (line != null) { |
2719 _json["line"] = line; | 2720 _json["line"] = line; |
2720 } | 2721 } |
2721 return _json; | 2722 return _json; |
(...skipping 20 matching lines...) Expand all Loading... |
2742 | 2743 |
2743 SourceReference.fromJson(core.Map _json) { | 2744 SourceReference.fromJson(core.Map _json) { |
2744 if (_json.containsKey("repository")) { | 2745 if (_json.containsKey("repository")) { |
2745 repository = _json["repository"]; | 2746 repository = _json["repository"]; |
2746 } | 2747 } |
2747 if (_json.containsKey("revisionId")) { | 2748 if (_json.containsKey("revisionId")) { |
2748 revisionId = _json["revisionId"]; | 2749 revisionId = _json["revisionId"]; |
2749 } | 2750 } |
2750 } | 2751 } |
2751 | 2752 |
2752 core.Map toJson() { | 2753 core.Map<core.String, core.Object> toJson() { |
2753 var _json = new core.Map(); | 2754 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2754 if (repository != null) { | 2755 if (repository != null) { |
2755 _json["repository"] = repository; | 2756 _json["repository"] = repository; |
2756 } | 2757 } |
2757 if (revisionId != null) { | 2758 if (revisionId != null) { |
2758 _json["revisionId"] = revisionId; | 2759 _json["revisionId"] = revisionId; |
2759 } | 2760 } |
2760 return _json; | 2761 return _json; |
2761 } | 2762 } |
2762 } | 2763 } |
2763 | 2764 |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2827 logName = _json["logName"]; | 2828 logName = _json["logName"]; |
2828 } | 2829 } |
2829 if (_json.containsKey("partialSuccess")) { | 2830 if (_json.containsKey("partialSuccess")) { |
2830 partialSuccess = _json["partialSuccess"]; | 2831 partialSuccess = _json["partialSuccess"]; |
2831 } | 2832 } |
2832 if (_json.containsKey("resource")) { | 2833 if (_json.containsKey("resource")) { |
2833 resource = new MonitoredResource.fromJson(_json["resource"]); | 2834 resource = new MonitoredResource.fromJson(_json["resource"]); |
2834 } | 2835 } |
2835 } | 2836 } |
2836 | 2837 |
2837 core.Map toJson() { | 2838 core.Map<core.String, core.Object> toJson() { |
2838 var _json = new core.Map(); | 2839 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2839 if (entries != null) { | 2840 if (entries != null) { |
2840 _json["entries"] = entries.map((value) => (value).toJson()).toList(); | 2841 _json["entries"] = entries.map((value) => (value).toJson()).toList(); |
2841 } | 2842 } |
2842 if (labels != null) { | 2843 if (labels != null) { |
2843 _json["labels"] = labels; | 2844 _json["labels"] = labels; |
2844 } | 2845 } |
2845 if (logName != null) { | 2846 if (logName != null) { |
2846 _json["logName"] = logName; | 2847 _json["logName"] = logName; |
2847 } | 2848 } |
2848 if (partialSuccess != null) { | 2849 if (partialSuccess != null) { |
2849 _json["partialSuccess"] = partialSuccess; | 2850 _json["partialSuccess"] = partialSuccess; |
2850 } | 2851 } |
2851 if (resource != null) { | 2852 if (resource != null) { |
2852 _json["resource"] = (resource).toJson(); | 2853 _json["resource"] = (resource).toJson(); |
2853 } | 2854 } |
2854 return _json; | 2855 return _json; |
2855 } | 2856 } |
2856 } | 2857 } |
2857 | 2858 |
2858 /** Result returned from WriteLogEntries. empty */ | 2859 /** Result returned from WriteLogEntries. empty */ |
2859 class WriteLogEntriesResponse { | 2860 class WriteLogEntriesResponse { |
2860 | 2861 |
2861 WriteLogEntriesResponse(); | 2862 WriteLogEntriesResponse(); |
2862 | 2863 |
2863 WriteLogEntriesResponse.fromJson(core.Map _json) { | 2864 WriteLogEntriesResponse.fromJson(core.Map _json) { |
2864 } | 2865 } |
2865 | 2866 |
2866 core.Map toJson() { | 2867 core.Map<core.String, core.Object> toJson() { |
2867 var _json = new core.Map(); | 2868 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
2868 return _json; | 2869 return _json; |
2869 } | 2870 } |
2870 } | 2871 } |
OLD | NEW |