| Index: generated/googleapis/test/cloudkms/v1_test.dart
|
| diff --git a/generated/googleapis_beta/test/cloudkms/v1beta1_test.dart b/generated/googleapis/test/cloudkms/v1_test.dart
|
| similarity index 93%
|
| rename from generated/googleapis_beta/test/cloudkms/v1beta1_test.dart
|
| rename to generated/googleapis/test/cloudkms/v1_test.dart
|
| index e54f8155d02de6767313db3928cf06a7784660cb..6153770f95b7970530f69033b46d83c72a6907ea 100644
|
| --- a/generated/googleapis_beta/test/cloudkms/v1beta1_test.dart
|
| +++ b/generated/googleapis/test/cloudkms/v1_test.dart
|
| @@ -1,4 +1,4 @@
|
| -library googleapis_beta.cloudkms.v1beta1.test;
|
| +library googleapis.cloudkms.v1.test;
|
|
|
| import "dart:core" as core;
|
| import "dart:collection" as collection;
|
| @@ -9,7 +9,7 @@ import 'package:http/http.dart' as http;
|
| import 'package:http/testing.dart' as http_testing;
|
| import 'package:unittest/unittest.dart' as unittest;
|
|
|
| -import 'package:googleapis_beta/cloudkms/v1beta1.dart' as api;
|
| +import 'package:googleapis/cloudkms/v1.dart' as api;
|
|
|
| class HttpServerMock extends http.BaseClient {
|
| core.Function _callback;
|
| @@ -51,27 +51,27 @@ http.StreamedResponse stringResponse(
|
| return new http.StreamedResponse(stream, status, headers: headers);
|
| }
|
|
|
| -buildUnnamed3320() {
|
| +buildUnnamed1237() {
|
| var o = new core.List<api.AuditLogConfig>();
|
| o.add(buildAuditLogConfig());
|
| o.add(buildAuditLogConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3320(core.List<api.AuditLogConfig> o) {
|
| +checkUnnamed1237(core.List<api.AuditLogConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuditLogConfig(o[0]);
|
| checkAuditLogConfig(o[1]);
|
| }
|
|
|
| -buildUnnamed3321() {
|
| +buildUnnamed1238() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3321(core.List<core.String> o) {
|
| +checkUnnamed1238(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 = buildUnnamed3320();
|
| - o.exemptedMembers = buildUnnamed3321();
|
| + o.auditLogConfigs = buildUnnamed1237();
|
| + o.exemptedMembers = buildUnnamed1238();
|
| o.service = "foo";
|
| }
|
| buildCounterAuditConfig--;
|
| @@ -93,21 +93,21 @@ buildAuditConfig() {
|
| checkAuditConfig(api.AuditConfig o) {
|
| buildCounterAuditConfig++;
|
| if (buildCounterAuditConfig < 3) {
|
| - checkUnnamed3320(o.auditLogConfigs);
|
| - checkUnnamed3321(o.exemptedMembers);
|
| + checkUnnamed1237(o.auditLogConfigs);
|
| + checkUnnamed1238(o.exemptedMembers);
|
| unittest.expect(o.service, unittest.equals('foo'));
|
| }
|
| buildCounterAuditConfig--;
|
| }
|
|
|
| -buildUnnamed3322() {
|
| +buildUnnamed1239() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3322(core.List<core.String> o) {
|
| +checkUnnamed1239(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 = buildUnnamed3322();
|
| + o.exemptedMembers = buildUnnamed1239();
|
| o.logType = "foo";
|
| }
|
| buildCounterAuditLogConfig--;
|
| @@ -128,20 +128,20 @@ buildAuditLogConfig() {
|
| checkAuditLogConfig(api.AuditLogConfig o) {
|
| buildCounterAuditLogConfig++;
|
| if (buildCounterAuditLogConfig < 3) {
|
| - checkUnnamed3322(o.exemptedMembers);
|
| + checkUnnamed1239(o.exemptedMembers);
|
| unittest.expect(o.logType, unittest.equals('foo'));
|
| }
|
| buildCounterAuditLogConfig--;
|
| }
|
|
|
| -buildUnnamed3323() {
|
| +buildUnnamed1240() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3323(core.List<core.String> o) {
|
| +checkUnnamed1240(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 = buildUnnamed3323();
|
| + o.members = buildUnnamed1240();
|
| o.role = "foo";
|
| }
|
| buildCounterBinding--;
|
| @@ -162,7 +162,7 @@ buildBinding() {
|
| checkBinding(api.Binding o) {
|
| buildCounterBinding++;
|
| if (buildCounterBinding < 3) {
|
| - checkUnnamed3323(o.members);
|
| + checkUnnamed1240(o.members);
|
| unittest.expect(o.role, unittest.equals('foo'));
|
| }
|
| buildCounterBinding--;
|
| @@ -185,14 +185,14 @@ checkCloudAuditOptions(api.CloudAuditOptions o) {
|
| buildCounterCloudAuditOptions--;
|
| }
|
|
|
| -buildUnnamed3324() {
|
| +buildUnnamed1241() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3324(core.List<core.String> o) {
|
| +checkUnnamed1241(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 = buildUnnamed3324();
|
| + o.values = buildUnnamed1241();
|
| }
|
| 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'));
|
| - checkUnnamed3324(o.values);
|
| + checkUnnamed1241(o.values);
|
| }
|
| buildCounterCondition--;
|
| }
|
| @@ -441,14 +441,14 @@ checkKeyRing(api.KeyRing o) {
|
| buildCounterKeyRing--;
|
| }
|
|
|
| -buildUnnamed3325() {
|
| +buildUnnamed1242() {
|
| var o = new core.List<api.CryptoKeyVersion>();
|
| o.add(buildCryptoKeyVersion());
|
| o.add(buildCryptoKeyVersion());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3325(core.List<api.CryptoKeyVersion> o) {
|
| +checkUnnamed1242(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 = buildUnnamed3325();
|
| + o.cryptoKeyVersions = buildUnnamed1242();
|
| o.nextPageToken = "foo";
|
| o.totalSize = 42;
|
| }
|
| @@ -470,21 +470,21 @@ buildListCryptoKeyVersionsResponse() {
|
| checkListCryptoKeyVersionsResponse(api.ListCryptoKeyVersionsResponse o) {
|
| buildCounterListCryptoKeyVersionsResponse++;
|
| if (buildCounterListCryptoKeyVersionsResponse < 3) {
|
| - checkUnnamed3325(o.cryptoKeyVersions);
|
| + checkUnnamed1242(o.cryptoKeyVersions);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalSize, unittest.equals(42));
|
| }
|
| buildCounterListCryptoKeyVersionsResponse--;
|
| }
|
|
|
| -buildUnnamed3326() {
|
| +buildUnnamed1243() {
|
| var o = new core.List<api.CryptoKey>();
|
| o.add(buildCryptoKey());
|
| o.add(buildCryptoKey());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3326(core.List<api.CryptoKey> o) {
|
| +checkUnnamed1243(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 = buildUnnamed3326();
|
| + o.cryptoKeys = buildUnnamed1243();
|
| o.nextPageToken = "foo";
|
| o.totalSize = 42;
|
| }
|
| @@ -506,21 +506,21 @@ buildListCryptoKeysResponse() {
|
| checkListCryptoKeysResponse(api.ListCryptoKeysResponse o) {
|
| buildCounterListCryptoKeysResponse++;
|
| if (buildCounterListCryptoKeysResponse < 3) {
|
| - checkUnnamed3326(o.cryptoKeys);
|
| + checkUnnamed1243(o.cryptoKeys);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalSize, unittest.equals(42));
|
| }
|
| buildCounterListCryptoKeysResponse--;
|
| }
|
|
|
| -buildUnnamed3327() {
|
| +buildUnnamed1244() {
|
| var o = new core.List<api.KeyRing>();
|
| o.add(buildKeyRing());
|
| o.add(buildKeyRing());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3327(core.List<api.KeyRing> o) {
|
| +checkUnnamed1244(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 = buildUnnamed3327();
|
| + o.keyRings = buildUnnamed1244();
|
| o.nextPageToken = "foo";
|
| o.totalSize = 42;
|
| }
|
| @@ -542,21 +542,21 @@ buildListKeyRingsResponse() {
|
| checkListKeyRingsResponse(api.ListKeyRingsResponse o) {
|
| buildCounterListKeyRingsResponse++;
|
| if (buildCounterListKeyRingsResponse < 3) {
|
| - checkUnnamed3327(o.keyRings);
|
| + checkUnnamed1244(o.keyRings);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| unittest.expect(o.totalSize, unittest.equals(42));
|
| }
|
| buildCounterListKeyRingsResponse--;
|
| }
|
|
|
| -buildUnnamed3328() {
|
| +buildUnnamed1245() {
|
| var o = new core.List<api.Location>();
|
| o.add(buildLocation());
|
| o.add(buildLocation());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3328(core.List<api.Location> o) {
|
| +checkUnnamed1245(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 = buildUnnamed3328();
|
| + o.locations = buildUnnamed1245();
|
| o.nextPageToken = "foo";
|
| }
|
| buildCounterListLocationsResponse--;
|
| @@ -577,33 +577,33 @@ buildListLocationsResponse() {
|
| checkListLocationsResponse(api.ListLocationsResponse o) {
|
| buildCounterListLocationsResponse++;
|
| if (buildCounterListLocationsResponse < 3) {
|
| - checkUnnamed3328(o.locations);
|
| + checkUnnamed1245(o.locations);
|
| unittest.expect(o.nextPageToken, unittest.equals('foo'));
|
| }
|
| buildCounterListLocationsResponse--;
|
| }
|
|
|
| -buildUnnamed3329() {
|
| +buildUnnamed1246() {
|
| var o = new core.Map<core.String, core.String>();
|
| o["x"] = "foo";
|
| o["y"] = "foo";
|
| return o;
|
| }
|
|
|
| -checkUnnamed3329(core.Map<core.String, core.String> o) {
|
| +checkUnnamed1246(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'));
|
| }
|
|
|
| -buildUnnamed3330() {
|
| +buildUnnamed1247() {
|
| 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;
|
| }
|
|
|
| -checkUnnamed3330(core.Map<core.String, core.Object> o) {
|
| +checkUnnamed1247(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 = buildUnnamed3329();
|
| + o.labels = buildUnnamed1246();
|
| o.locationId = "foo";
|
| - o.metadata = buildUnnamed3330();
|
| + o.metadata = buildUnnamed1247();
|
| o.name = "foo";
|
| }
|
| buildCounterLocation--;
|
| @@ -626,9 +626,9 @@ buildLocation() {
|
| checkLocation(api.Location o) {
|
| buildCounterLocation++;
|
| if (buildCounterLocation < 3) {
|
| - checkUnnamed3329(o.labels);
|
| + checkUnnamed1246(o.labels);
|
| unittest.expect(o.locationId, unittest.equals('foo'));
|
| - checkUnnamed3330(o.metadata);
|
| + checkUnnamed1247(o.metadata);
|
| unittest.expect(o.name, unittest.equals('foo'));
|
| }
|
| buildCounterLocation--;
|
| @@ -657,40 +657,40 @@ checkLogConfig(api.LogConfig o) {
|
| buildCounterLogConfig--;
|
| }
|
|
|
| -buildUnnamed3331() {
|
| +buildUnnamed1248() {
|
| var o = new core.List<api.AuditConfig>();
|
| o.add(buildAuditConfig());
|
| o.add(buildAuditConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3331(core.List<api.AuditConfig> o) {
|
| +checkUnnamed1248(core.List<api.AuditConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkAuditConfig(o[0]);
|
| checkAuditConfig(o[1]);
|
| }
|
|
|
| -buildUnnamed3332() {
|
| +buildUnnamed1249() {
|
| var o = new core.List<api.Binding>();
|
| o.add(buildBinding());
|
| o.add(buildBinding());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3332(core.List<api.Binding> o) {
|
| +checkUnnamed1249(core.List<api.Binding> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkBinding(o[0]);
|
| checkBinding(o[1]);
|
| }
|
|
|
| -buildUnnamed3333() {
|
| +buildUnnamed1250() {
|
| var o = new core.List<api.Rule>();
|
| o.add(buildRule());
|
| o.add(buildRule());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3333(core.List<api.Rule> o) {
|
| +checkUnnamed1250(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 = buildUnnamed3331();
|
| - o.bindings = buildUnnamed3332();
|
| + o.auditConfigs = buildUnnamed1248();
|
| + o.bindings = buildUnnamed1249();
|
| o.etag = "foo";
|
| o.iamOwned = true;
|
| - o.rules = buildUnnamed3333();
|
| + o.rules = buildUnnamed1250();
|
| o.version = 42;
|
| }
|
| buildCounterPolicy--;
|
| @@ -715,11 +715,11 @@ buildPolicy() {
|
| checkPolicy(api.Policy o) {
|
| buildCounterPolicy++;
|
| if (buildCounterPolicy < 3) {
|
| - checkUnnamed3331(o.auditConfigs);
|
| - checkUnnamed3332(o.bindings);
|
| + checkUnnamed1248(o.auditConfigs);
|
| + checkUnnamed1249(o.bindings);
|
| unittest.expect(o.etag, unittest.equals('foo'));
|
| unittest.expect(o.iamOwned, unittest.isTrue);
|
| - checkUnnamed3333(o.rules);
|
| + checkUnnamed1250(o.rules);
|
| unittest.expect(o.version, unittest.equals(42));
|
| }
|
| buildCounterPolicy--;
|
| @@ -742,66 +742,66 @@ checkRestoreCryptoKeyVersionRequest(api.RestoreCryptoKeyVersionRequest o) {
|
| buildCounterRestoreCryptoKeyVersionRequest--;
|
| }
|
|
|
| -buildUnnamed3334() {
|
| +buildUnnamed1251() {
|
| var o = new core.List<api.Condition>();
|
| o.add(buildCondition());
|
| o.add(buildCondition());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3334(core.List<api.Condition> o) {
|
| +checkUnnamed1251(core.List<api.Condition> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkCondition(o[0]);
|
| checkCondition(o[1]);
|
| }
|
|
|
| -buildUnnamed3335() {
|
| +buildUnnamed1252() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3335(core.List<core.String> o) {
|
| +checkUnnamed1252(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'));
|
| }
|
|
|
| -buildUnnamed3336() {
|
| +buildUnnamed1253() {
|
| var o = new core.List<api.LogConfig>();
|
| o.add(buildLogConfig());
|
| o.add(buildLogConfig());
|
| return o;
|
| }
|
|
|
| -checkUnnamed3336(core.List<api.LogConfig> o) {
|
| +checkUnnamed1253(core.List<api.LogConfig> o) {
|
| unittest.expect(o, unittest.hasLength(2));
|
| checkLogConfig(o[0]);
|
| checkLogConfig(o[1]);
|
| }
|
|
|
| -buildUnnamed3337() {
|
| +buildUnnamed1254() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3337(core.List<core.String> o) {
|
| +checkUnnamed1254(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'));
|
| }
|
|
|
| -buildUnnamed3338() {
|
| +buildUnnamed1255() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3338(core.List<core.String> o) {
|
| +checkUnnamed1255(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 = buildUnnamed3334();
|
| + o.conditions = buildUnnamed1251();
|
| o.description = "foo";
|
| - o.in_ = buildUnnamed3335();
|
| - o.logConfig = buildUnnamed3336();
|
| - o.notIn = buildUnnamed3337();
|
| - o.permissions = buildUnnamed3338();
|
| + o.in_ = buildUnnamed1252();
|
| + o.logConfig = buildUnnamed1253();
|
| + o.notIn = buildUnnamed1254();
|
| + o.permissions = buildUnnamed1255();
|
| }
|
| buildCounterRule--;
|
| return o;
|
| @@ -828,12 +828,12 @@ checkRule(api.Rule o) {
|
| buildCounterRule++;
|
| if (buildCounterRule < 3) {
|
| unittest.expect(o.action, unittest.equals('foo'));
|
| - checkUnnamed3334(o.conditions);
|
| + checkUnnamed1251(o.conditions);
|
| unittest.expect(o.description, unittest.equals('foo'));
|
| - checkUnnamed3335(o.in_);
|
| - checkUnnamed3336(o.logConfig);
|
| - checkUnnamed3337(o.notIn);
|
| - checkUnnamed3338(o.permissions);
|
| + checkUnnamed1252(o.in_);
|
| + checkUnnamed1253(o.logConfig);
|
| + checkUnnamed1254(o.notIn);
|
| + checkUnnamed1255(o.permissions);
|
| }
|
| buildCounterRule--;
|
| }
|
| @@ -859,14 +859,14 @@ checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
|
| buildCounterSetIamPolicyRequest--;
|
| }
|
|
|
| -buildUnnamed3339() {
|
| +buildUnnamed1256() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3339(core.List<core.String> o) {
|
| +checkUnnamed1256(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 = buildUnnamed3339();
|
| + o.permissions = buildUnnamed1256();
|
| }
|
| buildCounterTestIamPermissionsRequest--;
|
| return o;
|
| @@ -886,19 +886,19 @@ buildTestIamPermissionsRequest() {
|
| checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
|
| buildCounterTestIamPermissionsRequest++;
|
| if (buildCounterTestIamPermissionsRequest < 3) {
|
| - checkUnnamed3339(o.permissions);
|
| + checkUnnamed1256(o.permissions);
|
| }
|
| buildCounterTestIamPermissionsRequest--;
|
| }
|
|
|
| -buildUnnamed3340() {
|
| +buildUnnamed1257() {
|
| var o = new core.List<core.String>();
|
| o.add("foo");
|
| o.add("foo");
|
| return o;
|
| }
|
|
|
| -checkUnnamed3340(core.List<core.String> o) {
|
| +checkUnnamed1257(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 = buildUnnamed3340();
|
| + o.permissions = buildUnnamed1257();
|
| }
|
| buildCounterTestIamPermissionsResponse--;
|
| return o;
|
| @@ -918,7 +918,7 @@ buildTestIamPermissionsResponse() {
|
| checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
|
| buildCounterTestIamPermissionsResponse++;
|
| if (buildCounterTestIamPermissionsResponse < 3) {
|
| - checkUnnamed3340(o.permissions);
|
| + checkUnnamed1257(o.permissions);
|
| }
|
| buildCounterTestIamPermissionsResponse--;
|
| }
|
| @@ -1209,8 +1209,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -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;
|
| @@ -1257,8 +1257,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -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, pageToken: arg_pageToken, pageSize: arg_pageSize, filter: arg_filter).then(unittest.expectAsync(((api.ListLocationsResponse response) {
|
| + res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLocationsResponse response) {
|
| checkListLocationsResponse(response);
|
| })));
|
| });
|
| @@ -1314,8 +1314,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -1360,8 +1360,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -1405,8 +1405,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -1443,8 +1443,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.ProjectsLocationsKeyRingsResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings;
|
| var arg_parent = "foo";
|
| - var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1452,8 +1452,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -1472,8 +1472,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 = {
|
| @@ -1482,7 +1482,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListKeyRingsResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListKeyRingsResponse response) {
|
| + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListKeyRingsResponse response) {
|
| checkListKeyRingsResponse(response);
|
| })));
|
| });
|
| @@ -1503,8 +1503,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -1552,8 +1552,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -1606,8 +1606,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -1656,8 +1656,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -1705,8 +1705,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -1750,8 +1750,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -1795,8 +1795,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -1833,8 +1833,8 @@ main() {
|
| var mock = new HttpServerMock();
|
| api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsApi(mock).projects.locations.keyRings.cryptoKeys;
|
| var arg_parent = "foo";
|
| - var arg_pageToken = "foo";
|
| var arg_pageSize = 42;
|
| + var arg_pageToken = "foo";
|
| mock.register(unittest.expectAsync((http.BaseRequest req, json) {
|
| var path = (req.url).path;
|
| var pathOffset = 0;
|
| @@ -1842,8 +1842,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -1862,8 +1862,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 = {
|
| @@ -1872,7 +1872,7 @@ main() {
|
| var resp = convert.JSON.encode(buildListCryptoKeysResponse());
|
| return new async.Future.value(stringResponse(200, h, resp));
|
| }), true);
|
| - res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListCryptoKeysResponse response) {
|
| + res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListCryptoKeysResponse response) {
|
| checkListCryptoKeysResponse(response);
|
| })));
|
| });
|
| @@ -1894,8 +1894,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -1944,8 +1944,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -1993,8 +1993,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -2042,8 +2042,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -2095,8 +2095,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -2144,8 +2144,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -2189,8 +2189,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -2236,8 +2236,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -2288,8 +2288,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
| @@ -2338,8 +2338,8 @@ main() {
|
| var subPart;
|
| unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equals("/"));
|
| pathOffset += 1;
|
| - unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equals("v1beta1/"));
|
| - pathOffset += 8;
|
| + 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;
|
|
|