Api-roll 64: 2018-08-27
diff --git a/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart b/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart
index ccc309b..ee3159a 100644
--- a/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart
+++ b/generated/googleapis/test/androiddeviceprovisioning/v1_test.dart
@@ -94,14 +94,14 @@
buildCounterClaimDeviceResponse--;
}
-buildUnnamed2626() {
+buildUnnamed1871() {
var o = new core.List<api.PartnerClaim>();
o.add(buildPartnerClaim());
o.add(buildPartnerClaim());
return o;
}
-checkUnnamed2626(core.List<api.PartnerClaim> o) {
+checkUnnamed1871(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 = buildUnnamed2626();
+ o.claims = buildUnnamed1871();
}
buildCounterClaimDevicesRequest--;
return o;
@@ -121,32 +121,32 @@
checkClaimDevicesRequest(api.ClaimDevicesRequest o) {
buildCounterClaimDevicesRequest++;
if (buildCounterClaimDevicesRequest < 3) {
- checkUnnamed2626(o.claims);
+ checkUnnamed1871(o.claims);
}
buildCounterClaimDevicesRequest--;
}
-buildUnnamed2627() {
+buildUnnamed1872() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed2627(core.List<core.String> o) {
+checkUnnamed1872(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'));
}
-buildUnnamed2628() {
+buildUnnamed1873() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed2628(core.List<core.String> o) {
+checkUnnamed1873(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 = buildUnnamed2627();
+ o.adminEmails = buildUnnamed1872();
o.companyId = "foo";
o.companyName = "foo";
o.name = "foo";
- o.ownerEmails = buildUnnamed2628();
+ o.ownerEmails = buildUnnamed1873();
o.termsStatus = "foo";
}
buildCounterCompany--;
@@ -171,11 +171,11 @@
checkCompany(api.Company o) {
buildCounterCompany++;
if (buildCounterCompany < 3) {
- checkUnnamed2627(o.adminEmails);
+ checkUnnamed1872(o.adminEmails);
unittest.expect(o.companyId, unittest.equals('foo'));
unittest.expect(o.companyName, unittest.equals('foo'));
unittest.expect(o.name, unittest.equals('foo'));
- checkUnnamed2628(o.ownerEmails);
+ checkUnnamed1873(o.ownerEmails);
unittest.expect(o.termsStatus, unittest.equals('foo'));
}
buildCounterCompany--;
@@ -259,14 +259,14 @@
buildCounterCustomerApplyConfigurationRequest--;
}
-buildUnnamed2629() {
+buildUnnamed1874() {
var o = new core.List<api.Configuration>();
o.add(buildConfiguration());
o.add(buildConfiguration());
return o;
}
-checkUnnamed2629(core.List<api.Configuration> o) {
+checkUnnamed1874(core.List<api.Configuration> o) {
unittest.expect(o, unittest.hasLength(2));
checkConfiguration(o[0]);
checkConfiguration(o[1]);
@@ -277,7 +277,7 @@
var o = new api.CustomerListConfigurationsResponse();
buildCounterCustomerListConfigurationsResponse++;
if (buildCounterCustomerListConfigurationsResponse < 3) {
- o.configurations = buildUnnamed2629();
+ o.configurations = buildUnnamed1874();
}
buildCounterCustomerListConfigurationsResponse--;
return o;
@@ -287,19 +287,19 @@
api.CustomerListConfigurationsResponse o) {
buildCounterCustomerListConfigurationsResponse++;
if (buildCounterCustomerListConfigurationsResponse < 3) {
- checkUnnamed2629(o.configurations);
+ checkUnnamed1874(o.configurations);
}
buildCounterCustomerListConfigurationsResponse--;
}
-buildUnnamed2630() {
+buildUnnamed1875() {
var o = new core.List<api.Company>();
o.add(buildCompany());
o.add(buildCompany());
return o;
}
-checkUnnamed2630(core.List<api.Company> o) {
+checkUnnamed1875(core.List<api.Company> o) {
unittest.expect(o, unittest.hasLength(2));
checkCompany(o[0]);
checkCompany(o[1]);
@@ -310,7 +310,7 @@
var o = new api.CustomerListCustomersResponse();
buildCounterCustomerListCustomersResponse++;
if (buildCounterCustomerListCustomersResponse < 3) {
- o.customers = buildUnnamed2630();
+ o.customers = buildUnnamed1875();
o.nextPageToken = "foo";
}
buildCounterCustomerListCustomersResponse--;
@@ -320,20 +320,20 @@
checkCustomerListCustomersResponse(api.CustomerListCustomersResponse o) {
buildCounterCustomerListCustomersResponse++;
if (buildCounterCustomerListCustomersResponse < 3) {
- checkUnnamed2630(o.customers);
+ checkUnnamed1875(o.customers);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterCustomerListCustomersResponse--;
}
-buildUnnamed2631() {
+buildUnnamed1876() {
var o = new core.List<api.Device>();
o.add(buildDevice());
o.add(buildDevice());
return o;
}
-checkUnnamed2631(core.List<api.Device> o) {
+checkUnnamed1876(core.List<api.Device> o) {
unittest.expect(o, unittest.hasLength(2));
checkDevice(o[0]);
checkDevice(o[1]);
@@ -344,7 +344,7 @@
var o = new api.CustomerListDevicesResponse();
buildCounterCustomerListDevicesResponse++;
if (buildCounterCustomerListDevicesResponse < 3) {
- o.devices = buildUnnamed2631();
+ o.devices = buildUnnamed1876();
o.nextPageToken = "foo";
}
buildCounterCustomerListDevicesResponse--;
@@ -354,20 +354,20 @@
checkCustomerListDevicesResponse(api.CustomerListDevicesResponse o) {
buildCounterCustomerListDevicesResponse++;
if (buildCounterCustomerListDevicesResponse < 3) {
- checkUnnamed2631(o.devices);
+ checkUnnamed1876(o.devices);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterCustomerListDevicesResponse--;
}
-buildUnnamed2632() {
+buildUnnamed1877() {
var o = new core.List<api.Dpc>();
o.add(buildDpc());
o.add(buildDpc());
return o;
}
-checkUnnamed2632(core.List<api.Dpc> o) {
+checkUnnamed1877(core.List<api.Dpc> o) {
unittest.expect(o, unittest.hasLength(2));
checkDpc(o[0]);
checkDpc(o[1]);
@@ -378,7 +378,7 @@
var o = new api.CustomerListDpcsResponse();
buildCounterCustomerListDpcsResponse++;
if (buildCounterCustomerListDpcsResponse < 3) {
- o.dpcs = buildUnnamed2632();
+ o.dpcs = buildUnnamed1877();
}
buildCounterCustomerListDpcsResponse--;
return o;
@@ -387,7 +387,7 @@
checkCustomerListDpcsResponse(api.CustomerListDpcsResponse o) {
buildCounterCustomerListDpcsResponse++;
if (buildCounterCustomerListDpcsResponse < 3) {
- checkUnnamed2632(o.dpcs);
+ checkUnnamed1877(o.dpcs);
}
buildCounterCustomerListDpcsResponse--;
}
@@ -431,14 +431,14 @@
buildCounterCustomerUnclaimDeviceRequest--;
}
-buildUnnamed2633() {
+buildUnnamed1878() {
var o = new core.List<api.DeviceClaim>();
o.add(buildDeviceClaim());
o.add(buildDeviceClaim());
return o;
}
-checkUnnamed2633(core.List<api.DeviceClaim> o) {
+checkUnnamed1878(core.List<api.DeviceClaim> o) {
unittest.expect(o, unittest.hasLength(2));
checkDeviceClaim(o[0]);
checkDeviceClaim(o[1]);
@@ -449,7 +449,7 @@
var o = new api.Device();
buildCounterDevice++;
if (buildCounterDevice < 3) {
- o.claims = buildUnnamed2633();
+ o.claims = buildUnnamed1878();
o.configuration = "foo";
o.deviceId = "foo";
o.deviceIdentifier = buildDeviceIdentifier();
@@ -463,7 +463,7 @@
checkDevice(api.Device o) {
buildCounterDevice++;
if (buildCounterDevice < 3) {
- checkUnnamed2633(o.claims);
+ checkUnnamed1878(o.claims);
unittest.expect(o.configuration, unittest.equals('foo'));
unittest.expect(o.deviceId, unittest.equals('foo'));
checkDeviceIdentifier(o.deviceIdentifier);
@@ -479,6 +479,7 @@
buildCounterDeviceClaim++;
if (buildCounterDeviceClaim < 3) {
o.ownerCompanyId = "foo";
+ o.resellerId = "foo";
o.sectionType = "foo";
}
buildCounterDeviceClaim--;
@@ -489,6 +490,7 @@
buildCounterDeviceClaim++;
if (buildCounterDeviceClaim < 3) {
unittest.expect(o.ownerCompanyId, unittest.equals('foo'));
+ unittest.expect(o.resellerId, unittest.equals('foo'));
unittest.expect(o.sectionType, unittest.equals('foo'));
}
buildCounterDeviceClaim--;
@@ -502,6 +504,7 @@
o.imei = "foo";
o.manufacturer = "foo";
o.meid = "foo";
+ o.model = "foo";
o.serialNumber = "foo";
}
buildCounterDeviceIdentifier--;
@@ -514,19 +517,20 @@
unittest.expect(o.imei, unittest.equals('foo'));
unittest.expect(o.manufacturer, unittest.equals('foo'));
unittest.expect(o.meid, unittest.equals('foo'));
+ unittest.expect(o.model, unittest.equals('foo'));
unittest.expect(o.serialNumber, unittest.equals('foo'));
}
buildCounterDeviceIdentifier--;
}
-buildUnnamed2634() {
+buildUnnamed1879() {
var o = new core.Map<core.String, core.String>();
o["x"] = "foo";
o["y"] = "foo";
return o;
}
-checkUnnamed2634(core.Map<core.String, core.String> o) {
+checkUnnamed1879(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'));
@@ -537,7 +541,7 @@
var o = new api.DeviceMetadata();
buildCounterDeviceMetadata++;
if (buildCounterDeviceMetadata < 3) {
- o.entries = buildUnnamed2634();
+ o.entries = buildUnnamed1879();
}
buildCounterDeviceMetadata--;
return o;
@@ -546,7 +550,7 @@
checkDeviceMetadata(api.DeviceMetadata o) {
buildCounterDeviceMetadata++;
if (buildCounterDeviceMetadata < 3) {
- checkUnnamed2634(o.entries);
+ checkUnnamed1879(o.entries);
}
buildCounterDeviceMetadata--;
}
@@ -596,14 +600,14 @@
buildCounterDevicesLongRunningOperationMetadata--;
}
-buildUnnamed2635() {
+buildUnnamed1880() {
var o = new core.List<api.OperationPerDevice>();
o.add(buildOperationPerDevice());
o.add(buildOperationPerDevice());
return o;
}
-checkUnnamed2635(core.List<api.OperationPerDevice> o) {
+checkUnnamed1880(core.List<api.OperationPerDevice> o) {
unittest.expect(o, unittest.hasLength(2));
checkOperationPerDevice(o[0]);
checkOperationPerDevice(o[1]);
@@ -614,7 +618,7 @@
var o = new api.DevicesLongRunningOperationResponse();
buildCounterDevicesLongRunningOperationResponse++;
if (buildCounterDevicesLongRunningOperationResponse < 3) {
- o.perDeviceStatus = buildUnnamed2635();
+ o.perDeviceStatus = buildUnnamed1880();
o.successCount = 42;
}
buildCounterDevicesLongRunningOperationResponse--;
@@ -625,7 +629,7 @@
api.DevicesLongRunningOperationResponse o) {
buildCounterDevicesLongRunningOperationResponse++;
if (buildCounterDevicesLongRunningOperationResponse < 3) {
- checkUnnamed2635(o.perDeviceStatus);
+ checkUnnamed1880(o.perDeviceStatus);
unittest.expect(o.successCount, unittest.equals(42));
}
buildCounterDevicesLongRunningOperationResponse--;
@@ -693,14 +697,14 @@
buildCounterFindDevicesByDeviceIdentifierRequest--;
}
-buildUnnamed2636() {
+buildUnnamed1881() {
var o = new core.List<api.Device>();
o.add(buildDevice());
o.add(buildDevice());
return o;
}
-checkUnnamed2636(core.List<api.Device> o) {
+checkUnnamed1881(core.List<api.Device> o) {
unittest.expect(o, unittest.hasLength(2));
checkDevice(o[0]);
checkDevice(o[1]);
@@ -711,7 +715,7 @@
var o = new api.FindDevicesByDeviceIdentifierResponse();
buildCounterFindDevicesByDeviceIdentifierResponse++;
if (buildCounterFindDevicesByDeviceIdentifierResponse < 3) {
- o.devices = buildUnnamed2636();
+ o.devices = buildUnnamed1881();
o.nextPageToken = "foo";
}
buildCounterFindDevicesByDeviceIdentifierResponse--;
@@ -722,20 +726,20 @@
api.FindDevicesByDeviceIdentifierResponse o) {
buildCounterFindDevicesByDeviceIdentifierResponse++;
if (buildCounterFindDevicesByDeviceIdentifierResponse < 3) {
- checkUnnamed2636(o.devices);
+ checkUnnamed1881(o.devices);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterFindDevicesByDeviceIdentifierResponse--;
}
-buildUnnamed2637() {
+buildUnnamed1882() {
var o = new core.List<core.String>();
o.add("foo");
o.add("foo");
return o;
}
-checkUnnamed2637(core.List<core.String> o) {
+checkUnnamed1882(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'));
@@ -746,7 +750,7 @@
var o = new api.FindDevicesByOwnerRequest();
buildCounterFindDevicesByOwnerRequest++;
if (buildCounterFindDevicesByOwnerRequest < 3) {
- o.customerId = buildUnnamed2637();
+ o.customerId = buildUnnamed1882();
o.limit = "foo";
o.pageToken = "foo";
o.sectionType = "foo";
@@ -758,7 +762,7 @@
checkFindDevicesByOwnerRequest(api.FindDevicesByOwnerRequest o) {
buildCounterFindDevicesByOwnerRequest++;
if (buildCounterFindDevicesByOwnerRequest < 3) {
- checkUnnamed2637(o.customerId);
+ checkUnnamed1882(o.customerId);
unittest.expect(o.limit, unittest.equals('foo'));
unittest.expect(o.pageToken, unittest.equals('foo'));
unittest.expect(o.sectionType, unittest.equals('foo'));
@@ -766,14 +770,14 @@
buildCounterFindDevicesByOwnerRequest--;
}
-buildUnnamed2638() {
+buildUnnamed1883() {
var o = new core.List<api.Device>();
o.add(buildDevice());
o.add(buildDevice());
return o;
}
-checkUnnamed2638(core.List<api.Device> o) {
+checkUnnamed1883(core.List<api.Device> o) {
unittest.expect(o, unittest.hasLength(2));
checkDevice(o[0]);
checkDevice(o[1]);
@@ -784,7 +788,7 @@
var o = new api.FindDevicesByOwnerResponse();
buildCounterFindDevicesByOwnerResponse++;
if (buildCounterFindDevicesByOwnerResponse < 3) {
- o.devices = buildUnnamed2638();
+ o.devices = buildUnnamed1883();
o.nextPageToken = "foo";
}
buildCounterFindDevicesByOwnerResponse--;
@@ -794,20 +798,20 @@
checkFindDevicesByOwnerResponse(api.FindDevicesByOwnerResponse o) {
buildCounterFindDevicesByOwnerResponse++;
if (buildCounterFindDevicesByOwnerResponse < 3) {
- checkUnnamed2638(o.devices);
+ checkUnnamed1883(o.devices);
unittest.expect(o.nextPageToken, unittest.equals('foo'));
}
buildCounterFindDevicesByOwnerResponse--;
}
-buildUnnamed2639() {
+buildUnnamed1884() {
var o = new core.List<api.Company>();
o.add(buildCompany());
o.add(buildCompany());
return o;
}
-checkUnnamed2639(core.List<api.Company> o) {
+checkUnnamed1884(core.List<api.Company> o) {
unittest.expect(o, unittest.hasLength(2));
checkCompany(o[0]);
checkCompany(o[1]);
@@ -818,7 +822,7 @@
var o = new api.ListCustomersResponse();
buildCounterListCustomersResponse++;
if (buildCounterListCustomersResponse < 3) {
- o.customers = buildUnnamed2639();
+ o.customers = buildUnnamed1884();
}
buildCounterListCustomersResponse--;
return o;
@@ -827,12 +831,80 @@
checkListCustomersResponse(api.ListCustomersResponse o) {
buildCounterListCustomersResponse++;
if (buildCounterListCustomersResponse < 3) {
- checkUnnamed2639(o.customers);
+ checkUnnamed1884(o.customers);
}
buildCounterListCustomersResponse--;
}
-buildUnnamed2640() {
+buildUnnamed1885() {
+ var o = new core.List<api.Company>();
+ o.add(buildCompany());
+ o.add(buildCompany());
+ return o;
+}
+
+checkUnnamed1885(core.List<api.Company> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkCompany(o[0]);
+ checkCompany(o[1]);
+}
+
+core.int buildCounterListVendorCustomersResponse = 0;
+buildListVendorCustomersResponse() {
+ var o = new api.ListVendorCustomersResponse();
+ buildCounterListVendorCustomersResponse++;
+ if (buildCounterListVendorCustomersResponse < 3) {
+ o.customers = buildUnnamed1885();
+ o.nextPageToken = "foo";
+ }
+ buildCounterListVendorCustomersResponse--;
+ return o;
+}
+
+checkListVendorCustomersResponse(api.ListVendorCustomersResponse o) {
+ buildCounterListVendorCustomersResponse++;
+ if (buildCounterListVendorCustomersResponse < 3) {
+ checkUnnamed1885(o.customers);
+ unittest.expect(o.nextPageToken, unittest.equals('foo'));
+ }
+ buildCounterListVendorCustomersResponse--;
+}
+
+buildUnnamed1886() {
+ var o = new core.List<api.Company>();
+ o.add(buildCompany());
+ o.add(buildCompany());
+ return o;
+}
+
+checkUnnamed1886(core.List<api.Company> o) {
+ unittest.expect(o, unittest.hasLength(2));
+ checkCompany(o[0]);
+ checkCompany(o[1]);
+}
+
+core.int buildCounterListVendorsResponse = 0;
+buildListVendorsResponse() {
+ var o = new api.ListVendorsResponse();
+ buildCounterListVendorsResponse++;
+ if (buildCounterListVendorsResponse < 3) {
+ o.nextPageToken = "foo";
+ o.vendors = buildUnnamed1886();
+ }
+ buildCounterListVendorsResponse--;
+ return o;
+}
+
+checkListVendorsResponse(api.ListVendorsResponse o) {
+ buildCounterListVendorsResponse++;
+ if (buildCounterListVendorsResponse < 3) {
+ unittest.expect(o.nextPageToken, unittest.equals('foo'));
+ checkUnnamed1886(o.vendors);
+ }
+ buildCounterListVendorsResponse--;
+}
+
+buildUnnamed1887() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -847,7 +919,7 @@
return o;
}
-checkUnnamed2640(core.Map<core.String, core.Object> o) {
+checkUnnamed1887(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));
@@ -861,7 +933,7 @@
unittest.expect(casted2["string"], unittest.equals('foo'));
}
-buildUnnamed2641() {
+buildUnnamed1888() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -876,7 +948,7 @@
return o;
}
-checkUnnamed2641(core.Map<core.String, core.Object> o) {
+checkUnnamed1888(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));
@@ -897,9 +969,9 @@
if (buildCounterOperation < 3) {
o.done = true;
o.error = buildStatus();
- o.metadata = buildUnnamed2640();
+ o.metadata = buildUnnamed1887();
o.name = "foo";
- o.response = buildUnnamed2641();
+ o.response = buildUnnamed1888();
}
buildCounterOperation--;
return o;
@@ -910,9 +982,9 @@
if (buildCounterOperation < 3) {
unittest.expect(o.done, unittest.isTrue);
checkStatus(o.error);
- checkUnnamed2640(o.metadata);
+ checkUnnamed1887(o.metadata);
unittest.expect(o.name, unittest.equals('foo'));
- checkUnnamed2641(o.response);
+ checkUnnamed1888(o.response);
}
buildCounterOperation--;
}
@@ -1015,7 +1087,7 @@
buildCounterPerDeviceStatusInBatch--;
}
-buildUnnamed2642() {
+buildUnnamed1889() {
var o = new core.Map<core.String, core.Object>();
o["x"] = {
'list': [1, 2, 3],
@@ -1030,7 +1102,7 @@
return o;
}
-checkUnnamed2642(core.Map<core.String, core.Object> o) {
+checkUnnamed1889(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));
@@ -1044,17 +1116,17 @@
unittest.expect(casted6["string"], unittest.equals('foo'));
}
-buildUnnamed2643() {
+buildUnnamed1890() {
var o = new core.List<core.Map<core.String, core.Object>>();
- o.add(buildUnnamed2642());
- o.add(buildUnnamed2642());
+ o.add(buildUnnamed1889());
+ o.add(buildUnnamed1889());
return o;
}
-checkUnnamed2643(core.List<core.Map<core.String, core.Object>> o) {
+checkUnnamed1890(core.List<core.Map<core.String, core.Object>> o) {
unittest.expect(o, unittest.hasLength(2));
- checkUnnamed2642(o[0]);
- checkUnnamed2642(o[1]);
+ checkUnnamed1889(o[0]);
+ checkUnnamed1889(o[1]);
}
core.int buildCounterStatus = 0;
@@ -1063,7 +1135,7 @@
buildCounterStatus++;
if (buildCounterStatus < 3) {
o.code = 42;
- o.details = buildUnnamed2643();
+ o.details = buildUnnamed1890();
o.message = "foo";
}
buildCounterStatus--;
@@ -1074,7 +1146,7 @@
buildCounterStatus++;
if (buildCounterStatus < 3) {
unittest.expect(o.code, unittest.equals(42));
- checkUnnamed2643(o.details);
+ checkUnnamed1890(o.details);
unittest.expect(o.message, unittest.equals('foo'));
}
buildCounterStatus--;
@@ -1103,14 +1175,14 @@
buildCounterUnclaimDeviceRequest--;
}
-buildUnnamed2644() {
+buildUnnamed1891() {
var o = new core.List<api.PartnerUnclaim>();
o.add(buildPartnerUnclaim());
o.add(buildPartnerUnclaim());
return o;
}
-checkUnnamed2644(core.List<api.PartnerUnclaim> o) {
+checkUnnamed1891(core.List<api.PartnerUnclaim> o) {
unittest.expect(o, unittest.hasLength(2));
checkPartnerUnclaim(o[0]);
checkPartnerUnclaim(o[1]);
@@ -1121,7 +1193,7 @@
var o = new api.UnclaimDevicesRequest();
buildCounterUnclaimDevicesRequest++;
if (buildCounterUnclaimDevicesRequest < 3) {
- o.unclaims = buildUnnamed2644();
+ o.unclaims = buildUnnamed1891();
}
buildCounterUnclaimDevicesRequest--;
return o;
@@ -1130,19 +1202,19 @@
checkUnclaimDevicesRequest(api.UnclaimDevicesRequest o) {
buildCounterUnclaimDevicesRequest++;
if (buildCounterUnclaimDevicesRequest < 3) {
- checkUnnamed2644(o.unclaims);
+ checkUnnamed1891(o.unclaims);
}
buildCounterUnclaimDevicesRequest--;
}
-buildUnnamed2645() {
+buildUnnamed1892() {
var o = new core.List<api.UpdateMetadataArguments>();
o.add(buildUpdateMetadataArguments());
o.add(buildUpdateMetadataArguments());
return o;
}
-checkUnnamed2645(core.List<api.UpdateMetadataArguments> o) {
+checkUnnamed1892(core.List<api.UpdateMetadataArguments> o) {
unittest.expect(o, unittest.hasLength(2));
checkUpdateMetadataArguments(o[0]);
checkUpdateMetadataArguments(o[1]);
@@ -1153,7 +1225,7 @@
var o = new api.UpdateDeviceMetadataInBatchRequest();
buildCounterUpdateDeviceMetadataInBatchRequest++;
if (buildCounterUpdateDeviceMetadataInBatchRequest < 3) {
- o.updates = buildUnnamed2645();
+ o.updates = buildUnnamed1892();
}
buildCounterUpdateDeviceMetadataInBatchRequest--;
return o;
@@ -1163,7 +1235,7 @@
api.UpdateDeviceMetadataInBatchRequest o) {
buildCounterUpdateDeviceMetadataInBatchRequest++;
if (buildCounterUpdateDeviceMetadataInBatchRequest < 3) {
- checkUnnamed2645(o.updates);
+ checkUnnamed1892(o.updates);
}
buildCounterUpdateDeviceMetadataInBatchRequest--;
}
@@ -1429,6 +1501,22 @@
});
});
+ unittest.group("obj-schema-ListVendorCustomersResponse", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildListVendorCustomersResponse();
+ var od = new api.ListVendorCustomersResponse.fromJson(o.toJson());
+ checkListVendorCustomersResponse(od);
+ });
+ });
+
+ unittest.group("obj-schema-ListVendorsResponse", () {
+ unittest.test("to-json--from-json", () {
+ var o = buildListVendorsResponse();
+ var od = new api.ListVendorsResponse.fromJson(o.toJson());
+ checkListVendorsResponse(od);
+ });
+ });
+
unittest.group("obj-schema-Operation", () {
unittest.test("to-json--from-json", () {
var o = buildOperation();
@@ -2858,4 +2946,130 @@
})));
});
});
+
+ unittest.group("resource-PartnersVendorsResourceApi", () {
+ unittest.test("method--list", () {
+ var mock = new HttpServerMock();
+ api.PartnersVendorsResourceApi res =
+ new api.AndroiddeviceprovisioningApi(mock).partners.vendors;
+ var arg_parent = "foo";
+ 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;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ 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 = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildListVendorsResponse());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .list(arg_parent,
+ pageToken: arg_pageToken,
+ pageSize: arg_pageSize,
+ $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkListVendorsResponse(response);
+ })));
+ });
+ });
+
+ unittest.group("resource-PartnersVendorsCustomersResourceApi", () {
+ unittest.test("method--list", () {
+ var mock = new HttpServerMock();
+ api.PartnersVendorsCustomersResourceApi res =
+ new api.AndroiddeviceprovisioningApi(mock).partners.vendors.customers;
+ var arg_parent = "foo";
+ 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;
+ var pathOffset = 0;
+ var index;
+ var subPart;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
+ pathOffset += 1;
+ unittest.expect(
+ path.substring(pathOffset, pathOffset + 3), unittest.equals("v1/"));
+ pathOffset += 3;
+ // NOTE: We cannot test reserved expansions due to the inability to reverse the operation;
+
+ var query = (req.url).query;
+ var queryOffset = 0;
+ var queryMap = <core.String, core.List<core.String>>{};
+ addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
+ parseBool(n) {
+ if (n == "true") return true;
+ if (n == "false") return false;
+ if (n == null) return null;
+ throw new core.ArgumentError("Invalid boolean: $n");
+ }
+
+ if (query.length > 0) {
+ for (var part in query.split("&")) {
+ var keyvalue = part.split("=");
+ addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]),
+ core.Uri.decodeQueryComponent(keyvalue[1]));
+ }
+ }
+ 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 = {
+ "content-type": "application/json; charset=utf-8",
+ };
+ var resp = convert.json.encode(buildListVendorCustomersResponse());
+ return new async.Future.value(stringResponse(200, h, resp));
+ }), true);
+ res
+ .list(arg_parent,
+ pageToken: arg_pageToken,
+ pageSize: arg_pageSize,
+ $fields: arg_$fields)
+ .then(unittest.expectAsync1(((response) {
+ checkListVendorCustomersResponse(response);
+ })));
+ });
+ });
}