OLD | NEW |
1 library googleapis.cloudresourcemanager.v1.test; | 1 library googleapis.cloudresourcemanager.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:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 } | 63 } |
64 | 64 |
65 checkAncestor(api.Ancestor o) { | 65 checkAncestor(api.Ancestor o) { |
66 buildCounterAncestor++; | 66 buildCounterAncestor++; |
67 if (buildCounterAncestor < 3) { | 67 if (buildCounterAncestor < 3) { |
68 checkResourceId(o.resourceId); | 68 checkResourceId(o.resourceId); |
69 } | 69 } |
70 buildCounterAncestor--; | 70 buildCounterAncestor--; |
71 } | 71 } |
72 | 72 |
73 buildUnnamed1616() { | 73 buildUnnamed1617() { |
74 var o = new core.List<api.AuditLogConfig>(); | 74 var o = new core.List<api.AuditLogConfig>(); |
75 o.add(buildAuditLogConfig()); | 75 o.add(buildAuditLogConfig()); |
76 o.add(buildAuditLogConfig()); | 76 o.add(buildAuditLogConfig()); |
77 return o; | 77 return o; |
78 } | 78 } |
79 | 79 |
80 checkUnnamed1616(core.List<api.AuditLogConfig> o) { | 80 checkUnnamed1617(core.List<api.AuditLogConfig> o) { |
81 unittest.expect(o, unittest.hasLength(2)); | 81 unittest.expect(o, unittest.hasLength(2)); |
82 checkAuditLogConfig(o[0]); | 82 checkAuditLogConfig(o[0]); |
83 checkAuditLogConfig(o[1]); | 83 checkAuditLogConfig(o[1]); |
84 } | 84 } |
85 | 85 |
86 core.int buildCounterAuditConfig = 0; | 86 core.int buildCounterAuditConfig = 0; |
87 buildAuditConfig() { | 87 buildAuditConfig() { |
88 var o = new api.AuditConfig(); | 88 var o = new api.AuditConfig(); |
89 buildCounterAuditConfig++; | 89 buildCounterAuditConfig++; |
90 if (buildCounterAuditConfig < 3) { | 90 if (buildCounterAuditConfig < 3) { |
91 o.auditLogConfigs = buildUnnamed1616(); | 91 o.auditLogConfigs = buildUnnamed1617(); |
92 o.service = "foo"; | 92 o.service = "foo"; |
93 } | 93 } |
94 buildCounterAuditConfig--; | 94 buildCounterAuditConfig--; |
95 return o; | 95 return o; |
96 } | 96 } |
97 | 97 |
98 checkAuditConfig(api.AuditConfig o) { | 98 checkAuditConfig(api.AuditConfig o) { |
99 buildCounterAuditConfig++; | 99 buildCounterAuditConfig++; |
100 if (buildCounterAuditConfig < 3) { | 100 if (buildCounterAuditConfig < 3) { |
101 checkUnnamed1616(o.auditLogConfigs); | 101 checkUnnamed1617(o.auditLogConfigs); |
102 unittest.expect(o.service, unittest.equals('foo')); | 102 unittest.expect(o.service, unittest.equals('foo')); |
103 } | 103 } |
104 buildCounterAuditConfig--; | 104 buildCounterAuditConfig--; |
105 } | 105 } |
106 | 106 |
107 buildUnnamed1617() { | 107 buildUnnamed1618() { |
108 var o = new core.List<core.String>(); | 108 var o = new core.List<core.String>(); |
109 o.add("foo"); | 109 o.add("foo"); |
110 o.add("foo"); | 110 o.add("foo"); |
111 return o; | 111 return o; |
112 } | 112 } |
113 | 113 |
114 checkUnnamed1617(core.List<core.String> o) { | 114 checkUnnamed1618(core.List<core.String> o) { |
115 unittest.expect(o, unittest.hasLength(2)); | 115 unittest.expect(o, unittest.hasLength(2)); |
116 unittest.expect(o[0], unittest.equals('foo')); | 116 unittest.expect(o[0], unittest.equals('foo')); |
117 unittest.expect(o[1], unittest.equals('foo')); | 117 unittest.expect(o[1], unittest.equals('foo')); |
118 } | 118 } |
119 | 119 |
120 core.int buildCounterAuditLogConfig = 0; | 120 core.int buildCounterAuditLogConfig = 0; |
121 buildAuditLogConfig() { | 121 buildAuditLogConfig() { |
122 var o = new api.AuditLogConfig(); | 122 var o = new api.AuditLogConfig(); |
123 buildCounterAuditLogConfig++; | 123 buildCounterAuditLogConfig++; |
124 if (buildCounterAuditLogConfig < 3) { | 124 if (buildCounterAuditLogConfig < 3) { |
125 o.exemptedMembers = buildUnnamed1617(); | 125 o.exemptedMembers = buildUnnamed1618(); |
126 o.logType = "foo"; | 126 o.logType = "foo"; |
127 } | 127 } |
128 buildCounterAuditLogConfig--; | 128 buildCounterAuditLogConfig--; |
129 return o; | 129 return o; |
130 } | 130 } |
131 | 131 |
132 checkAuditLogConfig(api.AuditLogConfig o) { | 132 checkAuditLogConfig(api.AuditLogConfig o) { |
133 buildCounterAuditLogConfig++; | 133 buildCounterAuditLogConfig++; |
134 if (buildCounterAuditLogConfig < 3) { | 134 if (buildCounterAuditLogConfig < 3) { |
135 checkUnnamed1617(o.exemptedMembers); | 135 checkUnnamed1618(o.exemptedMembers); |
136 unittest.expect(o.logType, unittest.equals('foo')); | 136 unittest.expect(o.logType, unittest.equals('foo')); |
137 } | 137 } |
138 buildCounterAuditLogConfig--; | 138 buildCounterAuditLogConfig--; |
139 } | 139 } |
140 | 140 |
141 buildUnnamed1618() { | 141 buildUnnamed1619() { |
142 var o = new core.List<core.String>(); | 142 var o = new core.List<core.String>(); |
143 o.add("foo"); | 143 o.add("foo"); |
144 o.add("foo"); | 144 o.add("foo"); |
145 return o; | 145 return o; |
146 } | 146 } |
147 | 147 |
148 checkUnnamed1618(core.List<core.String> o) { | 148 checkUnnamed1619(core.List<core.String> o) { |
149 unittest.expect(o, unittest.hasLength(2)); | 149 unittest.expect(o, unittest.hasLength(2)); |
150 unittest.expect(o[0], unittest.equals('foo')); | 150 unittest.expect(o[0], unittest.equals('foo')); |
151 unittest.expect(o[1], unittest.equals('foo')); | 151 unittest.expect(o[1], unittest.equals('foo')); |
152 } | 152 } |
153 | 153 |
154 core.int buildCounterBinding = 0; | 154 core.int buildCounterBinding = 0; |
155 buildBinding() { | 155 buildBinding() { |
156 var o = new api.Binding(); | 156 var o = new api.Binding(); |
157 buildCounterBinding++; | 157 buildCounterBinding++; |
158 if (buildCounterBinding < 3) { | 158 if (buildCounterBinding < 3) { |
159 o.members = buildUnnamed1618(); | 159 o.members = buildUnnamed1619(); |
160 o.role = "foo"; | 160 o.role = "foo"; |
161 } | 161 } |
162 buildCounterBinding--; | 162 buildCounterBinding--; |
163 return o; | 163 return o; |
164 } | 164 } |
165 | 165 |
166 checkBinding(api.Binding o) { | 166 checkBinding(api.Binding o) { |
167 buildCounterBinding++; | 167 buildCounterBinding++; |
168 if (buildCounterBinding < 3) { | 168 if (buildCounterBinding < 3) { |
169 checkUnnamed1618(o.members); | 169 checkUnnamed1619(o.members); |
170 unittest.expect(o.role, unittest.equals('foo')); | 170 unittest.expect(o.role, unittest.equals('foo')); |
171 } | 171 } |
172 buildCounterBinding--; | 172 buildCounterBinding--; |
173 } | 173 } |
174 | 174 |
175 core.int buildCounterBooleanConstraint = 0; | 175 core.int buildCounterBooleanConstraint = 0; |
176 buildBooleanConstraint() { | 176 buildBooleanConstraint() { |
177 var o = new api.BooleanConstraint(); | 177 var o = new api.BooleanConstraint(); |
178 buildCounterBooleanConstraint++; | 178 buildCounterBooleanConstraint++; |
179 if (buildCounterBooleanConstraint < 3) { | 179 if (buildCounterBooleanConstraint < 3) { |
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
331 return o; | 331 return o; |
332 } | 332 } |
333 | 333 |
334 checkGetAncestryRequest(api.GetAncestryRequest o) { | 334 checkGetAncestryRequest(api.GetAncestryRequest o) { |
335 buildCounterGetAncestryRequest++; | 335 buildCounterGetAncestryRequest++; |
336 if (buildCounterGetAncestryRequest < 3) { | 336 if (buildCounterGetAncestryRequest < 3) { |
337 } | 337 } |
338 buildCounterGetAncestryRequest--; | 338 buildCounterGetAncestryRequest--; |
339 } | 339 } |
340 | 340 |
341 buildUnnamed1619() { | 341 buildUnnamed1620() { |
342 var o = new core.List<api.Ancestor>(); | 342 var o = new core.List<api.Ancestor>(); |
343 o.add(buildAncestor()); | 343 o.add(buildAncestor()); |
344 o.add(buildAncestor()); | 344 o.add(buildAncestor()); |
345 return o; | 345 return o; |
346 } | 346 } |
347 | 347 |
348 checkUnnamed1619(core.List<api.Ancestor> o) { | 348 checkUnnamed1620(core.List<api.Ancestor> o) { |
349 unittest.expect(o, unittest.hasLength(2)); | 349 unittest.expect(o, unittest.hasLength(2)); |
350 checkAncestor(o[0]); | 350 checkAncestor(o[0]); |
351 checkAncestor(o[1]); | 351 checkAncestor(o[1]); |
352 } | 352 } |
353 | 353 |
354 core.int buildCounterGetAncestryResponse = 0; | 354 core.int buildCounterGetAncestryResponse = 0; |
355 buildGetAncestryResponse() { | 355 buildGetAncestryResponse() { |
356 var o = new api.GetAncestryResponse(); | 356 var o = new api.GetAncestryResponse(); |
357 buildCounterGetAncestryResponse++; | 357 buildCounterGetAncestryResponse++; |
358 if (buildCounterGetAncestryResponse < 3) { | 358 if (buildCounterGetAncestryResponse < 3) { |
359 o.ancestor = buildUnnamed1619(); | 359 o.ancestor = buildUnnamed1620(); |
360 } | 360 } |
361 buildCounterGetAncestryResponse--; | 361 buildCounterGetAncestryResponse--; |
362 return o; | 362 return o; |
363 } | 363 } |
364 | 364 |
365 checkGetAncestryResponse(api.GetAncestryResponse o) { | 365 checkGetAncestryResponse(api.GetAncestryResponse o) { |
366 buildCounterGetAncestryResponse++; | 366 buildCounterGetAncestryResponse++; |
367 if (buildCounterGetAncestryResponse < 3) { | 367 if (buildCounterGetAncestryResponse < 3) { |
368 checkUnnamed1619(o.ancestor); | 368 checkUnnamed1620(o.ancestor); |
369 } | 369 } |
370 buildCounterGetAncestryResponse--; | 370 buildCounterGetAncestryResponse--; |
371 } | 371 } |
372 | 372 |
373 core.int buildCounterGetEffectiveOrgPolicyRequest = 0; | 373 core.int buildCounterGetEffectiveOrgPolicyRequest = 0; |
374 buildGetEffectiveOrgPolicyRequest() { | 374 buildGetEffectiveOrgPolicyRequest() { |
375 var o = new api.GetEffectiveOrgPolicyRequest(); | 375 var o = new api.GetEffectiveOrgPolicyRequest(); |
376 buildCounterGetEffectiveOrgPolicyRequest++; | 376 buildCounterGetEffectiveOrgPolicyRequest++; |
377 if (buildCounterGetEffectiveOrgPolicyRequest < 3) { | 377 if (buildCounterGetEffectiveOrgPolicyRequest < 3) { |
378 o.constraint = "foo"; | 378 o.constraint = "foo"; |
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 } | 418 } |
419 | 419 |
420 checkGetOrgPolicyRequest(api.GetOrgPolicyRequest o) { | 420 checkGetOrgPolicyRequest(api.GetOrgPolicyRequest o) { |
421 buildCounterGetOrgPolicyRequest++; | 421 buildCounterGetOrgPolicyRequest++; |
422 if (buildCounterGetOrgPolicyRequest < 3) { | 422 if (buildCounterGetOrgPolicyRequest < 3) { |
423 unittest.expect(o.constraint, unittest.equals('foo')); | 423 unittest.expect(o.constraint, unittest.equals('foo')); |
424 } | 424 } |
425 buildCounterGetOrgPolicyRequest--; | 425 buildCounterGetOrgPolicyRequest--; |
426 } | 426 } |
427 | 427 |
428 buildUnnamed1620() { | 428 buildUnnamed1621() { |
429 var o = new core.List<core.String>(); | 429 var o = new core.List<core.String>(); |
430 o.add("foo"); | 430 o.add("foo"); |
431 o.add("foo"); | 431 o.add("foo"); |
432 return o; | 432 return o; |
433 } | 433 } |
434 | 434 |
435 checkUnnamed1620(core.List<core.String> o) { | 435 checkUnnamed1621(core.List<core.String> o) { |
436 unittest.expect(o, unittest.hasLength(2)); | 436 unittest.expect(o, unittest.hasLength(2)); |
437 unittest.expect(o[0], unittest.equals('foo')); | 437 unittest.expect(o[0], unittest.equals('foo')); |
438 unittest.expect(o[1], unittest.equals('foo')); | 438 unittest.expect(o[1], unittest.equals('foo')); |
439 } | 439 } |
440 | 440 |
441 core.int buildCounterLien = 0; | 441 core.int buildCounterLien = 0; |
442 buildLien() { | 442 buildLien() { |
443 var o = new api.Lien(); | 443 var o = new api.Lien(); |
444 buildCounterLien++; | 444 buildCounterLien++; |
445 if (buildCounterLien < 3) { | 445 if (buildCounterLien < 3) { |
446 o.createTime = "foo"; | 446 o.createTime = "foo"; |
447 o.name = "foo"; | 447 o.name = "foo"; |
448 o.origin = "foo"; | 448 o.origin = "foo"; |
449 o.parent = "foo"; | 449 o.parent = "foo"; |
450 o.reason = "foo"; | 450 o.reason = "foo"; |
451 o.restrictions = buildUnnamed1620(); | 451 o.restrictions = buildUnnamed1621(); |
452 } | 452 } |
453 buildCounterLien--; | 453 buildCounterLien--; |
454 return o; | 454 return o; |
455 } | 455 } |
456 | 456 |
457 checkLien(api.Lien o) { | 457 checkLien(api.Lien o) { |
458 buildCounterLien++; | 458 buildCounterLien++; |
459 if (buildCounterLien < 3) { | 459 if (buildCounterLien < 3) { |
460 unittest.expect(o.createTime, unittest.equals('foo')); | 460 unittest.expect(o.createTime, unittest.equals('foo')); |
461 unittest.expect(o.name, unittest.equals('foo')); | 461 unittest.expect(o.name, unittest.equals('foo')); |
462 unittest.expect(o.origin, unittest.equals('foo')); | 462 unittest.expect(o.origin, unittest.equals('foo')); |
463 unittest.expect(o.parent, unittest.equals('foo')); | 463 unittest.expect(o.parent, unittest.equals('foo')); |
464 unittest.expect(o.reason, unittest.equals('foo')); | 464 unittest.expect(o.reason, unittest.equals('foo')); |
465 checkUnnamed1620(o.restrictions); | 465 checkUnnamed1621(o.restrictions); |
466 } | 466 } |
467 buildCounterLien--; | 467 buildCounterLien--; |
468 } | 468 } |
469 | 469 |
470 core.int buildCounterListAvailableOrgPolicyConstraintsRequest = 0; | 470 core.int buildCounterListAvailableOrgPolicyConstraintsRequest = 0; |
471 buildListAvailableOrgPolicyConstraintsRequest() { | 471 buildListAvailableOrgPolicyConstraintsRequest() { |
472 var o = new api.ListAvailableOrgPolicyConstraintsRequest(); | 472 var o = new api.ListAvailableOrgPolicyConstraintsRequest(); |
473 buildCounterListAvailableOrgPolicyConstraintsRequest++; | 473 buildCounterListAvailableOrgPolicyConstraintsRequest++; |
474 if (buildCounterListAvailableOrgPolicyConstraintsRequest < 3) { | 474 if (buildCounterListAvailableOrgPolicyConstraintsRequest < 3) { |
475 o.pageSize = 42; | 475 o.pageSize = 42; |
476 o.pageToken = "foo"; | 476 o.pageToken = "foo"; |
477 } | 477 } |
478 buildCounterListAvailableOrgPolicyConstraintsRequest--; | 478 buildCounterListAvailableOrgPolicyConstraintsRequest--; |
479 return o; | 479 return o; |
480 } | 480 } |
481 | 481 |
482 checkListAvailableOrgPolicyConstraintsRequest(api.ListAvailableOrgPolicyConstrai
ntsRequest o) { | 482 checkListAvailableOrgPolicyConstraintsRequest(api.ListAvailableOrgPolicyConstrai
ntsRequest o) { |
483 buildCounterListAvailableOrgPolicyConstraintsRequest++; | 483 buildCounterListAvailableOrgPolicyConstraintsRequest++; |
484 if (buildCounterListAvailableOrgPolicyConstraintsRequest < 3) { | 484 if (buildCounterListAvailableOrgPolicyConstraintsRequest < 3) { |
485 unittest.expect(o.pageSize, unittest.equals(42)); | 485 unittest.expect(o.pageSize, unittest.equals(42)); |
486 unittest.expect(o.pageToken, unittest.equals('foo')); | 486 unittest.expect(o.pageToken, unittest.equals('foo')); |
487 } | 487 } |
488 buildCounterListAvailableOrgPolicyConstraintsRequest--; | 488 buildCounterListAvailableOrgPolicyConstraintsRequest--; |
489 } | 489 } |
490 | 490 |
491 buildUnnamed1621() { | 491 buildUnnamed1622() { |
492 var o = new core.List<api.Constraint>(); | 492 var o = new core.List<api.Constraint>(); |
493 o.add(buildConstraint()); | 493 o.add(buildConstraint()); |
494 o.add(buildConstraint()); | 494 o.add(buildConstraint()); |
495 return o; | 495 return o; |
496 } | 496 } |
497 | 497 |
498 checkUnnamed1621(core.List<api.Constraint> o) { | 498 checkUnnamed1622(core.List<api.Constraint> o) { |
499 unittest.expect(o, unittest.hasLength(2)); | 499 unittest.expect(o, unittest.hasLength(2)); |
500 checkConstraint(o[0]); | 500 checkConstraint(o[0]); |
501 checkConstraint(o[1]); | 501 checkConstraint(o[1]); |
502 } | 502 } |
503 | 503 |
504 core.int buildCounterListAvailableOrgPolicyConstraintsResponse = 0; | 504 core.int buildCounterListAvailableOrgPolicyConstraintsResponse = 0; |
505 buildListAvailableOrgPolicyConstraintsResponse() { | 505 buildListAvailableOrgPolicyConstraintsResponse() { |
506 var o = new api.ListAvailableOrgPolicyConstraintsResponse(); | 506 var o = new api.ListAvailableOrgPolicyConstraintsResponse(); |
507 buildCounterListAvailableOrgPolicyConstraintsResponse++; | 507 buildCounterListAvailableOrgPolicyConstraintsResponse++; |
508 if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) { | 508 if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) { |
509 o.constraints = buildUnnamed1621(); | 509 o.constraints = buildUnnamed1622(); |
510 o.nextPageToken = "foo"; | 510 o.nextPageToken = "foo"; |
511 } | 511 } |
512 buildCounterListAvailableOrgPolicyConstraintsResponse--; | 512 buildCounterListAvailableOrgPolicyConstraintsResponse--; |
513 return o; | 513 return o; |
514 } | 514 } |
515 | 515 |
516 checkListAvailableOrgPolicyConstraintsResponse(api.ListAvailableOrgPolicyConstra
intsResponse o) { | 516 checkListAvailableOrgPolicyConstraintsResponse(api.ListAvailableOrgPolicyConstra
intsResponse o) { |
517 buildCounterListAvailableOrgPolicyConstraintsResponse++; | 517 buildCounterListAvailableOrgPolicyConstraintsResponse++; |
518 if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) { | 518 if (buildCounterListAvailableOrgPolicyConstraintsResponse < 3) { |
519 checkUnnamed1621(o.constraints); | 519 checkUnnamed1622(o.constraints); |
520 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 520 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
521 } | 521 } |
522 buildCounterListAvailableOrgPolicyConstraintsResponse--; | 522 buildCounterListAvailableOrgPolicyConstraintsResponse--; |
523 } | 523 } |
524 | 524 |
525 core.int buildCounterListConstraint = 0; | 525 core.int buildCounterListConstraint = 0; |
526 buildListConstraint() { | 526 buildListConstraint() { |
527 var o = new api.ListConstraint(); | 527 var o = new api.ListConstraint(); |
528 buildCounterListConstraint++; | 528 buildCounterListConstraint++; |
529 if (buildCounterListConstraint < 3) { | 529 if (buildCounterListConstraint < 3) { |
530 o.suggestedValue = "foo"; | 530 o.suggestedValue = "foo"; |
531 } | 531 } |
532 buildCounterListConstraint--; | 532 buildCounterListConstraint--; |
533 return o; | 533 return o; |
534 } | 534 } |
535 | 535 |
536 checkListConstraint(api.ListConstraint o) { | 536 checkListConstraint(api.ListConstraint o) { |
537 buildCounterListConstraint++; | 537 buildCounterListConstraint++; |
538 if (buildCounterListConstraint < 3) { | 538 if (buildCounterListConstraint < 3) { |
539 unittest.expect(o.suggestedValue, unittest.equals('foo')); | 539 unittest.expect(o.suggestedValue, unittest.equals('foo')); |
540 } | 540 } |
541 buildCounterListConstraint--; | 541 buildCounterListConstraint--; |
542 } | 542 } |
543 | 543 |
544 buildUnnamed1622() { | 544 buildUnnamed1623() { |
545 var o = new core.List<api.Lien>(); | 545 var o = new core.List<api.Lien>(); |
546 o.add(buildLien()); | 546 o.add(buildLien()); |
547 o.add(buildLien()); | 547 o.add(buildLien()); |
548 return o; | 548 return o; |
549 } | 549 } |
550 | 550 |
551 checkUnnamed1622(core.List<api.Lien> o) { | 551 checkUnnamed1623(core.List<api.Lien> o) { |
552 unittest.expect(o, unittest.hasLength(2)); | 552 unittest.expect(o, unittest.hasLength(2)); |
553 checkLien(o[0]); | 553 checkLien(o[0]); |
554 checkLien(o[1]); | 554 checkLien(o[1]); |
555 } | 555 } |
556 | 556 |
557 core.int buildCounterListLiensResponse = 0; | 557 core.int buildCounterListLiensResponse = 0; |
558 buildListLiensResponse() { | 558 buildListLiensResponse() { |
559 var o = new api.ListLiensResponse(); | 559 var o = new api.ListLiensResponse(); |
560 buildCounterListLiensResponse++; | 560 buildCounterListLiensResponse++; |
561 if (buildCounterListLiensResponse < 3) { | 561 if (buildCounterListLiensResponse < 3) { |
562 o.liens = buildUnnamed1622(); | 562 o.liens = buildUnnamed1623(); |
563 o.nextPageToken = "foo"; | 563 o.nextPageToken = "foo"; |
564 } | 564 } |
565 buildCounterListLiensResponse--; | 565 buildCounterListLiensResponse--; |
566 return o; | 566 return o; |
567 } | 567 } |
568 | 568 |
569 checkListLiensResponse(api.ListLiensResponse o) { | 569 checkListLiensResponse(api.ListLiensResponse o) { |
570 buildCounterListLiensResponse++; | 570 buildCounterListLiensResponse++; |
571 if (buildCounterListLiensResponse < 3) { | 571 if (buildCounterListLiensResponse < 3) { |
572 checkUnnamed1622(o.liens); | 572 checkUnnamed1623(o.liens); |
573 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 573 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
574 } | 574 } |
575 buildCounterListLiensResponse--; | 575 buildCounterListLiensResponse--; |
576 } | 576 } |
577 | 577 |
578 core.int buildCounterListOrgPoliciesRequest = 0; | 578 core.int buildCounterListOrgPoliciesRequest = 0; |
579 buildListOrgPoliciesRequest() { | 579 buildListOrgPoliciesRequest() { |
580 var o = new api.ListOrgPoliciesRequest(); | 580 var o = new api.ListOrgPoliciesRequest(); |
581 buildCounterListOrgPoliciesRequest++; | 581 buildCounterListOrgPoliciesRequest++; |
582 if (buildCounterListOrgPoliciesRequest < 3) { | 582 if (buildCounterListOrgPoliciesRequest < 3) { |
583 o.pageSize = 42; | 583 o.pageSize = 42; |
584 o.pageToken = "foo"; | 584 o.pageToken = "foo"; |
585 } | 585 } |
586 buildCounterListOrgPoliciesRequest--; | 586 buildCounterListOrgPoliciesRequest--; |
587 return o; | 587 return o; |
588 } | 588 } |
589 | 589 |
590 checkListOrgPoliciesRequest(api.ListOrgPoliciesRequest o) { | 590 checkListOrgPoliciesRequest(api.ListOrgPoliciesRequest o) { |
591 buildCounterListOrgPoliciesRequest++; | 591 buildCounterListOrgPoliciesRequest++; |
592 if (buildCounterListOrgPoliciesRequest < 3) { | 592 if (buildCounterListOrgPoliciesRequest < 3) { |
593 unittest.expect(o.pageSize, unittest.equals(42)); | 593 unittest.expect(o.pageSize, unittest.equals(42)); |
594 unittest.expect(o.pageToken, unittest.equals('foo')); | 594 unittest.expect(o.pageToken, unittest.equals('foo')); |
595 } | 595 } |
596 buildCounterListOrgPoliciesRequest--; | 596 buildCounterListOrgPoliciesRequest--; |
597 } | 597 } |
598 | 598 |
599 buildUnnamed1623() { | 599 buildUnnamed1624() { |
600 var o = new core.List<api.OrgPolicy>(); | 600 var o = new core.List<api.OrgPolicy>(); |
601 o.add(buildOrgPolicy()); | 601 o.add(buildOrgPolicy()); |
602 o.add(buildOrgPolicy()); | 602 o.add(buildOrgPolicy()); |
603 return o; | 603 return o; |
604 } | 604 } |
605 | 605 |
606 checkUnnamed1623(core.List<api.OrgPolicy> o) { | 606 checkUnnamed1624(core.List<api.OrgPolicy> o) { |
607 unittest.expect(o, unittest.hasLength(2)); | 607 unittest.expect(o, unittest.hasLength(2)); |
608 checkOrgPolicy(o[0]); | 608 checkOrgPolicy(o[0]); |
609 checkOrgPolicy(o[1]); | 609 checkOrgPolicy(o[1]); |
610 } | 610 } |
611 | 611 |
612 core.int buildCounterListOrgPoliciesResponse = 0; | 612 core.int buildCounterListOrgPoliciesResponse = 0; |
613 buildListOrgPoliciesResponse() { | 613 buildListOrgPoliciesResponse() { |
614 var o = new api.ListOrgPoliciesResponse(); | 614 var o = new api.ListOrgPoliciesResponse(); |
615 buildCounterListOrgPoliciesResponse++; | 615 buildCounterListOrgPoliciesResponse++; |
616 if (buildCounterListOrgPoliciesResponse < 3) { | 616 if (buildCounterListOrgPoliciesResponse < 3) { |
617 o.nextPageToken = "foo"; | 617 o.nextPageToken = "foo"; |
618 o.policies = buildUnnamed1623(); | 618 o.policies = buildUnnamed1624(); |
619 } | 619 } |
620 buildCounterListOrgPoliciesResponse--; | 620 buildCounterListOrgPoliciesResponse--; |
621 return o; | 621 return o; |
622 } | 622 } |
623 | 623 |
624 checkListOrgPoliciesResponse(api.ListOrgPoliciesResponse o) { | 624 checkListOrgPoliciesResponse(api.ListOrgPoliciesResponse o) { |
625 buildCounterListOrgPoliciesResponse++; | 625 buildCounterListOrgPoliciesResponse++; |
626 if (buildCounterListOrgPoliciesResponse < 3) { | 626 if (buildCounterListOrgPoliciesResponse < 3) { |
627 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 627 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
628 checkUnnamed1623(o.policies); | 628 checkUnnamed1624(o.policies); |
629 } | 629 } |
630 buildCounterListOrgPoliciesResponse--; | 630 buildCounterListOrgPoliciesResponse--; |
631 } | 631 } |
632 | 632 |
633 buildUnnamed1624() { | |
634 var o = new core.List<core.String>(); | |
635 o.add("foo"); | |
636 o.add("foo"); | |
637 return o; | |
638 } | |
639 | |
640 checkUnnamed1624(core.List<core.String> o) { | |
641 unittest.expect(o, unittest.hasLength(2)); | |
642 unittest.expect(o[0], unittest.equals('foo')); | |
643 unittest.expect(o[1], unittest.equals('foo')); | |
644 } | |
645 | |
646 buildUnnamed1625() { | 633 buildUnnamed1625() { |
647 var o = new core.List<core.String>(); | 634 var o = new core.List<core.String>(); |
648 o.add("foo"); | 635 o.add("foo"); |
649 o.add("foo"); | 636 o.add("foo"); |
650 return o; | 637 return o; |
651 } | 638 } |
652 | 639 |
653 checkUnnamed1625(core.List<core.String> o) { | 640 checkUnnamed1625(core.List<core.String> o) { |
654 unittest.expect(o, unittest.hasLength(2)); | 641 unittest.expect(o, unittest.hasLength(2)); |
655 unittest.expect(o[0], unittest.equals('foo')); | 642 unittest.expect(o[0], unittest.equals('foo')); |
656 unittest.expect(o[1], unittest.equals('foo')); | 643 unittest.expect(o[1], unittest.equals('foo')); |
| 644 } |
| 645 |
| 646 buildUnnamed1626() { |
| 647 var o = new core.List<core.String>(); |
| 648 o.add("foo"); |
| 649 o.add("foo"); |
| 650 return o; |
| 651 } |
| 652 |
| 653 checkUnnamed1626(core.List<core.String> o) { |
| 654 unittest.expect(o, unittest.hasLength(2)); |
| 655 unittest.expect(o[0], unittest.equals('foo')); |
| 656 unittest.expect(o[1], unittest.equals('foo')); |
657 } | 657 } |
658 | 658 |
659 core.int buildCounterListPolicy = 0; | 659 core.int buildCounterListPolicy = 0; |
660 buildListPolicy() { | 660 buildListPolicy() { |
661 var o = new api.ListPolicy(); | 661 var o = new api.ListPolicy(); |
662 buildCounterListPolicy++; | 662 buildCounterListPolicy++; |
663 if (buildCounterListPolicy < 3) { | 663 if (buildCounterListPolicy < 3) { |
664 o.allValues = "foo"; | 664 o.allValues = "foo"; |
665 o.allowedValues = buildUnnamed1624(); | 665 o.allowedValues = buildUnnamed1625(); |
666 o.deniedValues = buildUnnamed1625(); | 666 o.deniedValues = buildUnnamed1626(); |
667 o.inheritFromParent = true; | 667 o.inheritFromParent = true; |
668 o.suggestedValue = "foo"; | 668 o.suggestedValue = "foo"; |
669 } | 669 } |
670 buildCounterListPolicy--; | 670 buildCounterListPolicy--; |
671 return o; | 671 return o; |
672 } | 672 } |
673 | 673 |
674 checkListPolicy(api.ListPolicy o) { | 674 checkListPolicy(api.ListPolicy o) { |
675 buildCounterListPolicy++; | 675 buildCounterListPolicy++; |
676 if (buildCounterListPolicy < 3) { | 676 if (buildCounterListPolicy < 3) { |
677 unittest.expect(o.allValues, unittest.equals('foo')); | 677 unittest.expect(o.allValues, unittest.equals('foo')); |
678 checkUnnamed1624(o.allowedValues); | 678 checkUnnamed1625(o.allowedValues); |
679 checkUnnamed1625(o.deniedValues); | 679 checkUnnamed1626(o.deniedValues); |
680 unittest.expect(o.inheritFromParent, unittest.isTrue); | 680 unittest.expect(o.inheritFromParent, unittest.isTrue); |
681 unittest.expect(o.suggestedValue, unittest.equals('foo')); | 681 unittest.expect(o.suggestedValue, unittest.equals('foo')); |
682 } | 682 } |
683 buildCounterListPolicy--; | 683 buildCounterListPolicy--; |
684 } | 684 } |
685 | 685 |
686 buildUnnamed1626() { | 686 buildUnnamed1627() { |
687 var o = new core.List<api.Project>(); | 687 var o = new core.List<api.Project>(); |
688 o.add(buildProject()); | 688 o.add(buildProject()); |
689 o.add(buildProject()); | 689 o.add(buildProject()); |
690 return o; | 690 return o; |
691 } | 691 } |
692 | 692 |
693 checkUnnamed1626(core.List<api.Project> o) { | 693 checkUnnamed1627(core.List<api.Project> o) { |
694 unittest.expect(o, unittest.hasLength(2)); | 694 unittest.expect(o, unittest.hasLength(2)); |
695 checkProject(o[0]); | 695 checkProject(o[0]); |
696 checkProject(o[1]); | 696 checkProject(o[1]); |
697 } | 697 } |
698 | 698 |
699 core.int buildCounterListProjectsResponse = 0; | 699 core.int buildCounterListProjectsResponse = 0; |
700 buildListProjectsResponse() { | 700 buildListProjectsResponse() { |
701 var o = new api.ListProjectsResponse(); | 701 var o = new api.ListProjectsResponse(); |
702 buildCounterListProjectsResponse++; | 702 buildCounterListProjectsResponse++; |
703 if (buildCounterListProjectsResponse < 3) { | 703 if (buildCounterListProjectsResponse < 3) { |
704 o.nextPageToken = "foo"; | 704 o.nextPageToken = "foo"; |
705 o.projects = buildUnnamed1626(); | 705 o.projects = buildUnnamed1627(); |
706 } | 706 } |
707 buildCounterListProjectsResponse--; | 707 buildCounterListProjectsResponse--; |
708 return o; | 708 return o; |
709 } | 709 } |
710 | 710 |
711 checkListProjectsResponse(api.ListProjectsResponse o) { | 711 checkListProjectsResponse(api.ListProjectsResponse o) { |
712 buildCounterListProjectsResponse++; | 712 buildCounterListProjectsResponse++; |
713 if (buildCounterListProjectsResponse < 3) { | 713 if (buildCounterListProjectsResponse < 3) { |
714 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 714 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
715 checkUnnamed1626(o.projects); | 715 checkUnnamed1627(o.projects); |
716 } | 716 } |
717 buildCounterListProjectsResponse--; | 717 buildCounterListProjectsResponse--; |
718 } | 718 } |
719 | 719 |
720 buildUnnamed1627() { | |
721 var o = new core.Map<core.String, core.Object>(); | |
722 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | |
723 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | |
724 return o; | |
725 } | |
726 | |
727 checkUnnamed1627(core.Map<core.String, core.Object> o) { | |
728 unittest.expect(o, unittest.hasLength(2)); | |
729 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')); | |
730 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')); | |
731 } | |
732 | |
733 buildUnnamed1628() { | 720 buildUnnamed1628() { |
734 var o = new core.Map<core.String, core.Object>(); | 721 var o = new core.Map<core.String, core.Object>(); |
735 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 722 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
736 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 723 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
737 return o; | 724 return o; |
738 } | 725 } |
739 | 726 |
740 checkUnnamed1628(core.Map<core.String, core.Object> o) { | 727 checkUnnamed1628(core.Map<core.String, core.Object> o) { |
741 unittest.expect(o, unittest.hasLength(2)); | 728 unittest.expect(o, unittest.hasLength(2)); |
| 729 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')); |
| 730 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')); |
| 731 } |
| 732 |
| 733 buildUnnamed1629() { |
| 734 var o = new core.Map<core.String, core.Object>(); |
| 735 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 736 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
| 737 return o; |
| 738 } |
| 739 |
| 740 checkUnnamed1629(core.Map<core.String, core.Object> o) { |
| 741 unittest.expect(o, unittest.hasLength(2)); |
742 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); | 742 var casted3 = (o["x"]) as core.Map; unittest.expect(casted3, unittest.hasLengt
h(3)); unittest.expect(casted3["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted3["bool"], unittest.equals(true)); unittest.expect(casted3["string"],
unittest.equals('foo')); |
743 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); | 743 var casted4 = (o["y"]) as core.Map; unittest.expect(casted4, unittest.hasLengt
h(3)); unittest.expect(casted4["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted4["bool"], unittest.equals(true)); unittest.expect(casted4["string"],
unittest.equals('foo')); |
744 } | 744 } |
745 | 745 |
746 core.int buildCounterOperation = 0; | 746 core.int buildCounterOperation = 0; |
747 buildOperation() { | 747 buildOperation() { |
748 var o = new api.Operation(); | 748 var o = new api.Operation(); |
749 buildCounterOperation++; | 749 buildCounterOperation++; |
750 if (buildCounterOperation < 3) { | 750 if (buildCounterOperation < 3) { |
751 o.done = true; | 751 o.done = true; |
752 o.error = buildStatus(); | 752 o.error = buildStatus(); |
753 o.metadata = buildUnnamed1627(); | 753 o.metadata = buildUnnamed1628(); |
754 o.name = "foo"; | 754 o.name = "foo"; |
755 o.response = buildUnnamed1628(); | 755 o.response = buildUnnamed1629(); |
756 } | 756 } |
757 buildCounterOperation--; | 757 buildCounterOperation--; |
758 return o; | 758 return o; |
759 } | 759 } |
760 | 760 |
761 checkOperation(api.Operation o) { | 761 checkOperation(api.Operation o) { |
762 buildCounterOperation++; | 762 buildCounterOperation++; |
763 if (buildCounterOperation < 3) { | 763 if (buildCounterOperation < 3) { |
764 unittest.expect(o.done, unittest.isTrue); | 764 unittest.expect(o.done, unittest.isTrue); |
765 checkStatus(o.error); | 765 checkStatus(o.error); |
766 checkUnnamed1627(o.metadata); | 766 checkUnnamed1628(o.metadata); |
767 unittest.expect(o.name, unittest.equals('foo')); | 767 unittest.expect(o.name, unittest.equals('foo')); |
768 checkUnnamed1628(o.response); | 768 checkUnnamed1629(o.response); |
769 } | 769 } |
770 buildCounterOperation--; | 770 buildCounterOperation--; |
771 } | 771 } |
772 | 772 |
773 core.int buildCounterOrgPolicy = 0; | 773 core.int buildCounterOrgPolicy = 0; |
774 buildOrgPolicy() { | 774 buildOrgPolicy() { |
775 var o = new api.OrgPolicy(); | 775 var o = new api.OrgPolicy(); |
776 buildCounterOrgPolicy++; | 776 buildCounterOrgPolicy++; |
777 if (buildCounterOrgPolicy < 3) { | 777 if (buildCounterOrgPolicy < 3) { |
778 o.booleanPolicy = buildBooleanPolicy(); | 778 o.booleanPolicy = buildBooleanPolicy(); |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
840 } | 840 } |
841 | 841 |
842 checkOrganizationOwner(api.OrganizationOwner o) { | 842 checkOrganizationOwner(api.OrganizationOwner o) { |
843 buildCounterOrganizationOwner++; | 843 buildCounterOrganizationOwner++; |
844 if (buildCounterOrganizationOwner < 3) { | 844 if (buildCounterOrganizationOwner < 3) { |
845 unittest.expect(o.directoryCustomerId, unittest.equals('foo')); | 845 unittest.expect(o.directoryCustomerId, unittest.equals('foo')); |
846 } | 846 } |
847 buildCounterOrganizationOwner--; | 847 buildCounterOrganizationOwner--; |
848 } | 848 } |
849 | 849 |
850 buildUnnamed1629() { | 850 buildUnnamed1630() { |
851 var o = new core.List<api.AuditConfig>(); | 851 var o = new core.List<api.AuditConfig>(); |
852 o.add(buildAuditConfig()); | 852 o.add(buildAuditConfig()); |
853 o.add(buildAuditConfig()); | 853 o.add(buildAuditConfig()); |
854 return o; | 854 return o; |
855 } | 855 } |
856 | 856 |
857 checkUnnamed1629(core.List<api.AuditConfig> o) { | 857 checkUnnamed1630(core.List<api.AuditConfig> o) { |
858 unittest.expect(o, unittest.hasLength(2)); | 858 unittest.expect(o, unittest.hasLength(2)); |
859 checkAuditConfig(o[0]); | 859 checkAuditConfig(o[0]); |
860 checkAuditConfig(o[1]); | 860 checkAuditConfig(o[1]); |
861 } | 861 } |
862 | 862 |
863 buildUnnamed1630() { | 863 buildUnnamed1631() { |
864 var o = new core.List<api.Binding>(); | 864 var o = new core.List<api.Binding>(); |
865 o.add(buildBinding()); | 865 o.add(buildBinding()); |
866 o.add(buildBinding()); | 866 o.add(buildBinding()); |
867 return o; | 867 return o; |
868 } | 868 } |
869 | 869 |
870 checkUnnamed1630(core.List<api.Binding> o) { | 870 checkUnnamed1631(core.List<api.Binding> o) { |
871 unittest.expect(o, unittest.hasLength(2)); | 871 unittest.expect(o, unittest.hasLength(2)); |
872 checkBinding(o[0]); | 872 checkBinding(o[0]); |
873 checkBinding(o[1]); | 873 checkBinding(o[1]); |
874 } | 874 } |
875 | 875 |
876 core.int buildCounterPolicy = 0; | 876 core.int buildCounterPolicy = 0; |
877 buildPolicy() { | 877 buildPolicy() { |
878 var o = new api.Policy(); | 878 var o = new api.Policy(); |
879 buildCounterPolicy++; | 879 buildCounterPolicy++; |
880 if (buildCounterPolicy < 3) { | 880 if (buildCounterPolicy < 3) { |
881 o.auditConfigs = buildUnnamed1629(); | 881 o.auditConfigs = buildUnnamed1630(); |
882 o.bindings = buildUnnamed1630(); | 882 o.bindings = buildUnnamed1631(); |
883 o.etag = "foo"; | 883 o.etag = "foo"; |
884 o.version = 42; | 884 o.version = 42; |
885 } | 885 } |
886 buildCounterPolicy--; | 886 buildCounterPolicy--; |
887 return o; | 887 return o; |
888 } | 888 } |
889 | 889 |
890 checkPolicy(api.Policy o) { | 890 checkPolicy(api.Policy o) { |
891 buildCounterPolicy++; | 891 buildCounterPolicy++; |
892 if (buildCounterPolicy < 3) { | 892 if (buildCounterPolicy < 3) { |
893 checkUnnamed1629(o.auditConfigs); | 893 checkUnnamed1630(o.auditConfigs); |
894 checkUnnamed1630(o.bindings); | 894 checkUnnamed1631(o.bindings); |
895 unittest.expect(o.etag, unittest.equals('foo')); | 895 unittest.expect(o.etag, unittest.equals('foo')); |
896 unittest.expect(o.version, unittest.equals(42)); | 896 unittest.expect(o.version, unittest.equals(42)); |
897 } | 897 } |
898 buildCounterPolicy--; | 898 buildCounterPolicy--; |
899 } | 899 } |
900 | 900 |
901 buildUnnamed1631() { | 901 buildUnnamed1632() { |
902 var o = new core.Map<core.String, core.String>(); | 902 var o = new core.Map<core.String, core.String>(); |
903 o["x"] = "foo"; | 903 o["x"] = "foo"; |
904 o["y"] = "foo"; | 904 o["y"] = "foo"; |
905 return o; | 905 return o; |
906 } | 906 } |
907 | 907 |
908 checkUnnamed1631(core.Map<core.String, core.String> o) { | 908 checkUnnamed1632(core.Map<core.String, core.String> o) { |
909 unittest.expect(o, unittest.hasLength(2)); | 909 unittest.expect(o, unittest.hasLength(2)); |
910 unittest.expect(o["x"], unittest.equals('foo')); | 910 unittest.expect(o["x"], unittest.equals('foo')); |
911 unittest.expect(o["y"], unittest.equals('foo')); | 911 unittest.expect(o["y"], unittest.equals('foo')); |
912 } | 912 } |
913 | 913 |
914 core.int buildCounterProject = 0; | 914 core.int buildCounterProject = 0; |
915 buildProject() { | 915 buildProject() { |
916 var o = new api.Project(); | 916 var o = new api.Project(); |
917 buildCounterProject++; | 917 buildCounterProject++; |
918 if (buildCounterProject < 3) { | 918 if (buildCounterProject < 3) { |
919 o.createTime = "foo"; | 919 o.createTime = "foo"; |
920 o.labels = buildUnnamed1631(); | 920 o.labels = buildUnnamed1632(); |
921 o.lifecycleState = "foo"; | 921 o.lifecycleState = "foo"; |
922 o.name = "foo"; | 922 o.name = "foo"; |
923 o.parent = buildResourceId(); | 923 o.parent = buildResourceId(); |
924 o.projectId = "foo"; | 924 o.projectId = "foo"; |
925 o.projectNumber = "foo"; | 925 o.projectNumber = "foo"; |
926 } | 926 } |
927 buildCounterProject--; | 927 buildCounterProject--; |
928 return o; | 928 return o; |
929 } | 929 } |
930 | 930 |
931 checkProject(api.Project o) { | 931 checkProject(api.Project o) { |
932 buildCounterProject++; | 932 buildCounterProject++; |
933 if (buildCounterProject < 3) { | 933 if (buildCounterProject < 3) { |
934 unittest.expect(o.createTime, unittest.equals('foo')); | 934 unittest.expect(o.createTime, unittest.equals('foo')); |
935 checkUnnamed1631(o.labels); | 935 checkUnnamed1632(o.labels); |
936 unittest.expect(o.lifecycleState, unittest.equals('foo')); | 936 unittest.expect(o.lifecycleState, unittest.equals('foo')); |
937 unittest.expect(o.name, unittest.equals('foo')); | 937 unittest.expect(o.name, unittest.equals('foo')); |
938 checkResourceId(o.parent); | 938 checkResourceId(o.parent); |
939 unittest.expect(o.projectId, unittest.equals('foo')); | 939 unittest.expect(o.projectId, unittest.equals('foo')); |
940 unittest.expect(o.projectNumber, unittest.equals('foo')); | 940 unittest.expect(o.projectNumber, unittest.equals('foo')); |
941 } | 941 } |
942 buildCounterProject--; | 942 buildCounterProject--; |
943 } | 943 } |
944 | 944 |
945 core.int buildCounterProjectCreationStatus = 0; | 945 core.int buildCounterProjectCreationStatus = 0; |
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1019 checkSearchOrganizationsRequest(api.SearchOrganizationsRequest o) { | 1019 checkSearchOrganizationsRequest(api.SearchOrganizationsRequest o) { |
1020 buildCounterSearchOrganizationsRequest++; | 1020 buildCounterSearchOrganizationsRequest++; |
1021 if (buildCounterSearchOrganizationsRequest < 3) { | 1021 if (buildCounterSearchOrganizationsRequest < 3) { |
1022 unittest.expect(o.filter, unittest.equals('foo')); | 1022 unittest.expect(o.filter, unittest.equals('foo')); |
1023 unittest.expect(o.pageSize, unittest.equals(42)); | 1023 unittest.expect(o.pageSize, unittest.equals(42)); |
1024 unittest.expect(o.pageToken, unittest.equals('foo')); | 1024 unittest.expect(o.pageToken, unittest.equals('foo')); |
1025 } | 1025 } |
1026 buildCounterSearchOrganizationsRequest--; | 1026 buildCounterSearchOrganizationsRequest--; |
1027 } | 1027 } |
1028 | 1028 |
1029 buildUnnamed1632() { | 1029 buildUnnamed1633() { |
1030 var o = new core.List<api.Organization>(); | 1030 var o = new core.List<api.Organization>(); |
1031 o.add(buildOrganization()); | 1031 o.add(buildOrganization()); |
1032 o.add(buildOrganization()); | 1032 o.add(buildOrganization()); |
1033 return o; | 1033 return o; |
1034 } | 1034 } |
1035 | 1035 |
1036 checkUnnamed1632(core.List<api.Organization> o) { | 1036 checkUnnamed1633(core.List<api.Organization> o) { |
1037 unittest.expect(o, unittest.hasLength(2)); | 1037 unittest.expect(o, unittest.hasLength(2)); |
1038 checkOrganization(o[0]); | 1038 checkOrganization(o[0]); |
1039 checkOrganization(o[1]); | 1039 checkOrganization(o[1]); |
1040 } | 1040 } |
1041 | 1041 |
1042 core.int buildCounterSearchOrganizationsResponse = 0; | 1042 core.int buildCounterSearchOrganizationsResponse = 0; |
1043 buildSearchOrganizationsResponse() { | 1043 buildSearchOrganizationsResponse() { |
1044 var o = new api.SearchOrganizationsResponse(); | 1044 var o = new api.SearchOrganizationsResponse(); |
1045 buildCounterSearchOrganizationsResponse++; | 1045 buildCounterSearchOrganizationsResponse++; |
1046 if (buildCounterSearchOrganizationsResponse < 3) { | 1046 if (buildCounterSearchOrganizationsResponse < 3) { |
1047 o.nextPageToken = "foo"; | 1047 o.nextPageToken = "foo"; |
1048 o.organizations = buildUnnamed1632(); | 1048 o.organizations = buildUnnamed1633(); |
1049 } | 1049 } |
1050 buildCounterSearchOrganizationsResponse--; | 1050 buildCounterSearchOrganizationsResponse--; |
1051 return o; | 1051 return o; |
1052 } | 1052 } |
1053 | 1053 |
1054 checkSearchOrganizationsResponse(api.SearchOrganizationsResponse o) { | 1054 checkSearchOrganizationsResponse(api.SearchOrganizationsResponse o) { |
1055 buildCounterSearchOrganizationsResponse++; | 1055 buildCounterSearchOrganizationsResponse++; |
1056 if (buildCounterSearchOrganizationsResponse < 3) { | 1056 if (buildCounterSearchOrganizationsResponse < 3) { |
1057 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 1057 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
1058 checkUnnamed1632(o.organizations); | 1058 checkUnnamed1633(o.organizations); |
1059 } | 1059 } |
1060 buildCounterSearchOrganizationsResponse--; | 1060 buildCounterSearchOrganizationsResponse--; |
1061 } | 1061 } |
1062 | 1062 |
1063 core.int buildCounterSetIamPolicyRequest = 0; | 1063 core.int buildCounterSetIamPolicyRequest = 0; |
1064 buildSetIamPolicyRequest() { | 1064 buildSetIamPolicyRequest() { |
1065 var o = new api.SetIamPolicyRequest(); | 1065 var o = new api.SetIamPolicyRequest(); |
1066 buildCounterSetIamPolicyRequest++; | 1066 buildCounterSetIamPolicyRequest++; |
1067 if (buildCounterSetIamPolicyRequest < 3) { | 1067 if (buildCounterSetIamPolicyRequest < 3) { |
1068 o.policy = buildPolicy(); | 1068 o.policy = buildPolicy(); |
(...skipping 24 matching lines...) Expand all Loading... |
1093 } | 1093 } |
1094 | 1094 |
1095 checkSetOrgPolicyRequest(api.SetOrgPolicyRequest o) { | 1095 checkSetOrgPolicyRequest(api.SetOrgPolicyRequest o) { |
1096 buildCounterSetOrgPolicyRequest++; | 1096 buildCounterSetOrgPolicyRequest++; |
1097 if (buildCounterSetOrgPolicyRequest < 3) { | 1097 if (buildCounterSetOrgPolicyRequest < 3) { |
1098 checkOrgPolicy(o.policy); | 1098 checkOrgPolicy(o.policy); |
1099 } | 1099 } |
1100 buildCounterSetOrgPolicyRequest--; | 1100 buildCounterSetOrgPolicyRequest--; |
1101 } | 1101 } |
1102 | 1102 |
1103 buildUnnamed1633() { | 1103 buildUnnamed1634() { |
1104 var o = new core.Map<core.String, core.Object>(); | 1104 var o = new core.Map<core.String, core.Object>(); |
1105 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1105 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1106 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1106 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1107 return o; | 1107 return o; |
1108 } | 1108 } |
1109 | 1109 |
1110 checkUnnamed1633(core.Map<core.String, core.Object> o) { | 1110 checkUnnamed1634(core.Map<core.String, core.Object> o) { |
1111 unittest.expect(o, unittest.hasLength(2)); | 1111 unittest.expect(o, unittest.hasLength(2)); |
1112 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); | 1112 var casted5 = (o["x"]) as core.Map; unittest.expect(casted5, unittest.hasLengt
h(3)); unittest.expect(casted5["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted5["bool"], unittest.equals(true)); unittest.expect(casted5["string"],
unittest.equals('foo')); |
1113 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); | 1113 var casted6 = (o["y"]) as core.Map; unittest.expect(casted6, unittest.hasLengt
h(3)); unittest.expect(casted6["list"], unittest.equals([1, 2, 3])); unittest.ex
pect(casted6["bool"], unittest.equals(true)); unittest.expect(casted6["string"],
unittest.equals('foo')); |
1114 } | 1114 } |
1115 | 1115 |
1116 buildUnnamed1634() { | 1116 buildUnnamed1635() { |
1117 var o = new core.List<core.Map<core.String, core.Object>>(); | 1117 var o = new core.List<core.Map<core.String, core.Object>>(); |
1118 o.add(buildUnnamed1633()); | 1118 o.add(buildUnnamed1634()); |
1119 o.add(buildUnnamed1633()); | 1119 o.add(buildUnnamed1634()); |
1120 return o; | 1120 return o; |
1121 } | 1121 } |
1122 | 1122 |
1123 checkUnnamed1634(core.List<core.Map<core.String, core.Object>> o) { | 1123 checkUnnamed1635(core.List<core.Map<core.String, core.Object>> o) { |
1124 unittest.expect(o, unittest.hasLength(2)); | 1124 unittest.expect(o, unittest.hasLength(2)); |
1125 checkUnnamed1633(o[0]); | 1125 checkUnnamed1634(o[0]); |
1126 checkUnnamed1633(o[1]); | 1126 checkUnnamed1634(o[1]); |
1127 } | 1127 } |
1128 | 1128 |
1129 core.int buildCounterStatus = 0; | 1129 core.int buildCounterStatus = 0; |
1130 buildStatus() { | 1130 buildStatus() { |
1131 var o = new api.Status(); | 1131 var o = new api.Status(); |
1132 buildCounterStatus++; | 1132 buildCounterStatus++; |
1133 if (buildCounterStatus < 3) { | 1133 if (buildCounterStatus < 3) { |
1134 o.code = 42; | 1134 o.code = 42; |
1135 o.details = buildUnnamed1634(); | 1135 o.details = buildUnnamed1635(); |
1136 o.message = "foo"; | 1136 o.message = "foo"; |
1137 } | 1137 } |
1138 buildCounterStatus--; | 1138 buildCounterStatus--; |
1139 return o; | 1139 return o; |
1140 } | 1140 } |
1141 | 1141 |
1142 checkStatus(api.Status o) { | 1142 checkStatus(api.Status o) { |
1143 buildCounterStatus++; | 1143 buildCounterStatus++; |
1144 if (buildCounterStatus < 3) { | 1144 if (buildCounterStatus < 3) { |
1145 unittest.expect(o.code, unittest.equals(42)); | 1145 unittest.expect(o.code, unittest.equals(42)); |
1146 checkUnnamed1634(o.details); | 1146 checkUnnamed1635(o.details); |
1147 unittest.expect(o.message, unittest.equals('foo')); | 1147 unittest.expect(o.message, unittest.equals('foo')); |
1148 } | 1148 } |
1149 buildCounterStatus--; | 1149 buildCounterStatus--; |
1150 } | 1150 } |
1151 | 1151 |
1152 buildUnnamed1635() { | 1152 buildUnnamed1636() { |
1153 var o = new core.List<core.String>(); | 1153 var o = new core.List<core.String>(); |
1154 o.add("foo"); | 1154 o.add("foo"); |
1155 o.add("foo"); | 1155 o.add("foo"); |
1156 return o; | 1156 return o; |
1157 } | 1157 } |
1158 | 1158 |
1159 checkUnnamed1635(core.List<core.String> o) { | 1159 checkUnnamed1636(core.List<core.String> o) { |
1160 unittest.expect(o, unittest.hasLength(2)); | 1160 unittest.expect(o, unittest.hasLength(2)); |
1161 unittest.expect(o[0], unittest.equals('foo')); | 1161 unittest.expect(o[0], unittest.equals('foo')); |
1162 unittest.expect(o[1], unittest.equals('foo')); | 1162 unittest.expect(o[1], unittest.equals('foo')); |
1163 } | 1163 } |
1164 | 1164 |
1165 core.int buildCounterTestIamPermissionsRequest = 0; | 1165 core.int buildCounterTestIamPermissionsRequest = 0; |
1166 buildTestIamPermissionsRequest() { | 1166 buildTestIamPermissionsRequest() { |
1167 var o = new api.TestIamPermissionsRequest(); | 1167 var o = new api.TestIamPermissionsRequest(); |
1168 buildCounterTestIamPermissionsRequest++; | 1168 buildCounterTestIamPermissionsRequest++; |
1169 if (buildCounterTestIamPermissionsRequest < 3) { | 1169 if (buildCounterTestIamPermissionsRequest < 3) { |
1170 o.permissions = buildUnnamed1635(); | 1170 o.permissions = buildUnnamed1636(); |
1171 } | 1171 } |
1172 buildCounterTestIamPermissionsRequest--; | 1172 buildCounterTestIamPermissionsRequest--; |
1173 return o; | 1173 return o; |
1174 } | 1174 } |
1175 | 1175 |
1176 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 1176 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
1177 buildCounterTestIamPermissionsRequest++; | 1177 buildCounterTestIamPermissionsRequest++; |
1178 if (buildCounterTestIamPermissionsRequest < 3) { | 1178 if (buildCounterTestIamPermissionsRequest < 3) { |
1179 checkUnnamed1635(o.permissions); | 1179 checkUnnamed1636(o.permissions); |
1180 } | 1180 } |
1181 buildCounterTestIamPermissionsRequest--; | 1181 buildCounterTestIamPermissionsRequest--; |
1182 } | 1182 } |
1183 | 1183 |
1184 buildUnnamed1636() { | 1184 buildUnnamed1637() { |
1185 var o = new core.List<core.String>(); | 1185 var o = new core.List<core.String>(); |
1186 o.add("foo"); | 1186 o.add("foo"); |
1187 o.add("foo"); | 1187 o.add("foo"); |
1188 return o; | 1188 return o; |
1189 } | 1189 } |
1190 | 1190 |
1191 checkUnnamed1636(core.List<core.String> o) { | 1191 checkUnnamed1637(core.List<core.String> o) { |
1192 unittest.expect(o, unittest.hasLength(2)); | 1192 unittest.expect(o, unittest.hasLength(2)); |
1193 unittest.expect(o[0], unittest.equals('foo')); | 1193 unittest.expect(o[0], unittest.equals('foo')); |
1194 unittest.expect(o[1], unittest.equals('foo')); | 1194 unittest.expect(o[1], unittest.equals('foo')); |
1195 } | 1195 } |
1196 | 1196 |
1197 core.int buildCounterTestIamPermissionsResponse = 0; | 1197 core.int buildCounterTestIamPermissionsResponse = 0; |
1198 buildTestIamPermissionsResponse() { | 1198 buildTestIamPermissionsResponse() { |
1199 var o = new api.TestIamPermissionsResponse(); | 1199 var o = new api.TestIamPermissionsResponse(); |
1200 buildCounterTestIamPermissionsResponse++; | 1200 buildCounterTestIamPermissionsResponse++; |
1201 if (buildCounterTestIamPermissionsResponse < 3) { | 1201 if (buildCounterTestIamPermissionsResponse < 3) { |
1202 o.permissions = buildUnnamed1636(); | 1202 o.permissions = buildUnnamed1637(); |
1203 } | 1203 } |
1204 buildCounterTestIamPermissionsResponse--; | 1204 buildCounterTestIamPermissionsResponse--; |
1205 return o; | 1205 return o; |
1206 } | 1206 } |
1207 | 1207 |
1208 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 1208 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
1209 buildCounterTestIamPermissionsResponse++; | 1209 buildCounterTestIamPermissionsResponse++; |
1210 if (buildCounterTestIamPermissionsResponse < 3) { | 1210 if (buildCounterTestIamPermissionsResponse < 3) { |
1211 checkUnnamed1636(o.permissions); | 1211 checkUnnamed1637(o.permissions); |
1212 } | 1212 } |
1213 buildCounterTestIamPermissionsResponse--; | 1213 buildCounterTestIamPermissionsResponse--; |
1214 } | 1214 } |
1215 | 1215 |
1216 core.int buildCounterUndeleteProjectRequest = 0; | 1216 core.int buildCounterUndeleteProjectRequest = 0; |
1217 buildUndeleteProjectRequest() { | 1217 buildUndeleteProjectRequest() { |
1218 var o = new api.UndeleteProjectRequest(); | 1218 var o = new api.UndeleteProjectRequest(); |
1219 buildCounterUndeleteProjectRequest++; | 1219 buildCounterUndeleteProjectRequest++; |
1220 if (buildCounterUndeleteProjectRequest < 3) { | 1220 if (buildCounterUndeleteProjectRequest < 3) { |
1221 } | 1221 } |
(...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1653 "content-type" : "application/json; charset=utf-8", | 1653 "content-type" : "application/json; charset=utf-8", |
1654 }; | 1654 }; |
1655 var resp = convert.JSON.encode(buildEmpty()); | 1655 var resp = convert.JSON.encode(buildEmpty()); |
1656 return new async.Future.value(stringResponse(200, h, resp)); | 1656 return new async.Future.value(stringResponse(200, h, resp)); |
1657 }), true); | 1657 }), true); |
1658 res.clearOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((
api.Empty response) { | 1658 res.clearOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((
api.Empty response) { |
1659 checkEmpty(response); | 1659 checkEmpty(response); |
1660 }))); | 1660 }))); |
1661 }); | 1661 }); |
1662 | 1662 |
1663 unittest.test("method--clearOrgPolicyV1", () { | |
1664 | |
1665 var mock = new HttpServerMock(); | |
1666 api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders
; | |
1667 var arg_request = buildClearOrgPolicyRequest(); | |
1668 var arg_resource = "foo"; | |
1669 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
1670 var obj = new api.ClearOrgPolicyRequest.fromJson(json); | |
1671 checkClearOrgPolicyRequest(obj); | |
1672 | |
1673 var path = (req.url).path; | |
1674 var pathOffset = 0; | |
1675 var index; | |
1676 var subPart; | |
1677 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
1678 pathOffset += 1; | |
1679 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | |
1680 pathOffset += 3; | |
1681 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | |
1682 | |
1683 var query = (req.url).query; | |
1684 var queryOffset = 0; | |
1685 var queryMap = {}; | |
1686 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
1687 parseBool(n) { | |
1688 if (n == "true") return true; | |
1689 if (n == "false") return false; | |
1690 if (n == null) return null; | |
1691 throw new core.ArgumentError("Invalid boolean: $n"); | |
1692 } | |
1693 if (query.length > 0) { | |
1694 for (var part in query.split("&")) { | |
1695 var keyvalue = part.split("="); | |
1696 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
1697 } | |
1698 } | |
1699 | |
1700 | |
1701 var h = { | |
1702 "content-type" : "application/json; charset=utf-8", | |
1703 }; | |
1704 var resp = convert.JSON.encode(buildEmpty()); | |
1705 return new async.Future.value(stringResponse(200, h, resp)); | |
1706 }), true); | |
1707 res.clearOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(
((api.Empty response) { | |
1708 checkEmpty(response); | |
1709 }))); | |
1710 }); | |
1711 | |
1712 unittest.test("method--getEffectiveOrgPolicy", () { | 1663 unittest.test("method--getEffectiveOrgPolicy", () { |
1713 | 1664 |
1714 var mock = new HttpServerMock(); | 1665 var mock = new HttpServerMock(); |
1715 api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders
; | 1666 api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders
; |
1716 var arg_request = buildGetEffectiveOrgPolicyRequest(); | 1667 var arg_request = buildGetEffectiveOrgPolicyRequest(); |
1717 var arg_resource = "foo"; | 1668 var arg_resource = "foo"; |
1718 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1669 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1719 var obj = new api.GetEffectiveOrgPolicyRequest.fromJson(json); | 1670 var obj = new api.GetEffectiveOrgPolicyRequest.fromJson(json); |
1720 checkGetEffectiveOrgPolicyRequest(obj); | 1671 checkGetEffectiveOrgPolicyRequest(obj); |
1721 | 1672 |
(...skipping 29 matching lines...) Expand all Loading... |
1751 "content-type" : "application/json; charset=utf-8", | 1702 "content-type" : "application/json; charset=utf-8", |
1752 }; | 1703 }; |
1753 var resp = convert.JSON.encode(buildOrgPolicy()); | 1704 var resp = convert.JSON.encode(buildOrgPolicy()); |
1754 return new async.Future.value(stringResponse(200, h, resp)); | 1705 return new async.Future.value(stringResponse(200, h, resp)); |
1755 }), true); | 1706 }), true); |
1756 res.getEffectiveOrgPolicy(arg_request, arg_resource).then(unittest.expectA
sync(((api.OrgPolicy response) { | 1707 res.getEffectiveOrgPolicy(arg_request, arg_resource).then(unittest.expectA
sync(((api.OrgPolicy response) { |
1757 checkOrgPolicy(response); | 1708 checkOrgPolicy(response); |
1758 }))); | 1709 }))); |
1759 }); | 1710 }); |
1760 | 1711 |
1761 unittest.test("method--getEffectiveOrgPolicyV1", () { | |
1762 | |
1763 var mock = new HttpServerMock(); | |
1764 api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders
; | |
1765 var arg_request = buildGetEffectiveOrgPolicyRequest(); | |
1766 var arg_resource = "foo"; | |
1767 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
1768 var obj = new api.GetEffectiveOrgPolicyRequest.fromJson(json); | |
1769 checkGetEffectiveOrgPolicyRequest(obj); | |
1770 | |
1771 var path = (req.url).path; | |
1772 var pathOffset = 0; | |
1773 var index; | |
1774 var subPart; | |
1775 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
1776 pathOffset += 1; | |
1777 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | |
1778 pathOffset += 3; | |
1779 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | |
1780 | |
1781 var query = (req.url).query; | |
1782 var queryOffset = 0; | |
1783 var queryMap = {}; | |
1784 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
1785 parseBool(n) { | |
1786 if (n == "true") return true; | |
1787 if (n == "false") return false; | |
1788 if (n == null) return null; | |
1789 throw new core.ArgumentError("Invalid boolean: $n"); | |
1790 } | |
1791 if (query.length > 0) { | |
1792 for (var part in query.split("&")) { | |
1793 var keyvalue = part.split("="); | |
1794 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
1795 } | |
1796 } | |
1797 | |
1798 | |
1799 var h = { | |
1800 "content-type" : "application/json; charset=utf-8", | |
1801 }; | |
1802 var resp = convert.JSON.encode(buildOrgPolicy()); | |
1803 return new async.Future.value(stringResponse(200, h, resp)); | |
1804 }), true); | |
1805 res.getEffectiveOrgPolicyV1(arg_request, arg_resource).then(unittest.expec
tAsync(((api.OrgPolicy response) { | |
1806 checkOrgPolicy(response); | |
1807 }))); | |
1808 }); | |
1809 | |
1810 unittest.test("method--getOrgPolicy", () { | 1712 unittest.test("method--getOrgPolicy", () { |
1811 | 1713 |
1812 var mock = new HttpServerMock(); | 1714 var mock = new HttpServerMock(); |
1813 api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders
; | 1715 api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders
; |
1814 var arg_request = buildGetOrgPolicyRequest(); | 1716 var arg_request = buildGetOrgPolicyRequest(); |
1815 var arg_resource = "foo"; | 1717 var arg_resource = "foo"; |
1816 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1718 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1817 var obj = new api.GetOrgPolicyRequest.fromJson(json); | 1719 var obj = new api.GetOrgPolicyRequest.fromJson(json); |
1818 checkGetOrgPolicyRequest(obj); | 1720 checkGetOrgPolicyRequest(obj); |
1819 | 1721 |
(...skipping 29 matching lines...) Expand all Loading... |
1849 "content-type" : "application/json; charset=utf-8", | 1751 "content-type" : "application/json; charset=utf-8", |
1850 }; | 1752 }; |
1851 var resp = convert.JSON.encode(buildOrgPolicy()); | 1753 var resp = convert.JSON.encode(buildOrgPolicy()); |
1852 return new async.Future.value(stringResponse(200, h, resp)); | 1754 return new async.Future.value(stringResponse(200, h, resp)); |
1853 }), true); | 1755 }), true); |
1854 res.getOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.OrgPolicy response) { | 1756 res.getOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.OrgPolicy response) { |
1855 checkOrgPolicy(response); | 1757 checkOrgPolicy(response); |
1856 }))); | 1758 }))); |
1857 }); | 1759 }); |
1858 | 1760 |
1859 unittest.test("method--getOrgPolicyV1", () { | |
1860 | |
1861 var mock = new HttpServerMock(); | |
1862 api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders
; | |
1863 var arg_request = buildGetOrgPolicyRequest(); | |
1864 var arg_resource = "foo"; | |
1865 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
1866 var obj = new api.GetOrgPolicyRequest.fromJson(json); | |
1867 checkGetOrgPolicyRequest(obj); | |
1868 | |
1869 var path = (req.url).path; | |
1870 var pathOffset = 0; | |
1871 var index; | |
1872 var subPart; | |
1873 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
1874 pathOffset += 1; | |
1875 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | |
1876 pathOffset += 3; | |
1877 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | |
1878 | |
1879 var query = (req.url).query; | |
1880 var queryOffset = 0; | |
1881 var queryMap = {}; | |
1882 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
1883 parseBool(n) { | |
1884 if (n == "true") return true; | |
1885 if (n == "false") return false; | |
1886 if (n == null) return null; | |
1887 throw new core.ArgumentError("Invalid boolean: $n"); | |
1888 } | |
1889 if (query.length > 0) { | |
1890 for (var part in query.split("&")) { | |
1891 var keyvalue = part.split("="); | |
1892 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
1893 } | |
1894 } | |
1895 | |
1896 | |
1897 var h = { | |
1898 "content-type" : "application/json; charset=utf-8", | |
1899 }; | |
1900 var resp = convert.JSON.encode(buildOrgPolicy()); | |
1901 return new async.Future.value(stringResponse(200, h, resp)); | |
1902 }), true); | |
1903 res.getOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((
api.OrgPolicy response) { | |
1904 checkOrgPolicy(response); | |
1905 }))); | |
1906 }); | |
1907 | |
1908 unittest.test("method--listAvailableOrgPolicyConstraints", () { | 1761 unittest.test("method--listAvailableOrgPolicyConstraints", () { |
1909 | 1762 |
1910 var mock = new HttpServerMock(); | 1763 var mock = new HttpServerMock(); |
1911 api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders
; | 1764 api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders
; |
1912 var arg_request = buildListAvailableOrgPolicyConstraintsRequest(); | 1765 var arg_request = buildListAvailableOrgPolicyConstraintsRequest(); |
1913 var arg_resource = "foo"; | 1766 var arg_resource = "foo"; |
1914 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1767 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
1915 var obj = new api.ListAvailableOrgPolicyConstraintsRequest.fromJson(json
); | 1768 var obj = new api.ListAvailableOrgPolicyConstraintsRequest.fromJson(json
); |
1916 checkListAvailableOrgPolicyConstraintsRequest(obj); | 1769 checkListAvailableOrgPolicyConstraintsRequest(obj); |
1917 | 1770 |
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2045 "content-type" : "application/json; charset=utf-8", | 1898 "content-type" : "application/json; charset=utf-8", |
2046 }; | 1899 }; |
2047 var resp = convert.JSON.encode(buildOrgPolicy()); | 1900 var resp = convert.JSON.encode(buildOrgPolicy()); |
2048 return new async.Future.value(stringResponse(200, h, resp)); | 1901 return new async.Future.value(stringResponse(200, h, resp)); |
2049 }), true); | 1902 }), true); |
2050 res.setOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.OrgPolicy response) { | 1903 res.setOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.OrgPolicy response) { |
2051 checkOrgPolicy(response); | 1904 checkOrgPolicy(response); |
2052 }))); | 1905 }))); |
2053 }); | 1906 }); |
2054 | 1907 |
2055 unittest.test("method--setOrgPolicyV1", () { | |
2056 | |
2057 var mock = new HttpServerMock(); | |
2058 api.FoldersResourceApi res = new api.CloudresourcemanagerApi(mock).folders
; | |
2059 var arg_request = buildSetOrgPolicyRequest(); | |
2060 var arg_resource = "foo"; | |
2061 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
2062 var obj = new api.SetOrgPolicyRequest.fromJson(json); | |
2063 checkSetOrgPolicyRequest(obj); | |
2064 | |
2065 var path = (req.url).path; | |
2066 var pathOffset = 0; | |
2067 var index; | |
2068 var subPart; | |
2069 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
2070 pathOffset += 1; | |
2071 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | |
2072 pathOffset += 3; | |
2073 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | |
2074 | |
2075 var query = (req.url).query; | |
2076 var queryOffset = 0; | |
2077 var queryMap = {}; | |
2078 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
2079 parseBool(n) { | |
2080 if (n == "true") return true; | |
2081 if (n == "false") return false; | |
2082 if (n == null) return null; | |
2083 throw new core.ArgumentError("Invalid boolean: $n"); | |
2084 } | |
2085 if (query.length > 0) { | |
2086 for (var part in query.split("&")) { | |
2087 var keyvalue = part.split("="); | |
2088 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
2089 } | |
2090 } | |
2091 | |
2092 | |
2093 var h = { | |
2094 "content-type" : "application/json; charset=utf-8", | |
2095 }; | |
2096 var resp = convert.JSON.encode(buildOrgPolicy()); | |
2097 return new async.Future.value(stringResponse(200, h, resp)); | |
2098 }), true); | |
2099 res.setOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((
api.OrgPolicy response) { | |
2100 checkOrgPolicy(response); | |
2101 }))); | |
2102 }); | |
2103 | |
2104 }); | 1908 }); |
2105 | 1909 |
2106 | 1910 |
2107 unittest.group("resource-LiensResourceApi", () { | 1911 unittest.group("resource-LiensResourceApi", () { |
2108 unittest.test("method--create", () { | 1912 unittest.test("method--create", () { |
2109 | 1913 |
2110 var mock = new HttpServerMock(); | 1914 var mock = new HttpServerMock(); |
2111 api.LiensResourceApi res = new api.CloudresourcemanagerApi(mock).liens; | 1915 api.LiensResourceApi res = new api.CloudresourcemanagerApi(mock).liens; |
2112 var arg_request = buildLien(); | 1916 var arg_request = buildLien(); |
2113 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1917 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
(...skipping 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2341 "content-type" : "application/json; charset=utf-8", | 2145 "content-type" : "application/json; charset=utf-8", |
2342 }; | 2146 }; |
2343 var resp = convert.JSON.encode(buildEmpty()); | 2147 var resp = convert.JSON.encode(buildEmpty()); |
2344 return new async.Future.value(stringResponse(200, h, resp)); | 2148 return new async.Future.value(stringResponse(200, h, resp)); |
2345 }), true); | 2149 }), true); |
2346 res.clearOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((
api.Empty response) { | 2150 res.clearOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((
api.Empty response) { |
2347 checkEmpty(response); | 2151 checkEmpty(response); |
2348 }))); | 2152 }))); |
2349 }); | 2153 }); |
2350 | 2154 |
2351 unittest.test("method--clearOrgPolicyV1", () { | 2155 unittest.test("method--get", () { |
2352 | 2156 |
2353 var mock = new HttpServerMock(); | 2157 var mock = new HttpServerMock(); |
2354 api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).o
rganizations; | 2158 api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).o
rganizations; |
2355 var arg_request = buildClearOrgPolicyRequest(); | 2159 var arg_name = "foo"; |
2356 var arg_resource = "foo"; | |
2357 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2160 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2358 var obj = new api.ClearOrgPolicyRequest.fromJson(json); | |
2359 checkClearOrgPolicyRequest(obj); | |
2360 | |
2361 var path = (req.url).path; | 2161 var path = (req.url).path; |
2362 var pathOffset = 0; | 2162 var pathOffset = 0; |
2363 var index; | 2163 var index; |
2364 var subPart; | 2164 var subPart; |
2365 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2165 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2366 pathOffset += 1; | 2166 pathOffset += 1; |
2367 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 2167 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
2368 pathOffset += 3; | 2168 pathOffset += 3; |
2369 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2169 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2370 | 2170 |
(...skipping 11 matching lines...) Expand all Loading... |
2382 for (var part in query.split("&")) { | 2182 for (var part in query.split("&")) { |
2383 var keyvalue = part.split("="); | 2183 var keyvalue = part.split("="); |
2384 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2184 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2385 } | 2185 } |
2386 } | 2186 } |
2387 | 2187 |
2388 | 2188 |
2389 var h = { | 2189 var h = { |
2390 "content-type" : "application/json; charset=utf-8", | 2190 "content-type" : "application/json; charset=utf-8", |
2391 }; | 2191 }; |
2392 var resp = convert.JSON.encode(buildEmpty()); | |
2393 return new async.Future.value(stringResponse(200, h, resp)); | |
2394 }), true); | |
2395 res.clearOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(
((api.Empty response) { | |
2396 checkEmpty(response); | |
2397 }))); | |
2398 }); | |
2399 | |
2400 unittest.test("method--get", () { | |
2401 | |
2402 var mock = new HttpServerMock(); | |
2403 api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).o
rganizations; | |
2404 var arg_name = "foo"; | |
2405 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
2406 var path = (req.url).path; | |
2407 var pathOffset = 0; | |
2408 var index; | |
2409 var subPart; | |
2410 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
2411 pathOffset += 1; | |
2412 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | |
2413 pathOffset += 3; | |
2414 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | |
2415 | |
2416 var query = (req.url).query; | |
2417 var queryOffset = 0; | |
2418 var queryMap = {}; | |
2419 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
2420 parseBool(n) { | |
2421 if (n == "true") return true; | |
2422 if (n == "false") return false; | |
2423 if (n == null) return null; | |
2424 throw new core.ArgumentError("Invalid boolean: $n"); | |
2425 } | |
2426 if (query.length > 0) { | |
2427 for (var part in query.split("&")) { | |
2428 var keyvalue = part.split("="); | |
2429 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
2430 } | |
2431 } | |
2432 | |
2433 | |
2434 var h = { | |
2435 "content-type" : "application/json; charset=utf-8", | |
2436 }; | |
2437 var resp = convert.JSON.encode(buildOrganization()); | 2192 var resp = convert.JSON.encode(buildOrganization()); |
2438 return new async.Future.value(stringResponse(200, h, resp)); | 2193 return new async.Future.value(stringResponse(200, h, resp)); |
2439 }), true); | 2194 }), true); |
2440 res.get(arg_name).then(unittest.expectAsync(((api.Organization response) { | 2195 res.get(arg_name).then(unittest.expectAsync(((api.Organization response) { |
2441 checkOrganization(response); | 2196 checkOrganization(response); |
2442 }))); | 2197 }))); |
2443 }); | 2198 }); |
2444 | 2199 |
2445 unittest.test("method--getEffectiveOrgPolicy", () { | 2200 unittest.test("method--getEffectiveOrgPolicy", () { |
2446 | 2201 |
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2484 "content-type" : "application/json; charset=utf-8", | 2239 "content-type" : "application/json; charset=utf-8", |
2485 }; | 2240 }; |
2486 var resp = convert.JSON.encode(buildOrgPolicy()); | 2241 var resp = convert.JSON.encode(buildOrgPolicy()); |
2487 return new async.Future.value(stringResponse(200, h, resp)); | 2242 return new async.Future.value(stringResponse(200, h, resp)); |
2488 }), true); | 2243 }), true); |
2489 res.getEffectiveOrgPolicy(arg_request, arg_resource).then(unittest.expectA
sync(((api.OrgPolicy response) { | 2244 res.getEffectiveOrgPolicy(arg_request, arg_resource).then(unittest.expectA
sync(((api.OrgPolicy response) { |
2490 checkOrgPolicy(response); | 2245 checkOrgPolicy(response); |
2491 }))); | 2246 }))); |
2492 }); | 2247 }); |
2493 | 2248 |
2494 unittest.test("method--getEffectiveOrgPolicyV1", () { | |
2495 | |
2496 var mock = new HttpServerMock(); | |
2497 api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).o
rganizations; | |
2498 var arg_request = buildGetEffectiveOrgPolicyRequest(); | |
2499 var arg_resource = "foo"; | |
2500 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
2501 var obj = new api.GetEffectiveOrgPolicyRequest.fromJson(json); | |
2502 checkGetEffectiveOrgPolicyRequest(obj); | |
2503 | |
2504 var path = (req.url).path; | |
2505 var pathOffset = 0; | |
2506 var index; | |
2507 var subPart; | |
2508 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
2509 pathOffset += 1; | |
2510 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | |
2511 pathOffset += 3; | |
2512 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | |
2513 | |
2514 var query = (req.url).query; | |
2515 var queryOffset = 0; | |
2516 var queryMap = {}; | |
2517 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
2518 parseBool(n) { | |
2519 if (n == "true") return true; | |
2520 if (n == "false") return false; | |
2521 if (n == null) return null; | |
2522 throw new core.ArgumentError("Invalid boolean: $n"); | |
2523 } | |
2524 if (query.length > 0) { | |
2525 for (var part in query.split("&")) { | |
2526 var keyvalue = part.split("="); | |
2527 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
2528 } | |
2529 } | |
2530 | |
2531 | |
2532 var h = { | |
2533 "content-type" : "application/json; charset=utf-8", | |
2534 }; | |
2535 var resp = convert.JSON.encode(buildOrgPolicy()); | |
2536 return new async.Future.value(stringResponse(200, h, resp)); | |
2537 }), true); | |
2538 res.getEffectiveOrgPolicyV1(arg_request, arg_resource).then(unittest.expec
tAsync(((api.OrgPolicy response) { | |
2539 checkOrgPolicy(response); | |
2540 }))); | |
2541 }); | |
2542 | |
2543 unittest.test("method--getIamPolicy", () { | 2249 unittest.test("method--getIamPolicy", () { |
2544 | 2250 |
2545 var mock = new HttpServerMock(); | 2251 var mock = new HttpServerMock(); |
2546 api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).o
rganizations; | 2252 api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).o
rganizations; |
2547 var arg_request = buildGetIamPolicyRequest(); | 2253 var arg_request = buildGetIamPolicyRequest(); |
2548 var arg_resource = "foo"; | 2254 var arg_resource = "foo"; |
2549 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2255 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2550 var obj = new api.GetIamPolicyRequest.fromJson(json); | 2256 var obj = new api.GetIamPolicyRequest.fromJson(json); |
2551 checkGetIamPolicyRequest(obj); | 2257 checkGetIamPolicyRequest(obj); |
2552 | 2258 |
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2631 "content-type" : "application/json; charset=utf-8", | 2337 "content-type" : "application/json; charset=utf-8", |
2632 }; | 2338 }; |
2633 var resp = convert.JSON.encode(buildOrgPolicy()); | 2339 var resp = convert.JSON.encode(buildOrgPolicy()); |
2634 return new async.Future.value(stringResponse(200, h, resp)); | 2340 return new async.Future.value(stringResponse(200, h, resp)); |
2635 }), true); | 2341 }), true); |
2636 res.getOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.OrgPolicy response) { | 2342 res.getOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.OrgPolicy response) { |
2637 checkOrgPolicy(response); | 2343 checkOrgPolicy(response); |
2638 }))); | 2344 }))); |
2639 }); | 2345 }); |
2640 | 2346 |
2641 unittest.test("method--getOrgPolicyV1", () { | |
2642 | |
2643 var mock = new HttpServerMock(); | |
2644 api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).o
rganizations; | |
2645 var arg_request = buildGetOrgPolicyRequest(); | |
2646 var arg_resource = "foo"; | |
2647 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
2648 var obj = new api.GetOrgPolicyRequest.fromJson(json); | |
2649 checkGetOrgPolicyRequest(obj); | |
2650 | |
2651 var path = (req.url).path; | |
2652 var pathOffset = 0; | |
2653 var index; | |
2654 var subPart; | |
2655 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
2656 pathOffset += 1; | |
2657 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | |
2658 pathOffset += 3; | |
2659 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | |
2660 | |
2661 var query = (req.url).query; | |
2662 var queryOffset = 0; | |
2663 var queryMap = {}; | |
2664 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
2665 parseBool(n) { | |
2666 if (n == "true") return true; | |
2667 if (n == "false") return false; | |
2668 if (n == null) return null; | |
2669 throw new core.ArgumentError("Invalid boolean: $n"); | |
2670 } | |
2671 if (query.length > 0) { | |
2672 for (var part in query.split("&")) { | |
2673 var keyvalue = part.split("="); | |
2674 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
2675 } | |
2676 } | |
2677 | |
2678 | |
2679 var h = { | |
2680 "content-type" : "application/json; charset=utf-8", | |
2681 }; | |
2682 var resp = convert.JSON.encode(buildOrgPolicy()); | |
2683 return new async.Future.value(stringResponse(200, h, resp)); | |
2684 }), true); | |
2685 res.getOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((
api.OrgPolicy response) { | |
2686 checkOrgPolicy(response); | |
2687 }))); | |
2688 }); | |
2689 | |
2690 unittest.test("method--listAvailableOrgPolicyConstraints", () { | 2347 unittest.test("method--listAvailableOrgPolicyConstraints", () { |
2691 | 2348 |
2692 var mock = new HttpServerMock(); | 2349 var mock = new HttpServerMock(); |
2693 api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).o
rganizations; | 2350 api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).o
rganizations; |
2694 var arg_request = buildListAvailableOrgPolicyConstraintsRequest(); | 2351 var arg_request = buildListAvailableOrgPolicyConstraintsRequest(); |
2695 var arg_resource = "foo"; | 2352 var arg_resource = "foo"; |
2696 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2353 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2697 var obj = new api.ListAvailableOrgPolicyConstraintsRequest.fromJson(json
); | 2354 var obj = new api.ListAvailableOrgPolicyConstraintsRequest.fromJson(json
); |
2698 checkListAvailableOrgPolicyConstraintsRequest(obj); | 2355 checkListAvailableOrgPolicyConstraintsRequest(obj); |
2699 | 2356 |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2923 "content-type" : "application/json; charset=utf-8", | 2580 "content-type" : "application/json; charset=utf-8", |
2924 }; | 2581 }; |
2925 var resp = convert.JSON.encode(buildOrgPolicy()); | 2582 var resp = convert.JSON.encode(buildOrgPolicy()); |
2926 return new async.Future.value(stringResponse(200, h, resp)); | 2583 return new async.Future.value(stringResponse(200, h, resp)); |
2927 }), true); | 2584 }), true); |
2928 res.setOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.OrgPolicy response) { | 2585 res.setOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.OrgPolicy response) { |
2929 checkOrgPolicy(response); | 2586 checkOrgPolicy(response); |
2930 }))); | 2587 }))); |
2931 }); | 2588 }); |
2932 | 2589 |
2933 unittest.test("method--setOrgPolicyV1", () { | |
2934 | |
2935 var mock = new HttpServerMock(); | |
2936 api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).o
rganizations; | |
2937 var arg_request = buildSetOrgPolicyRequest(); | |
2938 var arg_resource = "foo"; | |
2939 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
2940 var obj = new api.SetOrgPolicyRequest.fromJson(json); | |
2941 checkSetOrgPolicyRequest(obj); | |
2942 | |
2943 var path = (req.url).path; | |
2944 var pathOffset = 0; | |
2945 var index; | |
2946 var subPart; | |
2947 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
2948 pathOffset += 1; | |
2949 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | |
2950 pathOffset += 3; | |
2951 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | |
2952 | |
2953 var query = (req.url).query; | |
2954 var queryOffset = 0; | |
2955 var queryMap = {}; | |
2956 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
2957 parseBool(n) { | |
2958 if (n == "true") return true; | |
2959 if (n == "false") return false; | |
2960 if (n == null) return null; | |
2961 throw new core.ArgumentError("Invalid boolean: $n"); | |
2962 } | |
2963 if (query.length > 0) { | |
2964 for (var part in query.split("&")) { | |
2965 var keyvalue = part.split("="); | |
2966 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
2967 } | |
2968 } | |
2969 | |
2970 | |
2971 var h = { | |
2972 "content-type" : "application/json; charset=utf-8", | |
2973 }; | |
2974 var resp = convert.JSON.encode(buildOrgPolicy()); | |
2975 return new async.Future.value(stringResponse(200, h, resp)); | |
2976 }), true); | |
2977 res.setOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((
api.OrgPolicy response) { | |
2978 checkOrgPolicy(response); | |
2979 }))); | |
2980 }); | |
2981 | |
2982 unittest.test("method--testIamPermissions", () { | 2590 unittest.test("method--testIamPermissions", () { |
2983 | 2591 |
2984 var mock = new HttpServerMock(); | 2592 var mock = new HttpServerMock(); |
2985 api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).o
rganizations; | 2593 api.OrganizationsResourceApi res = new api.CloudresourcemanagerApi(mock).o
rganizations; |
2986 var arg_request = buildTestIamPermissionsRequest(); | 2594 var arg_request = buildTestIamPermissionsRequest(); |
2987 var arg_resource = "foo"; | 2595 var arg_resource = "foo"; |
2988 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2596 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
2989 var obj = new api.TestIamPermissionsRequest.fromJson(json); | 2597 var obj = new api.TestIamPermissionsRequest.fromJson(json); |
2990 checkTestIamPermissionsRequest(obj); | 2598 checkTestIamPermissionsRequest(obj); |
2991 | 2599 |
(...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3074 "content-type" : "application/json; charset=utf-8", | 2682 "content-type" : "application/json; charset=utf-8", |
3075 }; | 2683 }; |
3076 var resp = convert.JSON.encode(buildEmpty()); | 2684 var resp = convert.JSON.encode(buildEmpty()); |
3077 return new async.Future.value(stringResponse(200, h, resp)); | 2685 return new async.Future.value(stringResponse(200, h, resp)); |
3078 }), true); | 2686 }), true); |
3079 res.clearOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((
api.Empty response) { | 2687 res.clearOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((
api.Empty response) { |
3080 checkEmpty(response); | 2688 checkEmpty(response); |
3081 }))); | 2689 }))); |
3082 }); | 2690 }); |
3083 | 2691 |
3084 unittest.test("method--clearOrgPolicyV1", () { | |
3085 | |
3086 var mock = new HttpServerMock(); | |
3087 api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projec
ts; | |
3088 var arg_request = buildClearOrgPolicyRequest(); | |
3089 var arg_resource = "foo"; | |
3090 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
3091 var obj = new api.ClearOrgPolicyRequest.fromJson(json); | |
3092 checkClearOrgPolicyRequest(obj); | |
3093 | |
3094 var path = (req.url).path; | |
3095 var pathOffset = 0; | |
3096 var index; | |
3097 var subPart; | |
3098 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
3099 pathOffset += 1; | |
3100 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | |
3101 pathOffset += 3; | |
3102 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | |
3103 | |
3104 var query = (req.url).query; | |
3105 var queryOffset = 0; | |
3106 var queryMap = {}; | |
3107 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
3108 parseBool(n) { | |
3109 if (n == "true") return true; | |
3110 if (n == "false") return false; | |
3111 if (n == null) return null; | |
3112 throw new core.ArgumentError("Invalid boolean: $n"); | |
3113 } | |
3114 if (query.length > 0) { | |
3115 for (var part in query.split("&")) { | |
3116 var keyvalue = part.split("="); | |
3117 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
3118 } | |
3119 } | |
3120 | |
3121 | |
3122 var h = { | |
3123 "content-type" : "application/json; charset=utf-8", | |
3124 }; | |
3125 var resp = convert.JSON.encode(buildEmpty()); | |
3126 return new async.Future.value(stringResponse(200, h, resp)); | |
3127 }), true); | |
3128 res.clearOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(
((api.Empty response) { | |
3129 checkEmpty(response); | |
3130 }))); | |
3131 }); | |
3132 | |
3133 unittest.test("method--create", () { | 2692 unittest.test("method--create", () { |
3134 | 2693 |
3135 var mock = new HttpServerMock(); | 2694 var mock = new HttpServerMock(); |
3136 api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projec
ts; | 2695 api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projec
ts; |
3137 var arg_request = buildProject(); | 2696 var arg_request = buildProject(); |
3138 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2697 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3139 var obj = new api.Project.fromJson(json); | 2698 var obj = new api.Project.fromJson(json); |
3140 checkProject(obj); | 2699 checkProject(obj); |
3141 | 2700 |
3142 var path = (req.url).path; | 2701 var path = (req.url).path; |
(...skipping 225 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3368 "content-type" : "application/json; charset=utf-8", | 2927 "content-type" : "application/json; charset=utf-8", |
3369 }; | 2928 }; |
3370 var resp = convert.JSON.encode(buildOrgPolicy()); | 2929 var resp = convert.JSON.encode(buildOrgPolicy()); |
3371 return new async.Future.value(stringResponse(200, h, resp)); | 2930 return new async.Future.value(stringResponse(200, h, resp)); |
3372 }), true); | 2931 }), true); |
3373 res.getEffectiveOrgPolicy(arg_request, arg_resource).then(unittest.expectA
sync(((api.OrgPolicy response) { | 2932 res.getEffectiveOrgPolicy(arg_request, arg_resource).then(unittest.expectA
sync(((api.OrgPolicy response) { |
3374 checkOrgPolicy(response); | 2933 checkOrgPolicy(response); |
3375 }))); | 2934 }))); |
3376 }); | 2935 }); |
3377 | 2936 |
3378 unittest.test("method--getEffectiveOrgPolicyV1", () { | |
3379 | |
3380 var mock = new HttpServerMock(); | |
3381 api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projec
ts; | |
3382 var arg_request = buildGetEffectiveOrgPolicyRequest(); | |
3383 var arg_resource = "foo"; | |
3384 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
3385 var obj = new api.GetEffectiveOrgPolicyRequest.fromJson(json); | |
3386 checkGetEffectiveOrgPolicyRequest(obj); | |
3387 | |
3388 var path = (req.url).path; | |
3389 var pathOffset = 0; | |
3390 var index; | |
3391 var subPart; | |
3392 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
3393 pathOffset += 1; | |
3394 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | |
3395 pathOffset += 3; | |
3396 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | |
3397 | |
3398 var query = (req.url).query; | |
3399 var queryOffset = 0; | |
3400 var queryMap = {}; | |
3401 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
3402 parseBool(n) { | |
3403 if (n == "true") return true; | |
3404 if (n == "false") return false; | |
3405 if (n == null) return null; | |
3406 throw new core.ArgumentError("Invalid boolean: $n"); | |
3407 } | |
3408 if (query.length > 0) { | |
3409 for (var part in query.split("&")) { | |
3410 var keyvalue = part.split("="); | |
3411 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
3412 } | |
3413 } | |
3414 | |
3415 | |
3416 var h = { | |
3417 "content-type" : "application/json; charset=utf-8", | |
3418 }; | |
3419 var resp = convert.JSON.encode(buildOrgPolicy()); | |
3420 return new async.Future.value(stringResponse(200, h, resp)); | |
3421 }), true); | |
3422 res.getEffectiveOrgPolicyV1(arg_request, arg_resource).then(unittest.expec
tAsync(((api.OrgPolicy response) { | |
3423 checkOrgPolicy(response); | |
3424 }))); | |
3425 }); | |
3426 | |
3427 unittest.test("method--getIamPolicy", () { | 2937 unittest.test("method--getIamPolicy", () { |
3428 | 2938 |
3429 var mock = new HttpServerMock(); | 2939 var mock = new HttpServerMock(); |
3430 api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projec
ts; | 2940 api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projec
ts; |
3431 var arg_request = buildGetIamPolicyRequest(); | 2941 var arg_request = buildGetIamPolicyRequest(); |
3432 var arg_resource = "foo"; | 2942 var arg_resource = "foo"; |
3433 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 2943 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3434 var obj = new api.GetIamPolicyRequest.fromJson(json); | 2944 var obj = new api.GetIamPolicyRequest.fromJson(json); |
3435 checkGetIamPolicyRequest(obj); | 2945 checkGetIamPolicyRequest(obj); |
3436 | 2946 |
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3521 "content-type" : "application/json; charset=utf-8", | 3031 "content-type" : "application/json; charset=utf-8", |
3522 }; | 3032 }; |
3523 var resp = convert.JSON.encode(buildOrgPolicy()); | 3033 var resp = convert.JSON.encode(buildOrgPolicy()); |
3524 return new async.Future.value(stringResponse(200, h, resp)); | 3034 return new async.Future.value(stringResponse(200, h, resp)); |
3525 }), true); | 3035 }), true); |
3526 res.getOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.OrgPolicy response) { | 3036 res.getOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.OrgPolicy response) { |
3527 checkOrgPolicy(response); | 3037 checkOrgPolicy(response); |
3528 }))); | 3038 }))); |
3529 }); | 3039 }); |
3530 | 3040 |
3531 unittest.test("method--getOrgPolicyV1", () { | |
3532 | |
3533 var mock = new HttpServerMock(); | |
3534 api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projec
ts; | |
3535 var arg_request = buildGetOrgPolicyRequest(); | |
3536 var arg_resource = "foo"; | |
3537 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
3538 var obj = new api.GetOrgPolicyRequest.fromJson(json); | |
3539 checkGetOrgPolicyRequest(obj); | |
3540 | |
3541 var path = (req.url).path; | |
3542 var pathOffset = 0; | |
3543 var index; | |
3544 var subPart; | |
3545 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
3546 pathOffset += 1; | |
3547 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | |
3548 pathOffset += 3; | |
3549 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | |
3550 | |
3551 var query = (req.url).query; | |
3552 var queryOffset = 0; | |
3553 var queryMap = {}; | |
3554 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
3555 parseBool(n) { | |
3556 if (n == "true") return true; | |
3557 if (n == "false") return false; | |
3558 if (n == null) return null; | |
3559 throw new core.ArgumentError("Invalid boolean: $n"); | |
3560 } | |
3561 if (query.length > 0) { | |
3562 for (var part in query.split("&")) { | |
3563 var keyvalue = part.split("="); | |
3564 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
3565 } | |
3566 } | |
3567 | |
3568 | |
3569 var h = { | |
3570 "content-type" : "application/json; charset=utf-8", | |
3571 }; | |
3572 var resp = convert.JSON.encode(buildOrgPolicy()); | |
3573 return new async.Future.value(stringResponse(200, h, resp)); | |
3574 }), true); | |
3575 res.getOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((
api.OrgPolicy response) { | |
3576 checkOrgPolicy(response); | |
3577 }))); | |
3578 }); | |
3579 | |
3580 unittest.test("method--list", () { | 3041 unittest.test("method--list", () { |
3581 | 3042 |
3582 var mock = new HttpServerMock(); | 3043 var mock = new HttpServerMock(); |
3583 api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projec
ts; | 3044 api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projec
ts; |
3584 var arg_filter = "foo"; | 3045 var arg_filter = "foo"; |
3585 var arg_pageToken = "foo"; | 3046 var arg_pageToken = "foo"; |
3586 var arg_pageSize = 42; | 3047 var arg_pageSize = 42; |
3587 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3048 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3588 var path = (req.url).path; | 3049 var path = (req.url).path; |
3589 var pathOffset = 0; | 3050 var pathOffset = 0; |
(...skipping 231 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3821 "content-type" : "application/json; charset=utf-8", | 3282 "content-type" : "application/json; charset=utf-8", |
3822 }; | 3283 }; |
3823 var resp = convert.JSON.encode(buildOrgPolicy()); | 3284 var resp = convert.JSON.encode(buildOrgPolicy()); |
3824 return new async.Future.value(stringResponse(200, h, resp)); | 3285 return new async.Future.value(stringResponse(200, h, resp)); |
3825 }), true); | 3286 }), true); |
3826 res.setOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.OrgPolicy response) { | 3287 res.setOrgPolicy(arg_request, arg_resource).then(unittest.expectAsync(((ap
i.OrgPolicy response) { |
3827 checkOrgPolicy(response); | 3288 checkOrgPolicy(response); |
3828 }))); | 3289 }))); |
3829 }); | 3290 }); |
3830 | 3291 |
3831 unittest.test("method--setOrgPolicyV1", () { | |
3832 | |
3833 var mock = new HttpServerMock(); | |
3834 api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projec
ts; | |
3835 var arg_request = buildSetOrgPolicyRequest(); | |
3836 var arg_resource = "foo"; | |
3837 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | |
3838 var obj = new api.SetOrgPolicyRequest.fromJson(json); | |
3839 checkSetOrgPolicyRequest(obj); | |
3840 | |
3841 var path = (req.url).path; | |
3842 var pathOffset = 0; | |
3843 var index; | |
3844 var subPart; | |
3845 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | |
3846 pathOffset += 1; | |
3847 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | |
3848 pathOffset += 3; | |
3849 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | |
3850 | |
3851 var query = (req.url).query; | |
3852 var queryOffset = 0; | |
3853 var queryMap = {}; | |
3854 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | |
3855 parseBool(n) { | |
3856 if (n == "true") return true; | |
3857 if (n == "false") return false; | |
3858 if (n == null) return null; | |
3859 throw new core.ArgumentError("Invalid boolean: $n"); | |
3860 } | |
3861 if (query.length > 0) { | |
3862 for (var part in query.split("&")) { | |
3863 var keyvalue = part.split("="); | |
3864 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | |
3865 } | |
3866 } | |
3867 | |
3868 | |
3869 var h = { | |
3870 "content-type" : "application/json; charset=utf-8", | |
3871 }; | |
3872 var resp = convert.JSON.encode(buildOrgPolicy()); | |
3873 return new async.Future.value(stringResponse(200, h, resp)); | |
3874 }), true); | |
3875 res.setOrgPolicyV1(arg_request, arg_resource).then(unittest.expectAsync(((
api.OrgPolicy response) { | |
3876 checkOrgPolicy(response); | |
3877 }))); | |
3878 }); | |
3879 | |
3880 unittest.test("method--testIamPermissions", () { | 3292 unittest.test("method--testIamPermissions", () { |
3881 | 3293 |
3882 var mock = new HttpServerMock(); | 3294 var mock = new HttpServerMock(); |
3883 api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projec
ts; | 3295 api.ProjectsResourceApi res = new api.CloudresourcemanagerApi(mock).projec
ts; |
3884 var arg_request = buildTestIamPermissionsRequest(); | 3296 var arg_request = buildTestIamPermissionsRequest(); |
3885 var arg_resource = "foo"; | 3297 var arg_resource = "foo"; |
3886 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 3298 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
3887 var obj = new api.TestIamPermissionsRequest.fromJson(json); | 3299 var obj = new api.TestIamPermissionsRequest.fromJson(json); |
3888 checkTestIamPermissionsRequest(obj); | 3300 checkTestIamPermissionsRequest(obj); |
3889 | 3301 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4036 res.update(arg_request, arg_projectId).then(unittest.expectAsync(((api.Pro
ject response) { | 3448 res.update(arg_request, arg_projectId).then(unittest.expectAsync(((api.Pro
ject response) { |
4037 checkProject(response); | 3449 checkProject(response); |
4038 }))); | 3450 }))); |
4039 }); | 3451 }); |
4040 | 3452 |
4041 }); | 3453 }); |
4042 | 3454 |
4043 | 3455 |
4044 } | 3456 } |
4045 | 3457 |
OLD | NEW |