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

Side by Side Diff: generated/googleapis_beta/lib/proximitybeacon/v1beta1.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_beta.proximitybeacon.v1beta1; 3 library googleapis_beta.proximitybeacon.v1beta1;
4 4
5 import 'dart:core' as core; 5 import 'dart:core' as core;
6 import 'dart:async' as async; 6 import 'dart:async' as async;
7 import 'dart:convert' as convert; 7 import 'dart:convert' as convert;
8 8
9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
10 import 'package:http/http.dart' as http; 10 import 'package:http/http.dart' as http;
(...skipping 905 matching lines...) Expand 10 before | Expand all | Expand 10 after
916 * [beaconName] - Beacon whose attachments should be fetched. A beacon name 916 * [beaconName] - Beacon whose attachments should be fetched. A beacon name
917 * has the 917 * has the
918 * format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast 918 * format "beacons/N!beaconId" where the beaconId is the base16 ID broadcast
919 * by the beacon and N is a code for the beacon's type. Possible values are 919 * by the beacon and N is a code for the beacon's type. Possible values are
920 * `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5` 920 * `3` for Eddystone-UID, `4` for Eddystone-EID, `1` for iBeacon, or `5`
921 * for AltBeacon. For Eddystone-EID beacons, you may use either the 921 * for AltBeacon. For Eddystone-EID beacons, you may use either the
922 * current EID or the beacon's "stable" UID. 922 * current EID or the beacon's "stable" UID.
923 * Required. 923 * Required.
924 * Value must have pattern "^beacons/[^/]+$". 924 * Value must have pattern "^beacons/[^/]+$".
925 * 925 *
926 * [namespacedType] - Specifies the namespace and type of attachment to
927 * include in response in
928 * <var>namespace/type</var> format. Accepts `* / * ` to specify
929 * "all types in all namespaces".
930 *
931 * [projectId] - The project id to list beacon attachments under. This field 926 * [projectId] - The project id to list beacon attachments under. This field
932 * can be 927 * can be
933 * used when "*" is specified to mean all attachment namespaces. Projects 928 * used when "*" is specified to mean all attachment namespaces. Projects
934 * may have multiple attachments with multiple namespaces. If "*" is 929 * may have multiple attachments with multiple namespaces. If "*" is
935 * specified and the projectId string is empty, then the project 930 * specified and the projectId string is empty, then the project
936 * making the request is used. 931 * making the request is used.
937 * Optional. 932 * Optional.
938 * 933 *
934 * [namespacedType] - Specifies the namespace and type of attachment to
935 * include in response in
936 * <var>namespace/type</var> format. Accepts `* / * ` to specify
937 * "all types in all namespaces".
938 *
939 * Completes with a [ListBeaconAttachmentsResponse]. 939 * Completes with a [ListBeaconAttachmentsResponse].
940 * 940 *
941 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 941 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
942 * error. 942 * error.
943 * 943 *
944 * If the used [http.Client] completes with an error when making a REST call, 944 * If the used [http.Client] completes with an error when making a REST call,
945 * this method will complete with the same error. 945 * this method will complete with the same error.
946 */ 946 */
947 async.Future<ListBeaconAttachmentsResponse> list(core.String beaconName, {core .String namespacedType, core.String projectId}) { 947 async.Future<ListBeaconAttachmentsResponse> list(core.String beaconName, {core .String projectId, core.String namespacedType}) {
948 var _url = null; 948 var _url = null;
949 var _queryParams = new core.Map(); 949 var _queryParams = new core.Map();
950 var _uploadMedia = null; 950 var _uploadMedia = null;
951 var _uploadOptions = null; 951 var _uploadOptions = null;
952 var _downloadOptions = commons.DownloadOptions.Metadata; 952 var _downloadOptions = commons.DownloadOptions.Metadata;
953 var _body = null; 953 var _body = null;
954 954
955 if (beaconName == null) { 955 if (beaconName == null) {
956 throw new core.ArgumentError("Parameter beaconName is required."); 956 throw new core.ArgumentError("Parameter beaconName is required.");
957 } 957 }
958 if (projectId != null) {
959 _queryParams["projectId"] = [projectId];
960 }
958 if (namespacedType != null) { 961 if (namespacedType != null) {
959 _queryParams["namespacedType"] = [namespacedType]; 962 _queryParams["namespacedType"] = [namespacedType];
960 } 963 }
961 if (projectId != null) {
962 _queryParams["projectId"] = [projectId];
963 }
964 964
965 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$beaconName') + ' /attachments'; 965 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$beaconName') + ' /attachments';
966 966
967 var _response = _requester.request(_url, 967 var _response = _requester.request(_url,
968 "GET", 968 "GET",
969 body: _body, 969 body: _body,
970 queryParams: _queryParams, 970 queryParams: _queryParams,
971 uploadOptions: _uploadOptions, 971 uploadOptions: _uploadOptions,
972 uploadMedia: _uploadMedia, 972 uploadMedia: _uploadMedia,
973 downloadOptions: _downloadOptions); 973 downloadOptions: _downloadOptions);
(...skipping 17 matching lines...) Expand all
991 * Authenticate using an [OAuth access 991 * Authenticate using an [OAuth access
992 * token](https://developers.google.com/identity/protocols/OAuth2) 992 * token](https://developers.google.com/identity/protocols/OAuth2)
993 * from a signed-in user with **viewer**, **Is owner** or **Can edit** 993 * from a signed-in user with **viewer**, **Is owner** or **Can edit**
994 * permissions in the Google Developers Console project. 994 * permissions in the Google Developers Console project.
995 * 995 *
996 * Request parameters: 996 * Request parameters:
997 * 997 *
998 * [beaconName] - Beacon that the diagnostics are for. 998 * [beaconName] - Beacon that the diagnostics are for.
999 * Value must have pattern "^beacons/[^/]+$". 999 * Value must have pattern "^beacons/[^/]+$".
1000 * 1000 *
1001 * [pageToken] - Requests results that occur after the `page_token`, obtained
1002 * from the
1003 * response to a previous request. Optional.
1004 *
1001 * [pageSize] - Specifies the maximum number of results to return. Defaults to 1005 * [pageSize] - Specifies the maximum number of results to return. Defaults to
1002 * 10. Maximum 1000. Optional. 1006 * 10. Maximum 1000. Optional.
1003 * 1007 *
1004 * [alertFilter] - Requests only beacons that have the given alert. For 1008 * [alertFilter] - Requests only beacons that have the given alert. For
1005 * example, to find 1009 * example, to find
1006 * beacons that have low batteries use `alert_filter=LOW_BATTERY`. 1010 * beacons that have low batteries use `alert_filter=LOW_BATTERY`.
1007 * Possible string values are: 1011 * Possible string values are:
1008 * - "ALERT_UNSPECIFIED" : A ALERT_UNSPECIFIED. 1012 * - "ALERT_UNSPECIFIED" : A ALERT_UNSPECIFIED.
1009 * - "WRONG_LOCATION" : A WRONG_LOCATION. 1013 * - "WRONG_LOCATION" : A WRONG_LOCATION.
1010 * - "LOW_BATTERY" : A LOW_BATTERY. 1014 * - "LOW_BATTERY" : A LOW_BATTERY.
1011 * 1015 *
1012 * [projectId] - Requests only diagnostic records for the given project id. If 1016 * [projectId] - Requests only diagnostic records for the given project id. If
1013 * not set, 1017 * not set,
1014 * then the project making the request will be used for looking up 1018 * then the project making the request will be used for looking up
1015 * diagnostic records. Optional. 1019 * diagnostic records. Optional.
1016 * 1020 *
1017 * [pageToken] - Requests results that occur after the `page_token`, obtained
1018 * from the
1019 * response to a previous request. Optional.
1020 *
1021 * Completes with a [ListDiagnosticsResponse]. 1021 * Completes with a [ListDiagnosticsResponse].
1022 * 1022 *
1023 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1023 * Completes with a [commons.ApiRequestError] if the API endpoint returned an
1024 * error. 1024 * error.
1025 * 1025 *
1026 * If the used [http.Client] completes with an error when making a REST call, 1026 * If the used [http.Client] completes with an error when making a REST call,
1027 * this method will complete with the same error. 1027 * this method will complete with the same error.
1028 */ 1028 */
1029 async.Future<ListDiagnosticsResponse> list(core.String beaconName, {core.int p ageSize, core.String alertFilter, core.String projectId, core.String pageToken}) { 1029 async.Future<ListDiagnosticsResponse> list(core.String beaconName, {core.Strin g pageToken, core.int pageSize, core.String alertFilter, core.String projectId}) {
1030 var _url = null; 1030 var _url = null;
1031 var _queryParams = new core.Map(); 1031 var _queryParams = new core.Map();
1032 var _uploadMedia = null; 1032 var _uploadMedia = null;
1033 var _uploadOptions = null; 1033 var _uploadOptions = null;
1034 var _downloadOptions = commons.DownloadOptions.Metadata; 1034 var _downloadOptions = commons.DownloadOptions.Metadata;
1035 var _body = null; 1035 var _body = null;
1036 1036
1037 if (beaconName == null) { 1037 if (beaconName == null) {
1038 throw new core.ArgumentError("Parameter beaconName is required."); 1038 throw new core.ArgumentError("Parameter beaconName is required.");
1039 } 1039 }
1040 if (pageToken != null) {
1041 _queryParams["pageToken"] = [pageToken];
1042 }
1040 if (pageSize != null) { 1043 if (pageSize != null) {
1041 _queryParams["pageSize"] = ["${pageSize}"]; 1044 _queryParams["pageSize"] = ["${pageSize}"];
1042 } 1045 }
1043 if (alertFilter != null) { 1046 if (alertFilter != null) {
1044 _queryParams["alertFilter"] = [alertFilter]; 1047 _queryParams["alertFilter"] = [alertFilter];
1045 } 1048 }
1046 if (projectId != null) { 1049 if (projectId != null) {
1047 _queryParams["projectId"] = [projectId]; 1050 _queryParams["projectId"] = [projectId];
1048 } 1051 }
1049 if (pageToken != null) {
1050 _queryParams["pageToken"] = [pageToken];
1051 }
1052 1052
1053 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$beaconName') + ' /diagnostics'; 1053 _url = 'v1beta1/' + commons.Escaper.ecapeVariableReserved('$beaconName') + ' /diagnostics';
1054 1054
1055 var _response = _requester.request(_url, 1055 var _response = _requester.request(_url,
1056 "GET", 1056 "GET",
1057 body: _body, 1057 body: _body,
1058 queryParams: _queryParams, 1058 queryParams: _queryParams,
1059 uploadOptions: _uploadOptions, 1059 uploadOptions: _uploadOptions,
1060 uploadMedia: _uploadMedia, 1060 uploadMedia: _uploadMedia,
1061 downloadOptions: _downloadOptions); 1061 downloadOptions: _downloadOptions);
(...skipping 203 matching lines...) Expand 10 before | Expand all | Expand 10 after
1265 1265
1266 AdvertisedId.fromJson(core.Map _json) { 1266 AdvertisedId.fromJson(core.Map _json) {
1267 if (_json.containsKey("id")) { 1267 if (_json.containsKey("id")) {
1268 id = _json["id"]; 1268 id = _json["id"];
1269 } 1269 }
1270 if (_json.containsKey("type")) { 1270 if (_json.containsKey("type")) {
1271 type = _json["type"]; 1271 type = _json["type"];
1272 } 1272 }
1273 } 1273 }
1274 1274
1275 core.Map toJson() { 1275 core.Map<core.String, core.Object> toJson() {
1276 var _json = new core.Map(); 1276 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1277 if (id != null) { 1277 if (id != null) {
1278 _json["id"] = id; 1278 _json["id"] = id;
1279 } 1279 }
1280 if (type != null) { 1280 if (type != null) {
1281 _json["type"] = type; 1281 _json["type"] = type;
1282 } 1282 }
1283 return _json; 1283 return _json;
1284 } 1284 }
1285 } 1285 }
1286 1286
(...skipping 23 matching lines...) Expand all
1310 1310
1311 AttachmentInfo.fromJson(core.Map _json) { 1311 AttachmentInfo.fromJson(core.Map _json) {
1312 if (_json.containsKey("data")) { 1312 if (_json.containsKey("data")) {
1313 data = _json["data"]; 1313 data = _json["data"];
1314 } 1314 }
1315 if (_json.containsKey("namespacedType")) { 1315 if (_json.containsKey("namespacedType")) {
1316 namespacedType = _json["namespacedType"]; 1316 namespacedType = _json["namespacedType"];
1317 } 1317 }
1318 } 1318 }
1319 1319
1320 core.Map toJson() { 1320 core.Map<core.String, core.Object> toJson() {
1321 var _json = new core.Map(); 1321 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1322 if (data != null) { 1322 if (data != null) {
1323 _json["data"] = data; 1323 _json["data"] = data;
1324 } 1324 }
1325 if (namespacedType != null) { 1325 if (namespacedType != null) {
1326 _json["namespacedType"] = namespacedType; 1326 _json["namespacedType"] = namespacedType;
1327 } 1327 }
1328 return _json; 1328 return _json;
1329 } 1329 }
1330 } 1330 }
1331 1331
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
1468 properties = _json["properties"]; 1468 properties = _json["properties"];
1469 } 1469 }
1470 if (_json.containsKey("provisioningKey")) { 1470 if (_json.containsKey("provisioningKey")) {
1471 provisioningKey = _json["provisioningKey"]; 1471 provisioningKey = _json["provisioningKey"];
1472 } 1472 }
1473 if (_json.containsKey("status")) { 1473 if (_json.containsKey("status")) {
1474 status = _json["status"]; 1474 status = _json["status"];
1475 } 1475 }
1476 } 1476 }
1477 1477
1478 core.Map toJson() { 1478 core.Map<core.String, core.Object> toJson() {
1479 var _json = new core.Map(); 1479 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1480 if (advertisedId != null) { 1480 if (advertisedId != null) {
1481 _json["advertisedId"] = (advertisedId).toJson(); 1481 _json["advertisedId"] = (advertisedId).toJson();
1482 } 1482 }
1483 if (beaconName != null) { 1483 if (beaconName != null) {
1484 _json["beaconName"] = beaconName; 1484 _json["beaconName"] = beaconName;
1485 } 1485 }
1486 if (description != null) { 1486 if (description != null) {
1487 _json["description"] = description; 1487 _json["description"] = description;
1488 } 1488 }
1489 if (ephemeralIdRegistration != null) { 1489 if (ephemeralIdRegistration != null) {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
1560 creationTimeMs = _json["creationTimeMs"]; 1560 creationTimeMs = _json["creationTimeMs"];
1561 } 1561 }
1562 if (_json.containsKey("data")) { 1562 if (_json.containsKey("data")) {
1563 data = _json["data"]; 1563 data = _json["data"];
1564 } 1564 }
1565 if (_json.containsKey("namespacedType")) { 1565 if (_json.containsKey("namespacedType")) {
1566 namespacedType = _json["namespacedType"]; 1566 namespacedType = _json["namespacedType"];
1567 } 1567 }
1568 } 1568 }
1569 1569
1570 core.Map toJson() { 1570 core.Map<core.String, core.Object> toJson() {
1571 var _json = new core.Map(); 1571 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1572 if (attachmentName != null) { 1572 if (attachmentName != null) {
1573 _json["attachmentName"] = attachmentName; 1573 _json["attachmentName"] = attachmentName;
1574 } 1574 }
1575 if (creationTimeMs != null) { 1575 if (creationTimeMs != null) {
1576 _json["creationTimeMs"] = creationTimeMs; 1576 _json["creationTimeMs"] = creationTimeMs;
1577 } 1577 }
1578 if (data != null) { 1578 if (data != null) {
1579 _json["data"] = data; 1579 _json["data"] = data;
1580 } 1580 }
1581 if (namespacedType != null) { 1581 if (namespacedType != null) {
(...skipping 25 matching lines...) Expand all
1607 advertisedId = new AdvertisedId.fromJson(_json["advertisedId"]); 1607 advertisedId = new AdvertisedId.fromJson(_json["advertisedId"]);
1608 } 1608 }
1609 if (_json.containsKey("attachments")) { 1609 if (_json.containsKey("attachments")) {
1610 attachments = _json["attachments"].map((value) => new AttachmentInfo.fromJ son(value)).toList(); 1610 attachments = _json["attachments"].map((value) => new AttachmentInfo.fromJ son(value)).toList();
1611 } 1611 }
1612 if (_json.containsKey("beaconName")) { 1612 if (_json.containsKey("beaconName")) {
1613 beaconName = _json["beaconName"]; 1613 beaconName = _json["beaconName"];
1614 } 1614 }
1615 } 1615 }
1616 1616
1617 core.Map toJson() { 1617 core.Map<core.String, core.Object> toJson() {
1618 var _json = new core.Map(); 1618 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1619 if (advertisedId != null) { 1619 if (advertisedId != null) {
1620 _json["advertisedId"] = (advertisedId).toJson(); 1620 _json["advertisedId"] = (advertisedId).toJson();
1621 } 1621 }
1622 if (attachments != null) { 1622 if (attachments != null) {
1623 _json["attachments"] = attachments.map((value) => (value).toJson()).toList (); 1623 _json["attachments"] = attachments.map((value) => (value).toJson()).toList ();
1624 } 1624 }
1625 if (beaconName != null) { 1625 if (beaconName != null) {
1626 _json["beaconName"] = beaconName; 1626 _json["beaconName"] = beaconName;
1627 } 1627 }
1628 return _json; 1628 return _json;
(...skipping 30 matching lines...) Expand all
1659 day = _json["day"]; 1659 day = _json["day"];
1660 } 1660 }
1661 if (_json.containsKey("month")) { 1661 if (_json.containsKey("month")) {
1662 month = _json["month"]; 1662 month = _json["month"];
1663 } 1663 }
1664 if (_json.containsKey("year")) { 1664 if (_json.containsKey("year")) {
1665 year = _json["year"]; 1665 year = _json["year"];
1666 } 1666 }
1667 } 1667 }
1668 1668
1669 core.Map toJson() { 1669 core.Map<core.String, core.Object> toJson() {
1670 var _json = new core.Map(); 1670 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1671 if (day != null) { 1671 if (day != null) {
1672 _json["day"] = day; 1672 _json["day"] = day;
1673 } 1673 }
1674 if (month != null) { 1674 if (month != null) {
1675 _json["month"] = month; 1675 _json["month"] = month;
1676 } 1676 }
1677 if (year != null) { 1677 if (year != null) {
1678 _json["year"] = year; 1678 _json["year"] = year;
1679 } 1679 }
1680 return _json; 1680 return _json;
1681 } 1681 }
1682 } 1682 }
1683 1683
1684 /** Response for a request to delete attachments. */ 1684 /** Response for a request to delete attachments. */
1685 class DeleteAttachmentsResponse { 1685 class DeleteAttachmentsResponse {
1686 /** The number of attachments that were deleted. */ 1686 /** The number of attachments that were deleted. */
1687 core.int numDeleted; 1687 core.int numDeleted;
1688 1688
1689 DeleteAttachmentsResponse(); 1689 DeleteAttachmentsResponse();
1690 1690
1691 DeleteAttachmentsResponse.fromJson(core.Map _json) { 1691 DeleteAttachmentsResponse.fromJson(core.Map _json) {
1692 if (_json.containsKey("numDeleted")) { 1692 if (_json.containsKey("numDeleted")) {
1693 numDeleted = _json["numDeleted"]; 1693 numDeleted = _json["numDeleted"];
1694 } 1694 }
1695 } 1695 }
1696 1696
1697 core.Map toJson() { 1697 core.Map<core.String, core.Object> toJson() {
1698 var _json = new core.Map(); 1698 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1699 if (numDeleted != null) { 1699 if (numDeleted != null) {
1700 _json["numDeleted"] = numDeleted; 1700 _json["numDeleted"] = numDeleted;
1701 } 1701 }
1702 return _json; 1702 return _json;
1703 } 1703 }
1704 } 1704 }
1705 1705
1706 /** Diagnostics for a single beacon. */ 1706 /** Diagnostics for a single beacon. */
1707 class Diagnostics { 1707 class Diagnostics {
1708 /** An unordered list of Alerts that the beacon has. */ 1708 /** An unordered list of Alerts that the beacon has. */
(...skipping 17 matching lines...) Expand all
1726 alerts = _json["alerts"]; 1726 alerts = _json["alerts"];
1727 } 1727 }
1728 if (_json.containsKey("beaconName")) { 1728 if (_json.containsKey("beaconName")) {
1729 beaconName = _json["beaconName"]; 1729 beaconName = _json["beaconName"];
1730 } 1730 }
1731 if (_json.containsKey("estimatedLowBatteryDate")) { 1731 if (_json.containsKey("estimatedLowBatteryDate")) {
1732 estimatedLowBatteryDate = new Date.fromJson(_json["estimatedLowBatteryDate "]); 1732 estimatedLowBatteryDate = new Date.fromJson(_json["estimatedLowBatteryDate "]);
1733 } 1733 }
1734 } 1734 }
1735 1735
1736 core.Map toJson() { 1736 core.Map<core.String, core.Object> toJson() {
1737 var _json = new core.Map(); 1737 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1738 if (alerts != null) { 1738 if (alerts != null) {
1739 _json["alerts"] = alerts; 1739 _json["alerts"] = alerts;
1740 } 1740 }
1741 if (beaconName != null) { 1741 if (beaconName != null) {
1742 _json["beaconName"] = beaconName; 1742 _json["beaconName"] = beaconName;
1743 } 1743 }
1744 if (estimatedLowBatteryDate != null) { 1744 if (estimatedLowBatteryDate != null) {
1745 _json["estimatedLowBatteryDate"] = (estimatedLowBatteryDate).toJson(); 1745 _json["estimatedLowBatteryDate"] = (estimatedLowBatteryDate).toJson();
1746 } 1746 }
1747 return _json; 1747 return _json;
(...skipping 11 matching lines...) Expand all
1759 * 1759 *
1760 * The JSON representation for `Empty` is empty JSON object `{}`. 1760 * The JSON representation for `Empty` is empty JSON object `{}`.
1761 */ 1761 */
1762 class Empty { 1762 class Empty {
1763 1763
1764 Empty(); 1764 Empty();
1765 1765
1766 Empty.fromJson(core.Map _json) { 1766 Empty.fromJson(core.Map _json) {
1767 } 1767 }
1768 1768
1769 core.Map toJson() { 1769 core.Map<core.String, core.Object> toJson() {
1770 var _json = new core.Map(); 1770 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1771 return _json; 1771 return _json;
1772 } 1772 }
1773 } 1773 }
1774 1774
1775 /** 1775 /**
1776 * Write-only registration parameters for beacons using Eddystone-EID format. 1776 * Write-only registration parameters for beacons using Eddystone-EID format.
1777 * Two ways of securely registering an Eddystone-EID beacon with the service 1777 * Two ways of securely registering an Eddystone-EID beacon with the service
1778 * are supported: 1778 * are supported:
1779 * 1779 *
1780 * 1. Perform an ECDH key exchange via this API, including a previous call 1780 * 1. Perform an ECDH key exchange via this API, including a previous call
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
1887 initialEid = _json["initialEid"]; 1887 initialEid = _json["initialEid"];
1888 } 1888 }
1889 if (_json.containsKey("rotationPeriodExponent")) { 1889 if (_json.containsKey("rotationPeriodExponent")) {
1890 rotationPeriodExponent = _json["rotationPeriodExponent"]; 1890 rotationPeriodExponent = _json["rotationPeriodExponent"];
1891 } 1891 }
1892 if (_json.containsKey("serviceEcdhPublicKey")) { 1892 if (_json.containsKey("serviceEcdhPublicKey")) {
1893 serviceEcdhPublicKey = _json["serviceEcdhPublicKey"]; 1893 serviceEcdhPublicKey = _json["serviceEcdhPublicKey"];
1894 } 1894 }
1895 } 1895 }
1896 1896
1897 core.Map toJson() { 1897 core.Map<core.String, core.Object> toJson() {
1898 var _json = new core.Map(); 1898 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1899 if (beaconEcdhPublicKey != null) { 1899 if (beaconEcdhPublicKey != null) {
1900 _json["beaconEcdhPublicKey"] = beaconEcdhPublicKey; 1900 _json["beaconEcdhPublicKey"] = beaconEcdhPublicKey;
1901 } 1901 }
1902 if (beaconIdentityKey != null) { 1902 if (beaconIdentityKey != null) {
1903 _json["beaconIdentityKey"] = beaconIdentityKey; 1903 _json["beaconIdentityKey"] = beaconIdentityKey;
1904 } 1904 }
1905 if (initialClockValue != null) { 1905 if (initialClockValue != null) {
1906 _json["initialClockValue"] = initialClockValue; 1906 _json["initialClockValue"] = initialClockValue;
1907 } 1907 }
1908 if (initialEid != null) { 1908 if (initialEid != null) {
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
1957 maxRotationPeriodExponent = _json["maxRotationPeriodExponent"]; 1957 maxRotationPeriodExponent = _json["maxRotationPeriodExponent"];
1958 } 1958 }
1959 if (_json.containsKey("minRotationPeriodExponent")) { 1959 if (_json.containsKey("minRotationPeriodExponent")) {
1960 minRotationPeriodExponent = _json["minRotationPeriodExponent"]; 1960 minRotationPeriodExponent = _json["minRotationPeriodExponent"];
1961 } 1961 }
1962 if (_json.containsKey("serviceEcdhPublicKey")) { 1962 if (_json.containsKey("serviceEcdhPublicKey")) {
1963 serviceEcdhPublicKey = _json["serviceEcdhPublicKey"]; 1963 serviceEcdhPublicKey = _json["serviceEcdhPublicKey"];
1964 } 1964 }
1965 } 1965 }
1966 1966
1967 core.Map toJson() { 1967 core.Map<core.String, core.Object> toJson() {
1968 var _json = new core.Map(); 1968 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
1969 if (maxRotationPeriodExponent != null) { 1969 if (maxRotationPeriodExponent != null) {
1970 _json["maxRotationPeriodExponent"] = maxRotationPeriodExponent; 1970 _json["maxRotationPeriodExponent"] = maxRotationPeriodExponent;
1971 } 1971 }
1972 if (minRotationPeriodExponent != null) { 1972 if (minRotationPeriodExponent != null) {
1973 _json["minRotationPeriodExponent"] = minRotationPeriodExponent; 1973 _json["minRotationPeriodExponent"] = minRotationPeriodExponent;
1974 } 1974 }
1975 if (serviceEcdhPublicKey != null) { 1975 if (serviceEcdhPublicKey != null) {
1976 _json["serviceEcdhPublicKey"] = serviceEcdhPublicKey; 1976 _json["serviceEcdhPublicKey"] = serviceEcdhPublicKey;
1977 } 1977 }
1978 return _json; 1978 return _json;
(...skipping 24 matching lines...) Expand all
2003 2003
2004 GetInfoForObservedBeaconsRequest.fromJson(core.Map _json) { 2004 GetInfoForObservedBeaconsRequest.fromJson(core.Map _json) {
2005 if (_json.containsKey("namespacedTypes")) { 2005 if (_json.containsKey("namespacedTypes")) {
2006 namespacedTypes = _json["namespacedTypes"]; 2006 namespacedTypes = _json["namespacedTypes"];
2007 } 2007 }
2008 if (_json.containsKey("observations")) { 2008 if (_json.containsKey("observations")) {
2009 observations = _json["observations"].map((value) => new Observation.fromJs on(value)).toList(); 2009 observations = _json["observations"].map((value) => new Observation.fromJs on(value)).toList();
2010 } 2010 }
2011 } 2011 }
2012 2012
2013 core.Map toJson() { 2013 core.Map<core.String, core.Object> toJson() {
2014 var _json = new core.Map(); 2014 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2015 if (namespacedTypes != null) { 2015 if (namespacedTypes != null) {
2016 _json["namespacedTypes"] = namespacedTypes; 2016 _json["namespacedTypes"] = namespacedTypes;
2017 } 2017 }
2018 if (observations != null) { 2018 if (observations != null) {
2019 _json["observations"] = observations.map((value) => (value).toJson()).toLi st(); 2019 _json["observations"] = observations.map((value) => (value).toJson()).toLi st();
2020 } 2020 }
2021 return _json; 2021 return _json;
2022 } 2022 }
2023 } 2023 }
2024 2024
2025 /** 2025 /**
2026 * Information about the requested beacons, optionally including attachment 2026 * Information about the requested beacons, optionally including attachment
2027 * data. 2027 * data.
2028 */ 2028 */
2029 class GetInfoForObservedBeaconsResponse { 2029 class GetInfoForObservedBeaconsResponse {
2030 /** 2030 /**
2031 * Public information about beacons. 2031 * Public information about beacons.
2032 * May be empty if the request matched no beacons. 2032 * May be empty if the request matched no beacons.
2033 */ 2033 */
2034 core.List<BeaconInfo> beacons; 2034 core.List<BeaconInfo> beacons;
2035 2035
2036 GetInfoForObservedBeaconsResponse(); 2036 GetInfoForObservedBeaconsResponse();
2037 2037
2038 GetInfoForObservedBeaconsResponse.fromJson(core.Map _json) { 2038 GetInfoForObservedBeaconsResponse.fromJson(core.Map _json) {
2039 if (_json.containsKey("beacons")) { 2039 if (_json.containsKey("beacons")) {
2040 beacons = _json["beacons"].map((value) => new BeaconInfo.fromJson(value)). toList(); 2040 beacons = _json["beacons"].map((value) => new BeaconInfo.fromJson(value)). toList();
2041 } 2041 }
2042 } 2042 }
2043 2043
2044 core.Map toJson() { 2044 core.Map<core.String, core.Object> toJson() {
2045 var _json = new core.Map(); 2045 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2046 if (beacons != null) { 2046 if (beacons != null) {
2047 _json["beacons"] = beacons.map((value) => (value).toJson()).toList(); 2047 _json["beacons"] = beacons.map((value) => (value).toJson()).toList();
2048 } 2048 }
2049 return _json; 2049 return _json;
2050 } 2050 }
2051 } 2051 }
2052 2052
2053 /** 2053 /**
2054 * Indoor level, a human-readable string as returned by Google Maps APIs, 2054 * Indoor level, a human-readable string as returned by Google Maps APIs,
2055 * useful to indicate which floor of a building a beacon is located on. 2055 * useful to indicate which floor of a building a beacon is located on.
2056 */ 2056 */
2057 class IndoorLevel { 2057 class IndoorLevel {
2058 /** The name of this level. */ 2058 /** The name of this level. */
2059 core.String name; 2059 core.String name;
2060 2060
2061 IndoorLevel(); 2061 IndoorLevel();
2062 2062
2063 IndoorLevel.fromJson(core.Map _json) { 2063 IndoorLevel.fromJson(core.Map _json) {
2064 if (_json.containsKey("name")) { 2064 if (_json.containsKey("name")) {
2065 name = _json["name"]; 2065 name = _json["name"];
2066 } 2066 }
2067 } 2067 }
2068 2068
2069 core.Map toJson() { 2069 core.Map<core.String, core.Object> toJson() {
2070 var _json = new core.Map(); 2070 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2071 if (name != null) { 2071 if (name != null) {
2072 _json["name"] = name; 2072 _json["name"] = name;
2073 } 2073 }
2074 return _json; 2074 return _json;
2075 } 2075 }
2076 } 2076 }
2077 2077
2078 /** 2078 /**
2079 * An object representing a latitude/longitude pair. This is expressed as a pair 2079 * An object representing a latitude/longitude pair. This is expressed as a pair
2080 * of doubles representing degrees latitude and degrees longitude. Unless 2080 * of doubles representing degrees latitude and degrees longitude. Unless
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
2126 2126
2127 LatLng.fromJson(core.Map _json) { 2127 LatLng.fromJson(core.Map _json) {
2128 if (_json.containsKey("latitude")) { 2128 if (_json.containsKey("latitude")) {
2129 latitude = _json["latitude"]; 2129 latitude = _json["latitude"];
2130 } 2130 }
2131 if (_json.containsKey("longitude")) { 2131 if (_json.containsKey("longitude")) {
2132 longitude = _json["longitude"]; 2132 longitude = _json["longitude"];
2133 } 2133 }
2134 } 2134 }
2135 2135
2136 core.Map toJson() { 2136 core.Map<core.String, core.Object> toJson() {
2137 var _json = new core.Map(); 2137 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2138 if (latitude != null) { 2138 if (latitude != null) {
2139 _json["latitude"] = latitude; 2139 _json["latitude"] = latitude;
2140 } 2140 }
2141 if (longitude != null) { 2141 if (longitude != null) {
2142 _json["longitude"] = longitude; 2142 _json["longitude"] = longitude;
2143 } 2143 }
2144 return _json; 2144 return _json;
2145 } 2145 }
2146 } 2146 }
2147 2147
2148 /** 2148 /**
2149 * Response to `ListBeaconAttachments` that contains the requested attachments. 2149 * Response to `ListBeaconAttachments` that contains the requested attachments.
2150 */ 2150 */
2151 class ListBeaconAttachmentsResponse { 2151 class ListBeaconAttachmentsResponse {
2152 /** The attachments that corresponded to the request params. */ 2152 /** The attachments that corresponded to the request params. */
2153 core.List<BeaconAttachment> attachments; 2153 core.List<BeaconAttachment> attachments;
2154 2154
2155 ListBeaconAttachmentsResponse(); 2155 ListBeaconAttachmentsResponse();
2156 2156
2157 ListBeaconAttachmentsResponse.fromJson(core.Map _json) { 2157 ListBeaconAttachmentsResponse.fromJson(core.Map _json) {
2158 if (_json.containsKey("attachments")) { 2158 if (_json.containsKey("attachments")) {
2159 attachments = _json["attachments"].map((value) => new BeaconAttachment.fro mJson(value)).toList(); 2159 attachments = _json["attachments"].map((value) => new BeaconAttachment.fro mJson(value)).toList();
2160 } 2160 }
2161 } 2161 }
2162 2162
2163 core.Map toJson() { 2163 core.Map<core.String, core.Object> toJson() {
2164 var _json = new core.Map(); 2164 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2165 if (attachments != null) { 2165 if (attachments != null) {
2166 _json["attachments"] = attachments.map((value) => (value).toJson()).toList (); 2166 _json["attachments"] = attachments.map((value) => (value).toJson()).toList ();
2167 } 2167 }
2168 return _json; 2168 return _json;
2169 } 2169 }
2170 } 2170 }
2171 2171
2172 /** Response that contains list beacon results and pagination help. */ 2172 /** Response that contains list beacon results and pagination help. */
2173 class ListBeaconsResponse { 2173 class ListBeaconsResponse {
2174 /** The beacons that matched the search criteria. */ 2174 /** The beacons that matched the search criteria. */
(...skipping 16 matching lines...) Expand all
2191 beacons = _json["beacons"].map((value) => new Beacon.fromJson(value)).toLi st(); 2191 beacons = _json["beacons"].map((value) => new Beacon.fromJson(value)).toLi st();
2192 } 2192 }
2193 if (_json.containsKey("nextPageToken")) { 2193 if (_json.containsKey("nextPageToken")) {
2194 nextPageToken = _json["nextPageToken"]; 2194 nextPageToken = _json["nextPageToken"];
2195 } 2195 }
2196 if (_json.containsKey("totalCount")) { 2196 if (_json.containsKey("totalCount")) {
2197 totalCount = _json["totalCount"]; 2197 totalCount = _json["totalCount"];
2198 } 2198 }
2199 } 2199 }
2200 2200
2201 core.Map toJson() { 2201 core.Map<core.String, core.Object> toJson() {
2202 var _json = new core.Map(); 2202 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2203 if (beacons != null) { 2203 if (beacons != null) {
2204 _json["beacons"] = beacons.map((value) => (value).toJson()).toList(); 2204 _json["beacons"] = beacons.map((value) => (value).toJson()).toList();
2205 } 2205 }
2206 if (nextPageToken != null) { 2206 if (nextPageToken != null) {
2207 _json["nextPageToken"] = nextPageToken; 2207 _json["nextPageToken"] = nextPageToken;
2208 } 2208 }
2209 if (totalCount != null) { 2209 if (totalCount != null) {
2210 _json["totalCount"] = totalCount; 2210 _json["totalCount"] = totalCount;
2211 } 2211 }
2212 return _json; 2212 return _json;
(...skipping 14 matching lines...) Expand all
2227 2227
2228 ListDiagnosticsResponse.fromJson(core.Map _json) { 2228 ListDiagnosticsResponse.fromJson(core.Map _json) {
2229 if (_json.containsKey("diagnostics")) { 2229 if (_json.containsKey("diagnostics")) {
2230 diagnostics = _json["diagnostics"].map((value) => new Diagnostics.fromJson (value)).toList(); 2230 diagnostics = _json["diagnostics"].map((value) => new Diagnostics.fromJson (value)).toList();
2231 } 2231 }
2232 if (_json.containsKey("nextPageToken")) { 2232 if (_json.containsKey("nextPageToken")) {
2233 nextPageToken = _json["nextPageToken"]; 2233 nextPageToken = _json["nextPageToken"];
2234 } 2234 }
2235 } 2235 }
2236 2236
2237 core.Map toJson() { 2237 core.Map<core.String, core.Object> toJson() {
2238 var _json = new core.Map(); 2238 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2239 if (diagnostics != null) { 2239 if (diagnostics != null) {
2240 _json["diagnostics"] = diagnostics.map((value) => (value).toJson()).toList (); 2240 _json["diagnostics"] = diagnostics.map((value) => (value).toJson()).toList ();
2241 } 2241 }
2242 if (nextPageToken != null) { 2242 if (nextPageToken != null) {
2243 _json["nextPageToken"] = nextPageToken; 2243 _json["nextPageToken"] = nextPageToken;
2244 } 2244 }
2245 return _json; 2245 return _json;
2246 } 2246 }
2247 } 2247 }
2248 2248
2249 /** 2249 /**
2250 * Response to ListNamespacesRequest that contains all the project's namespaces. 2250 * Response to ListNamespacesRequest that contains all the project's namespaces.
2251 */ 2251 */
2252 class ListNamespacesResponse { 2252 class ListNamespacesResponse {
2253 /** The attachments that corresponded to the request params. */ 2253 /** The attachments that corresponded to the request params. */
2254 core.List<Namespace> namespaces; 2254 core.List<Namespace> namespaces;
2255 2255
2256 ListNamespacesResponse(); 2256 ListNamespacesResponse();
2257 2257
2258 ListNamespacesResponse.fromJson(core.Map _json) { 2258 ListNamespacesResponse.fromJson(core.Map _json) {
2259 if (_json.containsKey("namespaces")) { 2259 if (_json.containsKey("namespaces")) {
2260 namespaces = _json["namespaces"].map((value) => new Namespace.fromJson(val ue)).toList(); 2260 namespaces = _json["namespaces"].map((value) => new Namespace.fromJson(val ue)).toList();
2261 } 2261 }
2262 } 2262 }
2263 2263
2264 core.Map toJson() { 2264 core.Map<core.String, core.Object> toJson() {
2265 var _json = new core.Map(); 2265 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2266 if (namespaces != null) { 2266 if (namespaces != null) {
2267 _json["namespaces"] = namespaces.map((value) => (value).toJson()).toList() ; 2267 _json["namespaces"] = namespaces.map((value) => (value).toJson()).toList() ;
2268 } 2268 }
2269 return _json; 2269 return _json;
2270 } 2270 }
2271 } 2271 }
2272 2272
2273 /** 2273 /**
2274 * An attachment namespace defines read and write access for all the attachments 2274 * An attachment namespace defines read and write access for all the attachments
2275 * created under it. Each namespace is globally unique, and owned by one 2275 * created under it. Each namespace is globally unique, and owned by one
(...skipping 19 matching lines...) Expand all
2295 2295
2296 Namespace.fromJson(core.Map _json) { 2296 Namespace.fromJson(core.Map _json) {
2297 if (_json.containsKey("namespaceName")) { 2297 if (_json.containsKey("namespaceName")) {
2298 namespaceName = _json["namespaceName"]; 2298 namespaceName = _json["namespaceName"];
2299 } 2299 }
2300 if (_json.containsKey("servingVisibility")) { 2300 if (_json.containsKey("servingVisibility")) {
2301 servingVisibility = _json["servingVisibility"]; 2301 servingVisibility = _json["servingVisibility"];
2302 } 2302 }
2303 } 2303 }
2304 2304
2305 core.Map toJson() { 2305 core.Map<core.String, core.Object> toJson() {
2306 var _json = new core.Map(); 2306 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2307 if (namespaceName != null) { 2307 if (namespaceName != null) {
2308 _json["namespaceName"] = namespaceName; 2308 _json["namespaceName"] = namespaceName;
2309 } 2309 }
2310 if (servingVisibility != null) { 2310 if (servingVisibility != null) {
2311 _json["servingVisibility"] = servingVisibility; 2311 _json["servingVisibility"] = servingVisibility;
2312 } 2312 }
2313 return _json; 2313 return _json;
2314 } 2314 }
2315 } 2315 }
2316 2316
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
2348 advertisedId = new AdvertisedId.fromJson(_json["advertisedId"]); 2348 advertisedId = new AdvertisedId.fromJson(_json["advertisedId"]);
2349 } 2349 }
2350 if (_json.containsKey("telemetry")) { 2350 if (_json.containsKey("telemetry")) {
2351 telemetry = _json["telemetry"]; 2351 telemetry = _json["telemetry"];
2352 } 2352 }
2353 if (_json.containsKey("timestampMs")) { 2353 if (_json.containsKey("timestampMs")) {
2354 timestampMs = _json["timestampMs"]; 2354 timestampMs = _json["timestampMs"];
2355 } 2355 }
2356 } 2356 }
2357 2357
2358 core.Map toJson() { 2358 core.Map<core.String, core.Object> toJson() {
2359 var _json = new core.Map(); 2359 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>();
2360 if (advertisedId != null) { 2360 if (advertisedId != null) {
2361 _json["advertisedId"] = (advertisedId).toJson(); 2361 _json["advertisedId"] = (advertisedId).toJson();
2362 } 2362 }
2363 if (telemetry != null) { 2363 if (telemetry != null) {
2364 _json["telemetry"] = telemetry; 2364 _json["telemetry"] = telemetry;
2365 } 2365 }
2366 if (timestampMs != null) { 2366 if (timestampMs != null) {
2367 _json["timestampMs"] = timestampMs; 2367 _json["timestampMs"] = timestampMs;
2368 } 2368 }
2369 return _json; 2369 return _json;
2370 } 2370 }
2371 } 2371 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/logging/v2beta1.dart ('k') | generated/googleapis_beta/lib/pubsub/v1beta2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698