| Index: generated/googleapis/test/cloudkms/v1_test.dart
|
| diff --git a/generated/googleapis/test/cloudkms/v1_test.dart b/generated/googleapis/test/cloudkms/v1_test.dart
|
| index f50b74b664e4ab7cf5c22b076f50ee4d4d8821f0..26fbfc08928c2fd3a189115a9fc9788e36655d3f 100644
|
| --- a/generated/googleapis/test/cloudkms/v1_test.dart
|
| +++ b/generated/googleapis/test/cloudkms/v1_test.dart
|
| @@ -51,27 +51,27 @@ http.StreamedResponse stringResponse(
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
|
|
| -buildUnnamed1392() {
|
| +buildUnnamed1370() {
|
| var o = new core.List<api.AuditLogConfig>();
|
| o.add(buildAuditLogConfig());
|
| o.add(buildAuditLogConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1392(core.List<api.AuditLogConfig> o) {
|
| +checkUnnamed1370(core.List<api.AuditLogConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuditLogConfig(o[0]);
|
| checkAuditLogConfig(o[1]);
|
| }
|
|
|
| -buildUnnamed1393() {
|
| +buildUnnamed1371() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1393(core.List<core.String> o) {
|
| +checkUnnamed1371(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'));
|
| @@ -82,8 +82,8 @@ buildAuditConfig() {
|
| var o = new api.AuditConfig();
|
| buildCounterAuditConfig++;
|
| if (buildCounterAuditConfig < 3) {
|
| - o.auditLogConfigs = buildUnnamed1392();
|
| - o.exemptedMembers = buildUnnamed1393();
|
| + o.auditLogConfigs = buildUnnamed1370();
|
| + o.exemptedMembers = buildUnnamed1371();
|
| o.service = "foo";
|
| }
|
| buildCounterAuditConfig--;
|
| @@ -93,21 +93,21 @@ buildAuditConfig() {
|
| checkAuditConfig(api.AuditConfig o) {
|
| buildCounterAuditConfig++;
|
| if (buildCounterAuditConfig < 3) {
|
| - checkUnnamed1392(o.auditLogConfigs);
|
| - checkUnnamed1393(o.exemptedMembers);
|
| + checkUnnamed1370(o.auditLogConfigs);
|
| + checkUnnamed1371(o.exemptedMembers);
|
| unittest.expect(o.service, unittest.equals('foo'));
|
| }
|
| buildCounterAuditConfig--;
|
| }
|
|
|
| -buildUnnamed1394() {
|
| +buildUnnamed1372() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1394(core.List<core.String> o) {
|
| +checkUnnamed1372(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'));
|
| @@ -118,7 +118,7 @@ buildAuditLogConfig() {
|
| var o = new api.AuditLogConfig();
|
| buildCounterAuditLogConfig++;
|
| if (buildCounterAuditLogConfig < 3) {
|
| - o.exemptedMembers = buildUnnamed1394();
|
| + o.exemptedMembers = buildUnnamed1372();
|
| o.logType = "foo";
|
| }
|
| buildCounterAuditLogConfig--;
|
| @@ -128,20 +128,20 @@ buildAuditLogConfig() {
|
| checkAuditLogConfig(api.AuditLogConfig o) {
|
| buildCounterAuditLogConfig++;
|
| if (buildCounterAuditLogConfig < 3) {
|
| - checkUnnamed1394(o.exemptedMembers);
|
| + checkUnnamed1372(o.exemptedMembers);
|
| unittest.expect(o.logType, unittest.equals('foo'));
|
| }
|
| buildCounterAuditLogConfig--;
|
| }
|
|
|
| -buildUnnamed1395() {
|
| +buildUnnamed1373() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1395(core.List<core.String> o) {
|
| +checkUnnamed1373(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'));
|
| @@ -153,7 +153,7 @@ buildBinding() {
|
| buildCounterBinding++;
|
| if (buildCounterBinding < 3) {
|
| o.condition = buildExpr();
|
| - o.members = buildUnnamed1395();
|
| + o.members = buildUnnamed1373();
|
| o.role = "foo";
|
| }
|
| buildCounterBinding--;
|
| @@ -164,7 +164,7 @@ checkBinding(api.Binding o) {
|
| buildCounterBinding++;
|
| if (buildCounterBinding < 3) {
|
| checkExpr(o.condition);
|
| - checkUnnamed1395(o.members);
|
| + checkUnnamed1373(o.members);
|
| unittest.expect(o.role, unittest.equals('foo'));
|
| }
|
| buildCounterBinding--;
|
| @@ -189,14 +189,14 @@ checkCloudAuditOptions(api.CloudAuditOptions o) {
|
| buildCounterCloudAuditOptions--;
|
| }
|
|
|
| -buildUnnamed1396() {
|
| +buildUnnamed1374() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1396(core.List<core.String> o) {
|
| +checkUnnamed1374(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'));
|
| @@ -212,7 +212,7 @@ buildCondition() {
|
| o.svc = "foo";
|
| o.sys = "foo";
|
| o.value = "foo";
|
| - o.values = buildUnnamed1396();
|
| + o.values = buildUnnamed1374();
|
| }
|
| buildCounterCondition--;
|
| return o;
|
| @@ -226,7 +226,7 @@ checkCondition(api.Condition o) {
|
| unittest.expect(o.svc, unittest.equals('foo'));
|
| unittest.expect(o.sys, unittest.equals('foo'));
|
| unittest.expect(o.value, unittest.equals('foo'));
|
| - checkUnnamed1396(o.values);
|
| + checkUnnamed1374(o.values);
|
| }
|
| buildCounterCondition--;
|
| }
|
| @@ -470,14 +470,14 @@ checkKeyRing(api.KeyRing o) {
|
| buildCounterKeyRing--;
|
| }
|
|
|
| -buildUnnamed1397() {
|
| +buildUnnamed1375() {
|
| var o = new core.List<api.CryptoKeyVersion>();
|
| o.add(buildCryptoKeyVersion());
|
| o.add(buildCryptoKeyVersion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1397(core.List<api.CryptoKeyVersion> o) {
|
| +checkUnnamed1375(core.List<api.CryptoKeyVersion> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCryptoKeyVersion(o[0]);
|
| checkCryptoKeyVersion(o[1]);
|
| @@ -488,7 +488,7 @@ buildListCryptoKeyVersionsResponse() {
|
| var o = new api.ListCryptoKeyVersionsResponse();
|
| buildCounterListCryptoKeyVersionsResponse++;
|
| if (buildCounterListCryptoKeyVersionsResponse < 3) {
|
| - o.cryptoKeyVersions = buildUnnamed1397();
|
| + o.cryptoKeyVersions = buildUnnamed1375();
|
| o.nextPageToken = "foo";
|
| o.totalSize = 42;
|
| }
|
| @@ -499,21 +499,21 @@ buildListCryptoKeyVersionsResponse() {
|
| checkListCryptoKeyVersionsResponse(api.ListCryptoKeyVersionsResponse o) {
|
| buildCounterListCryptoKeyVersionsResponse++;
|
| if (buildCounterListCryptoKeyVersionsResponse < 3) {
|
| - checkUnnamed1397(o.cryptoKeyVersions);
|
| + checkUnnamed1375(o.cryptoKeyVersions);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalSize, unittest.equals(42));
|
| }
|
| buildCounterListCryptoKeyVersionsResponse--;
|
| }
|
|
|
| -buildUnnamed1398() {
|
| +buildUnnamed1376() {
|
| var o = new core.List<api.CryptoKey>();
|
| o.add(buildCryptoKey());
|
| o.add(buildCryptoKey());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1398(core.List<api.CryptoKey> o) {
|
| +checkUnnamed1376(core.List<api.CryptoKey> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCryptoKey(o[0]);
|
| checkCryptoKey(o[1]);
|
| @@ -524,7 +524,7 @@ buildListCryptoKeysResponse() {
|
| var o = new api.ListCryptoKeysResponse();
|
| buildCounterListCryptoKeysResponse++;
|
| if (buildCounterListCryptoKeysResponse < 3) {
|
| - o.cryptoKeys = buildUnnamed1398();
|
| + o.cryptoKeys = buildUnnamed1376();
|
| o.nextPageToken = "foo";
|
| o.totalSize = 42;
|
| }
|
| @@ -535,21 +535,21 @@ buildListCryptoKeysResponse() {
|
| checkListCryptoKeysResponse(api.ListCryptoKeysResponse o) {
|
| buildCounterListCryptoKeysResponse++;
|
| if (buildCounterListCryptoKeysResponse < 3) {
|
| - checkUnnamed1398(o.cryptoKeys);
|
| + checkUnnamed1376(o.cryptoKeys);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalSize, unittest.equals(42));
|
| }
|
| buildCounterListCryptoKeysResponse--;
|
| }
|
|
|
| -buildUnnamed1399() {
|
| +buildUnnamed1377() {
|
| var o = new core.List<api.KeyRing>();
|
| o.add(buildKeyRing());
|
| o.add(buildKeyRing());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1399(core.List<api.KeyRing> o) {
|
| +checkUnnamed1377(core.List<api.KeyRing> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkKeyRing(o[0]);
|
| checkKeyRing(o[1]);
|
| @@ -560,7 +560,7 @@ buildListKeyRingsResponse() {
|
| var o = new api.ListKeyRingsResponse();
|
| buildCounterListKeyRingsResponse++;
|
| if (buildCounterListKeyRingsResponse < 3) {
|
| - o.keyRings = buildUnnamed1399();
|
| + o.keyRings = buildUnnamed1377();
|
| o.nextPageToken = "foo";
|
| o.totalSize = 42;
|
| }
|
| @@ -571,21 +571,21 @@ buildListKeyRingsResponse() {
|
| checkListKeyRingsResponse(api.ListKeyRingsResponse o) {
|
| buildCounterListKeyRingsResponse++;
|
| if (buildCounterListKeyRingsResponse < 3) {
|
| - checkUnnamed1399(o.keyRings);
|
| + checkUnnamed1377(o.keyRings);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalSize, unittest.equals(42));
|
| }
|
| buildCounterListKeyRingsResponse--;
|
| }
|
|
|
| -buildUnnamed1400() {
|
| +buildUnnamed1378() {
|
| var o = new core.List<api.Location>();
|
| o.add(buildLocation());
|
| o.add(buildLocation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1400(core.List<api.Location> o) {
|
| +checkUnnamed1378(core.List<api.Location> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLocation(o[0]);
|
| checkLocation(o[1]);
|
| @@ -596,7 +596,7 @@ buildListLocationsResponse() {
|
| var o = new api.ListLocationsResponse();
|
| buildCounterListLocationsResponse++;
|
| if (buildCounterListLocationsResponse < 3) {
|
| - o.locations = buildUnnamed1400();
|
| + o.locations = buildUnnamed1378();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListLocationsResponse--;
|
| @@ -606,33 +606,33 @@ buildListLocationsResponse() {
|
| checkListLocationsResponse(api.ListLocationsResponse o) {
|
| buildCounterListLocationsResponse++;
|
| if (buildCounterListLocationsResponse < 3) {
|
| - checkUnnamed1400(o.locations);
|
| + checkUnnamed1378(o.locations);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListLocationsResponse--;
|
| }
|
|
|
| -buildUnnamed1401() {
|
| +buildUnnamed1379() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed1401(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1379(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'));
|
| }
|
|
|
| -buildUnnamed1402() {
|
| +buildUnnamed1380() {
|
| var o = new core.Map<core.String, core.Object>();
|
| o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
|
| return o;
|
| }
|
|
|
| -checkUnnamed1402(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1380(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)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.expect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
|
| var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLength(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.expect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
|
| @@ -643,9 +643,9 @@ buildLocation() {
|
| var o = new api.Location();
|
| buildCounterLocation++;
|
| if (buildCounterLocation < 3) {
|
| - o.labels = buildUnnamed1401();
|
| + o.labels = buildUnnamed1379();
|
| o.locationId = "foo";
|
| - o.metadata = buildUnnamed1402();
|
| + o.metadata = buildUnnamed1380();
|
| o.name = "foo";
|
| }
|
| buildCounterLocation--;
|
| @@ -655,9 +655,9 @@ buildLocation() {
|
| checkLocation(api.Location o) {
|
| buildCounterLocation++;
|
| if (buildCounterLocation < 3) {
|
| - checkUnnamed1401(o.labels);
|
| + checkUnnamed1379(o.labels);
|
| unittest.expect(o.locationId, unittest.equals('foo'));
|
| - checkUnnamed1402(o.metadata);
|
| + checkUnnamed1380(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| }
|
| buildCounterLocation--;
|
| @@ -686,40 +686,40 @@ checkLogConfig(api.LogConfig o) {
|
| buildCounterLogConfig--;
|
| }
|
|
|
| -buildUnnamed1403() {
|
| +buildUnnamed1381() {
|
| var o = new core.List<api.AuditConfig>();
|
| o.add(buildAuditConfig());
|
| o.add(buildAuditConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1403(core.List<api.AuditConfig> o) {
|
| +checkUnnamed1381(core.List<api.AuditConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuditConfig(o[0]);
|
| checkAuditConfig(o[1]);
|
| }
|
|
|
| -buildUnnamed1404() {
|
| +buildUnnamed1382() {
|
| var o = new core.List<api.Binding>();
|
| o.add(buildBinding());
|
| o.add(buildBinding());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1404(core.List<api.Binding> o) {
|
| +checkUnnamed1382(core.List<api.Binding> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBinding(o[0]);
|
| checkBinding(o[1]);
|
| }
|
|
|
| -buildUnnamed1405() {
|
| +buildUnnamed1383() {
|
| var o = new core.List<api.Rule>();
|
| o.add(buildRule());
|
| o.add(buildRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1405(core.List<api.Rule> o) {
|
| +checkUnnamed1383(core.List<api.Rule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkRule(o[0]);
|
| checkRule(o[1]);
|
| @@ -730,11 +730,11 @@ buildPolicy() {
|
| var o = new api.Policy();
|
| buildCounterPolicy++;
|
| if (buildCounterPolicy < 3) {
|
| - o.auditConfigs = buildUnnamed1403();
|
| - o.bindings = buildUnnamed1404();
|
| + o.auditConfigs = buildUnnamed1381();
|
| + o.bindings = buildUnnamed1382();
|
| o.etag = "foo";
|
| o.iamOwned = true;
|
| - o.rules = buildUnnamed1405();
|
| + o.rules = buildUnnamed1383();
|
| o.version = 42;
|
| }
|
| buildCounterPolicy--;
|
| @@ -744,11 +744,11 @@ buildPolicy() {
|
| checkPolicy(api.Policy o) {
|
| buildCounterPolicy++;
|
| if (buildCounterPolicy < 3) {
|
| - checkUnnamed1403(o.auditConfigs);
|
| - checkUnnamed1404(o.bindings);
|
| + checkUnnamed1381(o.auditConfigs);
|
| + checkUnnamed1382(o.bindings);
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.iamOwned, unittest.isTrue);
|
| - checkUnnamed1405(o.rules);
|
| + checkUnnamed1383(o.rules);
|
| unittest.expect(o.version, unittest.equals(42));
|
| }
|
| buildCounterPolicy--;
|
| @@ -771,66 +771,66 @@ checkRestoreCryptoKeyVersionRequest(api.RestoreCryptoKeyVersionRequest o) {
|
| buildCounterRestoreCryptoKeyVersionRequest--;
|
| }
|
|
|
| -buildUnnamed1406() {
|
| +buildUnnamed1384() {
|
| var o = new core.List<api.Condition>();
|
| o.add(buildCondition());
|
| o.add(buildCondition());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1406(core.List<api.Condition> o) {
|
| +checkUnnamed1384(core.List<api.Condition> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCondition(o[0]);
|
| checkCondition(o[1]);
|
| }
|
|
|
| -buildUnnamed1407() {
|
| +buildUnnamed1385() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1407(core.List<core.String> o) {
|
| +checkUnnamed1385(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'));
|
| }
|
|
|
| -buildUnnamed1408() {
|
| +buildUnnamed1386() {
|
| var o = new core.List<api.LogConfig>();
|
| o.add(buildLogConfig());
|
| o.add(buildLogConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed1408(core.List<api.LogConfig> o) {
|
| +checkUnnamed1386(core.List<api.LogConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogConfig(o[0]);
|
| checkLogConfig(o[1]);
|
| }
|
|
|
| -buildUnnamed1409() {
|
| +buildUnnamed1387() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1409(core.List<core.String> o) {
|
| +checkUnnamed1387(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'));
|
| }
|
|
|
| -buildUnnamed1410() {
|
| +buildUnnamed1388() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1410(core.List<core.String> o) {
|
| +checkUnnamed1388(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'));
|
| @@ -842,12 +842,12 @@ buildRule() {
|
| buildCounterRule++;
|
| if (buildCounterRule < 3) {
|
| o.action = "foo";
|
| - o.conditions = buildUnnamed1406();
|
| + o.conditions = buildUnnamed1384();
|
| o.description = "foo";
|
| - o.in_ = buildUnnamed1407();
|
| - o.logConfig = buildUnnamed1408();
|
| - o.notIn = buildUnnamed1409();
|
| - o.permissions = buildUnnamed1410();
|
| + o.in_ = buildUnnamed1385();
|
| + o.logConfig = buildUnnamed1386();
|
| + o.notIn = buildUnnamed1387();
|
| + o.permissions = buildUnnamed1388();
|
| }
|
| buildCounterRule--;
|
| return o;
|
| @@ -857,12 +857,12 @@ checkRule(api.Rule o) {
|
| buildCounterRule++;
|
| if (buildCounterRule < 3) {
|
| unittest.expect(o.action, unittest.equals('foo'));
|
| - checkUnnamed1406(o.conditions);
|
| + checkUnnamed1384(o.conditions);
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| - checkUnnamed1407(o.in_);
|
| - checkUnnamed1408(o.logConfig);
|
| - checkUnnamed1409(o.notIn);
|
| - checkUnnamed1410(o.permissions);
|
| + checkUnnamed1385(o.in_);
|
| + checkUnnamed1386(o.logConfig);
|
| + checkUnnamed1387(o.notIn);
|
| + checkUnnamed1388(o.permissions);
|
| }
|
| buildCounterRule--;
|
| }
|
| @@ -888,14 +888,14 @@ checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
|
| buildCounterSetIamPolicyRequest--;
|
| }
|
|
|
| -buildUnnamed1411() {
|
| +buildUnnamed1389() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1411(core.List<core.String> o) {
|
| +checkUnnamed1389(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'));
|
| @@ -906,7 +906,7 @@ buildTestIamPermissionsRequest() {
|
| var o = new api.TestIamPermissionsRequest();
|
| buildCounterTestIamPermissionsRequest++;
|
| if (buildCounterTestIamPermissionsRequest < 3) {
|
| - o.permissions = buildUnnamed1411();
|
| + o.permissions = buildUnnamed1389();
|
| }
|
| buildCounterTestIamPermissionsRequest--;
|
| return o;
|
| @@ -915,19 +915,19 @@ buildTestIamPermissionsRequest() {
|
| checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
|
| buildCounterTestIamPermissionsRequest++;
|
| if (buildCounterTestIamPermissionsRequest < 3) {
|
| - checkUnnamed1411(o.permissions);
|
| + checkUnnamed1389(o.permissions);
|
| }
|
| buildCounterTestIamPermissionsRequest--;
|
| }
|
|
|
| -buildUnnamed1412() {
|
| +buildUnnamed1390() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed1412(core.List<core.String> o) {
|
| +checkUnnamed1390(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'));
|
| @@ -938,7 +938,7 @@ buildTestIamPermissionsResponse() {
|
| var o = new api.TestIamPermissionsResponse();
|
| buildCounterTestIamPermissionsResponse++;
|
| if (buildCounterTestIamPermissionsResponse < 3) {
|
| - o.permissions = buildUnnamed1412();
|
| + o.permissions = buildUnnamed1390();
|
| }
|
| buildCounterTestIamPermissionsResponse--;
|
| return o;
|
| @@ -947,7 +947,7 @@ buildTestIamPermissionsResponse() {
|
| checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
|
| buildCounterTestIamPermissionsResponse++;
|
| if (buildCounterTestIamPermissionsResponse < 3) {
|
| - checkUnnamed1412(o.permissions);
|
| + checkUnnamed1390(o.permissions);
|
| }
|
| buildCounterTestIamPermissionsResponse--;
|
| }
|
| @@ -2265,8 +2265,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.ProjectsLocationsKeyRingsCryptoKeysCryptoKeyVersionsResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys.cryptoKeyVersions;
|
| var arg_parent = "foo";
|
| - var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -2294,8 +2294,8 @@ main() {
|
| 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["pageToken"].first, unittest.equals(arg_pageToken));
|
|
|
|
|
| var h = {
|
| @@ -2304,7 +2304,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListCryptoKeyVersionsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListCryptoKeyVersionsResponse response) {
|
| + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListCryptoKeyVersionsResponse response) {
|
| checkListCryptoKeyVersionsResponse(response);
|
| })));
|
| });
|
|
|