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

Side by Side Diff: generated/googleapis_beta/test/cloudkms/v1beta1_test.dart

Issue 2695743002: Api-roll 45: 2017-02-13 (Closed)
Patch Set: reverted local changes to pubspec file Created 3 years, 10 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_beta.cloudkms.v1beta1.test; 1 library googleapis_beta.cloudkms.v1beta1.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:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.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 headers, core.String body) { 49 core.int status, core.Map headers, core.String body) {
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 buildUnnamed3646() { 54 buildUnnamed3738() {
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 checkUnnamed3646(core.List<api.AuditLogConfig> o) { 61 checkUnnamed3738(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 buildUnnamed3647() { 67 buildUnnamed3739() {
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 checkUnnamed3647(core.List<core.String> o) { 74 checkUnnamed3739(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 = buildUnnamed3646(); 85 o.auditLogConfigs = buildUnnamed3738();
86 o.exemptedMembers = buildUnnamed3647(); 86 o.exemptedMembers = buildUnnamed3739();
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 checkUnnamed3646(o.auditLogConfigs); 96 checkUnnamed3738(o.auditLogConfigs);
97 checkUnnamed3647(o.exemptedMembers); 97 checkUnnamed3739(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 buildUnnamed3648() { 103 buildUnnamed3740() {
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 checkUnnamed3648(core.List<core.String> o) { 110 checkUnnamed3740(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 = buildUnnamed3648(); 121 o.exemptedMembers = buildUnnamed3740();
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 checkUnnamed3648(o.exemptedMembers); 131 checkUnnamed3740(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 buildUnnamed3649() { 137 buildUnnamed3741() {
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 checkUnnamed3649(core.List<core.String> o) { 144 checkUnnamed3741(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.members = buildUnnamed3649(); 155 o.members = buildUnnamed3741();
156 o.role = "foo"; 156 o.role = "foo";
157 } 157 }
158 buildCounterBinding--; 158 buildCounterBinding--;
159 return o; 159 return o;
160 } 160 }
161 161
162 checkBinding(api.Binding o) { 162 checkBinding(api.Binding o) {
163 buildCounterBinding++; 163 buildCounterBinding++;
164 if (buildCounterBinding < 3) { 164 if (buildCounterBinding < 3) {
165 checkUnnamed3649(o.members); 165 checkUnnamed3741(o.members);
166 unittest.expect(o.role, unittest.equals('foo')); 166 unittest.expect(o.role, unittest.equals('foo'));
167 } 167 }
168 buildCounterBinding--; 168 buildCounterBinding--;
169 } 169 }
170 170
171 core.int buildCounterCloudAuditOptions = 0; 171 core.int buildCounterCloudAuditOptions = 0;
172 buildCloudAuditOptions() { 172 buildCloudAuditOptions() {
173 var o = new api.CloudAuditOptions(); 173 var o = new api.CloudAuditOptions();
174 buildCounterCloudAuditOptions++; 174 buildCounterCloudAuditOptions++;
175 if (buildCounterCloudAuditOptions < 3) { 175 if (buildCounterCloudAuditOptions < 3) {
176 } 176 }
177 buildCounterCloudAuditOptions--; 177 buildCounterCloudAuditOptions--;
178 return o; 178 return o;
179 } 179 }
180 180
181 checkCloudAuditOptions(api.CloudAuditOptions o) { 181 checkCloudAuditOptions(api.CloudAuditOptions o) {
182 buildCounterCloudAuditOptions++; 182 buildCounterCloudAuditOptions++;
183 if (buildCounterCloudAuditOptions < 3) { 183 if (buildCounterCloudAuditOptions < 3) {
184 } 184 }
185 buildCounterCloudAuditOptions--; 185 buildCounterCloudAuditOptions--;
186 } 186 }
187 187
188 buildUnnamed3650() { 188 buildUnnamed3742() {
189 var o = new core.List<core.String>(); 189 var o = new core.List<core.String>();
190 o.add("foo"); 190 o.add("foo");
191 o.add("foo"); 191 o.add("foo");
192 return o; 192 return o;
193 } 193 }
194 194
195 checkUnnamed3650(core.List<core.String> o) { 195 checkUnnamed3742(core.List<core.String> o) {
196 unittest.expect(o, unittest.hasLength(2)); 196 unittest.expect(o, unittest.hasLength(2));
197 unittest.expect(o[0], unittest.equals('foo')); 197 unittest.expect(o[0], unittest.equals('foo'));
198 unittest.expect(o[1], unittest.equals('foo')); 198 unittest.expect(o[1], unittest.equals('foo'));
199 } 199 }
200 200
201 core.int buildCounterCondition = 0; 201 core.int buildCounterCondition = 0;
202 buildCondition() { 202 buildCondition() {
203 var o = new api.Condition(); 203 var o = new api.Condition();
204 buildCounterCondition++; 204 buildCounterCondition++;
205 if (buildCounterCondition < 3) { 205 if (buildCounterCondition < 3) {
206 o.iam = "foo"; 206 o.iam = "foo";
207 o.op = "foo"; 207 o.op = "foo";
208 o.svc = "foo"; 208 o.svc = "foo";
209 o.sys = "foo"; 209 o.sys = "foo";
210 o.value = "foo"; 210 o.value = "foo";
211 o.values = buildUnnamed3650(); 211 o.values = buildUnnamed3742();
212 } 212 }
213 buildCounterCondition--; 213 buildCounterCondition--;
214 return o; 214 return o;
215 } 215 }
216 216
217 checkCondition(api.Condition o) { 217 checkCondition(api.Condition o) {
218 buildCounterCondition++; 218 buildCounterCondition++;
219 if (buildCounterCondition < 3) { 219 if (buildCounterCondition < 3) {
220 unittest.expect(o.iam, unittest.equals('foo')); 220 unittest.expect(o.iam, unittest.equals('foo'));
221 unittest.expect(o.op, unittest.equals('foo')); 221 unittest.expect(o.op, unittest.equals('foo'));
222 unittest.expect(o.svc, unittest.equals('foo')); 222 unittest.expect(o.svc, unittest.equals('foo'));
223 unittest.expect(o.sys, unittest.equals('foo')); 223 unittest.expect(o.sys, unittest.equals('foo'));
224 unittest.expect(o.value, unittest.equals('foo')); 224 unittest.expect(o.value, unittest.equals('foo'));
225 checkUnnamed3650(o.values); 225 checkUnnamed3742(o.values);
226 } 226 }
227 buildCounterCondition--; 227 buildCounterCondition--;
228 } 228 }
229 229
230 core.int buildCounterCounterOptions = 0; 230 core.int buildCounterCounterOptions = 0;
231 buildCounterOptions() { 231 buildCounterOptions() {
232 var o = new api.CounterOptions(); 232 var o = new api.CounterOptions();
233 buildCounterCounterOptions++; 233 buildCounterCounterOptions++;
234 if (buildCounterCounterOptions < 3) { 234 if (buildCounterCounterOptions < 3) {
235 o.field = "foo"; 235 o.field = "foo";
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 434
435 checkKeyRing(api.KeyRing o) { 435 checkKeyRing(api.KeyRing o) {
436 buildCounterKeyRing++; 436 buildCounterKeyRing++;
437 if (buildCounterKeyRing < 3) { 437 if (buildCounterKeyRing < 3) {
438 unittest.expect(o.createTime, unittest.equals('foo')); 438 unittest.expect(o.createTime, unittest.equals('foo'));
439 unittest.expect(o.name, unittest.equals('foo')); 439 unittest.expect(o.name, unittest.equals('foo'));
440 } 440 }
441 buildCounterKeyRing--; 441 buildCounterKeyRing--;
442 } 442 }
443 443
444 buildUnnamed3651() { 444 buildUnnamed3743() {
445 var o = new core.List<api.CryptoKeyVersion>(); 445 var o = new core.List<api.CryptoKeyVersion>();
446 o.add(buildCryptoKeyVersion()); 446 o.add(buildCryptoKeyVersion());
447 o.add(buildCryptoKeyVersion()); 447 o.add(buildCryptoKeyVersion());
448 return o; 448 return o;
449 } 449 }
450 450
451 checkUnnamed3651(core.List<api.CryptoKeyVersion> o) { 451 checkUnnamed3743(core.List<api.CryptoKeyVersion> o) {
452 unittest.expect(o, unittest.hasLength(2)); 452 unittest.expect(o, unittest.hasLength(2));
453 checkCryptoKeyVersion(o[0]); 453 checkCryptoKeyVersion(o[0]);
454 checkCryptoKeyVersion(o[1]); 454 checkCryptoKeyVersion(o[1]);
455 } 455 }
456 456
457 core.int buildCounterListCryptoKeyVersionsResponse = 0; 457 core.int buildCounterListCryptoKeyVersionsResponse = 0;
458 buildListCryptoKeyVersionsResponse() { 458 buildListCryptoKeyVersionsResponse() {
459 var o = new api.ListCryptoKeyVersionsResponse(); 459 var o = new api.ListCryptoKeyVersionsResponse();
460 buildCounterListCryptoKeyVersionsResponse++; 460 buildCounterListCryptoKeyVersionsResponse++;
461 if (buildCounterListCryptoKeyVersionsResponse < 3) { 461 if (buildCounterListCryptoKeyVersionsResponse < 3) {
462 o.cryptoKeyVersions = buildUnnamed3651(); 462 o.cryptoKeyVersions = buildUnnamed3743();
463 o.nextPageToken = "foo"; 463 o.nextPageToken = "foo";
464 o.totalSize = 42; 464 o.totalSize = 42;
465 } 465 }
466 buildCounterListCryptoKeyVersionsResponse--; 466 buildCounterListCryptoKeyVersionsResponse--;
467 return o; 467 return o;
468 } 468 }
469 469
470 checkListCryptoKeyVersionsResponse(api.ListCryptoKeyVersionsResponse o) { 470 checkListCryptoKeyVersionsResponse(api.ListCryptoKeyVersionsResponse o) {
471 buildCounterListCryptoKeyVersionsResponse++; 471 buildCounterListCryptoKeyVersionsResponse++;
472 if (buildCounterListCryptoKeyVersionsResponse < 3) { 472 if (buildCounterListCryptoKeyVersionsResponse < 3) {
473 checkUnnamed3651(o.cryptoKeyVersions); 473 checkUnnamed3743(o.cryptoKeyVersions);
474 unittest.expect(o.nextPageToken, unittest.equals('foo')); 474 unittest.expect(o.nextPageToken, unittest.equals('foo'));
475 unittest.expect(o.totalSize, unittest.equals(42)); 475 unittest.expect(o.totalSize, unittest.equals(42));
476 } 476 }
477 buildCounterListCryptoKeyVersionsResponse--; 477 buildCounterListCryptoKeyVersionsResponse--;
478 } 478 }
479 479
480 buildUnnamed3652() { 480 buildUnnamed3744() {
481 var o = new core.List<api.CryptoKey>(); 481 var o = new core.List<api.CryptoKey>();
482 o.add(buildCryptoKey()); 482 o.add(buildCryptoKey());
483 o.add(buildCryptoKey()); 483 o.add(buildCryptoKey());
484 return o; 484 return o;
485 } 485 }
486 486
487 checkUnnamed3652(core.List<api.CryptoKey> o) { 487 checkUnnamed3744(core.List<api.CryptoKey> o) {
488 unittest.expect(o, unittest.hasLength(2)); 488 unittest.expect(o, unittest.hasLength(2));
489 checkCryptoKey(o[0]); 489 checkCryptoKey(o[0]);
490 checkCryptoKey(o[1]); 490 checkCryptoKey(o[1]);
491 } 491 }
492 492
493 core.int buildCounterListCryptoKeysResponse = 0; 493 core.int buildCounterListCryptoKeysResponse = 0;
494 buildListCryptoKeysResponse() { 494 buildListCryptoKeysResponse() {
495 var o = new api.ListCryptoKeysResponse(); 495 var o = new api.ListCryptoKeysResponse();
496 buildCounterListCryptoKeysResponse++; 496 buildCounterListCryptoKeysResponse++;
497 if (buildCounterListCryptoKeysResponse < 3) { 497 if (buildCounterListCryptoKeysResponse < 3) {
498 o.cryptoKeys = buildUnnamed3652(); 498 o.cryptoKeys = buildUnnamed3744();
499 o.nextPageToken = "foo"; 499 o.nextPageToken = "foo";
500 o.totalSize = 42; 500 o.totalSize = 42;
501 } 501 }
502 buildCounterListCryptoKeysResponse--; 502 buildCounterListCryptoKeysResponse--;
503 return o; 503 return o;
504 } 504 }
505 505
506 checkListCryptoKeysResponse(api.ListCryptoKeysResponse o) { 506 checkListCryptoKeysResponse(api.ListCryptoKeysResponse o) {
507 buildCounterListCryptoKeysResponse++; 507 buildCounterListCryptoKeysResponse++;
508 if (buildCounterListCryptoKeysResponse < 3) { 508 if (buildCounterListCryptoKeysResponse < 3) {
509 checkUnnamed3652(o.cryptoKeys); 509 checkUnnamed3744(o.cryptoKeys);
510 unittest.expect(o.nextPageToken, unittest.equals('foo')); 510 unittest.expect(o.nextPageToken, unittest.equals('foo'));
511 unittest.expect(o.totalSize, unittest.equals(42)); 511 unittest.expect(o.totalSize, unittest.equals(42));
512 } 512 }
513 buildCounterListCryptoKeysResponse--; 513 buildCounterListCryptoKeysResponse--;
514 } 514 }
515 515
516 buildUnnamed3653() { 516 buildUnnamed3745() {
517 var o = new core.List<api.KeyRing>(); 517 var o = new core.List<api.KeyRing>();
518 o.add(buildKeyRing()); 518 o.add(buildKeyRing());
519 o.add(buildKeyRing()); 519 o.add(buildKeyRing());
520 return o; 520 return o;
521 } 521 }
522 522
523 checkUnnamed3653(core.List<api.KeyRing> o) { 523 checkUnnamed3745(core.List<api.KeyRing> o) {
524 unittest.expect(o, unittest.hasLength(2)); 524 unittest.expect(o, unittest.hasLength(2));
525 checkKeyRing(o[0]); 525 checkKeyRing(o[0]);
526 checkKeyRing(o[1]); 526 checkKeyRing(o[1]);
527 } 527 }
528 528
529 core.int buildCounterListKeyRingsResponse = 0; 529 core.int buildCounterListKeyRingsResponse = 0;
530 buildListKeyRingsResponse() { 530 buildListKeyRingsResponse() {
531 var o = new api.ListKeyRingsResponse(); 531 var o = new api.ListKeyRingsResponse();
532 buildCounterListKeyRingsResponse++; 532 buildCounterListKeyRingsResponse++;
533 if (buildCounterListKeyRingsResponse < 3) { 533 if (buildCounterListKeyRingsResponse < 3) {
534 o.keyRings = buildUnnamed3653(); 534 o.keyRings = buildUnnamed3745();
535 o.nextPageToken = "foo"; 535 o.nextPageToken = "foo";
536 o.totalSize = 42; 536 o.totalSize = 42;
537 } 537 }
538 buildCounterListKeyRingsResponse--; 538 buildCounterListKeyRingsResponse--;
539 return o; 539 return o;
540 } 540 }
541 541
542 checkListKeyRingsResponse(api.ListKeyRingsResponse o) { 542 checkListKeyRingsResponse(api.ListKeyRingsResponse o) {
543 buildCounterListKeyRingsResponse++; 543 buildCounterListKeyRingsResponse++;
544 if (buildCounterListKeyRingsResponse < 3) { 544 if (buildCounterListKeyRingsResponse < 3) {
545 checkUnnamed3653(o.keyRings); 545 checkUnnamed3745(o.keyRings);
546 unittest.expect(o.nextPageToken, unittest.equals('foo')); 546 unittest.expect(o.nextPageToken, unittest.equals('foo'));
547 unittest.expect(o.totalSize, unittest.equals(42)); 547 unittest.expect(o.totalSize, unittest.equals(42));
548 } 548 }
549 buildCounterListKeyRingsResponse--; 549 buildCounterListKeyRingsResponse--;
550 } 550 }
551 551
552 buildUnnamed3654() { 552 buildUnnamed3746() {
553 var o = new core.List<api.Location>(); 553 var o = new core.List<api.Location>();
554 o.add(buildLocation()); 554 o.add(buildLocation());
555 o.add(buildLocation()); 555 o.add(buildLocation());
556 return o; 556 return o;
557 } 557 }
558 558
559 checkUnnamed3654(core.List<api.Location> o) { 559 checkUnnamed3746(core.List<api.Location> o) {
560 unittest.expect(o, unittest.hasLength(2)); 560 unittest.expect(o, unittest.hasLength(2));
561 checkLocation(o[0]); 561 checkLocation(o[0]);
562 checkLocation(o[1]); 562 checkLocation(o[1]);
563 } 563 }
564 564
565 core.int buildCounterListLocationsResponse = 0; 565 core.int buildCounterListLocationsResponse = 0;
566 buildListLocationsResponse() { 566 buildListLocationsResponse() {
567 var o = new api.ListLocationsResponse(); 567 var o = new api.ListLocationsResponse();
568 buildCounterListLocationsResponse++; 568 buildCounterListLocationsResponse++;
569 if (buildCounterListLocationsResponse < 3) { 569 if (buildCounterListLocationsResponse < 3) {
570 o.locations = buildUnnamed3654(); 570 o.locations = buildUnnamed3746();
571 o.nextPageToken = "foo"; 571 o.nextPageToken = "foo";
572 } 572 }
573 buildCounterListLocationsResponse--; 573 buildCounterListLocationsResponse--;
574 return o; 574 return o;
575 } 575 }
576 576
577 checkListLocationsResponse(api.ListLocationsResponse o) { 577 checkListLocationsResponse(api.ListLocationsResponse o) {
578 buildCounterListLocationsResponse++; 578 buildCounterListLocationsResponse++;
579 if (buildCounterListLocationsResponse < 3) { 579 if (buildCounterListLocationsResponse < 3) {
580 checkUnnamed3654(o.locations); 580 checkUnnamed3746(o.locations);
581 unittest.expect(o.nextPageToken, unittest.equals('foo')); 581 unittest.expect(o.nextPageToken, unittest.equals('foo'));
582 } 582 }
583 buildCounterListLocationsResponse--; 583 buildCounterListLocationsResponse--;
584 } 584 }
585 585
586 buildUnnamed3655() { 586 buildUnnamed3747() {
587 var o = new core.Map<core.String, core.String>(); 587 var o = new core.Map<core.String, core.String>();
588 o["x"] = "foo"; 588 o["x"] = "foo";
589 o["y"] = "foo"; 589 o["y"] = "foo";
590 return o; 590 return o;
591 } 591 }
592 592
593 checkUnnamed3655(core.Map<core.String, core.String> o) { 593 checkUnnamed3747(core.Map<core.String, core.String> o) {
594 unittest.expect(o, unittest.hasLength(2)); 594 unittest.expect(o, unittest.hasLength(2));
595 unittest.expect(o["x"], unittest.equals('foo')); 595 unittest.expect(o["x"], unittest.equals('foo'));
596 unittest.expect(o["y"], unittest.equals('foo')); 596 unittest.expect(o["y"], unittest.equals('foo'));
597 } 597 }
598 598
599 buildUnnamed3656() { 599 buildUnnamed3748() {
600 var o = new core.Map<core.String, core.Object>(); 600 var o = new core.Map<core.String, core.Object>();
601 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 601 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
602 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 602 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
603 return o; 603 return o;
604 } 604 }
605 605
606 checkUnnamed3656(core.Map<core.String, core.Object> o) { 606 checkUnnamed3748(core.Map<core.String, core.Object> o) {
607 unittest.expect(o, unittest.hasLength(2)); 607 unittest.expect(o, unittest.hasLength(2));
608 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')); 608 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'));
609 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')); 609 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'));
610 } 610 }
611 611
612 core.int buildCounterLocation = 0; 612 core.int buildCounterLocation = 0;
613 buildLocation() { 613 buildLocation() {
614 var o = new api.Location(); 614 var o = new api.Location();
615 buildCounterLocation++; 615 buildCounterLocation++;
616 if (buildCounterLocation < 3) { 616 if (buildCounterLocation < 3) {
617 o.labels = buildUnnamed3655(); 617 o.labels = buildUnnamed3747();
618 o.locationId = "foo"; 618 o.locationId = "foo";
619 o.metadata = buildUnnamed3656(); 619 o.metadata = buildUnnamed3748();
620 o.name = "foo"; 620 o.name = "foo";
621 } 621 }
622 buildCounterLocation--; 622 buildCounterLocation--;
623 return o; 623 return o;
624 } 624 }
625 625
626 checkLocation(api.Location o) { 626 checkLocation(api.Location o) {
627 buildCounterLocation++; 627 buildCounterLocation++;
628 if (buildCounterLocation < 3) { 628 if (buildCounterLocation < 3) {
629 checkUnnamed3655(o.labels); 629 checkUnnamed3747(o.labels);
630 unittest.expect(o.locationId, unittest.equals('foo')); 630 unittest.expect(o.locationId, unittest.equals('foo'));
631 checkUnnamed3656(o.metadata); 631 checkUnnamed3748(o.metadata);
632 unittest.expect(o.name, unittest.equals('foo')); 632 unittest.expect(o.name, unittest.equals('foo'));
633 } 633 }
634 buildCounterLocation--; 634 buildCounterLocation--;
635 } 635 }
636 636
637 core.int buildCounterLogConfig = 0; 637 core.int buildCounterLogConfig = 0;
638 buildLogConfig() { 638 buildLogConfig() {
639 var o = new api.LogConfig(); 639 var o = new api.LogConfig();
640 buildCounterLogConfig++; 640 buildCounterLogConfig++;
641 if (buildCounterLogConfig < 3) { 641 if (buildCounterLogConfig < 3) {
642 o.cloudAudit = buildCloudAuditOptions(); 642 o.cloudAudit = buildCloudAuditOptions();
643 o.counter = buildCounterOptions(); 643 o.counter = buildCounterOptions();
644 o.dataAccess = buildDataAccessOptions(); 644 o.dataAccess = buildDataAccessOptions();
645 } 645 }
646 buildCounterLogConfig--; 646 buildCounterLogConfig--;
647 return o; 647 return o;
648 } 648 }
649 649
650 checkLogConfig(api.LogConfig o) { 650 checkLogConfig(api.LogConfig o) {
651 buildCounterLogConfig++; 651 buildCounterLogConfig++;
652 if (buildCounterLogConfig < 3) { 652 if (buildCounterLogConfig < 3) {
653 checkCloudAuditOptions(o.cloudAudit); 653 checkCloudAuditOptions(o.cloudAudit);
654 checkCounterOptions(o.counter); 654 checkCounterOptions(o.counter);
655 checkDataAccessOptions(o.dataAccess); 655 checkDataAccessOptions(o.dataAccess);
656 } 656 }
657 buildCounterLogConfig--; 657 buildCounterLogConfig--;
658 } 658 }
659 659
660 buildUnnamed3657() { 660 buildUnnamed3749() {
661 var o = new core.List<api.AuditConfig>(); 661 var o = new core.List<api.AuditConfig>();
662 o.add(buildAuditConfig()); 662 o.add(buildAuditConfig());
663 o.add(buildAuditConfig()); 663 o.add(buildAuditConfig());
664 return o; 664 return o;
665 } 665 }
666 666
667 checkUnnamed3657(core.List<api.AuditConfig> o) { 667 checkUnnamed3749(core.List<api.AuditConfig> o) {
668 unittest.expect(o, unittest.hasLength(2)); 668 unittest.expect(o, unittest.hasLength(2));
669 checkAuditConfig(o[0]); 669 checkAuditConfig(o[0]);
670 checkAuditConfig(o[1]); 670 checkAuditConfig(o[1]);
671 } 671 }
672 672
673 buildUnnamed3658() { 673 buildUnnamed3750() {
674 var o = new core.List<api.Binding>(); 674 var o = new core.List<api.Binding>();
675 o.add(buildBinding()); 675 o.add(buildBinding());
676 o.add(buildBinding()); 676 o.add(buildBinding());
677 return o; 677 return o;
678 } 678 }
679 679
680 checkUnnamed3658(core.List<api.Binding> o) { 680 checkUnnamed3750(core.List<api.Binding> o) {
681 unittest.expect(o, unittest.hasLength(2)); 681 unittest.expect(o, unittest.hasLength(2));
682 checkBinding(o[0]); 682 checkBinding(o[0]);
683 checkBinding(o[1]); 683 checkBinding(o[1]);
684 } 684 }
685 685
686 buildUnnamed3659() { 686 buildUnnamed3751() {
687 var o = new core.List<api.Rule>(); 687 var o = new core.List<api.Rule>();
688 o.add(buildRule()); 688 o.add(buildRule());
689 o.add(buildRule()); 689 o.add(buildRule());
690 return o; 690 return o;
691 } 691 }
692 692
693 checkUnnamed3659(core.List<api.Rule> o) { 693 checkUnnamed3751(core.List<api.Rule> o) {
694 unittest.expect(o, unittest.hasLength(2)); 694 unittest.expect(o, unittest.hasLength(2));
695 checkRule(o[0]); 695 checkRule(o[0]);
696 checkRule(o[1]); 696 checkRule(o[1]);
697 } 697 }
698 698
699 core.int buildCounterPolicy = 0; 699 core.int buildCounterPolicy = 0;
700 buildPolicy() { 700 buildPolicy() {
701 var o = new api.Policy(); 701 var o = new api.Policy();
702 buildCounterPolicy++; 702 buildCounterPolicy++;
703 if (buildCounterPolicy < 3) { 703 if (buildCounterPolicy < 3) {
704 o.auditConfigs = buildUnnamed3657(); 704 o.auditConfigs = buildUnnamed3749();
705 o.bindings = buildUnnamed3658(); 705 o.bindings = buildUnnamed3750();
706 o.etag = "foo"; 706 o.etag = "foo";
707 o.iamOwned = true; 707 o.iamOwned = true;
708 o.rules = buildUnnamed3659(); 708 o.rules = buildUnnamed3751();
709 o.version = 42; 709 o.version = 42;
710 } 710 }
711 buildCounterPolicy--; 711 buildCounterPolicy--;
712 return o; 712 return o;
713 } 713 }
714 714
715 checkPolicy(api.Policy o) { 715 checkPolicy(api.Policy o) {
716 buildCounterPolicy++; 716 buildCounterPolicy++;
717 if (buildCounterPolicy < 3) { 717 if (buildCounterPolicy < 3) {
718 checkUnnamed3657(o.auditConfigs); 718 checkUnnamed3749(o.auditConfigs);
719 checkUnnamed3658(o.bindings); 719 checkUnnamed3750(o.bindings);
720 unittest.expect(o.etag, unittest.equals('foo')); 720 unittest.expect(o.etag, unittest.equals('foo'));
721 unittest.expect(o.iamOwned, unittest.isTrue); 721 unittest.expect(o.iamOwned, unittest.isTrue);
722 checkUnnamed3659(o.rules); 722 checkUnnamed3751(o.rules);
723 unittest.expect(o.version, unittest.equals(42)); 723 unittest.expect(o.version, unittest.equals(42));
724 } 724 }
725 buildCounterPolicy--; 725 buildCounterPolicy--;
726 } 726 }
727 727
728 core.int buildCounterRestoreCryptoKeyVersionRequest = 0; 728 core.int buildCounterRestoreCryptoKeyVersionRequest = 0;
729 buildRestoreCryptoKeyVersionRequest() { 729 buildRestoreCryptoKeyVersionRequest() {
730 var o = new api.RestoreCryptoKeyVersionRequest(); 730 var o = new api.RestoreCryptoKeyVersionRequest();
731 buildCounterRestoreCryptoKeyVersionRequest++; 731 buildCounterRestoreCryptoKeyVersionRequest++;
732 if (buildCounterRestoreCryptoKeyVersionRequest < 3) { 732 if (buildCounterRestoreCryptoKeyVersionRequest < 3) {
733 } 733 }
734 buildCounterRestoreCryptoKeyVersionRequest--; 734 buildCounterRestoreCryptoKeyVersionRequest--;
735 return o; 735 return o;
736 } 736 }
737 737
738 checkRestoreCryptoKeyVersionRequest(api.RestoreCryptoKeyVersionRequest o) { 738 checkRestoreCryptoKeyVersionRequest(api.RestoreCryptoKeyVersionRequest o) {
739 buildCounterRestoreCryptoKeyVersionRequest++; 739 buildCounterRestoreCryptoKeyVersionRequest++;
740 if (buildCounterRestoreCryptoKeyVersionRequest < 3) { 740 if (buildCounterRestoreCryptoKeyVersionRequest < 3) {
741 } 741 }
742 buildCounterRestoreCryptoKeyVersionRequest--; 742 buildCounterRestoreCryptoKeyVersionRequest--;
743 } 743 }
744 744
745 buildUnnamed3660() { 745 buildUnnamed3752() {
746 var o = new core.List<api.Condition>(); 746 var o = new core.List<api.Condition>();
747 o.add(buildCondition()); 747 o.add(buildCondition());
748 o.add(buildCondition()); 748 o.add(buildCondition());
749 return o; 749 return o;
750 } 750 }
751 751
752 checkUnnamed3660(core.List<api.Condition> o) { 752 checkUnnamed3752(core.List<api.Condition> o) {
753 unittest.expect(o, unittest.hasLength(2)); 753 unittest.expect(o, unittest.hasLength(2));
754 checkCondition(o[0]); 754 checkCondition(o[0]);
755 checkCondition(o[1]); 755 checkCondition(o[1]);
756 } 756 }
757 757
758 buildUnnamed3661() { 758 buildUnnamed3753() {
759 var o = new core.List<core.String>(); 759 var o = new core.List<core.String>();
760 o.add("foo"); 760 o.add("foo");
761 o.add("foo"); 761 o.add("foo");
762 return o; 762 return o;
763 } 763 }
764 764
765 checkUnnamed3661(core.List<core.String> o) { 765 checkUnnamed3753(core.List<core.String> o) {
766 unittest.expect(o, unittest.hasLength(2)); 766 unittest.expect(o, unittest.hasLength(2));
767 unittest.expect(o[0], unittest.equals('foo')); 767 unittest.expect(o[0], unittest.equals('foo'));
768 unittest.expect(o[1], unittest.equals('foo')); 768 unittest.expect(o[1], unittest.equals('foo'));
769 } 769 }
770 770
771 buildUnnamed3662() { 771 buildUnnamed3754() {
772 var o = new core.List<api.LogConfig>(); 772 var o = new core.List<api.LogConfig>();
773 o.add(buildLogConfig()); 773 o.add(buildLogConfig());
774 o.add(buildLogConfig()); 774 o.add(buildLogConfig());
775 return o; 775 return o;
776 } 776 }
777 777
778 checkUnnamed3662(core.List<api.LogConfig> o) { 778 checkUnnamed3754(core.List<api.LogConfig> o) {
779 unittest.expect(o, unittest.hasLength(2)); 779 unittest.expect(o, unittest.hasLength(2));
780 checkLogConfig(o[0]); 780 checkLogConfig(o[0]);
781 checkLogConfig(o[1]); 781 checkLogConfig(o[1]);
782 } 782 }
783 783
784 buildUnnamed3663() { 784 buildUnnamed3755() {
785 var o = new core.List<core.String>(); 785 var o = new core.List<core.String>();
786 o.add("foo"); 786 o.add("foo");
787 o.add("foo"); 787 o.add("foo");
788 return o; 788 return o;
789 } 789 }
790 790
791 checkUnnamed3663(core.List<core.String> o) { 791 checkUnnamed3755(core.List<core.String> o) {
792 unittest.expect(o, unittest.hasLength(2)); 792 unittest.expect(o, unittest.hasLength(2));
793 unittest.expect(o[0], unittest.equals('foo')); 793 unittest.expect(o[0], unittest.equals('foo'));
794 unittest.expect(o[1], unittest.equals('foo')); 794 unittest.expect(o[1], unittest.equals('foo'));
795 } 795 }
796 796
797 buildUnnamed3664() { 797 buildUnnamed3756() {
798 var o = new core.List<core.String>(); 798 var o = new core.List<core.String>();
799 o.add("foo"); 799 o.add("foo");
800 o.add("foo"); 800 o.add("foo");
801 return o; 801 return o;
802 } 802 }
803 803
804 checkUnnamed3664(core.List<core.String> o) { 804 checkUnnamed3756(core.List<core.String> o) {
805 unittest.expect(o, unittest.hasLength(2)); 805 unittest.expect(o, unittest.hasLength(2));
806 unittest.expect(o[0], unittest.equals('foo')); 806 unittest.expect(o[0], unittest.equals('foo'));
807 unittest.expect(o[1], unittest.equals('foo')); 807 unittest.expect(o[1], unittest.equals('foo'));
808 } 808 }
809 809
810 core.int buildCounterRule = 0; 810 core.int buildCounterRule = 0;
811 buildRule() { 811 buildRule() {
812 var o = new api.Rule(); 812 var o = new api.Rule();
813 buildCounterRule++; 813 buildCounterRule++;
814 if (buildCounterRule < 3) { 814 if (buildCounterRule < 3) {
815 o.action = "foo"; 815 o.action = "foo";
816 o.conditions = buildUnnamed3660(); 816 o.conditions = buildUnnamed3752();
817 o.description = "foo"; 817 o.description = "foo";
818 o.in_ = buildUnnamed3661(); 818 o.in_ = buildUnnamed3753();
819 o.logConfig = buildUnnamed3662(); 819 o.logConfig = buildUnnamed3754();
820 o.notIn = buildUnnamed3663(); 820 o.notIn = buildUnnamed3755();
821 o.permissions = buildUnnamed3664(); 821 o.permissions = buildUnnamed3756();
822 } 822 }
823 buildCounterRule--; 823 buildCounterRule--;
824 return o; 824 return o;
825 } 825 }
826 826
827 checkRule(api.Rule o) { 827 checkRule(api.Rule o) {
828 buildCounterRule++; 828 buildCounterRule++;
829 if (buildCounterRule < 3) { 829 if (buildCounterRule < 3) {
830 unittest.expect(o.action, unittest.equals('foo')); 830 unittest.expect(o.action, unittest.equals('foo'));
831 checkUnnamed3660(o.conditions); 831 checkUnnamed3752(o.conditions);
832 unittest.expect(o.description, unittest.equals('foo')); 832 unittest.expect(o.description, unittest.equals('foo'));
833 checkUnnamed3661(o.in_); 833 checkUnnamed3753(o.in_);
834 checkUnnamed3662(o.logConfig); 834 checkUnnamed3754(o.logConfig);
835 checkUnnamed3663(o.notIn); 835 checkUnnamed3755(o.notIn);
836 checkUnnamed3664(o.permissions); 836 checkUnnamed3756(o.permissions);
837 } 837 }
838 buildCounterRule--; 838 buildCounterRule--;
839 } 839 }
840 840
841 core.int buildCounterSetIamPolicyRequest = 0; 841 core.int buildCounterSetIamPolicyRequest = 0;
842 buildSetIamPolicyRequest() { 842 buildSetIamPolicyRequest() {
843 var o = new api.SetIamPolicyRequest(); 843 var o = new api.SetIamPolicyRequest();
844 buildCounterSetIamPolicyRequest++; 844 buildCounterSetIamPolicyRequest++;
845 if (buildCounterSetIamPolicyRequest < 3) { 845 if (buildCounterSetIamPolicyRequest < 3) {
846 o.policy = buildPolicy(); 846 o.policy = buildPolicy();
847 o.updateMask = "foo"; 847 o.updateMask = "foo";
848 } 848 }
849 buildCounterSetIamPolicyRequest--; 849 buildCounterSetIamPolicyRequest--;
850 return o; 850 return o;
851 } 851 }
852 852
853 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { 853 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) {
854 buildCounterSetIamPolicyRequest++; 854 buildCounterSetIamPolicyRequest++;
855 if (buildCounterSetIamPolicyRequest < 3) { 855 if (buildCounterSetIamPolicyRequest < 3) {
856 checkPolicy(o.policy); 856 checkPolicy(o.policy);
857 unittest.expect(o.updateMask, unittest.equals('foo')); 857 unittest.expect(o.updateMask, unittest.equals('foo'));
858 } 858 }
859 buildCounterSetIamPolicyRequest--; 859 buildCounterSetIamPolicyRequest--;
860 } 860 }
861 861
862 buildUnnamed3665() { 862 buildUnnamed3757() {
863 var o = new core.List<core.String>(); 863 var o = new core.List<core.String>();
864 o.add("foo"); 864 o.add("foo");
865 o.add("foo"); 865 o.add("foo");
866 return o; 866 return o;
867 } 867 }
868 868
869 checkUnnamed3665(core.List<core.String> o) { 869 checkUnnamed3757(core.List<core.String> o) {
870 unittest.expect(o, unittest.hasLength(2)); 870 unittest.expect(o, unittest.hasLength(2));
871 unittest.expect(o[0], unittest.equals('foo')); 871 unittest.expect(o[0], unittest.equals('foo'));
872 unittest.expect(o[1], unittest.equals('foo')); 872 unittest.expect(o[1], unittest.equals('foo'));
873 } 873 }
874 874
875 core.int buildCounterTestIamPermissionsRequest = 0; 875 core.int buildCounterTestIamPermissionsRequest = 0;
876 buildTestIamPermissionsRequest() { 876 buildTestIamPermissionsRequest() {
877 var o = new api.TestIamPermissionsRequest(); 877 var o = new api.TestIamPermissionsRequest();
878 buildCounterTestIamPermissionsRequest++; 878 buildCounterTestIamPermissionsRequest++;
879 if (buildCounterTestIamPermissionsRequest < 3) { 879 if (buildCounterTestIamPermissionsRequest < 3) {
880 o.permissions = buildUnnamed3665(); 880 o.permissions = buildUnnamed3757();
881 } 881 }
882 buildCounterTestIamPermissionsRequest--; 882 buildCounterTestIamPermissionsRequest--;
883 return o; 883 return o;
884 } 884 }
885 885
886 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { 886 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) {
887 buildCounterTestIamPermissionsRequest++; 887 buildCounterTestIamPermissionsRequest++;
888 if (buildCounterTestIamPermissionsRequest < 3) { 888 if (buildCounterTestIamPermissionsRequest < 3) {
889 checkUnnamed3665(o.permissions); 889 checkUnnamed3757(o.permissions);
890 } 890 }
891 buildCounterTestIamPermissionsRequest--; 891 buildCounterTestIamPermissionsRequest--;
892 } 892 }
893 893
894 buildUnnamed3666() { 894 buildUnnamed3758() {
895 var o = new core.List<core.String>(); 895 var o = new core.List<core.String>();
896 o.add("foo"); 896 o.add("foo");
897 o.add("foo"); 897 o.add("foo");
898 return o; 898 return o;
899 } 899 }
900 900
901 checkUnnamed3666(core.List<core.String> o) { 901 checkUnnamed3758(core.List<core.String> o) {
902 unittest.expect(o, unittest.hasLength(2)); 902 unittest.expect(o, unittest.hasLength(2));
903 unittest.expect(o[0], unittest.equals('foo')); 903 unittest.expect(o[0], unittest.equals('foo'));
904 unittest.expect(o[1], unittest.equals('foo')); 904 unittest.expect(o[1], unittest.equals('foo'));
905 } 905 }
906 906
907 core.int buildCounterTestIamPermissionsResponse = 0; 907 core.int buildCounterTestIamPermissionsResponse = 0;
908 buildTestIamPermissionsResponse() { 908 buildTestIamPermissionsResponse() {
909 var o = new api.TestIamPermissionsResponse(); 909 var o = new api.TestIamPermissionsResponse();
910 buildCounterTestIamPermissionsResponse++; 910 buildCounterTestIamPermissionsResponse++;
911 if (buildCounterTestIamPermissionsResponse < 3) { 911 if (buildCounterTestIamPermissionsResponse < 3) {
912 o.permissions = buildUnnamed3666(); 912 o.permissions = buildUnnamed3758();
913 } 913 }
914 buildCounterTestIamPermissionsResponse--; 914 buildCounterTestIamPermissionsResponse--;
915 return o; 915 return o;
916 } 916 }
917 917
918 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { 918 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) {
919 buildCounterTestIamPermissionsResponse++; 919 buildCounterTestIamPermissionsResponse++;
920 if (buildCounterTestIamPermissionsResponse < 3) { 920 if (buildCounterTestIamPermissionsResponse < 3) {
921 checkUnnamed3666(o.permissions); 921 checkUnnamed3758(o.permissions);
922 } 922 }
923 buildCounterTestIamPermissionsResponse--; 923 buildCounterTestIamPermissionsResponse--;
924 } 924 }
925 925
926 core.int buildCounterUpdateCryptoKeyPrimaryVersionRequest = 0; 926 core.int buildCounterUpdateCryptoKeyPrimaryVersionRequest = 0;
927 buildUpdateCryptoKeyPrimaryVersionRequest() { 927 buildUpdateCryptoKeyPrimaryVersionRequest() {
928 var o = new api.UpdateCryptoKeyPrimaryVersionRequest(); 928 var o = new api.UpdateCryptoKeyPrimaryVersionRequest();
929 buildCounterUpdateCryptoKeyPrimaryVersionRequest++; 929 buildCounterUpdateCryptoKeyPrimaryVersionRequest++;
930 if (buildCounterUpdateCryptoKeyPrimaryVersionRequest < 3) { 930 if (buildCounterUpdateCryptoKeyPrimaryVersionRequest < 3) {
931 o.cryptoKeyVersionId = "foo"; 931 o.cryptoKeyVersionId = "foo";
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
1240 res.get(arg_name).then(unittest.expectAsync(((api.Location response) { 1240 res.get(arg_name).then(unittest.expectAsync(((api.Location response) {
1241 checkLocation(response); 1241 checkLocation(response);
1242 }))); 1242 })));
1243 }); 1243 });
1244 1244
1245 unittest.test("method--list", () { 1245 unittest.test("method--list", () {
1246 1246
1247 var mock = new HttpServerMock(); 1247 var mock = new HttpServerMock();
1248 api.ProjectsLocationsResourceApi res = new api.CloudkmsApi(mock).projects. locations; 1248 api.ProjectsLocationsResourceApi res = new api.CloudkmsApi(mock).projects. locations;
1249 var arg_name = "foo"; 1249 var arg_name = "foo";
1250 var arg_pageSize = 42;
1251 var arg_filter = "foo"; 1250 var arg_filter = "foo";
1252 var arg_pageToken = "foo"; 1251 var arg_pageToken = "foo";
1252 var arg_pageSize = 42;
1253 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1253 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1254 var path = (req.url).path; 1254 var path = (req.url).path;
1255 var pathOffset = 0; 1255 var pathOffset = 0;
1256 var index; 1256 var index;
1257 var subPart; 1257 var subPart;
1258 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1258 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1259 pathOffset += 1; 1259 pathOffset += 1;
1260 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v1beta1/")); 1260 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v1beta1/"));
1261 pathOffset += 8; 1261 pathOffset += 8;
1262 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 1262 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1263 1263
1264 var query = (req.url).query; 1264 var query = (req.url).query;
1265 var queryOffset = 0; 1265 var queryOffset = 0;
1266 var queryMap = {}; 1266 var queryMap = {};
1267 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1267 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1268 parseBool(n) { 1268 parseBool(n) {
1269 if (n == "true") return true; 1269 if (n == "true") return true;
1270 if (n == "false") return false; 1270 if (n == "false") return false;
1271 if (n == null) return null; 1271 if (n == null) return null;
1272 throw new core.ArgumentError("Invalid boolean: $n"); 1272 throw new core.ArgumentError("Invalid boolean: $n");
1273 } 1273 }
1274 if (query.length > 0) { 1274 if (query.length > 0) {
1275 for (var part in query.split("&")) { 1275 for (var part in query.split("&")) {
1276 var keyvalue = part.split("="); 1276 var keyvalue = part.split("=");
1277 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1277 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1278 } 1278 }
1279 } 1279 }
1280 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1281 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 1280 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
1282 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 1281 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1282 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1283 1283
1284 1284
1285 var h = { 1285 var h = {
1286 "content-type" : "application/json; charset=utf-8", 1286 "content-type" : "application/json; charset=utf-8",
1287 }; 1287 };
1288 var resp = convert.JSON.encode(buildListLocationsResponse()); 1288 var resp = convert.JSON.encode(buildListLocationsResponse());
1289 return new async.Future.value(stringResponse(200, h, resp)); 1289 return new async.Future.value(stringResponse(200, h, resp));
1290 }), true); 1290 }), true);
1291 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListLocationsResponse response) { 1291 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListLocationsResponse response) {
1292 checkListLocationsResponse(response); 1292 checkListLocationsResponse(response);
1293 }))); 1293 })));
1294 }); 1294 });
1295 1295
1296 }); 1296 });
1297 1297
1298 1298
1299 unittest.group("resource-ProjectsLocationsKeyRingsResourceApi", () { 1299 unittest.group("resource-ProjectsLocationsKeyRingsResourceApi", () {
1300 unittest.test("method--create", () { 1300 unittest.test("method--create", () {
1301 1301
(...skipping 524 matching lines...) Expand 10 before | Expand all | Expand 10 after
1826 res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy resp onse) { 1826 res.getIamPolicy(arg_resource).then(unittest.expectAsync(((api.Policy resp onse) {
1827 checkPolicy(response); 1827 checkPolicy(response);
1828 }))); 1828 })));
1829 }); 1829 });
1830 1830
1831 unittest.test("method--list", () { 1831 unittest.test("method--list", () {
1832 1832
1833 var mock = new HttpServerMock(); 1833 var mock = new HttpServerMock();
1834 api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsA pi(mock).projects.locations.keyRings.cryptoKeys; 1834 api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsA pi(mock).projects.locations.keyRings.cryptoKeys;
1835 var arg_parent = "foo"; 1835 var arg_parent = "foo";
1836 var arg_pageToken = "foo";
1836 var arg_pageSize = 42; 1837 var arg_pageSize = 42;
1837 var arg_pageToken = "foo";
1838 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1838 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1839 var path = (req.url).path; 1839 var path = (req.url).path;
1840 var pathOffset = 0; 1840 var pathOffset = 0;
1841 var index; 1841 var index;
1842 var subPart; 1842 var subPart;
1843 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 1843 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1844 pathOffset += 1; 1844 pathOffset += 1;
1845 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v1beta1/")); 1845 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v1beta1/"));
1846 pathOffset += 8; 1846 pathOffset += 8;
1847 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation; 1847 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1848 1848
1849 var query = (req.url).query; 1849 var query = (req.url).query;
1850 var queryOffset = 0; 1850 var queryOffset = 0;
1851 var queryMap = {}; 1851 var queryMap = {};
1852 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); 1852 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1853 parseBool(n) { 1853 parseBool(n) {
1854 if (n == "true") return true; 1854 if (n == "true") return true;
1855 if (n == "false") return false; 1855 if (n == "false") return false;
1856 if (n == null) return null; 1856 if (n == null) return null;
1857 throw new core.ArgumentError("Invalid boolean: $n"); 1857 throw new core.ArgumentError("Invalid boolean: $n");
1858 } 1858 }
1859 if (query.length > 0) { 1859 if (query.length > 0) {
1860 for (var part in query.split("&")) { 1860 for (var part in query.split("&")) {
1861 var keyvalue = part.split("="); 1861 var keyvalue = part.split("=");
1862 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 1862 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1863 } 1863 }
1864 } 1864 }
1865 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1865 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 1866 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1866 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1867 1867
1868 1868
1869 var h = { 1869 var h = {
1870 "content-type" : "application/json; charset=utf-8", 1870 "content-type" : "application/json; charset=utf-8",
1871 }; 1871 };
1872 var resp = convert.JSON.encode(buildListCryptoKeysResponse()); 1872 var resp = convert.JSON.encode(buildListCryptoKeysResponse());
1873 return new async.Future.value(stringResponse(200, h, resp)); 1873 return new async.Future.value(stringResponse(200, h, resp));
1874 }), true); 1874 }), true);
1875 res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync(((api.ListCryptoKeysResponse response) { 1875 res.list(arg_parent, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync(((api.ListCryptoKeysResponse response) {
1876 checkListCryptoKeysResponse(response); 1876 checkListCryptoKeysResponse(response);
1877 }))); 1877 })));
1878 }); 1878 });
1879 1879
1880 unittest.test("method--patch", () { 1880 unittest.test("method--patch", () {
1881 1881
1882 var mock = new HttpServerMock(); 1882 var mock = new HttpServerMock();
1883 api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsA pi(mock).projects.locations.keyRings.cryptoKeys; 1883 api.ProjectsLocationsKeyRingsCryptoKeysResourceApi res = new api.CloudkmsA pi(mock).projects.locations.keyRings.cryptoKeys;
1884 var arg_request = buildCryptoKey(); 1884 var arg_request = buildCryptoKey();
1885 var arg_name = "foo"; 1885 var arg_name = "foo";
(...skipping 483 matching lines...) Expand 10 before | Expand all | Expand 10 after
2369 res.restore(arg_request, arg_name).then(unittest.expectAsync(((api.CryptoK eyVersion response) { 2369 res.restore(arg_request, arg_name).then(unittest.expectAsync(((api.CryptoK eyVersion response) {
2370 checkCryptoKeyVersion(response); 2370 checkCryptoKeyVersion(response);
2371 }))); 2371 })));
2372 }); 2372 });
2373 2373
2374 }); 2374 });
2375 2375
2376 2376
2377 } 2377 }
2378 2378
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698