Api-roll 61: 2018-02-18 (#33)
diff --git a/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart b/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart index d2cf8e4..6317f72 100644 --- a/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart +++ b/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart
@@ -94,14 +94,14 @@ buildCounterClaimDeviceResponse--; } -buildUnnamed31() { +buildUnnamed1310() { var o = new core.List<api.PartnerClaim>(); o.add(buildPartnerClaim()); o.add(buildPartnerClaim()); return o; } -checkUnnamed31(core.List<api.PartnerClaim> o) { +checkUnnamed1310(core.List<api.PartnerClaim> o) { unittest.expect(o, unittest.hasLength(2)); checkPartnerClaim(o[0]); checkPartnerClaim(o[1]); @@ -112,7 +112,7 @@ var o = new api.ClaimDevicesRequest(); buildCounterClaimDevicesRequest++; if (buildCounterClaimDevicesRequest < 3) { - o.claims = buildUnnamed31(); + o.claims = buildUnnamed1310(); } buildCounterClaimDevicesRequest--; return o; @@ -121,32 +121,32 @@ checkClaimDevicesRequest(api.ClaimDevicesRequest o) { buildCounterClaimDevicesRequest++; if (buildCounterClaimDevicesRequest < 3) { - checkUnnamed31(o.claims); + checkUnnamed1310(o.claims); } buildCounterClaimDevicesRequest--; } -buildUnnamed32() { +buildUnnamed1311() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed32(core.List<core.String> o) { +checkUnnamed1311(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')); } -buildUnnamed33() { +buildUnnamed1312() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed33(core.List<core.String> o) { +checkUnnamed1312(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')); @@ -157,11 +157,11 @@ var o = new api.Company(); buildCounterCompany++; if (buildCounterCompany < 3) { - o.adminEmails = buildUnnamed32(); + o.adminEmails = buildUnnamed1311(); o.companyId = "foo"; o.companyName = "foo"; o.name = "foo"; - o.ownerEmails = buildUnnamed33(); + o.ownerEmails = buildUnnamed1312(); } buildCounterCompany--; return o; @@ -170,11 +170,11 @@ checkCompany(api.Company o) { buildCounterCompany++; if (buildCounterCompany < 3) { - checkUnnamed32(o.adminEmails); + checkUnnamed1311(o.adminEmails); unittest.expect(o.companyId, unittest.equals('foo')); unittest.expect(o.companyName, unittest.equals('foo')); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed33(o.ownerEmails); + checkUnnamed1312(o.ownerEmails); } buildCounterCompany--; } @@ -257,14 +257,14 @@ buildCounterCustomerApplyConfigurationRequest--; } -buildUnnamed34() { +buildUnnamed1313() { var o = new core.List<api.Configuration>(); o.add(buildConfiguration()); o.add(buildConfiguration()); return o; } -checkUnnamed34(core.List<api.Configuration> o) { +checkUnnamed1313(core.List<api.Configuration> o) { unittest.expect(o, unittest.hasLength(2)); checkConfiguration(o[0]); checkConfiguration(o[1]); @@ -275,7 +275,7 @@ var o = new api.CustomerListConfigurationsResponse(); buildCounterCustomerListConfigurationsResponse++; if (buildCounterCustomerListConfigurationsResponse < 3) { - o.configurations = buildUnnamed34(); + o.configurations = buildUnnamed1313(); } buildCounterCustomerListConfigurationsResponse--; return o; @@ -285,19 +285,19 @@ api.CustomerListConfigurationsResponse o) { buildCounterCustomerListConfigurationsResponse++; if (buildCounterCustomerListConfigurationsResponse < 3) { - checkUnnamed34(o.configurations); + checkUnnamed1313(o.configurations); } buildCounterCustomerListConfigurationsResponse--; } -buildUnnamed35() { +buildUnnamed1314() { var o = new core.List<api.Company>(); o.add(buildCompany()); o.add(buildCompany()); return o; } -checkUnnamed35(core.List<api.Company> o) { +checkUnnamed1314(core.List<api.Company> o) { unittest.expect(o, unittest.hasLength(2)); checkCompany(o[0]); checkCompany(o[1]); @@ -308,7 +308,7 @@ var o = new api.CustomerListCustomersResponse(); buildCounterCustomerListCustomersResponse++; if (buildCounterCustomerListCustomersResponse < 3) { - o.customers = buildUnnamed35(); + o.customers = buildUnnamed1314(); o.nextPageToken = "foo"; } buildCounterCustomerListCustomersResponse--; @@ -318,20 +318,20 @@ checkCustomerListCustomersResponse(api.CustomerListCustomersResponse o) { buildCounterCustomerListCustomersResponse++; if (buildCounterCustomerListCustomersResponse < 3) { - checkUnnamed35(o.customers); + checkUnnamed1314(o.customers); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomerListCustomersResponse--; } -buildUnnamed36() { +buildUnnamed1315() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed36(core.List<api.Device> o) { +checkUnnamed1315(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -342,7 +342,7 @@ var o = new api.CustomerListDevicesResponse(); buildCounterCustomerListDevicesResponse++; if (buildCounterCustomerListDevicesResponse < 3) { - o.devices = buildUnnamed36(); + o.devices = buildUnnamed1315(); o.nextPageToken = "foo"; } buildCounterCustomerListDevicesResponse--; @@ -352,20 +352,20 @@ checkCustomerListDevicesResponse(api.CustomerListDevicesResponse o) { buildCounterCustomerListDevicesResponse++; if (buildCounterCustomerListDevicesResponse < 3) { - checkUnnamed36(o.devices); + checkUnnamed1315(o.devices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterCustomerListDevicesResponse--; } -buildUnnamed37() { +buildUnnamed1316() { var o = new core.List<api.Dpc>(); o.add(buildDpc()); o.add(buildDpc()); return o; } -checkUnnamed37(core.List<api.Dpc> o) { +checkUnnamed1316(core.List<api.Dpc> o) { unittest.expect(o, unittest.hasLength(2)); checkDpc(o[0]); checkDpc(o[1]); @@ -376,7 +376,7 @@ var o = new api.CustomerListDpcsResponse(); buildCounterCustomerListDpcsResponse++; if (buildCounterCustomerListDpcsResponse < 3) { - o.dpcs = buildUnnamed37(); + o.dpcs = buildUnnamed1316(); } buildCounterCustomerListDpcsResponse--; return o; @@ -385,7 +385,7 @@ checkCustomerListDpcsResponse(api.CustomerListDpcsResponse o) { buildCounterCustomerListDpcsResponse++; if (buildCounterCustomerListDpcsResponse < 3) { - checkUnnamed37(o.dpcs); + checkUnnamed1316(o.dpcs); } buildCounterCustomerListDpcsResponse--; } @@ -429,14 +429,14 @@ buildCounterCustomerUnclaimDeviceRequest--; } -buildUnnamed38() { +buildUnnamed1317() { var o = new core.List<api.DeviceClaim>(); o.add(buildDeviceClaim()); o.add(buildDeviceClaim()); return o; } -checkUnnamed38(core.List<api.DeviceClaim> o) { +checkUnnamed1317(core.List<api.DeviceClaim> o) { unittest.expect(o, unittest.hasLength(2)); checkDeviceClaim(o[0]); checkDeviceClaim(o[1]); @@ -447,7 +447,7 @@ var o = new api.Device(); buildCounterDevice++; if (buildCounterDevice < 3) { - o.claims = buildUnnamed38(); + o.claims = buildUnnamed1317(); o.configuration = "foo"; o.deviceId = "foo"; o.deviceIdentifier = buildDeviceIdentifier(); @@ -461,7 +461,7 @@ checkDevice(api.Device o) { buildCounterDevice++; if (buildCounterDevice < 3) { - checkUnnamed38(o.claims); + checkUnnamed1317(o.claims); unittest.expect(o.configuration, unittest.equals('foo')); unittest.expect(o.deviceId, unittest.equals('foo')); checkDeviceIdentifier(o.deviceIdentifier); @@ -517,14 +517,14 @@ buildCounterDeviceIdentifier--; } -buildUnnamed39() { +buildUnnamed1318() { var o = new core.Map<core.String, core.String>(); o["x"] = "foo"; o["y"] = "foo"; return o; } -checkUnnamed39(core.Map<core.String, core.String> o) { +checkUnnamed1318(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')); @@ -535,7 +535,7 @@ var o = new api.DeviceMetadata(); buildCounterDeviceMetadata++; if (buildCounterDeviceMetadata < 3) { - o.entries = buildUnnamed39(); + o.entries = buildUnnamed1318(); } buildCounterDeviceMetadata--; return o; @@ -544,7 +544,7 @@ checkDeviceMetadata(api.DeviceMetadata o) { buildCounterDeviceMetadata++; if (buildCounterDeviceMetadata < 3) { - checkUnnamed39(o.entries); + checkUnnamed1318(o.entries); } buildCounterDeviceMetadata--; } @@ -594,14 +594,14 @@ buildCounterDevicesLongRunningOperationMetadata--; } -buildUnnamed40() { +buildUnnamed1319() { var o = new core.List<api.OperationPerDevice>(); o.add(buildOperationPerDevice()); o.add(buildOperationPerDevice()); return o; } -checkUnnamed40(core.List<api.OperationPerDevice> o) { +checkUnnamed1319(core.List<api.OperationPerDevice> o) { unittest.expect(o, unittest.hasLength(2)); checkOperationPerDevice(o[0]); checkOperationPerDevice(o[1]); @@ -612,7 +612,7 @@ var o = new api.DevicesLongRunningOperationResponse(); buildCounterDevicesLongRunningOperationResponse++; if (buildCounterDevicesLongRunningOperationResponse < 3) { - o.perDeviceStatus = buildUnnamed40(); + o.perDeviceStatus = buildUnnamed1319(); o.successCount = 42; } buildCounterDevicesLongRunningOperationResponse--; @@ -623,7 +623,7 @@ api.DevicesLongRunningOperationResponse o) { buildCounterDevicesLongRunningOperationResponse++; if (buildCounterDevicesLongRunningOperationResponse < 3) { - checkUnnamed40(o.perDeviceStatus); + checkUnnamed1319(o.perDeviceStatus); unittest.expect(o.successCount, unittest.equals(42)); } buildCounterDevicesLongRunningOperationResponse--; @@ -691,14 +691,14 @@ buildCounterFindDevicesByDeviceIdentifierRequest--; } -buildUnnamed41() { +buildUnnamed1320() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed41(core.List<api.Device> o) { +checkUnnamed1320(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -709,7 +709,7 @@ var o = new api.FindDevicesByDeviceIdentifierResponse(); buildCounterFindDevicesByDeviceIdentifierResponse++; if (buildCounterFindDevicesByDeviceIdentifierResponse < 3) { - o.devices = buildUnnamed41(); + o.devices = buildUnnamed1320(); o.nextPageToken = "foo"; } buildCounterFindDevicesByDeviceIdentifierResponse--; @@ -720,20 +720,20 @@ api.FindDevicesByDeviceIdentifierResponse o) { buildCounterFindDevicesByDeviceIdentifierResponse++; if (buildCounterFindDevicesByDeviceIdentifierResponse < 3) { - checkUnnamed41(o.devices); + checkUnnamed1320(o.devices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFindDevicesByDeviceIdentifierResponse--; } -buildUnnamed42() { +buildUnnamed1321() { var o = new core.List<core.String>(); o.add("foo"); o.add("foo"); return o; } -checkUnnamed42(core.List<core.String> o) { +checkUnnamed1321(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')); @@ -744,7 +744,7 @@ var o = new api.FindDevicesByOwnerRequest(); buildCounterFindDevicesByOwnerRequest++; if (buildCounterFindDevicesByOwnerRequest < 3) { - o.customerId = buildUnnamed42(); + o.customerId = buildUnnamed1321(); o.limit = "foo"; o.pageToken = "foo"; o.sectionType = "foo"; @@ -756,7 +756,7 @@ checkFindDevicesByOwnerRequest(api.FindDevicesByOwnerRequest o) { buildCounterFindDevicesByOwnerRequest++; if (buildCounterFindDevicesByOwnerRequest < 3) { - checkUnnamed42(o.customerId); + checkUnnamed1321(o.customerId); unittest.expect(o.limit, unittest.equals('foo')); unittest.expect(o.pageToken, unittest.equals('foo')); unittest.expect(o.sectionType, unittest.equals('foo')); @@ -764,14 +764,14 @@ buildCounterFindDevicesByOwnerRequest--; } -buildUnnamed43() { +buildUnnamed1322() { var o = new core.List<api.Device>(); o.add(buildDevice()); o.add(buildDevice()); return o; } -checkUnnamed43(core.List<api.Device> o) { +checkUnnamed1322(core.List<api.Device> o) { unittest.expect(o, unittest.hasLength(2)); checkDevice(o[0]); checkDevice(o[1]); @@ -782,7 +782,7 @@ var o = new api.FindDevicesByOwnerResponse(); buildCounterFindDevicesByOwnerResponse++; if (buildCounterFindDevicesByOwnerResponse < 3) { - o.devices = buildUnnamed43(); + o.devices = buildUnnamed1322(); o.nextPageToken = "foo"; } buildCounterFindDevicesByOwnerResponse--; @@ -792,20 +792,20 @@ checkFindDevicesByOwnerResponse(api.FindDevicesByOwnerResponse o) { buildCounterFindDevicesByOwnerResponse++; if (buildCounterFindDevicesByOwnerResponse < 3) { - checkUnnamed43(o.devices); + checkUnnamed1322(o.devices); unittest.expect(o.nextPageToken, unittest.equals('foo')); } buildCounterFindDevicesByOwnerResponse--; } -buildUnnamed44() { +buildUnnamed1323() { var o = new core.List<api.Company>(); o.add(buildCompany()); o.add(buildCompany()); return o; } -checkUnnamed44(core.List<api.Company> o) { +checkUnnamed1323(core.List<api.Company> o) { unittest.expect(o, unittest.hasLength(2)); checkCompany(o[0]); checkCompany(o[1]); @@ -816,7 +816,7 @@ var o = new api.ListCustomersResponse(); buildCounterListCustomersResponse++; if (buildCounterListCustomersResponse < 3) { - o.customers = buildUnnamed44(); + o.customers = buildUnnamed1323(); } buildCounterListCustomersResponse--; return o; @@ -825,12 +825,12 @@ checkListCustomersResponse(api.ListCustomersResponse o) { buildCounterListCustomersResponse++; if (buildCounterListCustomersResponse < 3) { - checkUnnamed44(o.customers); + checkUnnamed1323(o.customers); } buildCounterListCustomersResponse--; } -buildUnnamed45() { +buildUnnamed1324() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -845,7 +845,7 @@ return o; } -checkUnnamed45(core.Map<core.String, core.Object> o) { +checkUnnamed1324(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLength(3)); @@ -859,7 +859,7 @@ unittest.expect(casted2["string"], unittest.equals('foo')); } -buildUnnamed46() { +buildUnnamed1325() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -874,7 +874,7 @@ return o; } -checkUnnamed46(core.Map<core.String, core.Object> o) { +checkUnnamed1325(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLength(3)); @@ -895,9 +895,9 @@ if (buildCounterOperation < 3) { o.done = true; o.error = buildStatus(); - o.metadata = buildUnnamed45(); + o.metadata = buildUnnamed1324(); o.name = "foo"; - o.response = buildUnnamed46(); + o.response = buildUnnamed1325(); } buildCounterOperation--; return o; @@ -908,9 +908,9 @@ if (buildCounterOperation < 3) { unittest.expect(o.done, unittest.isTrue); checkStatus(o.error); - checkUnnamed45(o.metadata); + checkUnnamed1324(o.metadata); unittest.expect(o.name, unittest.equals('foo')); - checkUnnamed46(o.response); + checkUnnamed1325(o.response); } buildCounterOperation--; } @@ -1013,7 +1013,7 @@ buildCounterPerDeviceStatusInBatch--; } -buildUnnamed47() { +buildUnnamed1326() { var o = new core.Map<core.String, core.Object>(); o["x"] = { 'list': [1, 2, 3], @@ -1028,7 +1028,7 @@ return o; } -checkUnnamed47(core.Map<core.String, core.Object> o) { +checkUnnamed1326(core.Map<core.String, core.Object> o) { unittest.expect(o, unittest.hasLength(2)); var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLength(3)); @@ -1042,17 +1042,17 @@ unittest.expect(casted6["string"], unittest.equals('foo')); } -buildUnnamed48() { +buildUnnamed1327() { var o = new core.List<core.Map<core.String, core.Object>>(); - o.add(buildUnnamed47()); - o.add(buildUnnamed47()); + o.add(buildUnnamed1326()); + o.add(buildUnnamed1326()); return o; } -checkUnnamed48(core.List<core.Map<core.String, core.Object>> o) { +checkUnnamed1327(core.List<core.Map<core.String, core.Object>> o) { unittest.expect(o, unittest.hasLength(2)); - checkUnnamed47(o[0]); - checkUnnamed47(o[1]); + checkUnnamed1326(o[0]); + checkUnnamed1326(o[1]); } core.int buildCounterStatus = 0; @@ -1061,7 +1061,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { o.code = 42; - o.details = buildUnnamed48(); + o.details = buildUnnamed1327(); o.message = "foo"; } buildCounterStatus--; @@ -1072,7 +1072,7 @@ buildCounterStatus++; if (buildCounterStatus < 3) { unittest.expect(o.code, unittest.equals(42)); - checkUnnamed48(o.details); + checkUnnamed1327(o.details); unittest.expect(o.message, unittest.equals('foo')); } buildCounterStatus--; @@ -1101,14 +1101,14 @@ buildCounterUnclaimDeviceRequest--; } -buildUnnamed49() { +buildUnnamed1328() { var o = new core.List<api.PartnerUnclaim>(); o.add(buildPartnerUnclaim()); o.add(buildPartnerUnclaim()); return o; } -checkUnnamed49(core.List<api.PartnerUnclaim> o) { +checkUnnamed1328(core.List<api.PartnerUnclaim> o) { unittest.expect(o, unittest.hasLength(2)); checkPartnerUnclaim(o[0]); checkPartnerUnclaim(o[1]); @@ -1119,7 +1119,7 @@ var o = new api.UnclaimDevicesRequest(); buildCounterUnclaimDevicesRequest++; if (buildCounterUnclaimDevicesRequest < 3) { - o.unclaims = buildUnnamed49(); + o.unclaims = buildUnnamed1328(); } buildCounterUnclaimDevicesRequest--; return o; @@ -1128,19 +1128,19 @@ checkUnclaimDevicesRequest(api.UnclaimDevicesRequest o) { buildCounterUnclaimDevicesRequest++; if (buildCounterUnclaimDevicesRequest < 3) { - checkUnnamed49(o.unclaims); + checkUnnamed1328(o.unclaims); } buildCounterUnclaimDevicesRequest--; } -buildUnnamed50() { +buildUnnamed1329() { var o = new core.List<api.UpdateMetadataArguments>(); o.add(buildUpdateMetadataArguments()); o.add(buildUpdateMetadataArguments()); return o; } -checkUnnamed50(core.List<api.UpdateMetadataArguments> o) { +checkUnnamed1329(core.List<api.UpdateMetadataArguments> o) { unittest.expect(o, unittest.hasLength(2)); checkUpdateMetadataArguments(o[0]); checkUpdateMetadataArguments(o[1]); @@ -1151,7 +1151,7 @@ var o = new api.UpdateDeviceMetadataInBatchRequest(); buildCounterUpdateDeviceMetadataInBatchRequest++; if (buildCounterUpdateDeviceMetadataInBatchRequest < 3) { - o.updates = buildUnnamed50(); + o.updates = buildUnnamed1329(); } buildCounterUpdateDeviceMetadataInBatchRequest--; return o; @@ -1161,7 +1161,7 @@ api.UpdateDeviceMetadataInBatchRequest o) { buildCounterUpdateDeviceMetadataInBatchRequest++; if (buildCounterUpdateDeviceMetadataInBatchRequest < 3) { - checkUnnamed50(o.updates); + checkUnnamed1329(o.updates); } buildCounterUpdateDeviceMetadataInBatchRequest--; } @@ -1520,8 +1520,8 @@ var mock = new HttpServerMock(); api.CustomersResourceApi res = new api.AndroiddeviceprovisioningApi(mock).customers; - var arg_pageSize = 42; var arg_pageToken = "foo"; + var arg_pageSize = 42; var arg_$fields = "foo"; mock.register(unittest.expectAsync2((http.BaseRequest req, json) { var path = (req.url).path; @@ -1553,10 +1553,10 @@ core.Uri.decodeQueryComponent(keyvalue[1])); } } - unittest.expect(core.int.parse(queryMap["pageSize"].first), - unittest.equals(arg_pageSize)); unittest.expect( queryMap["pageToken"].first, unittest.equals(arg_pageToken)); + unittest.expect(core.int.parse(queryMap["pageSize"].first), + unittest.equals(arg_pageSize)); unittest.expect(queryMap["fields"].first, unittest.equals(arg_$fields)); var h = { @@ -1567,8 +1567,8 @@ }), true); res .list( - pageSize: arg_pageSize, pageToken: arg_pageToken, + pageSize: arg_pageSize, $fields: arg_$fields) .then(unittest .expectAsync1(((api.CustomerListCustomersResponse response) {