| Index: generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart
|
| diff --git a/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart b/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart
|
| index 0614522bf54b775159e31f0d9f48d619c2292756..c4d708796cd734825ef62b5e6d1ad20847b6a5a7 100644
|
| --- a/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart
|
| +++ b/generated/googleapis_beta/test/proximitybeacon/v1beta1_test.dart
|
| @@ -93,14 +93,14 @@ checkAttachmentInfo(api.AttachmentInfo o) {
|
| buildCounterAttachmentInfo--;
|
| }
|
|
|
| -buildUnnamed3427() {
|
| +buildUnnamed3459() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed3427(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3459(core.Map<core.String, core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o["x"], unittest.equals('foo'));
|
| unittest.expect(o["y"], unittest.equals('foo'));
|
| @@ -119,7 +119,7 @@ buildBeacon() {
|
| o.indoorLevel = buildIndoorLevel();
|
| o.latLng = buildLatLng();
|
| o.placeId = "foo";
|
| - o.properties = buildUnnamed3427();
|
| + o.properties = buildUnnamed3459();
|
| o.provisioningKey = "foo";
|
| o.status = "foo";
|
| }
|
| @@ -138,7 +138,7 @@ checkBeacon(api.Beacon o) {
|
| checkIndoorLevel(o.indoorLevel);
|
| checkLatLng(o.latLng);
|
| unittest.expect(o.placeId, unittest.equals('foo'));
|
| - checkUnnamed3427(o.properties);
|
| + checkUnnamed3459(o.properties);
|
| unittest.expect(o.provisioningKey, unittest.equals('foo'));
|
| unittest.expect(o.status, unittest.equals('foo'));
|
| }
|
| @@ -170,14 +170,14 @@ checkBeaconAttachment(api.BeaconAttachment o) {
|
| buildCounterBeaconAttachment--;
|
| }
|
|
|
| -buildUnnamed3428() {
|
| +buildUnnamed3460() {
|
| var o = new core.List<api.AttachmentInfo>();
|
| o.add(buildAttachmentInfo());
|
| o.add(buildAttachmentInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3428(core.List<api.AttachmentInfo> o) {
|
| +checkUnnamed3460(core.List<api.AttachmentInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAttachmentInfo(o[0]);
|
| checkAttachmentInfo(o[1]);
|
| @@ -189,7 +189,7 @@ buildBeaconInfo() {
|
| buildCounterBeaconInfo++;
|
| if (buildCounterBeaconInfo < 3) {
|
| o.advertisedId = buildAdvertisedId();
|
| - o.attachments = buildUnnamed3428();
|
| + o.attachments = buildUnnamed3460();
|
| o.beaconName = "foo";
|
| }
|
| buildCounterBeaconInfo--;
|
| @@ -200,7 +200,7 @@ checkBeaconInfo(api.BeaconInfo o) {
|
| buildCounterBeaconInfo++;
|
| if (buildCounterBeaconInfo < 3) {
|
| checkAdvertisedId(o.advertisedId);
|
| - checkUnnamed3428(o.attachments);
|
| + checkUnnamed3460(o.attachments);
|
| unittest.expect(o.beaconName, unittest.equals('foo'));
|
| }
|
| buildCounterBeaconInfo--;
|
| @@ -248,14 +248,14 @@ checkDeleteAttachmentsResponse(api.DeleteAttachmentsResponse o) {
|
| buildCounterDeleteAttachmentsResponse--;
|
| }
|
|
|
| -buildUnnamed3429() {
|
| +buildUnnamed3461() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3429(core.List<core.String> o) {
|
| +checkUnnamed3461(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| @@ -266,7 +266,7 @@ buildDiagnostics() {
|
| var o = new api.Diagnostics();
|
| buildCounterDiagnostics++;
|
| if (buildCounterDiagnostics < 3) {
|
| - o.alerts = buildUnnamed3429();
|
| + o.alerts = buildUnnamed3461();
|
| o.beaconName = "foo";
|
| o.estimatedLowBatteryDate = buildDate();
|
| }
|
| @@ -277,7 +277,7 @@ buildDiagnostics() {
|
| checkDiagnostics(api.Diagnostics o) {
|
| buildCounterDiagnostics++;
|
| if (buildCounterDiagnostics < 3) {
|
| - checkUnnamed3429(o.alerts);
|
| + checkUnnamed3461(o.alerts);
|
| unittest.expect(o.beaconName, unittest.equals('foo'));
|
| checkDate(o.estimatedLowBatteryDate);
|
| }
|
| @@ -353,27 +353,27 @@ checkEphemeralIdRegistrationParams(api.EphemeralIdRegistrationParams o) {
|
| buildCounterEphemeralIdRegistrationParams--;
|
| }
|
|
|
| -buildUnnamed3430() {
|
| +buildUnnamed3462() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3430(core.List<core.String> o) {
|
| +checkUnnamed3462(core.List<core.String> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| unittest.expect(o[0], unittest.equals('foo'));
|
| unittest.expect(o[1], unittest.equals('foo'));
|
| }
|
|
|
| -buildUnnamed3431() {
|
| +buildUnnamed3463() {
|
| var o = new core.List<api.Observation>();
|
| o.add(buildObservation());
|
| o.add(buildObservation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3431(core.List<api.Observation> o) {
|
| +checkUnnamed3463(core.List<api.Observation> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkObservation(o[0]);
|
| checkObservation(o[1]);
|
| @@ -384,8 +384,8 @@ buildGetInfoForObservedBeaconsRequest() {
|
| var o = new api.GetInfoForObservedBeaconsRequest();
|
| buildCounterGetInfoForObservedBeaconsRequest++;
|
| if (buildCounterGetInfoForObservedBeaconsRequest < 3) {
|
| - o.namespacedTypes = buildUnnamed3430();
|
| - o.observations = buildUnnamed3431();
|
| + o.namespacedTypes = buildUnnamed3462();
|
| + o.observations = buildUnnamed3463();
|
| }
|
| buildCounterGetInfoForObservedBeaconsRequest--;
|
| return o;
|
| @@ -394,20 +394,20 @@ buildGetInfoForObservedBeaconsRequest() {
|
| checkGetInfoForObservedBeaconsRequest(api.GetInfoForObservedBeaconsRequest o) {
|
| buildCounterGetInfoForObservedBeaconsRequest++;
|
| if (buildCounterGetInfoForObservedBeaconsRequest < 3) {
|
| - checkUnnamed3430(o.namespacedTypes);
|
| - checkUnnamed3431(o.observations);
|
| + checkUnnamed3462(o.namespacedTypes);
|
| + checkUnnamed3463(o.observations);
|
| }
|
| buildCounterGetInfoForObservedBeaconsRequest--;
|
| }
|
|
|
| -buildUnnamed3432() {
|
| +buildUnnamed3464() {
|
| var o = new core.List<api.BeaconInfo>();
|
| o.add(buildBeaconInfo());
|
| o.add(buildBeaconInfo());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3432(core.List<api.BeaconInfo> o) {
|
| +checkUnnamed3464(core.List<api.BeaconInfo> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBeaconInfo(o[0]);
|
| checkBeaconInfo(o[1]);
|
| @@ -418,7 +418,7 @@ buildGetInfoForObservedBeaconsResponse() {
|
| var o = new api.GetInfoForObservedBeaconsResponse();
|
| buildCounterGetInfoForObservedBeaconsResponse++;
|
| if (buildCounterGetInfoForObservedBeaconsResponse < 3) {
|
| - o.beacons = buildUnnamed3432();
|
| + o.beacons = buildUnnamed3464();
|
| }
|
| buildCounterGetInfoForObservedBeaconsResponse--;
|
| return o;
|
| @@ -427,7 +427,7 @@ buildGetInfoForObservedBeaconsResponse() {
|
| checkGetInfoForObservedBeaconsResponse(api.GetInfoForObservedBeaconsResponse o) {
|
| buildCounterGetInfoForObservedBeaconsResponse++;
|
| if (buildCounterGetInfoForObservedBeaconsResponse < 3) {
|
| - checkUnnamed3432(o.beacons);
|
| + checkUnnamed3464(o.beacons);
|
| }
|
| buildCounterGetInfoForObservedBeaconsResponse--;
|
| }
|
| @@ -472,14 +472,14 @@ checkLatLng(api.LatLng o) {
|
| buildCounterLatLng--;
|
| }
|
|
|
| -buildUnnamed3433() {
|
| +buildUnnamed3465() {
|
| var o = new core.List<api.BeaconAttachment>();
|
| o.add(buildBeaconAttachment());
|
| o.add(buildBeaconAttachment());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3433(core.List<api.BeaconAttachment> o) {
|
| +checkUnnamed3465(core.List<api.BeaconAttachment> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBeaconAttachment(o[0]);
|
| checkBeaconAttachment(o[1]);
|
| @@ -490,7 +490,7 @@ buildListBeaconAttachmentsResponse() {
|
| var o = new api.ListBeaconAttachmentsResponse();
|
| buildCounterListBeaconAttachmentsResponse++;
|
| if (buildCounterListBeaconAttachmentsResponse < 3) {
|
| - o.attachments = buildUnnamed3433();
|
| + o.attachments = buildUnnamed3465();
|
| }
|
| buildCounterListBeaconAttachmentsResponse--;
|
| return o;
|
| @@ -499,19 +499,19 @@ buildListBeaconAttachmentsResponse() {
|
| checkListBeaconAttachmentsResponse(api.ListBeaconAttachmentsResponse o) {
|
| buildCounterListBeaconAttachmentsResponse++;
|
| if (buildCounterListBeaconAttachmentsResponse < 3) {
|
| - checkUnnamed3433(o.attachments);
|
| + checkUnnamed3465(o.attachments);
|
| }
|
| buildCounterListBeaconAttachmentsResponse--;
|
| }
|
|
|
| -buildUnnamed3434() {
|
| +buildUnnamed3466() {
|
| var o = new core.List<api.Beacon>();
|
| o.add(buildBeacon());
|
| o.add(buildBeacon());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3434(core.List<api.Beacon> o) {
|
| +checkUnnamed3466(core.List<api.Beacon> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBeacon(o[0]);
|
| checkBeacon(o[1]);
|
| @@ -522,7 +522,7 @@ buildListBeaconsResponse() {
|
| var o = new api.ListBeaconsResponse();
|
| buildCounterListBeaconsResponse++;
|
| if (buildCounterListBeaconsResponse < 3) {
|
| - o.beacons = buildUnnamed3434();
|
| + o.beacons = buildUnnamed3466();
|
| o.nextPageToken = "foo";
|
| o.totalCount = "foo";
|
| }
|
| @@ -533,21 +533,21 @@ buildListBeaconsResponse() {
|
| checkListBeaconsResponse(api.ListBeaconsResponse o) {
|
| buildCounterListBeaconsResponse++;
|
| if (buildCounterListBeaconsResponse < 3) {
|
| - checkUnnamed3434(o.beacons);
|
| + checkUnnamed3466(o.beacons);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalCount, unittest.equals('foo'));
|
| }
|
| buildCounterListBeaconsResponse--;
|
| }
|
|
|
| -buildUnnamed3435() {
|
| +buildUnnamed3467() {
|
| var o = new core.List<api.Diagnostics>();
|
| o.add(buildDiagnostics());
|
| o.add(buildDiagnostics());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3435(core.List<api.Diagnostics> o) {
|
| +checkUnnamed3467(core.List<api.Diagnostics> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkDiagnostics(o[0]);
|
| checkDiagnostics(o[1]);
|
| @@ -558,7 +558,7 @@ buildListDiagnosticsResponse() {
|
| var o = new api.ListDiagnosticsResponse();
|
| buildCounterListDiagnosticsResponse++;
|
| if (buildCounterListDiagnosticsResponse < 3) {
|
| - o.diagnostics = buildUnnamed3435();
|
| + o.diagnostics = buildUnnamed3467();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListDiagnosticsResponse--;
|
| @@ -568,20 +568,20 @@ buildListDiagnosticsResponse() {
|
| checkListDiagnosticsResponse(api.ListDiagnosticsResponse o) {
|
| buildCounterListDiagnosticsResponse++;
|
| if (buildCounterListDiagnosticsResponse < 3) {
|
| - checkUnnamed3435(o.diagnostics);
|
| + checkUnnamed3467(o.diagnostics);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListDiagnosticsResponse--;
|
| }
|
|
|
| -buildUnnamed3436() {
|
| +buildUnnamed3468() {
|
| var o = new core.List<api.Namespace>();
|
| o.add(buildNamespace());
|
| o.add(buildNamespace());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3436(core.List<api.Namespace> o) {
|
| +checkUnnamed3468(core.List<api.Namespace> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkNamespace(o[0]);
|
| checkNamespace(o[1]);
|
| @@ -592,7 +592,7 @@ buildListNamespacesResponse() {
|
| var o = new api.ListNamespacesResponse();
|
| buildCounterListNamespacesResponse++;
|
| if (buildCounterListNamespacesResponse < 3) {
|
| - o.namespaces = buildUnnamed3436();
|
| + o.namespaces = buildUnnamed3468();
|
| }
|
| buildCounterListNamespacesResponse--;
|
| return o;
|
| @@ -601,7 +601,7 @@ buildListNamespacesResponse() {
|
| checkListNamespacesResponse(api.ListNamespacesResponse o) {
|
| buildCounterListNamespacesResponse++;
|
| if (buildCounterListNamespacesResponse < 3) {
|
| - checkUnnamed3436(o.namespaces);
|
| + checkUnnamed3468(o.namespaces);
|
| }
|
| buildCounterListNamespacesResponse--;
|
| }
|
| @@ -1132,10 +1132,10 @@ main() {
|
|
|
| var mock = new HttpServerMock();
|
| api.BeaconsResourceApi res = new api.ProximitybeaconApi(mock).beacons;
|
| + var arg_projectId = "foo";
|
| var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| var arg_q = "foo";
|
| - var arg_projectId = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1162,10 +1162,10 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| + unittest.expect(queryMap["projectId"].first, unittest.equals(arg_projectId));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["q"].first, unittest.equals(arg_q));
|
| - unittest.expect(queryMap["projectId"].first, unittest.equals(arg_projectId));
|
|
|
|
|
| var h = {
|
| @@ -1174,7 +1174,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListBeaconsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(pageToken: arg_pageToken, pageSize: arg_pageSize, q: arg_q, projectId: arg_projectId).then(unittest.expectAsync1(((api.ListBeaconsResponse response) {
|
| + res.list(projectId: arg_projectId, pageToken: arg_pageToken, pageSize: arg_pageSize, q: arg_q).then(unittest.expectAsync1(((api.ListBeaconsResponse response) {
|
| checkListBeaconsResponse(response);
|
| })));
|
| });
|
| @@ -1435,8 +1435,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.BeaconsAttachmentsResourceApi res = new api.ProximitybeaconApi(mock).beacons.attachments;
|
| var arg_beaconName = "foo";
|
| - var arg_namespacedType = "foo";
|
| var arg_projectId = "foo";
|
| + var arg_namespacedType = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1464,8 +1464,8 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["namespacedType"].first, unittest.equals(arg_namespacedType));
|
| unittest.expect(queryMap["projectId"].first, unittest.equals(arg_projectId));
|
| + unittest.expect(queryMap["namespacedType"].first, unittest.equals(arg_namespacedType));
|
|
|
|
|
| var h = {
|
| @@ -1474,7 +1474,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListBeaconAttachmentsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_beaconName, namespacedType: arg_namespacedType, projectId: arg_projectId).then(unittest.expectAsync1(((api.ListBeaconAttachmentsResponse response) {
|
| + res.list(arg_beaconName, projectId: arg_projectId, namespacedType: arg_namespacedType).then(unittest.expectAsync1(((api.ListBeaconAttachmentsResponse response) {
|
| checkListBeaconAttachmentsResponse(response);
|
| })));
|
| });
|
| @@ -1488,10 +1488,10 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.BeaconsDiagnosticsResourceApi res = new api.ProximitybeaconApi(mock).beacons.diagnostics;
|
| var arg_beaconName = "foo";
|
| - var arg_pageToken = "foo";
|
| var arg_alertFilter = "foo";
|
| var arg_pageSize = 42;
|
| var arg_projectId = "foo";
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1519,10 +1519,10 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| unittest.expect(queryMap["alertFilter"].first, unittest.equals(arg_alertFilter));
|
| unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| unittest.expect(queryMap["projectId"].first, unittest.equals(arg_projectId));
|
| + unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| @@ -1531,7 +1531,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListDiagnosticsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_beaconName, pageToken: arg_pageToken, alertFilter: arg_alertFilter, pageSize: arg_pageSize, projectId: arg_projectId).then(unittest.expectAsync1(((api.ListDiagnosticsResponse response) {
|
| + res.list(arg_beaconName, alertFilter: arg_alertFilter, pageSize: arg_pageSize, projectId: arg_projectId, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListDiagnosticsResponse response) {
|
| checkListDiagnosticsResponse(response);
|
| })));
|
| });
|
|
|