| Index: generated/googleapis_beta/test/cloudkms/v1beta1_test.dart
|
| diff --git a/generated/googleapis_beta/test/cloudkms/v1beta1_test.dart b/generated/googleapis_beta/test/cloudkms/v1beta1_test.dart
|
| index 86a30b4961f4bbe605e5836699737f387395eca4..e54f8155d02de6767313db3928cf06a7784660cb 100644
|
| --- a/generated/googleapis_beta/test/cloudkms/v1beta1_test.dart
|
| +++ b/generated/googleapis_beta/test/cloudkms/v1beta1_test.dart
|
| @@ -51,27 +51,27 @@ http.StreamedResponse stringResponse(
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
|
|
| -buildUnnamed3738() {
|
| +buildUnnamed3320() {
|
| var o = new core.List<api.AuditLogConfig>();
|
| o.add(buildAuditLogConfig());
|
| o.add(buildAuditLogConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3738(core.List<api.AuditLogConfig> o) {
|
| +checkUnnamed3320(core.List<api.AuditLogConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuditLogConfig(o[0]);
|
| checkAuditLogConfig(o[1]);
|
| }
|
|
|
| -buildUnnamed3739() {
|
| +buildUnnamed3321() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3739(core.List<core.String> o) {
|
| +checkUnnamed3321(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 = buildUnnamed3738();
|
| - o.exemptedMembers = buildUnnamed3739();
|
| + o.auditLogConfigs = buildUnnamed3320();
|
| + o.exemptedMembers = buildUnnamed3321();
|
| o.service = "foo";
|
| }
|
| buildCounterAuditConfig--;
|
| @@ -93,21 +93,21 @@ buildAuditConfig() {
|
| checkAuditConfig(api.AuditConfig o) {
|
| buildCounterAuditConfig++;
|
| if (buildCounterAuditConfig < 3) {
|
| - checkUnnamed3738(o.auditLogConfigs);
|
| - checkUnnamed3739(o.exemptedMembers);
|
| + checkUnnamed3320(o.auditLogConfigs);
|
| + checkUnnamed3321(o.exemptedMembers);
|
| unittest.expect(o.service, unittest.equals('foo'));
|
| }
|
| buildCounterAuditConfig--;
|
| }
|
|
|
| -buildUnnamed3740() {
|
| +buildUnnamed3322() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3740(core.List<core.String> o) {
|
| +checkUnnamed3322(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 = buildUnnamed3740();
|
| + o.exemptedMembers = buildUnnamed3322();
|
| o.logType = "foo";
|
| }
|
| buildCounterAuditLogConfig--;
|
| @@ -128,20 +128,20 @@ buildAuditLogConfig() {
|
| checkAuditLogConfig(api.AuditLogConfig o) {
|
| buildCounterAuditLogConfig++;
|
| if (buildCounterAuditLogConfig < 3) {
|
| - checkUnnamed3740(o.exemptedMembers);
|
| + checkUnnamed3322(o.exemptedMembers);
|
| unittest.expect(o.logType, unittest.equals('foo'));
|
| }
|
| buildCounterAuditLogConfig--;
|
| }
|
|
|
| -buildUnnamed3741() {
|
| +buildUnnamed3323() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3741(core.List<core.String> o) {
|
| +checkUnnamed3323(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'));
|
| @@ -152,7 +152,7 @@ buildBinding() {
|
| var o = new api.Binding();
|
| buildCounterBinding++;
|
| if (buildCounterBinding < 3) {
|
| - o.members = buildUnnamed3741();
|
| + o.members = buildUnnamed3323();
|
| o.role = "foo";
|
| }
|
| buildCounterBinding--;
|
| @@ -162,7 +162,7 @@ buildBinding() {
|
| checkBinding(api.Binding o) {
|
| buildCounterBinding++;
|
| if (buildCounterBinding < 3) {
|
| - checkUnnamed3741(o.members);
|
| + checkUnnamed3323(o.members);
|
| unittest.expect(o.role, unittest.equals('foo'));
|
| }
|
| buildCounterBinding--;
|
| @@ -185,14 +185,14 @@ checkCloudAuditOptions(api.CloudAuditOptions o) {
|
| buildCounterCloudAuditOptions--;
|
| }
|
|
|
| -buildUnnamed3742() {
|
| +buildUnnamed3324() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3742(core.List<core.String> o) {
|
| +checkUnnamed3324(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'));
|
| @@ -208,7 +208,7 @@ buildCondition() {
|
| o.svc = "foo";
|
| o.sys = "foo";
|
| o.value = "foo";
|
| - o.values = buildUnnamed3742();
|
| + o.values = buildUnnamed3324();
|
| }
|
| buildCounterCondition--;
|
| return o;
|
| @@ -222,7 +222,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'));
|
| - checkUnnamed3742(o.values);
|
| + checkUnnamed3324(o.values);
|
| }
|
| buildCounterCondition--;
|
| }
|
| @@ -441,14 +441,14 @@ checkKeyRing(api.KeyRing o) {
|
| buildCounterKeyRing--;
|
| }
|
|
|
| -buildUnnamed3743() {
|
| +buildUnnamed3325() {
|
| var o = new core.List<api.CryptoKeyVersion>();
|
| o.add(buildCryptoKeyVersion());
|
| o.add(buildCryptoKeyVersion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3743(core.List<api.CryptoKeyVersion> o) {
|
| +checkUnnamed3325(core.List<api.CryptoKeyVersion> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCryptoKeyVersion(o[0]);
|
| checkCryptoKeyVersion(o[1]);
|
| @@ -459,7 +459,7 @@ buildListCryptoKeyVersionsResponse() {
|
| var o = new api.ListCryptoKeyVersionsResponse();
|
| buildCounterListCryptoKeyVersionsResponse++;
|
| if (buildCounterListCryptoKeyVersionsResponse < 3) {
|
| - o.cryptoKeyVersions = buildUnnamed3743();
|
| + o.cryptoKeyVersions = buildUnnamed3325();
|
| o.nextPageToken = "foo";
|
| o.totalSize = 42;
|
| }
|
| @@ -470,21 +470,21 @@ buildListCryptoKeyVersionsResponse() {
|
| checkListCryptoKeyVersionsResponse(api.ListCryptoKeyVersionsResponse o) {
|
| buildCounterListCryptoKeyVersionsResponse++;
|
| if (buildCounterListCryptoKeyVersionsResponse < 3) {
|
| - checkUnnamed3743(o.cryptoKeyVersions);
|
| + checkUnnamed3325(o.cryptoKeyVersions);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalSize, unittest.equals(42));
|
| }
|
| buildCounterListCryptoKeyVersionsResponse--;
|
| }
|
|
|
| -buildUnnamed3744() {
|
| +buildUnnamed3326() {
|
| var o = new core.List<api.CryptoKey>();
|
| o.add(buildCryptoKey());
|
| o.add(buildCryptoKey());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3744(core.List<api.CryptoKey> o) {
|
| +checkUnnamed3326(core.List<api.CryptoKey> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCryptoKey(o[0]);
|
| checkCryptoKey(o[1]);
|
| @@ -495,7 +495,7 @@ buildListCryptoKeysResponse() {
|
| var o = new api.ListCryptoKeysResponse();
|
| buildCounterListCryptoKeysResponse++;
|
| if (buildCounterListCryptoKeysResponse < 3) {
|
| - o.cryptoKeys = buildUnnamed3744();
|
| + o.cryptoKeys = buildUnnamed3326();
|
| o.nextPageToken = "foo";
|
| o.totalSize = 42;
|
| }
|
| @@ -506,21 +506,21 @@ buildListCryptoKeysResponse() {
|
| checkListCryptoKeysResponse(api.ListCryptoKeysResponse o) {
|
| buildCounterListCryptoKeysResponse++;
|
| if (buildCounterListCryptoKeysResponse < 3) {
|
| - checkUnnamed3744(o.cryptoKeys);
|
| + checkUnnamed3326(o.cryptoKeys);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalSize, unittest.equals(42));
|
| }
|
| buildCounterListCryptoKeysResponse--;
|
| }
|
|
|
| -buildUnnamed3745() {
|
| +buildUnnamed3327() {
|
| var o = new core.List<api.KeyRing>();
|
| o.add(buildKeyRing());
|
| o.add(buildKeyRing());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3745(core.List<api.KeyRing> o) {
|
| +checkUnnamed3327(core.List<api.KeyRing> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkKeyRing(o[0]);
|
| checkKeyRing(o[1]);
|
| @@ -531,7 +531,7 @@ buildListKeyRingsResponse() {
|
| var o = new api.ListKeyRingsResponse();
|
| buildCounterListKeyRingsResponse++;
|
| if (buildCounterListKeyRingsResponse < 3) {
|
| - o.keyRings = buildUnnamed3745();
|
| + o.keyRings = buildUnnamed3327();
|
| o.nextPageToken = "foo";
|
| o.totalSize = 42;
|
| }
|
| @@ -542,21 +542,21 @@ buildListKeyRingsResponse() {
|
| checkListKeyRingsResponse(api.ListKeyRingsResponse o) {
|
| buildCounterListKeyRingsResponse++;
|
| if (buildCounterListKeyRingsResponse < 3) {
|
| - checkUnnamed3745(o.keyRings);
|
| + checkUnnamed3327(o.keyRings);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalSize, unittest.equals(42));
|
| }
|
| buildCounterListKeyRingsResponse--;
|
| }
|
|
|
| -buildUnnamed3746() {
|
| +buildUnnamed3328() {
|
| var o = new core.List<api.Location>();
|
| o.add(buildLocation());
|
| o.add(buildLocation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3746(core.List<api.Location> o) {
|
| +checkUnnamed3328(core.List<api.Location> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLocation(o[0]);
|
| checkLocation(o[1]);
|
| @@ -567,7 +567,7 @@ buildListLocationsResponse() {
|
| var o = new api.ListLocationsResponse();
|
| buildCounterListLocationsResponse++;
|
| if (buildCounterListLocationsResponse < 3) {
|
| - o.locations = buildUnnamed3746();
|
| + o.locations = buildUnnamed3328();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListLocationsResponse--;
|
| @@ -577,33 +577,33 @@ buildListLocationsResponse() {
|
| checkListLocationsResponse(api.ListLocationsResponse o) {
|
| buildCounterListLocationsResponse++;
|
| if (buildCounterListLocationsResponse < 3) {
|
| - checkUnnamed3746(o.locations);
|
| + checkUnnamed3328(o.locations);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListLocationsResponse--;
|
| }
|
|
|
| -buildUnnamed3747() {
|
| +buildUnnamed3329() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed3747(core.Map<core.String, core.String> o) {
|
| +checkUnnamed3329(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'));
|
| }
|
|
|
| -buildUnnamed3748() {
|
| +buildUnnamed3330() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed3748(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed3330(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'));
|
| @@ -614,9 +614,9 @@ buildLocation() {
|
| var o = new api.Location();
|
| buildCounterLocation++;
|
| if (buildCounterLocation < 3) {
|
| - o.labels = buildUnnamed3747();
|
| + o.labels = buildUnnamed3329();
|
| o.locationId = "foo";
|
| - o.metadata = buildUnnamed3748();
|
| + o.metadata = buildUnnamed3330();
|
| o.name = "foo";
|
| }
|
| buildCounterLocation--;
|
| @@ -626,9 +626,9 @@ buildLocation() {
|
| checkLocation(api.Location o) {
|
| buildCounterLocation++;
|
| if (buildCounterLocation < 3) {
|
| - checkUnnamed3747(o.labels);
|
| + checkUnnamed3329(o.labels);
|
| unittest.expect(o.locationId, unittest.equals('foo'));
|
| - checkUnnamed3748(o.metadata);
|
| + checkUnnamed3330(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| }
|
| buildCounterLocation--;
|
| @@ -657,40 +657,40 @@ checkLogConfig(api.LogConfig o) {
|
| buildCounterLogConfig--;
|
| }
|
|
|
| -buildUnnamed3749() {
|
| +buildUnnamed3331() {
|
| var o = new core.List<api.AuditConfig>();
|
| o.add(buildAuditConfig());
|
| o.add(buildAuditConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3749(core.List<api.AuditConfig> o) {
|
| +checkUnnamed3331(core.List<api.AuditConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuditConfig(o[0]);
|
| checkAuditConfig(o[1]);
|
| }
|
|
|
| -buildUnnamed3750() {
|
| +buildUnnamed3332() {
|
| var o = new core.List<api.Binding>();
|
| o.add(buildBinding());
|
| o.add(buildBinding());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3750(core.List<api.Binding> o) {
|
| +checkUnnamed3332(core.List<api.Binding> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBinding(o[0]);
|
| checkBinding(o[1]);
|
| }
|
|
|
| -buildUnnamed3751() {
|
| +buildUnnamed3333() {
|
| var o = new core.List<api.Rule>();
|
| o.add(buildRule());
|
| o.add(buildRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3751(core.List<api.Rule> o) {
|
| +checkUnnamed3333(core.List<api.Rule> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkRule(o[0]);
|
| checkRule(o[1]);
|
| @@ -701,11 +701,11 @@ buildPolicy() {
|
| var o = new api.Policy();
|
| buildCounterPolicy++;
|
| if (buildCounterPolicy < 3) {
|
| - o.auditConfigs = buildUnnamed3749();
|
| - o.bindings = buildUnnamed3750();
|
| + o.auditConfigs = buildUnnamed3331();
|
| + o.bindings = buildUnnamed3332();
|
| o.etag = "foo";
|
| o.iamOwned = true;
|
| - o.rules = buildUnnamed3751();
|
| + o.rules = buildUnnamed3333();
|
| o.version = 42;
|
| }
|
| buildCounterPolicy--;
|
| @@ -715,11 +715,11 @@ buildPolicy() {
|
| checkPolicy(api.Policy o) {
|
| buildCounterPolicy++;
|
| if (buildCounterPolicy < 3) {
|
| - checkUnnamed3749(o.auditConfigs);
|
| - checkUnnamed3750(o.bindings);
|
| + checkUnnamed3331(o.auditConfigs);
|
| + checkUnnamed3332(o.bindings);
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.iamOwned, unittest.isTrue);
|
| - checkUnnamed3751(o.rules);
|
| + checkUnnamed3333(o.rules);
|
| unittest.expect(o.version, unittest.equals(42));
|
| }
|
| buildCounterPolicy--;
|
| @@ -742,66 +742,66 @@ checkRestoreCryptoKeyVersionRequest(api.RestoreCryptoKeyVersionRequest o) {
|
| buildCounterRestoreCryptoKeyVersionRequest--;
|
| }
|
|
|
| -buildUnnamed3752() {
|
| +buildUnnamed3334() {
|
| var o = new core.List<api.Condition>();
|
| o.add(buildCondition());
|
| o.add(buildCondition());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3752(core.List<api.Condition> o) {
|
| +checkUnnamed3334(core.List<api.Condition> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCondition(o[0]);
|
| checkCondition(o[1]);
|
| }
|
|
|
| -buildUnnamed3753() {
|
| +buildUnnamed3335() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3753(core.List<core.String> o) {
|
| +checkUnnamed3335(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'));
|
| }
|
|
|
| -buildUnnamed3754() {
|
| +buildUnnamed3336() {
|
| var o = new core.List<api.LogConfig>();
|
| o.add(buildLogConfig());
|
| o.add(buildLogConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3754(core.List<api.LogConfig> o) {
|
| +checkUnnamed3336(core.List<api.LogConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogConfig(o[0]);
|
| checkLogConfig(o[1]);
|
| }
|
|
|
| -buildUnnamed3755() {
|
| +buildUnnamed3337() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3755(core.List<core.String> o) {
|
| +checkUnnamed3337(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'));
|
| }
|
|
|
| -buildUnnamed3756() {
|
| +buildUnnamed3338() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3756(core.List<core.String> o) {
|
| +checkUnnamed3338(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'));
|
| @@ -813,12 +813,12 @@ buildRule() {
|
| buildCounterRule++;
|
| if (buildCounterRule < 3) {
|
| o.action = "foo";
|
| - o.conditions = buildUnnamed3752();
|
| + o.conditions = buildUnnamed3334();
|
| o.description = "foo";
|
| - o.in_ = buildUnnamed3753();
|
| - o.logConfig = buildUnnamed3754();
|
| - o.notIn = buildUnnamed3755();
|
| - o.permissions = buildUnnamed3756();
|
| + o.in_ = buildUnnamed3335();
|
| + o.logConfig = buildUnnamed3336();
|
| + o.notIn = buildUnnamed3337();
|
| + o.permissions = buildUnnamed3338();
|
| }
|
| buildCounterRule--;
|
| return o;
|
| @@ -828,12 +828,12 @@ checkRule(api.Rule o) {
|
| buildCounterRule++;
|
| if (buildCounterRule < 3) {
|
| unittest.expect(o.action, unittest.equals('foo'));
|
| - checkUnnamed3752(o.conditions);
|
| + checkUnnamed3334(o.conditions);
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| - checkUnnamed3753(o.in_);
|
| - checkUnnamed3754(o.logConfig);
|
| - checkUnnamed3755(o.notIn);
|
| - checkUnnamed3756(o.permissions);
|
| + checkUnnamed3335(o.in_);
|
| + checkUnnamed3336(o.logConfig);
|
| + checkUnnamed3337(o.notIn);
|
| + checkUnnamed3338(o.permissions);
|
| }
|
| buildCounterRule--;
|
| }
|
| @@ -859,14 +859,14 @@ checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
|
| buildCounterSetIamPolicyRequest--;
|
| }
|
|
|
| -buildUnnamed3757() {
|
| +buildUnnamed3339() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3757(core.List<core.String> o) {
|
| +checkUnnamed3339(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'));
|
| @@ -877,7 +877,7 @@ buildTestIamPermissionsRequest() {
|
| var o = new api.TestIamPermissionsRequest();
|
| buildCounterTestIamPermissionsRequest++;
|
| if (buildCounterTestIamPermissionsRequest < 3) {
|
| - o.permissions = buildUnnamed3757();
|
| + o.permissions = buildUnnamed3339();
|
| }
|
| buildCounterTestIamPermissionsRequest--;
|
| return o;
|
| @@ -886,19 +886,19 @@ buildTestIamPermissionsRequest() {
|
| checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
|
| buildCounterTestIamPermissionsRequest++;
|
| if (buildCounterTestIamPermissionsRequest < 3) {
|
| - checkUnnamed3757(o.permissions);
|
| + checkUnnamed3339(o.permissions);
|
| }
|
| buildCounterTestIamPermissionsRequest--;
|
| }
|
|
|
| -buildUnnamed3758() {
|
| +buildUnnamed3340() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3758(core.List<core.String> o) {
|
| +checkUnnamed3340(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'));
|
| @@ -909,7 +909,7 @@ buildTestIamPermissionsResponse() {
|
| var o = new api.TestIamPermissionsResponse();
|
| buildCounterTestIamPermissionsResponse++;
|
| if (buildCounterTestIamPermissionsResponse < 3) {
|
| - o.permissions = buildUnnamed3758();
|
| + o.permissions = buildUnnamed3340();
|
| }
|
| buildCounterTestIamPermissionsResponse--;
|
| return o;
|
| @@ -918,7 +918,7 @@ buildTestIamPermissionsResponse() {
|
| checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
|
| buildCounterTestIamPermissionsResponse++;
|
| if (buildCounterTestIamPermissionsResponse < 3) {
|
| - checkUnnamed3758(o.permissions);
|
| + checkUnnamed3340(o.permissions);
|
| }
|
| buildCounterTestIamPermissionsResponse--;
|
| }
|
| @@ -1247,9 +1247,9 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.ProjectsLocationsResourceApi res = new api.CloudkmsApi(mock).projects.locations;
|
| var arg_name = "foo";
|
| - var arg_filter = "foo";
|
| var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| + var arg_filter = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1277,9 +1277,9 @@ main() {
|
| addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.decodeQueryComponent(keyvalue[1]));
|
| }
|
| }
|
| - unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
| unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageToken));
|
| unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equals(arg_pageSize));
|
| + unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
|
|
|
|
|
| var h = {
|
| @@ -1288,7 +1288,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListLocationsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLocationsResponse response) {
|
| + res.list(arg_name, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListLocationsResponse response) {
|
| checkListLocationsResponse(response);
|
| })));
|
| });
|
|
|