Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(359)

Side by Side Diff: generated/googleapis/test/cloudkms/v1_test.dart

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis.cloudkms.v1.test; 1 library googleapis.cloudkms.v1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:test/test.dart' as unittest; 10 import 'package:test/test.dart' as unittest;
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after
44 } 44 }
45 } 45 }
46 } 46 }
47 47
48 http.StreamedResponse stringResponse( 48 http.StreamedResponse stringResponse(
49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) { 49 core.int status, core.Map<core.String, core.String> headers, core.String bod y) {
50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]);
51 return new http.StreamedResponse(stream, status, headers: headers); 51 return new http.StreamedResponse(stream, status, headers: headers);
52 } 52 }
53 53
54 buildUnnamed1370() { 54 buildUnnamed1387() {
55 var o = new core.List<api.AuditLogConfig>(); 55 var o = new core.List<api.AuditLogConfig>();
56 o.add(buildAuditLogConfig()); 56 o.add(buildAuditLogConfig());
57 o.add(buildAuditLogConfig()); 57 o.add(buildAuditLogConfig());
58 return o; 58 return o;
59 } 59 }
60 60
61 checkUnnamed1370(core.List<api.AuditLogConfig> o) { 61 checkUnnamed1387(core.List<api.AuditLogConfig> o) {
62 unittest.expect(o, unittest.hasLength(2)); 62 unittest.expect(o, unittest.hasLength(2));
63 checkAuditLogConfig(o[0]); 63 checkAuditLogConfig(o[0]);
64 checkAuditLogConfig(o[1]); 64 checkAuditLogConfig(o[1]);
65 } 65 }
66 66
67 buildUnnamed1371() { 67 buildUnnamed1388() {
68 var o = new core.List<core.String>(); 68 var o = new core.List<core.String>();
69 o.add("foo"); 69 o.add("foo");
70 o.add("foo"); 70 o.add("foo");
71 return o; 71 return o;
72 } 72 }
73 73
74 checkUnnamed1371(core.List<core.String> o) { 74 checkUnnamed1388(core.List<core.String> o) {
75 unittest.expect(o, unittest.hasLength(2)); 75 unittest.expect(o, unittest.hasLength(2));
76 unittest.expect(o[0], unittest.equals('foo')); 76 unittest.expect(o[0], unittest.equals('foo'));
77 unittest.expect(o[1], unittest.equals('foo')); 77 unittest.expect(o[1], unittest.equals('foo'));
78 } 78 }
79 79
80 core.int buildCounterAuditConfig = 0; 80 core.int buildCounterAuditConfig = 0;
81 buildAuditConfig() { 81 buildAuditConfig() {
82 var o = new api.AuditConfig(); 82 var o = new api.AuditConfig();
83 buildCounterAuditConfig++; 83 buildCounterAuditConfig++;
84 if (buildCounterAuditConfig < 3) { 84 if (buildCounterAuditConfig < 3) {
85 o.auditLogConfigs = buildUnnamed1370(); 85 o.auditLogConfigs = buildUnnamed1387();
86 o.exemptedMembers = buildUnnamed1371(); 86 o.exemptedMembers = buildUnnamed1388();
87 o.service = "foo"; 87 o.service = "foo";
88 } 88 }
89 buildCounterAuditConfig--; 89 buildCounterAuditConfig--;
90 return o; 90 return o;
91 } 91 }
92 92
93 checkAuditConfig(api.AuditConfig o) { 93 checkAuditConfig(api.AuditConfig o) {
94 buildCounterAuditConfig++; 94 buildCounterAuditConfig++;
95 if (buildCounterAuditConfig < 3) { 95 if (buildCounterAuditConfig < 3) {
96 checkUnnamed1370(o.auditLogConfigs); 96 checkUnnamed1387(o.auditLogConfigs);
97 checkUnnamed1371(o.exemptedMembers); 97 checkUnnamed1388(o.exemptedMembers);
98 unittest.expect(o.service, unittest.equals('foo')); 98 unittest.expect(o.service, unittest.equals('foo'));
99 } 99 }
100 buildCounterAuditConfig--; 100 buildCounterAuditConfig--;
101 } 101 }
102 102
103 buildUnnamed1372() { 103 buildUnnamed1389() {
104 var o = new core.List<core.String>(); 104 var o = new core.List<core.String>();
105 o.add("foo"); 105 o.add("foo");
106 o.add("foo"); 106 o.add("foo");
107 return o; 107 return o;
108 } 108 }
109 109
110 checkUnnamed1372(core.List<core.String> o) { 110 checkUnnamed1389(core.List<core.String> o) {
111 unittest.expect(o, unittest.hasLength(2)); 111 unittest.expect(o, unittest.hasLength(2));
112 unittest.expect(o[0], unittest.equals('foo')); 112 unittest.expect(o[0], unittest.equals('foo'));
113 unittest.expect(o[1], unittest.equals('foo')); 113 unittest.expect(o[1], unittest.equals('foo'));
114 } 114 }
115 115
116 core.int buildCounterAuditLogConfig = 0; 116 core.int buildCounterAuditLogConfig = 0;
117 buildAuditLogConfig() { 117 buildAuditLogConfig() {
118 var o = new api.AuditLogConfig(); 118 var o = new api.AuditLogConfig();
119 buildCounterAuditLogConfig++; 119 buildCounterAuditLogConfig++;
120 if (buildCounterAuditLogConfig < 3) { 120 if (buildCounterAuditLogConfig < 3) {
121 o.exemptedMembers = buildUnnamed1372(); 121 o.exemptedMembers = buildUnnamed1389();
122 o.logType = "foo"; 122 o.logType = "foo";
123 } 123 }
124 buildCounterAuditLogConfig--; 124 buildCounterAuditLogConfig--;
125 return o; 125 return o;
126 } 126 }
127 127
128 checkAuditLogConfig(api.AuditLogConfig o) { 128 checkAuditLogConfig(api.AuditLogConfig o) {
129 buildCounterAuditLogConfig++; 129 buildCounterAuditLogConfig++;
130 if (buildCounterAuditLogConfig < 3) { 130 if (buildCounterAuditLogConfig < 3) {
131 checkUnnamed1372(o.exemptedMembers); 131 checkUnnamed1389(o.exemptedMembers);
132 unittest.expect(o.logType, unittest.equals('foo')); 132 unittest.expect(o.logType, unittest.equals('foo'));
133 } 133 }
134 buildCounterAuditLogConfig--; 134 buildCounterAuditLogConfig--;
135 } 135 }
136 136
137 buildUnnamed1373() { 137 buildUnnamed1390() {
138 var o = new core.List<core.String>(); 138 var o = new core.List<core.String>();
139 o.add("foo"); 139 o.add("foo");
140 o.add("foo"); 140 o.add("foo");
141 return o; 141 return o;
142 } 142 }
143 143
144 checkUnnamed1373(core.List<core.String> o) { 144 checkUnnamed1390(core.List<core.String> o) {
145 unittest.expect(o, unittest.hasLength(2)); 145 unittest.expect(o, unittest.hasLength(2));
146 unittest.expect(o[0], unittest.equals('foo')); 146 unittest.expect(o[0], unittest.equals('foo'));
147 unittest.expect(o[1], unittest.equals('foo')); 147 unittest.expect(o[1], unittest.equals('foo'));
148 } 148 }
149 149
150 core.int buildCounterBinding = 0; 150 core.int buildCounterBinding = 0;
151 buildBinding() { 151 buildBinding() {
152 var o = new api.Binding(); 152 var o = new api.Binding();
153 buildCounterBinding++; 153 buildCounterBinding++;
154 if (buildCounterBinding < 3) { 154 if (buildCounterBinding < 3) {
155 o.condition = buildExpr(); 155 o.condition = buildExpr();
156 o.members = buildUnnamed1373(); 156 o.members = buildUnnamed1390();
157 o.role = "foo"; 157 o.role = "foo";
158 } 158 }
159 buildCounterBinding--; 159 buildCounterBinding--;
160 return o; 160 return o;
161 } 161 }
162 162
163 checkBinding(api.Binding o) { 163 checkBinding(api.Binding o) {
164 buildCounterBinding++; 164 buildCounterBinding++;
165 if (buildCounterBinding < 3) { 165 if (buildCounterBinding < 3) {
166 checkExpr(o.condition); 166 checkExpr(o.condition);
167 checkUnnamed1373(o.members); 167 checkUnnamed1390(o.members);
168 unittest.expect(o.role, unittest.equals('foo')); 168 unittest.expect(o.role, unittest.equals('foo'));
169 } 169 }
170 buildCounterBinding--; 170 buildCounterBinding--;
171 } 171 }
172 172
173 core.int buildCounterCloudAuditOptions = 0; 173 core.int buildCounterCloudAuditOptions = 0;
174 buildCloudAuditOptions() { 174 buildCloudAuditOptions() {
175 var o = new api.CloudAuditOptions(); 175 var o = new api.CloudAuditOptions();
176 buildCounterCloudAuditOptions++; 176 buildCounterCloudAuditOptions++;
177 if (buildCounterCloudAuditOptions < 3) { 177 if (buildCounterCloudAuditOptions < 3) {
178 o.logName = "foo"; 178 o.logName = "foo";
179 } 179 }
180 buildCounterCloudAuditOptions--; 180 buildCounterCloudAuditOptions--;
181 return o; 181 return o;
182 } 182 }
183 183
184 checkCloudAuditOptions(api.CloudAuditOptions o) { 184 checkCloudAuditOptions(api.CloudAuditOptions o) {
185 buildCounterCloudAuditOptions++; 185 buildCounterCloudAuditOptions++;
186 if (buildCounterCloudAuditOptions < 3) { 186 if (buildCounterCloudAuditOptions < 3) {
187 unittest.expect(o.logName, unittest.equals('foo')); 187 unittest.expect(o.logName, unittest.equals('foo'));
188 } 188 }
189 buildCounterCloudAuditOptions--; 189 buildCounterCloudAuditOptions--;
190 } 190 }
191 191
192 buildUnnamed1374() { 192 buildUnnamed1391() {
193 var o = new core.List<core.String>(); 193 var o = new core.List<core.String>();
194 o.add("foo"); 194 o.add("foo");
195 o.add("foo"); 195 o.add("foo");
196 return o; 196 return o;
197 } 197 }
198 198
199 checkUnnamed1374(core.List<core.String> o) { 199 checkUnnamed1391(core.List<core.String> o) {
200 unittest.expect(o, unittest.hasLength(2)); 200 unittest.expect(o, unittest.hasLength(2));
201 unittest.expect(o[0], unittest.equals('foo')); 201 unittest.expect(o[0], unittest.equals('foo'));
202 unittest.expect(o[1], unittest.equals('foo')); 202 unittest.expect(o[1], unittest.equals('foo'));
203 } 203 }
204 204
205 core.int buildCounterCondition = 0; 205 core.int buildCounterCondition = 0;
206 buildCondition() { 206 buildCondition() {
207 var o = new api.Condition(); 207 var o = new api.Condition();
208 buildCounterCondition++; 208 buildCounterCondition++;
209 if (buildCounterCondition < 3) { 209 if (buildCounterCondition < 3) {
210 o.iam = "foo"; 210 o.iam = "foo";
211 o.op = "foo"; 211 o.op = "foo";
212 o.svc = "foo"; 212 o.svc = "foo";
213 o.sys = "foo"; 213 o.sys = "foo";
214 o.value = "foo"; 214 o.value = "foo";
215 o.values = buildUnnamed1374(); 215 o.values = buildUnnamed1391();
216 } 216 }
217 buildCounterCondition--; 217 buildCounterCondition--;
218 return o; 218 return o;
219 } 219 }
220 220
221 checkCondition(api.Condition o) { 221 checkCondition(api.Condition o) {
222 buildCounterCondition++; 222 buildCounterCondition++;
223 if (buildCounterCondition < 3) { 223 if (buildCounterCondition < 3) {
224 unittest.expect(o.iam, unittest.equals('foo')); 224 unittest.expect(o.iam, unittest.equals('foo'));
225 unittest.expect(o.op, unittest.equals('foo')); 225 unittest.expect(o.op, unittest.equals('foo'));
226 unittest.expect(o.svc, unittest.equals('foo')); 226 unittest.expect(o.svc, unittest.equals('foo'));
227 unittest.expect(o.sys, unittest.equals('foo')); 227 unittest.expect(o.sys, unittest.equals('foo'));
228 unittest.expect(o.value, unittest.equals('foo')); 228 unittest.expect(o.value, unittest.equals('foo'));
229 checkUnnamed1374(o.values); 229 checkUnnamed1391(o.values);
230 } 230 }
231 buildCounterCondition--; 231 buildCounterCondition--;
232 } 232 }
233 233
234 core.int buildCounterCounterOptions = 0; 234 core.int buildCounterCounterOptions = 0;
235 buildCounterOptions() { 235 buildCounterOptions() {
236 var o = new api.CounterOptions(); 236 var o = new api.CounterOptions();
237 buildCounterCounterOptions++; 237 buildCounterCounterOptions++;
238 if (buildCounterCounterOptions < 3) { 238 if (buildCounterCounterOptions < 3) {
239 o.field = "foo"; 239 o.field = "foo";
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 unittest.expect(o.state, unittest.equals('foo')); 306 unittest.expect(o.state, unittest.equals('foo'));
307 } 307 }
308 buildCounterCryptoKeyVersion--; 308 buildCounterCryptoKeyVersion--;
309 } 309 }
310 310
311 core.int buildCounterDataAccessOptions = 0; 311 core.int buildCounterDataAccessOptions = 0;
312 buildDataAccessOptions() { 312 buildDataAccessOptions() {
313 var o = new api.DataAccessOptions(); 313 var o = new api.DataAccessOptions();
314 buildCounterDataAccessOptions++; 314 buildCounterDataAccessOptions++;
315 if (buildCounterDataAccessOptions < 3) { 315 if (buildCounterDataAccessOptions < 3) {
316 o.logMode = "foo";
316 } 317 }
317 buildCounterDataAccessOptions--; 318 buildCounterDataAccessOptions--;
318 return o; 319 return o;
319 } 320 }
320 321
321 checkDataAccessOptions(api.DataAccessOptions o) { 322 checkDataAccessOptions(api.DataAccessOptions o) {
322 buildCounterDataAccessOptions++; 323 buildCounterDataAccessOptions++;
323 if (buildCounterDataAccessOptions < 3) { 324 if (buildCounterDataAccessOptions < 3) {
325 unittest.expect(o.logMode, unittest.equals('foo'));
324 } 326 }
325 buildCounterDataAccessOptions--; 327 buildCounterDataAccessOptions--;
326 } 328 }
327 329
328 core.int buildCounterDecryptRequest = 0; 330 core.int buildCounterDecryptRequest = 0;
329 buildDecryptRequest() { 331 buildDecryptRequest() {
330 var o = new api.DecryptRequest(); 332 var o = new api.DecryptRequest();
331 buildCounterDecryptRequest++; 333 buildCounterDecryptRequest++;
332 if (buildCounterDecryptRequest < 3) { 334 if (buildCounterDecryptRequest < 3) {
333 o.additionalAuthenticatedData = "foo"; 335 o.additionalAuthenticatedData = "foo";
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
463 465
464 checkKeyRing(api.KeyRing o) { 466 checkKeyRing(api.KeyRing o) {
465 buildCounterKeyRing++; 467 buildCounterKeyRing++;
466 if (buildCounterKeyRing < 3) { 468 if (buildCounterKeyRing < 3) {
467 unittest.expect(o.createTime, unittest.equals('foo')); 469 unittest.expect(o.createTime, unittest.equals('foo'));
468 unittest.expect(o.name, unittest.equals('foo')); 470 unittest.expect(o.name, unittest.equals('foo'));
469 } 471 }
470 buildCounterKeyRing--; 472 buildCounterKeyRing--;
471 } 473 }
472 474
473 buildUnnamed1375() { 475 buildUnnamed1392() {
474 var o = new core.List<api.CryptoKeyVersion>(); 476 var o = new core.List<api.CryptoKeyVersion>();
475 o.add(buildCryptoKeyVersion()); 477 o.add(buildCryptoKeyVersion());
476 o.add(buildCryptoKeyVersion()); 478 o.add(buildCryptoKeyVersion());
477 return o; 479 return o;
478 } 480 }
479 481
480 checkUnnamed1375(core.List<api.CryptoKeyVersion> o) { 482 checkUnnamed1392(core.List<api.CryptoKeyVersion> o) {
481 unittest.expect(o, unittest.hasLength(2)); 483 unittest.expect(o, unittest.hasLength(2));
482 checkCryptoKeyVersion(o[0]); 484 checkCryptoKeyVersion(o[0]);
483 checkCryptoKeyVersion(o[1]); 485 checkCryptoKeyVersion(o[1]);
484 } 486 }
485 487
486 core.int buildCounterListCryptoKeyVersionsResponse = 0; 488 core.int buildCounterListCryptoKeyVersionsResponse = 0;
487 buildListCryptoKeyVersionsResponse() { 489 buildListCryptoKeyVersionsResponse() {
488 var o = new api.ListCryptoKeyVersionsResponse(); 490 var o = new api.ListCryptoKeyVersionsResponse();
489 buildCounterListCryptoKeyVersionsResponse++; 491 buildCounterListCryptoKeyVersionsResponse++;
490 if (buildCounterListCryptoKeyVersionsResponse < 3) { 492 if (buildCounterListCryptoKeyVersionsResponse < 3) {
491 o.cryptoKeyVersions = buildUnnamed1375(); 493 o.cryptoKeyVersions = buildUnnamed1392();
492 o.nextPageToken = "foo"; 494 o.nextPageToken = "foo";
493 o.totalSize = 42; 495 o.totalSize = 42;
494 } 496 }
495 buildCounterListCryptoKeyVersionsResponse--; 497 buildCounterListCryptoKeyVersionsResponse--;
496 return o; 498 return o;
497 } 499 }
498 500
499 checkListCryptoKeyVersionsResponse(api.ListCryptoKeyVersionsResponse o) { 501 checkListCryptoKeyVersionsResponse(api.ListCryptoKeyVersionsResponse o) {
500 buildCounterListCryptoKeyVersionsResponse++; 502 buildCounterListCryptoKeyVersionsResponse++;
501 if (buildCounterListCryptoKeyVersionsResponse < 3) { 503 if (buildCounterListCryptoKeyVersionsResponse < 3) {
502 checkUnnamed1375(o.cryptoKeyVersions); 504 checkUnnamed1392(o.cryptoKeyVersions);
503 unittest.expect(o.nextPageToken, unittest.equals('foo')); 505 unittest.expect(o.nextPageToken, unittest.equals('foo'));
504 unittest.expect(o.totalSize, unittest.equals(42)); 506 unittest.expect(o.totalSize, unittest.equals(42));
505 } 507 }
506 buildCounterListCryptoKeyVersionsResponse--; 508 buildCounterListCryptoKeyVersionsResponse--;
507 } 509 }
508 510
509 buildUnnamed1376() { 511 buildUnnamed1393() {
510 var o = new core.List<api.CryptoKey>(); 512 var o = new core.List<api.CryptoKey>();
511 o.add(buildCryptoKey()); 513 o.add(buildCryptoKey());
512 o.add(buildCryptoKey()); 514 o.add(buildCryptoKey());
513 return o; 515 return o;
514 } 516 }
515 517
516 checkUnnamed1376(core.List<api.CryptoKey> o) { 518 checkUnnamed1393(core.List<api.CryptoKey> o) {
517 unittest.expect(o, unittest.hasLength(2)); 519 unittest.expect(o, unittest.hasLength(2));
518 checkCryptoKey(o[0]); 520 checkCryptoKey(o[0]);
519 checkCryptoKey(o[1]); 521 checkCryptoKey(o[1]);
520 } 522 }
521 523
522 core.int buildCounterListCryptoKeysResponse = 0; 524 core.int buildCounterListCryptoKeysResponse = 0;
523 buildListCryptoKeysResponse() { 525 buildListCryptoKeysResponse() {
524 var o = new api.ListCryptoKeysResponse(); 526 var o = new api.ListCryptoKeysResponse();
525 buildCounterListCryptoKeysResponse++; 527 buildCounterListCryptoKeysResponse++;
526 if (buildCounterListCryptoKeysResponse < 3) { 528 if (buildCounterListCryptoKeysResponse < 3) {
527 o.cryptoKeys = buildUnnamed1376(); 529 o.cryptoKeys = buildUnnamed1393();
528 o.nextPageToken = "foo"; 530 o.nextPageToken = "foo";
529 o.totalSize = 42; 531 o.totalSize = 42;
530 } 532 }
531 buildCounterListCryptoKeysResponse--; 533 buildCounterListCryptoKeysResponse--;
532 return o; 534 return o;
533 } 535 }
534 536
535 checkListCryptoKeysResponse(api.ListCryptoKeysResponse o) { 537 checkListCryptoKeysResponse(api.ListCryptoKeysResponse o) {
536 buildCounterListCryptoKeysResponse++; 538 buildCounterListCryptoKeysResponse++;
537 if (buildCounterListCryptoKeysResponse < 3) { 539 if (buildCounterListCryptoKeysResponse < 3) {
538 checkUnnamed1376(o.cryptoKeys); 540 checkUnnamed1393(o.cryptoKeys);
539 unittest.expect(o.nextPageToken, unittest.equals('foo')); 541 unittest.expect(o.nextPageToken, unittest.equals('foo'));
540 unittest.expect(o.totalSize, unittest.equals(42)); 542 unittest.expect(o.totalSize, unittest.equals(42));
541 } 543 }
542 buildCounterListCryptoKeysResponse--; 544 buildCounterListCryptoKeysResponse--;
543 } 545 }
544 546
545 buildUnnamed1377() { 547 buildUnnamed1394() {
546 var o = new core.List<api.KeyRing>(); 548 var o = new core.List<api.KeyRing>();
547 o.add(buildKeyRing()); 549 o.add(buildKeyRing());
548 o.add(buildKeyRing()); 550 o.add(buildKeyRing());
549 return o; 551 return o;
550 } 552 }
551 553
552 checkUnnamed1377(core.List<api.KeyRing> o) { 554 checkUnnamed1394(core.List<api.KeyRing> o) {
553 unittest.expect(o, unittest.hasLength(2)); 555 unittest.expect(o, unittest.hasLength(2));
554 checkKeyRing(o[0]); 556 checkKeyRing(o[0]);
555 checkKeyRing(o[1]); 557 checkKeyRing(o[1]);
556 } 558 }
557 559
558 core.int buildCounterListKeyRingsResponse = 0; 560 core.int buildCounterListKeyRingsResponse = 0;
559 buildListKeyRingsResponse() { 561 buildListKeyRingsResponse() {
560 var o = new api.ListKeyRingsResponse(); 562 var o = new api.ListKeyRingsResponse();
561 buildCounterListKeyRingsResponse++; 563 buildCounterListKeyRingsResponse++;
562 if (buildCounterListKeyRingsResponse < 3) { 564 if (buildCounterListKeyRingsResponse < 3) {
563 o.keyRings = buildUnnamed1377(); 565 o.keyRings = buildUnnamed1394();
564 o.nextPageToken = "foo"; 566 o.nextPageToken = "foo";
565 o.totalSize = 42; 567 o.totalSize = 42;
566 } 568 }
567 buildCounterListKeyRingsResponse--; 569 buildCounterListKeyRingsResponse--;
568 return o; 570 return o;
569 } 571 }
570 572
571 checkListKeyRingsResponse(api.ListKeyRingsResponse o) { 573 checkListKeyRingsResponse(api.ListKeyRingsResponse o) {
572 buildCounterListKeyRingsResponse++; 574 buildCounterListKeyRingsResponse++;
573 if (buildCounterListKeyRingsResponse < 3) { 575 if (buildCounterListKeyRingsResponse < 3) {
574 checkUnnamed1377(o.keyRings); 576 checkUnnamed1394(o.keyRings);
575 unittest.expect(o.nextPageToken, unittest.equals('foo')); 577 unittest.expect(o.nextPageToken, unittest.equals('foo'));
576 unittest.expect(o.totalSize, unittest.equals(42)); 578 unittest.expect(o.totalSize, unittest.equals(42));
577 } 579 }
578 buildCounterListKeyRingsResponse--; 580 buildCounterListKeyRingsResponse--;
579 } 581 }
580 582
581 buildUnnamed1378() { 583 buildUnnamed1395() {
582 var o = new core.List<api.Location>(); 584 var o = new core.List<api.Location>();
583 o.add(buildLocation()); 585 o.add(buildLocation());
584 o.add(buildLocation()); 586 o.add(buildLocation());
585 return o; 587 return o;
586 } 588 }
587 589
588 checkUnnamed1378(core.List<api.Location> o) { 590 checkUnnamed1395(core.List<api.Location> o) {
589 unittest.expect(o, unittest.hasLength(2)); 591 unittest.expect(o, unittest.hasLength(2));
590 checkLocation(o[0]); 592 checkLocation(o[0]);
591 checkLocation(o[1]); 593 checkLocation(o[1]);
592 } 594 }
593 595
594 core.int buildCounterListLocationsResponse = 0; 596 core.int buildCounterListLocationsResponse = 0;
595 buildListLocationsResponse() { 597 buildListLocationsResponse() {
596 var o = new api.ListLocationsResponse(); 598 var o = new api.ListLocationsResponse();
597 buildCounterListLocationsResponse++; 599 buildCounterListLocationsResponse++;
598 if (buildCounterListLocationsResponse < 3) { 600 if (buildCounterListLocationsResponse < 3) {
599 o.locations = buildUnnamed1378(); 601 o.locations = buildUnnamed1395();
600 o.nextPageToken = "foo"; 602 o.nextPageToken = "foo";
601 } 603 }
602 buildCounterListLocationsResponse--; 604 buildCounterListLocationsResponse--;
603 return o; 605 return o;
604 } 606 }
605 607
606 checkListLocationsResponse(api.ListLocationsResponse o) { 608 checkListLocationsResponse(api.ListLocationsResponse o) {
607 buildCounterListLocationsResponse++; 609 buildCounterListLocationsResponse++;
608 if (buildCounterListLocationsResponse < 3) { 610 if (buildCounterListLocationsResponse < 3) {
609 checkUnnamed1378(o.locations); 611 checkUnnamed1395(o.locations);
610 unittest.expect(o.nextPageToken, unittest.equals('foo')); 612 unittest.expect(o.nextPageToken, unittest.equals('foo'));
611 } 613 }
612 buildCounterListLocationsResponse--; 614 buildCounterListLocationsResponse--;
613 } 615 }
614 616
615 buildUnnamed1379() { 617 buildUnnamed1396() {
616 var o = new core.Map<core.String, core.String>(); 618 var o = new core.Map<core.String, core.String>();
617 o["x"] = "foo"; 619 o["x"] = "foo";
618 o["y"] = "foo"; 620 o["y"] = "foo";
619 return o; 621 return o;
620 } 622 }
621 623
622 checkUnnamed1379(core.Map<core.String, core.String> o) { 624 checkUnnamed1396(core.Map<core.String, core.String> o) {
623 unittest.expect(o, unittest.hasLength(2)); 625 unittest.expect(o, unittest.hasLength(2));
624 unittest.expect(o["x"], unittest.equals('foo')); 626 unittest.expect(o["x"], unittest.equals('foo'));
625 unittest.expect(o["y"], unittest.equals('foo')); 627 unittest.expect(o["y"], unittest.equals('foo'));
626 } 628 }
627 629
628 buildUnnamed1380() { 630 buildUnnamed1397() {
629 var o = new core.Map<core.String, core.Object>(); 631 var o = new core.Map<core.String, core.Object>();
630 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 632 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
631 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 633 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
632 return o; 634 return o;
633 } 635 }
634 636
635 checkUnnamed1380(core.Map<core.String, core.Object> o) { 637 checkUnnamed1397(core.Map<core.String, core.Object> o) {
636 unittest.expect(o, unittest.hasLength(2)); 638 unittest.expect(o, unittest.hasLength(2));
637 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo')); 639 var casted1 = (o["x"]) as core.Map; unittest.expect(casted1, unittest.hasLengt h(3)); unittest.expect(casted1["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted1["bool"], unittest.equals(true)); unittest.expect(casted1["string"], unittest.equals('foo'));
638 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo')); 640 var casted2 = (o["y"]) as core.Map; unittest.expect(casted2, unittest.hasLengt h(3)); unittest.expect(casted2["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted2["bool"], unittest.equals(true)); unittest.expect(casted2["string"], unittest.equals('foo'));
639 } 641 }
640 642
641 core.int buildCounterLocation = 0; 643 core.int buildCounterLocation = 0;
642 buildLocation() { 644 buildLocation() {
643 var o = new api.Location(); 645 var o = new api.Location();
644 buildCounterLocation++; 646 buildCounterLocation++;
645 if (buildCounterLocation < 3) { 647 if (buildCounterLocation < 3) {
646 o.labels = buildUnnamed1379(); 648 o.labels = buildUnnamed1396();
647 o.locationId = "foo"; 649 o.locationId = "foo";
648 o.metadata = buildUnnamed1380(); 650 o.metadata = buildUnnamed1397();
649 o.name = "foo"; 651 o.name = "foo";
650 } 652 }
651 buildCounterLocation--; 653 buildCounterLocation--;
652 return o; 654 return o;
653 } 655 }
654 656
655 checkLocation(api.Location o) { 657 checkLocation(api.Location o) {
656 buildCounterLocation++; 658 buildCounterLocation++;
657 if (buildCounterLocation < 3) { 659 if (buildCounterLocation < 3) {
658 checkUnnamed1379(o.labels); 660 checkUnnamed1396(o.labels);
659 unittest.expect(o.locationId, unittest.equals('foo')); 661 unittest.expect(o.locationId, unittest.equals('foo'));
660 checkUnnamed1380(o.metadata); 662 checkUnnamed1397(o.metadata);
661 unittest.expect(o.name, unittest.equals('foo')); 663 unittest.expect(o.name, unittest.equals('foo'));
662 } 664 }
663 buildCounterLocation--; 665 buildCounterLocation--;
664 } 666 }
665 667
666 core.int buildCounterLogConfig = 0; 668 core.int buildCounterLogConfig = 0;
667 buildLogConfig() { 669 buildLogConfig() {
668 var o = new api.LogConfig(); 670 var o = new api.LogConfig();
669 buildCounterLogConfig++; 671 buildCounterLogConfig++;
670 if (buildCounterLogConfig < 3) { 672 if (buildCounterLogConfig < 3) {
671 o.cloudAudit = buildCloudAuditOptions(); 673 o.cloudAudit = buildCloudAuditOptions();
672 o.counter = buildCounterOptions(); 674 o.counter = buildCounterOptions();
673 o.dataAccess = buildDataAccessOptions(); 675 o.dataAccess = buildDataAccessOptions();
674 } 676 }
675 buildCounterLogConfig--; 677 buildCounterLogConfig--;
676 return o; 678 return o;
677 } 679 }
678 680
679 checkLogConfig(api.LogConfig o) { 681 checkLogConfig(api.LogConfig o) {
680 buildCounterLogConfig++; 682 buildCounterLogConfig++;
681 if (buildCounterLogConfig < 3) { 683 if (buildCounterLogConfig < 3) {
682 checkCloudAuditOptions(o.cloudAudit); 684 checkCloudAuditOptions(o.cloudAudit);
683 checkCounterOptions(o.counter); 685 checkCounterOptions(o.counter);
684 checkDataAccessOptions(o.dataAccess); 686 checkDataAccessOptions(o.dataAccess);
685 } 687 }
686 buildCounterLogConfig--; 688 buildCounterLogConfig--;
687 } 689 }
688 690
689 buildUnnamed1381() { 691 buildUnnamed1398() {
690 var o = new core.List<api.AuditConfig>(); 692 var o = new core.List<api.AuditConfig>();
691 o.add(buildAuditConfig()); 693 o.add(buildAuditConfig());
692 o.add(buildAuditConfig()); 694 o.add(buildAuditConfig());
693 return o; 695 return o;
694 } 696 }
695 697
696 checkUnnamed1381(core.List<api.AuditConfig> o) { 698 checkUnnamed1398(core.List<api.AuditConfig> o) {
697 unittest.expect(o, unittest.hasLength(2)); 699 unittest.expect(o, unittest.hasLength(2));
698 checkAuditConfig(o[0]); 700 checkAuditConfig(o[0]);
699 checkAuditConfig(o[1]); 701 checkAuditConfig(o[1]);
700 } 702 }
701 703
702 buildUnnamed1382() { 704 buildUnnamed1399() {
703 var o = new core.List<api.Binding>(); 705 var o = new core.List<api.Binding>();
704 o.add(buildBinding()); 706 o.add(buildBinding());
705 o.add(buildBinding()); 707 o.add(buildBinding());
706 return o; 708 return o;
707 } 709 }
708 710
709 checkUnnamed1382(core.List<api.Binding> o) { 711 checkUnnamed1399(core.List<api.Binding> o) {
710 unittest.expect(o, unittest.hasLength(2)); 712 unittest.expect(o, unittest.hasLength(2));
711 checkBinding(o[0]); 713 checkBinding(o[0]);
712 checkBinding(o[1]); 714 checkBinding(o[1]);
713 } 715 }
714 716
715 buildUnnamed1383() { 717 buildUnnamed1400() {
716 var o = new core.List<api.Rule>(); 718 var o = new core.List<api.Rule>();
717 o.add(buildRule()); 719 o.add(buildRule());
718 o.add(buildRule()); 720 o.add(buildRule());
719 return o; 721 return o;
720 } 722 }
721 723
722 checkUnnamed1383(core.List<api.Rule> o) { 724 checkUnnamed1400(core.List<api.Rule> o) {
723 unittest.expect(o, unittest.hasLength(2)); 725 unittest.expect(o, unittest.hasLength(2));
724 checkRule(o[0]); 726 checkRule(o[0]);
725 checkRule(o[1]); 727 checkRule(o[1]);
726 } 728 }
727 729
728 core.int buildCounterPolicy = 0; 730 core.int buildCounterPolicy = 0;
729 buildPolicy() { 731 buildPolicy() {
730 var o = new api.Policy(); 732 var o = new api.Policy();
731 buildCounterPolicy++; 733 buildCounterPolicy++;
732 if (buildCounterPolicy < 3) { 734 if (buildCounterPolicy < 3) {
733 o.auditConfigs = buildUnnamed1381(); 735 o.auditConfigs = buildUnnamed1398();
734 o.bindings = buildUnnamed1382(); 736 o.bindings = buildUnnamed1399();
735 o.etag = "foo"; 737 o.etag = "foo";
736 o.iamOwned = true; 738 o.iamOwned = true;
737 o.rules = buildUnnamed1383(); 739 o.rules = buildUnnamed1400();
738 o.version = 42; 740 o.version = 42;
739 } 741 }
740 buildCounterPolicy--; 742 buildCounterPolicy--;
741 return o; 743 return o;
742 } 744 }
743 745
744 checkPolicy(api.Policy o) { 746 checkPolicy(api.Policy o) {
745 buildCounterPolicy++; 747 buildCounterPolicy++;
746 if (buildCounterPolicy < 3) { 748 if (buildCounterPolicy < 3) {
747 checkUnnamed1381(o.auditConfigs); 749 checkUnnamed1398(o.auditConfigs);
748 checkUnnamed1382(o.bindings); 750 checkUnnamed1399(o.bindings);
749 unittest.expect(o.etag, unittest.equals('foo')); 751 unittest.expect(o.etag, unittest.equals('foo'));
750 unittest.expect(o.iamOwned, unittest.isTrue); 752 unittest.expect(o.iamOwned, unittest.isTrue);
751 checkUnnamed1383(o.rules); 753 checkUnnamed1400(o.rules);
752 unittest.expect(o.version, unittest.equals(42)); 754 unittest.expect(o.version, unittest.equals(42));
753 } 755 }
754 buildCounterPolicy--; 756 buildCounterPolicy--;
755 } 757 }
756 758
757 core.int buildCounterRestoreCryptoKeyVersionRequest = 0; 759 core.int buildCounterRestoreCryptoKeyVersionRequest = 0;
758 buildRestoreCryptoKeyVersionRequest() { 760 buildRestoreCryptoKeyVersionRequest() {
759 var o = new api.RestoreCryptoKeyVersionRequest(); 761 var o = new api.RestoreCryptoKeyVersionRequest();
760 buildCounterRestoreCryptoKeyVersionRequest++; 762 buildCounterRestoreCryptoKeyVersionRequest++;
761 if (buildCounterRestoreCryptoKeyVersionRequest < 3) { 763 if (buildCounterRestoreCryptoKeyVersionRequest < 3) {
762 } 764 }
763 buildCounterRestoreCryptoKeyVersionRequest--; 765 buildCounterRestoreCryptoKeyVersionRequest--;
764 return o; 766 return o;
765 } 767 }
766 768
767 checkRestoreCryptoKeyVersionRequest(api.RestoreCryptoKeyVersionRequest o) { 769 checkRestoreCryptoKeyVersionRequest(api.RestoreCryptoKeyVersionRequest o) {
768 buildCounterRestoreCryptoKeyVersionRequest++; 770 buildCounterRestoreCryptoKeyVersionRequest++;
769 if (buildCounterRestoreCryptoKeyVersionRequest < 3) { 771 if (buildCounterRestoreCryptoKeyVersionRequest < 3) {
770 } 772 }
771 buildCounterRestoreCryptoKeyVersionRequest--; 773 buildCounterRestoreCryptoKeyVersionRequest--;
772 } 774 }
773 775
774 buildUnnamed1384() { 776 buildUnnamed1401() {
775 var o = new core.List<api.Condition>(); 777 var o = new core.List<api.Condition>();
776 o.add(buildCondition()); 778 o.add(buildCondition());
777 o.add(buildCondition()); 779 o.add(buildCondition());
778 return o; 780 return o;
779 } 781 }
780 782
781 checkUnnamed1384(core.List<api.Condition> o) { 783 checkUnnamed1401(core.List<api.Condition> o) {
782 unittest.expect(o, unittest.hasLength(2)); 784 unittest.expect(o, unittest.hasLength(2));
783 checkCondition(o[0]); 785 checkCondition(o[0]);
784 checkCondition(o[1]); 786 checkCondition(o[1]);
785 } 787 }
786 788
787 buildUnnamed1385() { 789 buildUnnamed1402() {
788 var o = new core.List<core.String>(); 790 var o = new core.List<core.String>();
789 o.add("foo"); 791 o.add("foo");
790 o.add("foo"); 792 o.add("foo");
791 return o; 793 return o;
792 } 794 }
793 795
794 checkUnnamed1385(core.List<core.String> o) { 796 checkUnnamed1402(core.List<core.String> o) {
795 unittest.expect(o, unittest.hasLength(2)); 797 unittest.expect(o, unittest.hasLength(2));
796 unittest.expect(o[0], unittest.equals('foo')); 798 unittest.expect(o[0], unittest.equals('foo'));
797 unittest.expect(o[1], unittest.equals('foo')); 799 unittest.expect(o[1], unittest.equals('foo'));
798 } 800 }
799 801
800 buildUnnamed1386() { 802 buildUnnamed1403() {
801 var o = new core.List<api.LogConfig>(); 803 var o = new core.List<api.LogConfig>();
802 o.add(buildLogConfig()); 804 o.add(buildLogConfig());
803 o.add(buildLogConfig()); 805 o.add(buildLogConfig());
804 return o; 806 return o;
805 } 807 }
806 808
807 checkUnnamed1386(core.List<api.LogConfig> o) { 809 checkUnnamed1403(core.List<api.LogConfig> o) {
808 unittest.expect(o, unittest.hasLength(2)); 810 unittest.expect(o, unittest.hasLength(2));
809 checkLogConfig(o[0]); 811 checkLogConfig(o[0]);
810 checkLogConfig(o[1]); 812 checkLogConfig(o[1]);
811 } 813 }
812 814
813 buildUnnamed1387() { 815 buildUnnamed1404() {
814 var o = new core.List<core.String>(); 816 var o = new core.List<core.String>();
815 o.add("foo"); 817 o.add("foo");
816 o.add("foo"); 818 o.add("foo");
817 return o; 819 return o;
818 } 820 }
819 821
820 checkUnnamed1387(core.List<core.String> o) { 822 checkUnnamed1404(core.List<core.String> o) {
821 unittest.expect(o, unittest.hasLength(2)); 823 unittest.expect(o, unittest.hasLength(2));
822 unittest.expect(o[0], unittest.equals('foo')); 824 unittest.expect(o[0], unittest.equals('foo'));
823 unittest.expect(o[1], unittest.equals('foo')); 825 unittest.expect(o[1], unittest.equals('foo'));
824 } 826 }
825 827
826 buildUnnamed1388() { 828 buildUnnamed1405() {
827 var o = new core.List<core.String>(); 829 var o = new core.List<core.String>();
828 o.add("foo"); 830 o.add("foo");
829 o.add("foo"); 831 o.add("foo");
830 return o; 832 return o;
831 } 833 }
832 834
833 checkUnnamed1388(core.List<core.String> o) { 835 checkUnnamed1405(core.List<core.String> o) {
834 unittest.expect(o, unittest.hasLength(2)); 836 unittest.expect(o, unittest.hasLength(2));
835 unittest.expect(o[0], unittest.equals('foo')); 837 unittest.expect(o[0], unittest.equals('foo'));
836 unittest.expect(o[1], unittest.equals('foo')); 838 unittest.expect(o[1], unittest.equals('foo'));
837 } 839 }
838 840
839 core.int buildCounterRule = 0; 841 core.int buildCounterRule = 0;
840 buildRule() { 842 buildRule() {
841 var o = new api.Rule(); 843 var o = new api.Rule();
842 buildCounterRule++; 844 buildCounterRule++;
843 if (buildCounterRule < 3) { 845 if (buildCounterRule < 3) {
844 o.action = "foo"; 846 o.action = "foo";
845 o.conditions = buildUnnamed1384(); 847 o.conditions = buildUnnamed1401();
846 o.description = "foo"; 848 o.description = "foo";
847 o.in_ = buildUnnamed1385(); 849 o.in_ = buildUnnamed1402();
848 o.logConfig = buildUnnamed1386(); 850 o.logConfig = buildUnnamed1403();
849 o.notIn = buildUnnamed1387(); 851 o.notIn = buildUnnamed1404();
850 o.permissions = buildUnnamed1388(); 852 o.permissions = buildUnnamed1405();
851 } 853 }
852 buildCounterRule--; 854 buildCounterRule--;
853 return o; 855 return o;
854 } 856 }
855 857
856 checkRule(api.Rule o) { 858 checkRule(api.Rule o) {
857 buildCounterRule++; 859 buildCounterRule++;
858 if (buildCounterRule < 3) { 860 if (buildCounterRule < 3) {
859 unittest.expect(o.action, unittest.equals('foo')); 861 unittest.expect(o.action, unittest.equals('foo'));
860 checkUnnamed1384(o.conditions); 862 checkUnnamed1401(o.conditions);
861 unittest.expect(o.description, unittest.equals('foo')); 863 unittest.expect(o.description, unittest.equals('foo'));
862 checkUnnamed1385(o.in_); 864 checkUnnamed1402(o.in_);
863 checkUnnamed1386(o.logConfig); 865 checkUnnamed1403(o.logConfig);
864 checkUnnamed1387(o.notIn); 866 checkUnnamed1404(o.notIn);
865 checkUnnamed1388(o.permissions); 867 checkUnnamed1405(o.permissions);
866 } 868 }
867 buildCounterRule--; 869 buildCounterRule--;
868 } 870 }
869 871
870 core.int buildCounterSetIamPolicyRequest = 0; 872 core.int buildCounterSetIamPolicyRequest = 0;
871 buildSetIamPolicyRequest() { 873 buildSetIamPolicyRequest() {
872 var o = new api.SetIamPolicyRequest(); 874 var o = new api.SetIamPolicyRequest();
873 buildCounterSetIamPolicyRequest++; 875 buildCounterSetIamPolicyRequest++;
874 if (buildCounterSetIamPolicyRequest < 3) { 876 if (buildCounterSetIamPolicyRequest < 3) {
875 o.policy = buildPolicy(); 877 o.policy = buildPolicy();
876 o.updateMask = "foo"; 878 o.updateMask = "foo";
877 } 879 }
878 buildCounterSetIamPolicyRequest--; 880 buildCounterSetIamPolicyRequest--;
879 return o; 881 return o;
880 } 882 }
881 883
882 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { 884 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
883 buildCounterSetIamPolicyRequest++; 885 buildCounterSetIamPolicyRequest++;
884 if (buildCounterSetIamPolicyRequest < 3) { 886 if (buildCounterSetIamPolicyRequest < 3) {
885 checkPolicy(o.policy); 887 checkPolicy(o.policy);
886 unittest.expect(o.updateMask, unittest.equals('foo')); 888 unittest.expect(o.updateMask, unittest.equals('foo'));
887 } 889 }
888 buildCounterSetIamPolicyRequest--; 890 buildCounterSetIamPolicyRequest--;
889 } 891 }
890 892
891 buildUnnamed1389() { 893 buildUnnamed1406() {
892 var o = new core.List<core.String>(); 894 var o = new core.List<core.String>();
893 o.add("foo"); 895 o.add("foo");
894 o.add("foo"); 896 o.add("foo");
895 return o; 897 return o;
896 } 898 }
897 899
898 checkUnnamed1389(core.List<core.String> o) { 900 checkUnnamed1406(core.List<core.String> o) {
899 unittest.expect(o, unittest.hasLength(2)); 901 unittest.expect(o, unittest.hasLength(2));
900 unittest.expect(o[0], unittest.equals('foo')); 902 unittest.expect(o[0], unittest.equals('foo'));
901 unittest.expect(o[1], unittest.equals('foo')); 903 unittest.expect(o[1], unittest.equals('foo'));
902 } 904 }
903 905
904 core.int buildCounterTestIamPermissionsRequest = 0; 906 core.int buildCounterTestIamPermissionsRequest = 0;
905 buildTestIamPermissionsRequest() { 907 buildTestIamPermissionsRequest() {
906 var o = new api.TestIamPermissionsRequest(); 908 var o = new api.TestIamPermissionsRequest();
907 buildCounterTestIamPermissionsRequest++; 909 buildCounterTestIamPermissionsRequest++;
908 if (buildCounterTestIamPermissionsRequest < 3) { 910 if (buildCounterTestIamPermissionsRequest < 3) {
909 o.permissions = buildUnnamed1389(); 911 o.permissions = buildUnnamed1406();
910 } 912 }
911 buildCounterTestIamPermissionsRequest--; 913 buildCounterTestIamPermissionsRequest--;
912 return o; 914 return o;
913 } 915 }
914 916
915 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { 917 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
916 buildCounterTestIamPermissionsRequest++; 918 buildCounterTestIamPermissionsRequest++;
917 if (buildCounterTestIamPermissionsRequest < 3) { 919 if (buildCounterTestIamPermissionsRequest < 3) {
918 checkUnnamed1389(o.permissions); 920 checkUnnamed1406(o.permissions);
919 } 921 }
920 buildCounterTestIamPermissionsRequest--; 922 buildCounterTestIamPermissionsRequest--;
921 } 923 }
922 924
923 buildUnnamed1390() { 925 buildUnnamed1407() {
924 var o = new core.List<core.String>(); 926 var o = new core.List<core.String>();
925 o.add("foo"); 927 o.add("foo");
926 o.add("foo"); 928 o.add("foo");
927 return o; 929 return o;
928 } 930 }
929 931
930 checkUnnamed1390(core.List<core.String> o) { 932 checkUnnamed1407(core.List<core.String> o) {
931 unittest.expect(o, unittest.hasLength(2)); 933 unittest.expect(o, unittest.hasLength(2));
932 unittest.expect(o[0], unittest.equals('foo')); 934 unittest.expect(o[0], unittest.equals('foo'));
933 unittest.expect(o[1], unittest.equals('foo')); 935 unittest.expect(o[1], unittest.equals('foo'));
934 } 936 }
935 937
936 core.int buildCounterTestIamPermissionsResponse = 0; 938 core.int buildCounterTestIamPermissionsResponse = 0;
937 buildTestIamPermissionsResponse() { 939 buildTestIamPermissionsResponse() {
938 var o = new api.TestIamPermissionsResponse(); 940 var o = new api.TestIamPermissionsResponse();
939 buildCounterTestIamPermissionsResponse++; 941 buildCounterTestIamPermissionsResponse++;
940 if (buildCounterTestIamPermissionsResponse < 3) { 942 if (buildCounterTestIamPermissionsResponse < 3) {
941 o.permissions = buildUnnamed1390(); 943 o.permissions = buildUnnamed1407();
942 } 944 }
943 buildCounterTestIamPermissionsResponse--; 945 buildCounterTestIamPermissionsResponse--;
944 return o; 946 return o;
945 } 947 }
946 948
947 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { 949 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
948 buildCounterTestIamPermissionsResponse++; 950 buildCounterTestIamPermissionsResponse++;
949 if (buildCounterTestIamPermissionsResponse < 3) { 951 if (buildCounterTestIamPermissionsResponse < 3) {
950 checkUnnamed1390(o.permissions); 952 checkUnnamed1407(o.permissions);
951 } 953 }
952 buildCounterTestIamPermissionsResponse--; 954 buildCounterTestIamPermissionsResponse--;
953 } 955 }
954 956
955 core.int buildCounterUpdateCryptoKeyPrimaryVersionRequest = 0; 957 core.int buildCounterUpdateCryptoKeyPrimaryVersionRequest = 0;
956 buildUpdateCryptoKeyPrimaryVersionRequest() { 958 buildUpdateCryptoKeyPrimaryVersionRequest() {
957 var o = new api.UpdateCryptoKeyPrimaryVersionRequest(); 959 var o = new api.UpdateCryptoKeyPrimaryVersionRequest();
958 buildCounterUpdateCryptoKeyPrimaryVersionRequest++; 960 buildCounterUpdateCryptoKeyPrimaryVersionRequest++;
959 if (buildCounterUpdateCryptoKeyPrimaryVersionRequest < 3) { 961 if (buildCounterUpdateCryptoKeyPrimaryVersionRequest < 3) {
960 o.cryptoKeyVersionId = "foo"; 962 o.cryptoKeyVersionId = "foo";
(...skipping 317 matching lines...) Expand 10 before | Expand all | Expand 10 after
1278 res.get(arg_name).then(unittest.expectAsync1(((api.Location response) { 1280 res.get(arg_name).then(unittest.expectAsync1(((api.Location response) {
1279 checkLocation(response); 1281 checkLocation(response);
1280 }))); 1282 })));
1281 }); 1283 });
1282 1284
1283 unittest.test("method--list", () { 1285 unittest.test("method--list", () {
1284 1286
1285 var mock = new HttpServerMock(); 1287 var mock = new HttpServerMock();
1286 api.ProjectsLocationsResourceApi res = new api.CloudkmsApi(mock).projects. locations; 1288 api.ProjectsLocationsResourceApi res = new api.CloudkmsApi(mock).projects. locations;
1287 var arg_name = "foo"; 1289 var arg_name = "foo";
1290 var arg_pageSize = 42;
1288 var arg_filter = "foo"; 1291 var arg_filter = "foo";
1289 var arg_pageToken = "foo"; 1292 var arg_pageToken = "foo";
1290 var arg_pageSize = 42;
1291 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 1293 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1292 var path = (req.url).path; 1294 var path = (req.url).path;
1293 var pathOffset = 0; 1295 var pathOffset = 0;
1294 var index; 1296 var index;
1295 var subPart; 1297 var subPart;
1296 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1298 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1297 pathOffset += 1; 1299 pathOffset += 1;
1298 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 1300 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/"));
1299 pathOffset += 3; 1301 pathOffset += 3;
1300 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 1302 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1301 1303
1302 var query = (req.url).query; 1304 var query = (req.url).query;
1303 var queryOffset = 0; 1305 var queryOffset = 0;
1304 var queryMap = {}; 1306 var queryMap = {};
1305 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1307 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1306 parseBool(n) { 1308 parseBool(n) {
1307 if (n == "true") return true; 1309 if (n == "true") return true;
1308 if (n == "false") return false; 1310 if (n == "false") return false;
1309 if (n == null) return null; 1311 if (n == null) return null;
1310 throw new core.ArgumentError("Invalid boolean: $n"); 1312 throw new core.ArgumentError("Invalid boolean: $n");
1311 } 1313 }
1312 if (query.length > 0) { 1314 if (query.length > 0) {
1313 for (var part in query.split("&")) { 1315 for (var part in query.split("&")) {
1314 var keyvalue = part.split("="); 1316 var keyvalue = part.split("=");
1315 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1317 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1316 } 1318 }
1317 } 1319 }
1320 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1318 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 1321 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
1319 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 1322 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1320 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1321 1323
1322 1324
1323 var h = { 1325 var h = {
1324 "content-type" : "application/json; charset=utf-8", 1326 "content-type" : "application/json; charset=utf-8",
1325 }; 1327 };
1326 var resp = convert.JSON.encode(buildListLocationsResponse()); 1328 var resp = convert.JSON.encode(buildListLocationsResponse());
1327 return new async.Future.value(stringResponse(200, h, resp)); 1329 return new async.Future.value(stringResponse(200, h, resp));
1328 }), true); 1330 }), true);
1329 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListLocationsResponse response) { 1331 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync1(((api.ListLocationsResponse response) {
1330 checkListLocationsResponse(response); 1332 checkListLocationsResponse(response);
1331 }))); 1333 })));
1332 }); 1334 });
1333 1335
1334 }); 1336 });
1335 1337
1336 1338
1337 unittest.group("resource-ProjectsLocationsKeyRingsResourceApi", () { 1339 unittest.group("resource-ProjectsLocationsKeyRingsResourceApi", () {
1338 unittest.test("method--create", () { 1340 unittest.test("method--create", () {
1339 1341
(...skipping 134 matching lines...) Expand 10 before | Expand all | Expand 10 after
1474 res.getIamPolicy(arg_resource).then(unittest.expectAsync1(((api.Policy res ponse) { 1476 res.getIamPolicy(arg_resource).then(unittest.expectAsync1(((api.Policy res ponse) {
1475 checkPolicy(response); 1477 checkPolicy(response);
1476 }))); 1478 })));
1477 }); 1479 });
1478 1480
1479 unittest.test("method--list", () { 1481 unittest.test("method--list", () {
1480 1482
1481 var mock = new HttpServerMock(); 1483 var mock = new HttpServerMock();
1482 api.ProjectsLocationsKeyRingsResourceApi res = new api.CloudkmsApi(mock).p rojects.locations.keyRings; 1484 api.ProjectsLocationsKeyRingsResourceApi res = new api.CloudkmsApi(mock).p rojects.locations.keyRings;
1483 var arg_parent = "foo"; 1485 var arg_parent = "foo";
1486 var arg_pageSize = 42;
1484 var arg_pageToken = "foo"; 1487 var arg_pageToken = "foo";
1485 var arg_pageSize = 42;
1486 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 1488 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1487 var path = (req.url).path; 1489 var path = (req.url).path;
1488 var pathOffset = 0; 1490 var pathOffset = 0;
1489 var index; 1491 var index;
1490 var subPart; 1492 var subPart;
1491 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1493 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1492 pathOffset += 1; 1494 pathOffset += 1;
1493 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 1495 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/"));
1494 pathOffset += 3; 1496 pathOffset += 3;
1495 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 1497 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1496 1498
1497 var query = (req.url).query; 1499 var query = (req.url).query;
1498 var queryOffset = 0; 1500 var queryOffset = 0;
1499 var queryMap = {}; 1501 var queryMap = {};
1500 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1502 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1501 parseBool(n) { 1503 parseBool(n) {
1502 if (n == "true") return true; 1504 if (n == "true") return true;
1503 if (n == "false") return false; 1505 if (n == "false") return false;
1504 if (n == null) return null; 1506 if (n == null) return null;
1505 throw new core.ArgumentError("Invalid boolean: $n"); 1507 throw new core.ArgumentError("Invalid boolean: $n");
1506 } 1508 }
1507 if (query.length > 0) { 1509 if (query.length > 0) {
1508 for (var part in query.split("&")) { 1510 for (var part in query.split("&")) {
1509 var keyvalue = part.split("="); 1511 var keyvalue = part.split("=");
1510 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1512 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1511 } 1513 }
1512 } 1514 }
1515 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1513 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 1516 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1514 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1515 1517
1516 1518
1517 var h = { 1519 var h = {
1518 "content-type" : "application/json; charset=utf-8", 1520 "content-type" : "application/json; charset=utf-8",
1519 }; 1521 };
1520 var resp = convert.JSON.encode(buildListKeyRingsResponse()); 1522 var resp = convert.JSON.encode(buildListKeyRingsResponse());
1521 return new async.Future.value(stringResponse(200, h, resp)); 1523 return new async.Future.value(stringResponse(200, h, resp));
1522 }), true); 1524 }), true);
1523 res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync1(((api.ListKeyRingsResponse response) { 1525 res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync1(((api.ListKeyRingsResponse response) {
1524 checkListKeyRingsResponse(response); 1526 checkListKeyRingsResponse(response);
1525 }))); 1527 })));
1526 }); 1528 });
1527 1529
1528 unittest.test("method--setIamPolicy", () { 1530 unittest.test("method--setIamPolicy", () {
1529 1531
1530 var mock = new HttpServerMock(); 1532 var mock = new HttpServerMock();
1531 api.ProjectsLocationsKeyRingsResourceApi res = new api.CloudkmsApi(mock).p rojects.locations.keyRings; 1533 api.ProjectsLocationsKeyRingsResourceApi res = new api.CloudkmsApi(mock).p rojects.locations.keyRings;
1532 var arg_request = buildSetIamPolicyRequest(); 1534 var arg_request = buildSetIamPolicyRequest();
1533 var arg_resource = "foo"; 1535 var arg_resource = "foo";
(...skipping 330 matching lines...) Expand 10 before | Expand all | Expand 10 after
1864 res.getIamPolicy(arg_resource).then(unittest.expectAsync1(((api.Policy res ponse) { 1866 res.getIamPolicy(arg_resource).then(unittest.expectAsync1(((api.Policy res ponse) {
1865 checkPolicy(response); 1867 checkPolicy(response);
1866 }))); 1868 })));
1867 }); 1869 });
1868 1870
1869 unittest.test("method--list", () { 1871 unittest.test("method--list", () {
1870 1872
1871 var mock = new HttpServerMock(); 1873 var mock = new HttpServerMock();
1872 api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsA pi(mock).projects.locations.keyRings.cryptoKeys; 1874 api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsA pi(mock).projects.locations.keyRings.cryptoKeys;
1873 var arg_parent = "foo"; 1875 var arg_parent = "foo";
1876 var arg_pageSize = 42;
1874 var arg_pageToken = "foo"; 1877 var arg_pageToken = "foo";
1875 var arg_pageSize = 42;
1876 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { 1878 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
1877 var path = (req.url).path; 1879 var path = (req.url).path;
1878 var pathOffset = 0; 1880 var pathOffset = 0;
1879 var index; 1881 var index;
1880 var subPart; 1882 var subPart;
1881 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1883 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1882 pathOffset += 1; 1884 pathOffset += 1;
1883 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/")); 1885 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ als("v1/"));
1884 pathOffset += 3; 1886 pathOffset += 3;
1885 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 1887 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1886 1888
1887 var query = (req.url).query; 1889 var query = (req.url).query;
1888 var queryOffset = 0; 1890 var queryOffset = 0;
1889 var queryMap = {}; 1891 var queryMap = {};
1890 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1892 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1891 parseBool(n) { 1893 parseBool(n) {
1892 if (n == "true") return true; 1894 if (n == "true") return true;
1893 if (n == "false") return false; 1895 if (n == "false") return false;
1894 if (n == null) return null; 1896 if (n == null) return null;
1895 throw new core.ArgumentError("Invalid boolean: $n"); 1897 throw new core.ArgumentError("Invalid boolean: $n");
1896 } 1898 }
1897 if (query.length > 0) { 1899 if (query.length > 0) {
1898 for (var part in query.split("&")) { 1900 for (var part in query.split("&")) {
1899 var keyvalue = part.split("="); 1901 var keyvalue = part.split("=");
1900 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1902 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1901 } 1903 }
1902 } 1904 }
1905 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1903 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 1906 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1904 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1905 1907
1906 1908
1907 var h = { 1909 var h = {
1908 "content-type" : "application/json; charset=utf-8", 1910 "content-type" : "application/json; charset=utf-8",
1909 }; 1911 };
1910 var resp = convert.JSON.encode(buildListCryptoKeysResponse()); 1912 var resp = convert.JSON.encode(buildListCryptoKeysResponse());
1911 return new async.Future.value(stringResponse(200, h, resp)); 1913 return new async.Future.value(stringResponse(200, h, resp));
1912 }), true); 1914 }), true);
1913 res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync1(((api.ListCryptoKeysResponse response) { 1915 res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync1(((api.ListCryptoKeysResponse response) {
1914 checkListCryptoKeysResponse(response); 1916 checkListCryptoKeysResponse(response);
1915 }))); 1917 })));
1916 }); 1918 });
1917 1919
1918 unittest.test("method--patch", () { 1920 unittest.test("method--patch", () {
1919 1921
1920 var mock = new HttpServerMock(); 1922 var mock = new HttpServerMock();
1921 api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsA pi(mock).projects.locations.keyRings.cryptoKeys; 1923 api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsA pi(mock).projects.locations.keyRings.cryptoKeys;
1922 var arg_request = buildCryptoKey(); 1924 var arg_request = buildCryptoKey();
1923 var arg_name = "foo"; 1925 var arg_name = "foo";
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
2407 res.restore(arg_request, arg_name).then(unittest.expectAsync1(((api.Crypto KeyVersion response) { 2409 res.restore(arg_request, arg_name).then(unittest.expectAsync1(((api.Crypto KeyVersion response) {
2408 checkCryptoKeyVersion(response); 2410 checkCryptoKeyVersion(response);
2409 }))); 2411 })));
2410 }); 2412 });
2411 2413
2412 }); 2414 });
2413 2415
2414 2416
2415 } 2417 }
2416 2418
OLDNEW
« no previous file with comments | « generated/googleapis/test/cloudfunctions/v1_test.dart ('k') | generated/googleapis/test/cloudresourcemanager/v1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698