OLD | NEW |
1 library googleapis_beta.dlp.v2beta1.test; | 1 library googleapis_beta.dlp.v2beta1.test; |
2 | 2 |
3 import "dart:core" as core; | 3 import "dart:core" as core; |
4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
5 import "dart:async" as async; | 5 import "dart:async" as async; |
6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
7 | 7 |
8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
10 import 'package:test/test.dart' as unittest; | 10 import 'package:test/test.dart' as unittest; |
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
61 return o; | 61 return o; |
62 } | 62 } |
63 | 63 |
64 checkGoogleLongrunningCancelOperationRequest(api.GoogleLongrunningCancelOperatio
nRequest o) { | 64 checkGoogleLongrunningCancelOperationRequest(api.GoogleLongrunningCancelOperatio
nRequest o) { |
65 buildCounterGoogleLongrunningCancelOperationRequest++; | 65 buildCounterGoogleLongrunningCancelOperationRequest++; |
66 if (buildCounterGoogleLongrunningCancelOperationRequest < 3) { | 66 if (buildCounterGoogleLongrunningCancelOperationRequest < 3) { |
67 } | 67 } |
68 buildCounterGoogleLongrunningCancelOperationRequest--; | 68 buildCounterGoogleLongrunningCancelOperationRequest--; |
69 } | 69 } |
70 | 70 |
71 buildUnnamed3287() { | 71 buildUnnamed3283() { |
72 var o = new core.List<api.GoogleLongrunningOperation>(); | 72 var o = new core.List<api.GoogleLongrunningOperation>(); |
73 o.add(buildGoogleLongrunningOperation()); | 73 o.add(buildGoogleLongrunningOperation()); |
74 o.add(buildGoogleLongrunningOperation()); | 74 o.add(buildGoogleLongrunningOperation()); |
75 return o; | 75 return o; |
76 } | 76 } |
77 | 77 |
78 checkUnnamed3287(core.List<api.GoogleLongrunningOperation> o) { | 78 checkUnnamed3283(core.List<api.GoogleLongrunningOperation> o) { |
79 unittest.expect(o, unittest.hasLength(2)); | 79 unittest.expect(o, unittest.hasLength(2)); |
80 checkGoogleLongrunningOperation(o[0]); | 80 checkGoogleLongrunningOperation(o[0]); |
81 checkGoogleLongrunningOperation(o[1]); | 81 checkGoogleLongrunningOperation(o[1]); |
82 } | 82 } |
83 | 83 |
84 core.int buildCounterGoogleLongrunningListOperationsResponse = 0; | 84 core.int buildCounterGoogleLongrunningListOperationsResponse = 0; |
85 buildGoogleLongrunningListOperationsResponse() { | 85 buildGoogleLongrunningListOperationsResponse() { |
86 var o = new api.GoogleLongrunningListOperationsResponse(); | 86 var o = new api.GoogleLongrunningListOperationsResponse(); |
87 buildCounterGoogleLongrunningListOperationsResponse++; | 87 buildCounterGoogleLongrunningListOperationsResponse++; |
88 if (buildCounterGoogleLongrunningListOperationsResponse < 3) { | 88 if (buildCounterGoogleLongrunningListOperationsResponse < 3) { |
89 o.nextPageToken = "foo"; | 89 o.nextPageToken = "foo"; |
90 o.operations = buildUnnamed3287(); | 90 o.operations = buildUnnamed3283(); |
91 } | 91 } |
92 buildCounterGoogleLongrunningListOperationsResponse--; | 92 buildCounterGoogleLongrunningListOperationsResponse--; |
93 return o; | 93 return o; |
94 } | 94 } |
95 | 95 |
96 checkGoogleLongrunningListOperationsResponse(api.GoogleLongrunningListOperations
Response o) { | 96 checkGoogleLongrunningListOperationsResponse(api.GoogleLongrunningListOperations
Response o) { |
97 buildCounterGoogleLongrunningListOperationsResponse++; | 97 buildCounterGoogleLongrunningListOperationsResponse++; |
98 if (buildCounterGoogleLongrunningListOperationsResponse < 3) { | 98 if (buildCounterGoogleLongrunningListOperationsResponse < 3) { |
99 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 99 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
100 checkUnnamed3287(o.operations); | 100 checkUnnamed3283(o.operations); |
101 } | 101 } |
102 buildCounterGoogleLongrunningListOperationsResponse--; | 102 buildCounterGoogleLongrunningListOperationsResponse--; |
103 } | 103 } |
104 | 104 |
105 buildUnnamed3288() { | 105 buildUnnamed3284() { |
106 var o = new core.Map<core.String, core.Object>(); | 106 var o = new core.Map<core.String, core.Object>(); |
107 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 107 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
108 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 108 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
109 return o; | 109 return o; |
110 } | 110 } |
111 | 111 |
112 checkUnnamed3288(core.Map<core.String, core.Object> o) { | 112 checkUnnamed3284(core.Map<core.String, core.Object> o) { |
113 unittest.expect(o, unittest.hasLength(2)); | 113 unittest.expect(o, unittest.hasLength(2)); |
114 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')); | 114 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')); |
115 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')); | 115 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')); |
116 } | 116 } |
117 | 117 |
118 buildUnnamed3289() { | 118 buildUnnamed3285() { |
119 var o = new core.Map<core.String, core.Object>(); | 119 var o = new core.Map<core.String, core.Object>(); |
120 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 120 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
121 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 121 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
122 return o; | 122 return o; |
123 } | 123 } |
124 | 124 |
125 checkUnnamed3289(core.Map<core.String, core.Object> o) { | 125 checkUnnamed3285(core.Map<core.String, core.Object> o) { |
126 unittest.expect(o, unittest.hasLength(2)); | 126 unittest.expect(o, unittest.hasLength(2)); |
127 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')); | 127 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')); |
128 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')); | 128 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')); |
129 } | 129 } |
130 | 130 |
131 core.int buildCounterGoogleLongrunningOperation = 0; | 131 core.int buildCounterGoogleLongrunningOperation = 0; |
132 buildGoogleLongrunningOperation() { | 132 buildGoogleLongrunningOperation() { |
133 var o = new api.GoogleLongrunningOperation(); | 133 var o = new api.GoogleLongrunningOperation(); |
134 buildCounterGoogleLongrunningOperation++; | 134 buildCounterGoogleLongrunningOperation++; |
135 if (buildCounterGoogleLongrunningOperation < 3) { | 135 if (buildCounterGoogleLongrunningOperation < 3) { |
136 o.done = true; | 136 o.done = true; |
137 o.error = buildGoogleRpcStatus(); | 137 o.error = buildGoogleRpcStatus(); |
138 o.metadata = buildUnnamed3288(); | 138 o.metadata = buildUnnamed3284(); |
139 o.name = "foo"; | 139 o.name = "foo"; |
140 o.response = buildUnnamed3289(); | 140 o.response = buildUnnamed3285(); |
141 } | 141 } |
142 buildCounterGoogleLongrunningOperation--; | 142 buildCounterGoogleLongrunningOperation--; |
143 return o; | 143 return o; |
144 } | 144 } |
145 | 145 |
146 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { | 146 checkGoogleLongrunningOperation(api.GoogleLongrunningOperation o) { |
147 buildCounterGoogleLongrunningOperation++; | 147 buildCounterGoogleLongrunningOperation++; |
148 if (buildCounterGoogleLongrunningOperation < 3) { | 148 if (buildCounterGoogleLongrunningOperation < 3) { |
149 unittest.expect(o.done, unittest.isTrue); | 149 unittest.expect(o.done, unittest.isTrue); |
150 checkGoogleRpcStatus(o.error); | 150 checkGoogleRpcStatus(o.error); |
151 checkUnnamed3288(o.metadata); | 151 checkUnnamed3284(o.metadata); |
152 unittest.expect(o.name, unittest.equals('foo')); | 152 unittest.expect(o.name, unittest.equals('foo')); |
153 checkUnnamed3289(o.response); | 153 checkUnnamed3285(o.response); |
154 } | 154 } |
155 buildCounterGoogleLongrunningOperation--; | 155 buildCounterGoogleLongrunningOperation--; |
156 } | 156 } |
157 | 157 |
158 core.int buildCounterGooglePrivacyDlpV2beta1CategoryDescription = 0; | 158 core.int buildCounterGooglePrivacyDlpV2beta1CategoryDescription = 0; |
159 buildGooglePrivacyDlpV2beta1CategoryDescription() { | 159 buildGooglePrivacyDlpV2beta1CategoryDescription() { |
160 var o = new api.GooglePrivacyDlpV2beta1CategoryDescription(); | 160 var o = new api.GooglePrivacyDlpV2beta1CategoryDescription(); |
161 buildCounterGooglePrivacyDlpV2beta1CategoryDescription++; | 161 buildCounterGooglePrivacyDlpV2beta1CategoryDescription++; |
162 if (buildCounterGooglePrivacyDlpV2beta1CategoryDescription < 3) { | 162 if (buildCounterGooglePrivacyDlpV2beta1CategoryDescription < 3) { |
163 o.displayName = "foo"; | 163 o.displayName = "foo"; |
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
316 } | 316 } |
317 | 317 |
318 checkGooglePrivacyDlpV2beta1DatastoreKey(api.GooglePrivacyDlpV2beta1DatastoreKey
o) { | 318 checkGooglePrivacyDlpV2beta1DatastoreKey(api.GooglePrivacyDlpV2beta1DatastoreKey
o) { |
319 buildCounterGooglePrivacyDlpV2beta1DatastoreKey++; | 319 buildCounterGooglePrivacyDlpV2beta1DatastoreKey++; |
320 if (buildCounterGooglePrivacyDlpV2beta1DatastoreKey < 3) { | 320 if (buildCounterGooglePrivacyDlpV2beta1DatastoreKey < 3) { |
321 checkGooglePrivacyDlpV2beta1Key(o.entityKey); | 321 checkGooglePrivacyDlpV2beta1Key(o.entityKey); |
322 } | 322 } |
323 buildCounterGooglePrivacyDlpV2beta1DatastoreKey--; | 323 buildCounterGooglePrivacyDlpV2beta1DatastoreKey--; |
324 } | 324 } |
325 | 325 |
326 buildUnnamed3290() { | 326 buildUnnamed3286() { |
327 var o = new core.List<api.GooglePrivacyDlpV2beta1Projection>(); | 327 var o = new core.List<api.GooglePrivacyDlpV2beta1Projection>(); |
328 o.add(buildGooglePrivacyDlpV2beta1Projection()); | 328 o.add(buildGooglePrivacyDlpV2beta1Projection()); |
329 o.add(buildGooglePrivacyDlpV2beta1Projection()); | 329 o.add(buildGooglePrivacyDlpV2beta1Projection()); |
330 return o; | 330 return o; |
331 } | 331 } |
332 | 332 |
333 checkUnnamed3290(core.List<api.GooglePrivacyDlpV2beta1Projection> o) { | 333 checkUnnamed3286(core.List<api.GooglePrivacyDlpV2beta1Projection> o) { |
334 unittest.expect(o, unittest.hasLength(2)); | 334 unittest.expect(o, unittest.hasLength(2)); |
335 checkGooglePrivacyDlpV2beta1Projection(o[0]); | 335 checkGooglePrivacyDlpV2beta1Projection(o[0]); |
336 checkGooglePrivacyDlpV2beta1Projection(o[1]); | 336 checkGooglePrivacyDlpV2beta1Projection(o[1]); |
337 } | 337 } |
338 | 338 |
339 core.int buildCounterGooglePrivacyDlpV2beta1DatastoreOptions = 0; | 339 core.int buildCounterGooglePrivacyDlpV2beta1DatastoreOptions = 0; |
340 buildGooglePrivacyDlpV2beta1DatastoreOptions() { | 340 buildGooglePrivacyDlpV2beta1DatastoreOptions() { |
341 var o = new api.GooglePrivacyDlpV2beta1DatastoreOptions(); | 341 var o = new api.GooglePrivacyDlpV2beta1DatastoreOptions(); |
342 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions++; | 342 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions++; |
343 if (buildCounterGooglePrivacyDlpV2beta1DatastoreOptions < 3) { | 343 if (buildCounterGooglePrivacyDlpV2beta1DatastoreOptions < 3) { |
344 o.kind = buildGooglePrivacyDlpV2beta1KindExpression(); | 344 o.kind = buildGooglePrivacyDlpV2beta1KindExpression(); |
345 o.partitionId = buildGooglePrivacyDlpV2beta1PartitionId(); | 345 o.partitionId = buildGooglePrivacyDlpV2beta1PartitionId(); |
346 o.projection = buildUnnamed3290(); | 346 o.projection = buildUnnamed3286(); |
347 } | 347 } |
348 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions--; | 348 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions--; |
349 return o; | 349 return o; |
350 } | 350 } |
351 | 351 |
352 checkGooglePrivacyDlpV2beta1DatastoreOptions(api.GooglePrivacyDlpV2beta1Datastor
eOptions o) { | 352 checkGooglePrivacyDlpV2beta1DatastoreOptions(api.GooglePrivacyDlpV2beta1Datastor
eOptions o) { |
353 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions++; | 353 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions++; |
354 if (buildCounterGooglePrivacyDlpV2beta1DatastoreOptions < 3) { | 354 if (buildCounterGooglePrivacyDlpV2beta1DatastoreOptions < 3) { |
355 checkGooglePrivacyDlpV2beta1KindExpression(o.kind); | 355 checkGooglePrivacyDlpV2beta1KindExpression(o.kind); |
356 checkGooglePrivacyDlpV2beta1PartitionId(o.partitionId); | 356 checkGooglePrivacyDlpV2beta1PartitionId(o.partitionId); |
357 checkUnnamed3290(o.projection); | 357 checkUnnamed3286(o.projection); |
358 } | 358 } |
359 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions--; | 359 buildCounterGooglePrivacyDlpV2beta1DatastoreOptions--; |
360 } | 360 } |
361 | 361 |
362 core.int buildCounterGooglePrivacyDlpV2beta1FieldId = 0; | 362 core.int buildCounterGooglePrivacyDlpV2beta1FieldId = 0; |
363 buildGooglePrivacyDlpV2beta1FieldId() { | 363 buildGooglePrivacyDlpV2beta1FieldId() { |
364 var o = new api.GooglePrivacyDlpV2beta1FieldId(); | 364 var o = new api.GooglePrivacyDlpV2beta1FieldId(); |
365 buildCounterGooglePrivacyDlpV2beta1FieldId++; | 365 buildCounterGooglePrivacyDlpV2beta1FieldId++; |
366 if (buildCounterGooglePrivacyDlpV2beta1FieldId < 3) { | 366 if (buildCounterGooglePrivacyDlpV2beta1FieldId < 3) { |
367 o.columnName = "foo"; | 367 o.columnName = "foo"; |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
484 } | 484 } |
485 | 485 |
486 checkGooglePrivacyDlpV2beta1InfoType(api.GooglePrivacyDlpV2beta1InfoType o) { | 486 checkGooglePrivacyDlpV2beta1InfoType(api.GooglePrivacyDlpV2beta1InfoType o) { |
487 buildCounterGooglePrivacyDlpV2beta1InfoType++; | 487 buildCounterGooglePrivacyDlpV2beta1InfoType++; |
488 if (buildCounterGooglePrivacyDlpV2beta1InfoType < 3) { | 488 if (buildCounterGooglePrivacyDlpV2beta1InfoType < 3) { |
489 unittest.expect(o.name, unittest.equals('foo')); | 489 unittest.expect(o.name, unittest.equals('foo')); |
490 } | 490 } |
491 buildCounterGooglePrivacyDlpV2beta1InfoType--; | 491 buildCounterGooglePrivacyDlpV2beta1InfoType--; |
492 } | 492 } |
493 | 493 |
494 buildUnnamed3291() { | 494 buildUnnamed3287() { |
495 var o = new core.List<api.GooglePrivacyDlpV2beta1CategoryDescription>(); | 495 var o = new core.List<api.GooglePrivacyDlpV2beta1CategoryDescription>(); |
496 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); | 496 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); |
497 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); | 497 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); |
498 return o; | 498 return o; |
499 } | 499 } |
500 | 500 |
501 checkUnnamed3291(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) { | 501 checkUnnamed3287(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) { |
502 unittest.expect(o, unittest.hasLength(2)); | 502 unittest.expect(o, unittest.hasLength(2)); |
503 checkGooglePrivacyDlpV2beta1CategoryDescription(o[0]); | 503 checkGooglePrivacyDlpV2beta1CategoryDescription(o[0]); |
504 checkGooglePrivacyDlpV2beta1CategoryDescription(o[1]); | 504 checkGooglePrivacyDlpV2beta1CategoryDescription(o[1]); |
505 } | 505 } |
506 | 506 |
507 core.int buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription = 0; | 507 core.int buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription = 0; |
508 buildGooglePrivacyDlpV2beta1InfoTypeDescription() { | 508 buildGooglePrivacyDlpV2beta1InfoTypeDescription() { |
509 var o = new api.GooglePrivacyDlpV2beta1InfoTypeDescription(); | 509 var o = new api.GooglePrivacyDlpV2beta1InfoTypeDescription(); |
510 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription++; | 510 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription++; |
511 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription < 3) { | 511 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription < 3) { |
512 o.categories = buildUnnamed3291(); | 512 o.categories = buildUnnamed3287(); |
513 o.displayName = "foo"; | 513 o.displayName = "foo"; |
514 o.name = "foo"; | 514 o.name = "foo"; |
515 } | 515 } |
516 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription--; | 516 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription--; |
517 return o; | 517 return o; |
518 } | 518 } |
519 | 519 |
520 checkGooglePrivacyDlpV2beta1InfoTypeDescription(api.GooglePrivacyDlpV2beta1InfoT
ypeDescription o) { | 520 checkGooglePrivacyDlpV2beta1InfoTypeDescription(api.GooglePrivacyDlpV2beta1InfoT
ypeDescription o) { |
521 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription++; | 521 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription++; |
522 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription < 3) { | 522 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription < 3) { |
523 checkUnnamed3291(o.categories); | 523 checkUnnamed3287(o.categories); |
524 unittest.expect(o.displayName, unittest.equals('foo')); | 524 unittest.expect(o.displayName, unittest.equals('foo')); |
525 unittest.expect(o.name, unittest.equals('foo')); | 525 unittest.expect(o.name, unittest.equals('foo')); |
526 } | 526 } |
527 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription--; | 527 buildCounterGooglePrivacyDlpV2beta1InfoTypeDescription--; |
528 } | 528 } |
529 | 529 |
530 core.int buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics = 0; | 530 core.int buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics = 0; |
531 buildGooglePrivacyDlpV2beta1InfoTypeStatistics() { | 531 buildGooglePrivacyDlpV2beta1InfoTypeStatistics() { |
532 var o = new api.GooglePrivacyDlpV2beta1InfoTypeStatistics(); | 532 var o = new api.GooglePrivacyDlpV2beta1InfoTypeStatistics(); |
533 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics++; | 533 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics++; |
534 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics < 3) { | 534 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics < 3) { |
535 o.count = "foo"; | 535 o.count = "foo"; |
536 o.infoType = buildGooglePrivacyDlpV2beta1InfoType(); | 536 o.infoType = buildGooglePrivacyDlpV2beta1InfoType(); |
537 } | 537 } |
538 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics--; | 538 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics--; |
539 return o; | 539 return o; |
540 } | 540 } |
541 | 541 |
542 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(api.GooglePrivacyDlpV2beta1InfoTy
peStatistics o) { | 542 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(api.GooglePrivacyDlpV2beta1InfoTy
peStatistics o) { |
543 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics++; | 543 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics++; |
544 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics < 3) { | 544 if (buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics < 3) { |
545 unittest.expect(o.count, unittest.equals('foo')); | 545 unittest.expect(o.count, unittest.equals('foo')); |
546 checkGooglePrivacyDlpV2beta1InfoType(o.infoType); | 546 checkGooglePrivacyDlpV2beta1InfoType(o.infoType); |
547 } | 547 } |
548 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics--; | 548 buildCounterGooglePrivacyDlpV2beta1InfoTypeStatistics--; |
549 } | 549 } |
550 | 550 |
551 buildUnnamed3292() { | 551 buildUnnamed3288() { |
552 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoType>(); | 552 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoType>(); |
553 o.add(buildGooglePrivacyDlpV2beta1InfoType()); | 553 o.add(buildGooglePrivacyDlpV2beta1InfoType()); |
554 o.add(buildGooglePrivacyDlpV2beta1InfoType()); | 554 o.add(buildGooglePrivacyDlpV2beta1InfoType()); |
555 return o; | 555 return o; |
556 } | 556 } |
557 | 557 |
558 checkUnnamed3292(core.List<api.GooglePrivacyDlpV2beta1InfoType> o) { | 558 checkUnnamed3288(core.List<api.GooglePrivacyDlpV2beta1InfoType> o) { |
559 unittest.expect(o, unittest.hasLength(2)); | 559 unittest.expect(o, unittest.hasLength(2)); |
560 checkGooglePrivacyDlpV2beta1InfoType(o[0]); | 560 checkGooglePrivacyDlpV2beta1InfoType(o[0]); |
561 checkGooglePrivacyDlpV2beta1InfoType(o[1]); | 561 checkGooglePrivacyDlpV2beta1InfoType(o[1]); |
562 } | 562 } |
563 | 563 |
564 core.int buildCounterGooglePrivacyDlpV2beta1InspectConfig = 0; | 564 core.int buildCounterGooglePrivacyDlpV2beta1InspectConfig = 0; |
565 buildGooglePrivacyDlpV2beta1InspectConfig() { | 565 buildGooglePrivacyDlpV2beta1InspectConfig() { |
566 var o = new api.GooglePrivacyDlpV2beta1InspectConfig(); | 566 var o = new api.GooglePrivacyDlpV2beta1InspectConfig(); |
567 buildCounterGooglePrivacyDlpV2beta1InspectConfig++; | 567 buildCounterGooglePrivacyDlpV2beta1InspectConfig++; |
568 if (buildCounterGooglePrivacyDlpV2beta1InspectConfig < 3) { | 568 if (buildCounterGooglePrivacyDlpV2beta1InspectConfig < 3) { |
569 o.excludeTypes = true; | 569 o.excludeTypes = true; |
570 o.includeQuote = true; | 570 o.includeQuote = true; |
571 o.infoTypes = buildUnnamed3292(); | 571 o.infoTypes = buildUnnamed3288(); |
572 o.maxFindings = 42; | 572 o.maxFindings = 42; |
573 o.minLikelihood = "foo"; | 573 o.minLikelihood = "foo"; |
574 } | 574 } |
575 buildCounterGooglePrivacyDlpV2beta1InspectConfig--; | 575 buildCounterGooglePrivacyDlpV2beta1InspectConfig--; |
576 return o; | 576 return o; |
577 } | 577 } |
578 | 578 |
579 checkGooglePrivacyDlpV2beta1InspectConfig(api.GooglePrivacyDlpV2beta1InspectConf
ig o) { | 579 checkGooglePrivacyDlpV2beta1InspectConfig(api.GooglePrivacyDlpV2beta1InspectConf
ig o) { |
580 buildCounterGooglePrivacyDlpV2beta1InspectConfig++; | 580 buildCounterGooglePrivacyDlpV2beta1InspectConfig++; |
581 if (buildCounterGooglePrivacyDlpV2beta1InspectConfig < 3) { | 581 if (buildCounterGooglePrivacyDlpV2beta1InspectConfig < 3) { |
582 unittest.expect(o.excludeTypes, unittest.isTrue); | 582 unittest.expect(o.excludeTypes, unittest.isTrue); |
583 unittest.expect(o.includeQuote, unittest.isTrue); | 583 unittest.expect(o.includeQuote, unittest.isTrue); |
584 checkUnnamed3292(o.infoTypes); | 584 checkUnnamed3288(o.infoTypes); |
585 unittest.expect(o.maxFindings, unittest.equals(42)); | 585 unittest.expect(o.maxFindings, unittest.equals(42)); |
586 unittest.expect(o.minLikelihood, unittest.equals('foo')); | 586 unittest.expect(o.minLikelihood, unittest.equals('foo')); |
587 } | 587 } |
588 buildCounterGooglePrivacyDlpV2beta1InspectConfig--; | 588 buildCounterGooglePrivacyDlpV2beta1InspectConfig--; |
589 } | 589 } |
590 | 590 |
591 buildUnnamed3293() { | 591 buildUnnamed3289() { |
592 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); | 592 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); |
593 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); | 593 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); |
594 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); | 594 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); |
595 return o; | 595 return o; |
596 } | 596 } |
597 | 597 |
598 checkUnnamed3293(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { | 598 checkUnnamed3289(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { |
599 unittest.expect(o, unittest.hasLength(2)); | 599 unittest.expect(o, unittest.hasLength(2)); |
600 checkGooglePrivacyDlpV2beta1ContentItem(o[0]); | 600 checkGooglePrivacyDlpV2beta1ContentItem(o[0]); |
601 checkGooglePrivacyDlpV2beta1ContentItem(o[1]); | 601 checkGooglePrivacyDlpV2beta1ContentItem(o[1]); |
602 } | 602 } |
603 | 603 |
604 core.int buildCounterGooglePrivacyDlpV2beta1InspectContentRequest = 0; | 604 core.int buildCounterGooglePrivacyDlpV2beta1InspectContentRequest = 0; |
605 buildGooglePrivacyDlpV2beta1InspectContentRequest() { | 605 buildGooglePrivacyDlpV2beta1InspectContentRequest() { |
606 var o = new api.GooglePrivacyDlpV2beta1InspectContentRequest(); | 606 var o = new api.GooglePrivacyDlpV2beta1InspectContentRequest(); |
607 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest++; | 607 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest++; |
608 if (buildCounterGooglePrivacyDlpV2beta1InspectContentRequest < 3) { | 608 if (buildCounterGooglePrivacyDlpV2beta1InspectContentRequest < 3) { |
609 o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); | 609 o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); |
610 o.items = buildUnnamed3293(); | 610 o.items = buildUnnamed3289(); |
611 } | 611 } |
612 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest--; | 612 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest--; |
613 return o; | 613 return o; |
614 } | 614 } |
615 | 615 |
616 checkGooglePrivacyDlpV2beta1InspectContentRequest(api.GooglePrivacyDlpV2beta1Ins
pectContentRequest o) { | 616 checkGooglePrivacyDlpV2beta1InspectContentRequest(api.GooglePrivacyDlpV2beta1Ins
pectContentRequest o) { |
617 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest++; | 617 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest++; |
618 if (buildCounterGooglePrivacyDlpV2beta1InspectContentRequest < 3) { | 618 if (buildCounterGooglePrivacyDlpV2beta1InspectContentRequest < 3) { |
619 checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig); | 619 checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig); |
620 checkUnnamed3293(o.items); | 620 checkUnnamed3289(o.items); |
621 } | 621 } |
622 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest--; | 622 buildCounterGooglePrivacyDlpV2beta1InspectContentRequest--; |
623 } | 623 } |
624 | 624 |
625 buildUnnamed3294() { | 625 buildUnnamed3290() { |
626 var o = new core.List<api.GooglePrivacyDlpV2beta1InspectResult>(); | 626 var o = new core.List<api.GooglePrivacyDlpV2beta1InspectResult>(); |
627 o.add(buildGooglePrivacyDlpV2beta1InspectResult()); | 627 o.add(buildGooglePrivacyDlpV2beta1InspectResult()); |
628 o.add(buildGooglePrivacyDlpV2beta1InspectResult()); | 628 o.add(buildGooglePrivacyDlpV2beta1InspectResult()); |
629 return o; | 629 return o; |
630 } | 630 } |
631 | 631 |
632 checkUnnamed3294(core.List<api.GooglePrivacyDlpV2beta1InspectResult> o) { | 632 checkUnnamed3290(core.List<api.GooglePrivacyDlpV2beta1InspectResult> o) { |
633 unittest.expect(o, unittest.hasLength(2)); | 633 unittest.expect(o, unittest.hasLength(2)); |
634 checkGooglePrivacyDlpV2beta1InspectResult(o[0]); | 634 checkGooglePrivacyDlpV2beta1InspectResult(o[0]); |
635 checkGooglePrivacyDlpV2beta1InspectResult(o[1]); | 635 checkGooglePrivacyDlpV2beta1InspectResult(o[1]); |
636 } | 636 } |
637 | 637 |
638 core.int buildCounterGooglePrivacyDlpV2beta1InspectContentResponse = 0; | 638 core.int buildCounterGooglePrivacyDlpV2beta1InspectContentResponse = 0; |
639 buildGooglePrivacyDlpV2beta1InspectContentResponse() { | 639 buildGooglePrivacyDlpV2beta1InspectContentResponse() { |
640 var o = new api.GooglePrivacyDlpV2beta1InspectContentResponse(); | 640 var o = new api.GooglePrivacyDlpV2beta1InspectContentResponse(); |
641 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse++; | 641 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse++; |
642 if (buildCounterGooglePrivacyDlpV2beta1InspectContentResponse < 3) { | 642 if (buildCounterGooglePrivacyDlpV2beta1InspectContentResponse < 3) { |
643 o.results = buildUnnamed3294(); | 643 o.results = buildUnnamed3290(); |
644 } | 644 } |
645 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse--; | 645 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse--; |
646 return o; | 646 return o; |
647 } | 647 } |
648 | 648 |
649 checkGooglePrivacyDlpV2beta1InspectContentResponse(api.GooglePrivacyDlpV2beta1In
spectContentResponse o) { | 649 checkGooglePrivacyDlpV2beta1InspectContentResponse(api.GooglePrivacyDlpV2beta1In
spectContentResponse o) { |
650 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse++; | 650 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse++; |
651 if (buildCounterGooglePrivacyDlpV2beta1InspectContentResponse < 3) { | 651 if (buildCounterGooglePrivacyDlpV2beta1InspectContentResponse < 3) { |
652 checkUnnamed3294(o.results); | 652 checkUnnamed3290(o.results); |
653 } | 653 } |
654 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse--; | 654 buildCounterGooglePrivacyDlpV2beta1InspectContentResponse--; |
655 } | 655 } |
656 | 656 |
657 buildUnnamed3295() { | 657 buildUnnamed3291() { |
658 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics>(); | 658 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics>(); |
659 o.add(buildGooglePrivacyDlpV2beta1InfoTypeStatistics()); | 659 o.add(buildGooglePrivacyDlpV2beta1InfoTypeStatistics()); |
660 o.add(buildGooglePrivacyDlpV2beta1InfoTypeStatistics()); | 660 o.add(buildGooglePrivacyDlpV2beta1InfoTypeStatistics()); |
661 return o; | 661 return o; |
662 } | 662 } |
663 | 663 |
664 checkUnnamed3295(core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics> o) { | 664 checkUnnamed3291(core.List<api.GooglePrivacyDlpV2beta1InfoTypeStatistics> o) { |
665 unittest.expect(o, unittest.hasLength(2)); | 665 unittest.expect(o, unittest.hasLength(2)); |
666 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(o[0]); | 666 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(o[0]); |
667 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(o[1]); | 667 checkGooglePrivacyDlpV2beta1InfoTypeStatistics(o[1]); |
668 } | 668 } |
669 | 669 |
670 core.int buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata = 0; | 670 core.int buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata = 0; |
671 buildGooglePrivacyDlpV2beta1InspectOperationMetadata() { | 671 buildGooglePrivacyDlpV2beta1InspectOperationMetadata() { |
672 var o = new api.GooglePrivacyDlpV2beta1InspectOperationMetadata(); | 672 var o = new api.GooglePrivacyDlpV2beta1InspectOperationMetadata(); |
673 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata++; | 673 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata++; |
674 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata < 3) { | 674 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata < 3) { |
675 o.createTime = "foo"; | 675 o.createTime = "foo"; |
676 o.infoTypeStats = buildUnnamed3295(); | 676 o.infoTypeStats = buildUnnamed3291(); |
677 o.processedBytes = "foo"; | 677 o.processedBytes = "foo"; |
678 o.requestInspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); | 678 o.requestInspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); |
679 o.requestOutputConfig = buildGooglePrivacyDlpV2beta1OutputStorageConfig(); | 679 o.requestOutputConfig = buildGooglePrivacyDlpV2beta1OutputStorageConfig(); |
680 o.requestStorageConfig = buildGooglePrivacyDlpV2beta1StorageConfig(); | 680 o.requestStorageConfig = buildGooglePrivacyDlpV2beta1StorageConfig(); |
681 o.totalEstimatedBytes = "foo"; | 681 o.totalEstimatedBytes = "foo"; |
682 } | 682 } |
683 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata--; | 683 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata--; |
684 return o; | 684 return o; |
685 } | 685 } |
686 | 686 |
687 checkGooglePrivacyDlpV2beta1InspectOperationMetadata(api.GooglePrivacyDlpV2beta1
InspectOperationMetadata o) { | 687 checkGooglePrivacyDlpV2beta1InspectOperationMetadata(api.GooglePrivacyDlpV2beta1
InspectOperationMetadata o) { |
688 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata++; | 688 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata++; |
689 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata < 3) { | 689 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata < 3) { |
690 unittest.expect(o.createTime, unittest.equals('foo')); | 690 unittest.expect(o.createTime, unittest.equals('foo')); |
691 checkUnnamed3295(o.infoTypeStats); | 691 checkUnnamed3291(o.infoTypeStats); |
692 unittest.expect(o.processedBytes, unittest.equals('foo')); | 692 unittest.expect(o.processedBytes, unittest.equals('foo')); |
693 checkGooglePrivacyDlpV2beta1InspectConfig(o.requestInspectConfig); | 693 checkGooglePrivacyDlpV2beta1InspectConfig(o.requestInspectConfig); |
694 checkGooglePrivacyDlpV2beta1OutputStorageConfig(o.requestOutputConfig); | 694 checkGooglePrivacyDlpV2beta1OutputStorageConfig(o.requestOutputConfig); |
695 checkGooglePrivacyDlpV2beta1StorageConfig(o.requestStorageConfig); | 695 checkGooglePrivacyDlpV2beta1StorageConfig(o.requestStorageConfig); |
696 unittest.expect(o.totalEstimatedBytes, unittest.equals('foo')); | 696 unittest.expect(o.totalEstimatedBytes, unittest.equals('foo')); |
697 } | 697 } |
698 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata--; | 698 buildCounterGooglePrivacyDlpV2beta1InspectOperationMetadata--; |
699 } | 699 } |
700 | 700 |
701 core.int buildCounterGooglePrivacyDlpV2beta1InspectOperationResult = 0; | 701 core.int buildCounterGooglePrivacyDlpV2beta1InspectOperationResult = 0; |
702 buildGooglePrivacyDlpV2beta1InspectOperationResult() { | 702 buildGooglePrivacyDlpV2beta1InspectOperationResult() { |
703 var o = new api.GooglePrivacyDlpV2beta1InspectOperationResult(); | 703 var o = new api.GooglePrivacyDlpV2beta1InspectOperationResult(); |
704 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult++; | 704 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult++; |
705 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationResult < 3) { | 705 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationResult < 3) { |
706 o.name = "foo"; | 706 o.name = "foo"; |
707 } | 707 } |
708 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult--; | 708 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult--; |
709 return o; | 709 return o; |
710 } | 710 } |
711 | 711 |
712 checkGooglePrivacyDlpV2beta1InspectOperationResult(api.GooglePrivacyDlpV2beta1In
spectOperationResult o) { | 712 checkGooglePrivacyDlpV2beta1InspectOperationResult(api.GooglePrivacyDlpV2beta1In
spectOperationResult o) { |
713 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult++; | 713 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult++; |
714 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationResult < 3) { | 714 if (buildCounterGooglePrivacyDlpV2beta1InspectOperationResult < 3) { |
715 unittest.expect(o.name, unittest.equals('foo')); | 715 unittest.expect(o.name, unittest.equals('foo')); |
716 } | 716 } |
717 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult--; | 717 buildCounterGooglePrivacyDlpV2beta1InspectOperationResult--; |
718 } | 718 } |
719 | 719 |
720 buildUnnamed3296() { | 720 buildUnnamed3292() { |
721 var o = new core.List<api.GooglePrivacyDlpV2beta1Finding>(); | 721 var o = new core.List<api.GooglePrivacyDlpV2beta1Finding>(); |
722 o.add(buildGooglePrivacyDlpV2beta1Finding()); | 722 o.add(buildGooglePrivacyDlpV2beta1Finding()); |
723 o.add(buildGooglePrivacyDlpV2beta1Finding()); | 723 o.add(buildGooglePrivacyDlpV2beta1Finding()); |
724 return o; | 724 return o; |
725 } | 725 } |
726 | 726 |
727 checkUnnamed3296(core.List<api.GooglePrivacyDlpV2beta1Finding> o) { | 727 checkUnnamed3292(core.List<api.GooglePrivacyDlpV2beta1Finding> o) { |
728 unittest.expect(o, unittest.hasLength(2)); | 728 unittest.expect(o, unittest.hasLength(2)); |
729 checkGooglePrivacyDlpV2beta1Finding(o[0]); | 729 checkGooglePrivacyDlpV2beta1Finding(o[0]); |
730 checkGooglePrivacyDlpV2beta1Finding(o[1]); | 730 checkGooglePrivacyDlpV2beta1Finding(o[1]); |
731 } | 731 } |
732 | 732 |
733 core.int buildCounterGooglePrivacyDlpV2beta1InspectResult = 0; | 733 core.int buildCounterGooglePrivacyDlpV2beta1InspectResult = 0; |
734 buildGooglePrivacyDlpV2beta1InspectResult() { | 734 buildGooglePrivacyDlpV2beta1InspectResult() { |
735 var o = new api.GooglePrivacyDlpV2beta1InspectResult(); | 735 var o = new api.GooglePrivacyDlpV2beta1InspectResult(); |
736 buildCounterGooglePrivacyDlpV2beta1InspectResult++; | 736 buildCounterGooglePrivacyDlpV2beta1InspectResult++; |
737 if (buildCounterGooglePrivacyDlpV2beta1InspectResult < 3) { | 737 if (buildCounterGooglePrivacyDlpV2beta1InspectResult < 3) { |
738 o.findings = buildUnnamed3296(); | 738 o.findings = buildUnnamed3292(); |
739 o.findingsTruncated = true; | 739 o.findingsTruncated = true; |
740 } | 740 } |
741 buildCounterGooglePrivacyDlpV2beta1InspectResult--; | 741 buildCounterGooglePrivacyDlpV2beta1InspectResult--; |
742 return o; | 742 return o; |
743 } | 743 } |
744 | 744 |
745 checkGooglePrivacyDlpV2beta1InspectResult(api.GooglePrivacyDlpV2beta1InspectResu
lt o) { | 745 checkGooglePrivacyDlpV2beta1InspectResult(api.GooglePrivacyDlpV2beta1InspectResu
lt o) { |
746 buildCounterGooglePrivacyDlpV2beta1InspectResult++; | 746 buildCounterGooglePrivacyDlpV2beta1InspectResult++; |
747 if (buildCounterGooglePrivacyDlpV2beta1InspectResult < 3) { | 747 if (buildCounterGooglePrivacyDlpV2beta1InspectResult < 3) { |
748 checkUnnamed3296(o.findings); | 748 checkUnnamed3292(o.findings); |
749 unittest.expect(o.findingsTruncated, unittest.isTrue); | 749 unittest.expect(o.findingsTruncated, unittest.isTrue); |
750 } | 750 } |
751 buildCounterGooglePrivacyDlpV2beta1InspectResult--; | 751 buildCounterGooglePrivacyDlpV2beta1InspectResult--; |
752 } | 752 } |
753 | 753 |
754 buildUnnamed3297() { | 754 buildUnnamed3293() { |
755 var o = new core.List<api.GooglePrivacyDlpV2beta1PathElement>(); | 755 var o = new core.List<api.GooglePrivacyDlpV2beta1PathElement>(); |
756 o.add(buildGooglePrivacyDlpV2beta1PathElement()); | 756 o.add(buildGooglePrivacyDlpV2beta1PathElement()); |
757 o.add(buildGooglePrivacyDlpV2beta1PathElement()); | 757 o.add(buildGooglePrivacyDlpV2beta1PathElement()); |
758 return o; | 758 return o; |
759 } | 759 } |
760 | 760 |
761 checkUnnamed3297(core.List<api.GooglePrivacyDlpV2beta1PathElement> o) { | 761 checkUnnamed3293(core.List<api.GooglePrivacyDlpV2beta1PathElement> o) { |
762 unittest.expect(o, unittest.hasLength(2)); | 762 unittest.expect(o, unittest.hasLength(2)); |
763 checkGooglePrivacyDlpV2beta1PathElement(o[0]); | 763 checkGooglePrivacyDlpV2beta1PathElement(o[0]); |
764 checkGooglePrivacyDlpV2beta1PathElement(o[1]); | 764 checkGooglePrivacyDlpV2beta1PathElement(o[1]); |
765 } | 765 } |
766 | 766 |
767 core.int buildCounterGooglePrivacyDlpV2beta1Key = 0; | 767 core.int buildCounterGooglePrivacyDlpV2beta1Key = 0; |
768 buildGooglePrivacyDlpV2beta1Key() { | 768 buildGooglePrivacyDlpV2beta1Key() { |
769 var o = new api.GooglePrivacyDlpV2beta1Key(); | 769 var o = new api.GooglePrivacyDlpV2beta1Key(); |
770 buildCounterGooglePrivacyDlpV2beta1Key++; | 770 buildCounterGooglePrivacyDlpV2beta1Key++; |
771 if (buildCounterGooglePrivacyDlpV2beta1Key < 3) { | 771 if (buildCounterGooglePrivacyDlpV2beta1Key < 3) { |
772 o.partitionId = buildGooglePrivacyDlpV2beta1PartitionId(); | 772 o.partitionId = buildGooglePrivacyDlpV2beta1PartitionId(); |
773 o.path = buildUnnamed3297(); | 773 o.path = buildUnnamed3293(); |
774 } | 774 } |
775 buildCounterGooglePrivacyDlpV2beta1Key--; | 775 buildCounterGooglePrivacyDlpV2beta1Key--; |
776 return o; | 776 return o; |
777 } | 777 } |
778 | 778 |
779 checkGooglePrivacyDlpV2beta1Key(api.GooglePrivacyDlpV2beta1Key o) { | 779 checkGooglePrivacyDlpV2beta1Key(api.GooglePrivacyDlpV2beta1Key o) { |
780 buildCounterGooglePrivacyDlpV2beta1Key++; | 780 buildCounterGooglePrivacyDlpV2beta1Key++; |
781 if (buildCounterGooglePrivacyDlpV2beta1Key < 3) { | 781 if (buildCounterGooglePrivacyDlpV2beta1Key < 3) { |
782 checkGooglePrivacyDlpV2beta1PartitionId(o.partitionId); | 782 checkGooglePrivacyDlpV2beta1PartitionId(o.partitionId); |
783 checkUnnamed3297(o.path); | 783 checkUnnamed3293(o.path); |
784 } | 784 } |
785 buildCounterGooglePrivacyDlpV2beta1Key--; | 785 buildCounterGooglePrivacyDlpV2beta1Key--; |
786 } | 786 } |
787 | 787 |
788 core.int buildCounterGooglePrivacyDlpV2beta1KindExpression = 0; | 788 core.int buildCounterGooglePrivacyDlpV2beta1KindExpression = 0; |
789 buildGooglePrivacyDlpV2beta1KindExpression() { | 789 buildGooglePrivacyDlpV2beta1KindExpression() { |
790 var o = new api.GooglePrivacyDlpV2beta1KindExpression(); | 790 var o = new api.GooglePrivacyDlpV2beta1KindExpression(); |
791 buildCounterGooglePrivacyDlpV2beta1KindExpression++; | 791 buildCounterGooglePrivacyDlpV2beta1KindExpression++; |
792 if (buildCounterGooglePrivacyDlpV2beta1KindExpression < 3) { | 792 if (buildCounterGooglePrivacyDlpV2beta1KindExpression < 3) { |
793 o.name = "foo"; | 793 o.name = "foo"; |
794 } | 794 } |
795 buildCounterGooglePrivacyDlpV2beta1KindExpression--; | 795 buildCounterGooglePrivacyDlpV2beta1KindExpression--; |
796 return o; | 796 return o; |
797 } | 797 } |
798 | 798 |
799 checkGooglePrivacyDlpV2beta1KindExpression(api.GooglePrivacyDlpV2beta1KindExpres
sion o) { | 799 checkGooglePrivacyDlpV2beta1KindExpression(api.GooglePrivacyDlpV2beta1KindExpres
sion o) { |
800 buildCounterGooglePrivacyDlpV2beta1KindExpression++; | 800 buildCounterGooglePrivacyDlpV2beta1KindExpression++; |
801 if (buildCounterGooglePrivacyDlpV2beta1KindExpression < 3) { | 801 if (buildCounterGooglePrivacyDlpV2beta1KindExpression < 3) { |
802 unittest.expect(o.name, unittest.equals('foo')); | 802 unittest.expect(o.name, unittest.equals('foo')); |
803 } | 803 } |
804 buildCounterGooglePrivacyDlpV2beta1KindExpression--; | 804 buildCounterGooglePrivacyDlpV2beta1KindExpression--; |
805 } | 805 } |
806 | 806 |
807 buildUnnamed3298() { | 807 buildUnnamed3294() { |
808 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription>(); | 808 var o = new core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription>(); |
809 o.add(buildGooglePrivacyDlpV2beta1InfoTypeDescription()); | 809 o.add(buildGooglePrivacyDlpV2beta1InfoTypeDescription()); |
810 o.add(buildGooglePrivacyDlpV2beta1InfoTypeDescription()); | 810 o.add(buildGooglePrivacyDlpV2beta1InfoTypeDescription()); |
811 return o; | 811 return o; |
812 } | 812 } |
813 | 813 |
814 checkUnnamed3298(core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription> o) { | 814 checkUnnamed3294(core.List<api.GooglePrivacyDlpV2beta1InfoTypeDescription> o) { |
815 unittest.expect(o, unittest.hasLength(2)); | 815 unittest.expect(o, unittest.hasLength(2)); |
816 checkGooglePrivacyDlpV2beta1InfoTypeDescription(o[0]); | 816 checkGooglePrivacyDlpV2beta1InfoTypeDescription(o[0]); |
817 checkGooglePrivacyDlpV2beta1InfoTypeDescription(o[1]); | 817 checkGooglePrivacyDlpV2beta1InfoTypeDescription(o[1]); |
818 } | 818 } |
819 | 819 |
820 core.int buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse = 0; | 820 core.int buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse = 0; |
821 buildGooglePrivacyDlpV2beta1ListInfoTypesResponse() { | 821 buildGooglePrivacyDlpV2beta1ListInfoTypesResponse() { |
822 var o = new api.GooglePrivacyDlpV2beta1ListInfoTypesResponse(); | 822 var o = new api.GooglePrivacyDlpV2beta1ListInfoTypesResponse(); |
823 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse++; | 823 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse++; |
824 if (buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse < 3) { | 824 if (buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse < 3) { |
825 o.infoTypes = buildUnnamed3298(); | 825 o.infoTypes = buildUnnamed3294(); |
826 } | 826 } |
827 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse--; | 827 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse--; |
828 return o; | 828 return o; |
829 } | 829 } |
830 | 830 |
831 checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(api.GooglePrivacyDlpV2beta1Lis
tInfoTypesResponse o) { | 831 checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(api.GooglePrivacyDlpV2beta1Lis
tInfoTypesResponse o) { |
832 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse++; | 832 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse++; |
833 if (buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse < 3) { | 833 if (buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse < 3) { |
834 checkUnnamed3298(o.infoTypes); | 834 checkUnnamed3294(o.infoTypes); |
835 } | 835 } |
836 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse--; | 836 buildCounterGooglePrivacyDlpV2beta1ListInfoTypesResponse--; |
837 } | 837 } |
838 | 838 |
839 core.int buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse = 0; | 839 core.int buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse = 0; |
840 buildGooglePrivacyDlpV2beta1ListInspectFindingsResponse() { | 840 buildGooglePrivacyDlpV2beta1ListInspectFindingsResponse() { |
841 var o = new api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse(); | 841 var o = new api.GooglePrivacyDlpV2beta1ListInspectFindingsResponse(); |
842 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse++; | 842 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse++; |
843 if (buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse < 3) { | 843 if (buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse < 3) { |
844 o.nextPageToken = "foo"; | 844 o.nextPageToken = "foo"; |
845 o.result = buildGooglePrivacyDlpV2beta1InspectResult(); | 845 o.result = buildGooglePrivacyDlpV2beta1InspectResult(); |
846 } | 846 } |
847 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse--; | 847 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse--; |
848 return o; | 848 return o; |
849 } | 849 } |
850 | 850 |
851 checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(api.GooglePrivacyDlpV2be
ta1ListInspectFindingsResponse o) { | 851 checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(api.GooglePrivacyDlpV2be
ta1ListInspectFindingsResponse o) { |
852 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse++; | 852 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse++; |
853 if (buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse < 3) { | 853 if (buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse < 3) { |
854 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 854 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
855 checkGooglePrivacyDlpV2beta1InspectResult(o.result); | 855 checkGooglePrivacyDlpV2beta1InspectResult(o.result); |
856 } | 856 } |
857 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse--; | 857 buildCounterGooglePrivacyDlpV2beta1ListInspectFindingsResponse--; |
858 } | 858 } |
859 | 859 |
860 buildUnnamed3299() { | 860 buildUnnamed3295() { |
861 var o = new core.List<api.GooglePrivacyDlpV2beta1CategoryDescription>(); | 861 var o = new core.List<api.GooglePrivacyDlpV2beta1CategoryDescription>(); |
862 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); | 862 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); |
863 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); | 863 o.add(buildGooglePrivacyDlpV2beta1CategoryDescription()); |
864 return o; | 864 return o; |
865 } | 865 } |
866 | 866 |
867 checkUnnamed3299(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) { | 867 checkUnnamed3295(core.List<api.GooglePrivacyDlpV2beta1CategoryDescription> o) { |
868 unittest.expect(o, unittest.hasLength(2)); | 868 unittest.expect(o, unittest.hasLength(2)); |
869 checkGooglePrivacyDlpV2beta1CategoryDescription(o[0]); | 869 checkGooglePrivacyDlpV2beta1CategoryDescription(o[0]); |
870 checkGooglePrivacyDlpV2beta1CategoryDescription(o[1]); | 870 checkGooglePrivacyDlpV2beta1CategoryDescription(o[1]); |
871 } | 871 } |
872 | 872 |
873 core.int buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse = 0; | 873 core.int buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse = 0; |
874 buildGooglePrivacyDlpV2beta1ListRootCategoriesResponse() { | 874 buildGooglePrivacyDlpV2beta1ListRootCategoriesResponse() { |
875 var o = new api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse(); | 875 var o = new api.GooglePrivacyDlpV2beta1ListRootCategoriesResponse(); |
876 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse++; | 876 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse++; |
877 if (buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse < 3) { | 877 if (buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse < 3) { |
878 o.categories = buildUnnamed3299(); | 878 o.categories = buildUnnamed3295(); |
879 } | 879 } |
880 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse--; | 880 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse--; |
881 return o; | 881 return o; |
882 } | 882 } |
883 | 883 |
884 checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(api.GooglePrivacyDlpV2bet
a1ListRootCategoriesResponse o) { | 884 checkGooglePrivacyDlpV2beta1ListRootCategoriesResponse(api.GooglePrivacyDlpV2bet
a1ListRootCategoriesResponse o) { |
885 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse++; | 885 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse++; |
886 if (buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse < 3) { | 886 if (buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse < 3) { |
887 checkUnnamed3299(o.categories); | 887 checkUnnamed3295(o.categories); |
888 } | 888 } |
889 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse--; | 889 buildCounterGooglePrivacyDlpV2beta1ListRootCategoriesResponse--; |
890 } | 890 } |
891 | 891 |
892 buildUnnamed3300() { | 892 buildUnnamed3296() { |
893 var o = new core.List<api.GooglePrivacyDlpV2beta1ImageLocation>(); | 893 var o = new core.List<api.GooglePrivacyDlpV2beta1ImageLocation>(); |
894 o.add(buildGooglePrivacyDlpV2beta1ImageLocation()); | 894 o.add(buildGooglePrivacyDlpV2beta1ImageLocation()); |
895 o.add(buildGooglePrivacyDlpV2beta1ImageLocation()); | 895 o.add(buildGooglePrivacyDlpV2beta1ImageLocation()); |
896 return o; | 896 return o; |
897 } | 897 } |
898 | 898 |
899 checkUnnamed3300(core.List<api.GooglePrivacyDlpV2beta1ImageLocation> o) { | 899 checkUnnamed3296(core.List<api.GooglePrivacyDlpV2beta1ImageLocation> o) { |
900 unittest.expect(o, unittest.hasLength(2)); | 900 unittest.expect(o, unittest.hasLength(2)); |
901 checkGooglePrivacyDlpV2beta1ImageLocation(o[0]); | 901 checkGooglePrivacyDlpV2beta1ImageLocation(o[0]); |
902 checkGooglePrivacyDlpV2beta1ImageLocation(o[1]); | 902 checkGooglePrivacyDlpV2beta1ImageLocation(o[1]); |
903 } | 903 } |
904 | 904 |
905 core.int buildCounterGooglePrivacyDlpV2beta1Location = 0; | 905 core.int buildCounterGooglePrivacyDlpV2beta1Location = 0; |
906 buildGooglePrivacyDlpV2beta1Location() { | 906 buildGooglePrivacyDlpV2beta1Location() { |
907 var o = new api.GooglePrivacyDlpV2beta1Location(); | 907 var o = new api.GooglePrivacyDlpV2beta1Location(); |
908 buildCounterGooglePrivacyDlpV2beta1Location++; | 908 buildCounterGooglePrivacyDlpV2beta1Location++; |
909 if (buildCounterGooglePrivacyDlpV2beta1Location < 3) { | 909 if (buildCounterGooglePrivacyDlpV2beta1Location < 3) { |
910 o.byteRange = buildGooglePrivacyDlpV2beta1Range(); | 910 o.byteRange = buildGooglePrivacyDlpV2beta1Range(); |
911 o.codepointRange = buildGooglePrivacyDlpV2beta1Range(); | 911 o.codepointRange = buildGooglePrivacyDlpV2beta1Range(); |
912 o.fieldId = buildGooglePrivacyDlpV2beta1FieldId(); | 912 o.fieldId = buildGooglePrivacyDlpV2beta1FieldId(); |
913 o.imageBoxes = buildUnnamed3300(); | 913 o.imageBoxes = buildUnnamed3296(); |
914 o.recordKey = buildGooglePrivacyDlpV2beta1RecordKey(); | 914 o.recordKey = buildGooglePrivacyDlpV2beta1RecordKey(); |
915 } | 915 } |
916 buildCounterGooglePrivacyDlpV2beta1Location--; | 916 buildCounterGooglePrivacyDlpV2beta1Location--; |
917 return o; | 917 return o; |
918 } | 918 } |
919 | 919 |
920 checkGooglePrivacyDlpV2beta1Location(api.GooglePrivacyDlpV2beta1Location o) { | 920 checkGooglePrivacyDlpV2beta1Location(api.GooglePrivacyDlpV2beta1Location o) { |
921 buildCounterGooglePrivacyDlpV2beta1Location++; | 921 buildCounterGooglePrivacyDlpV2beta1Location++; |
922 if (buildCounterGooglePrivacyDlpV2beta1Location < 3) { | 922 if (buildCounterGooglePrivacyDlpV2beta1Location < 3) { |
923 checkGooglePrivacyDlpV2beta1Range(o.byteRange); | 923 checkGooglePrivacyDlpV2beta1Range(o.byteRange); |
924 checkGooglePrivacyDlpV2beta1Range(o.codepointRange); | 924 checkGooglePrivacyDlpV2beta1Range(o.codepointRange); |
925 checkGooglePrivacyDlpV2beta1FieldId(o.fieldId); | 925 checkGooglePrivacyDlpV2beta1FieldId(o.fieldId); |
926 checkUnnamed3300(o.imageBoxes); | 926 checkUnnamed3296(o.imageBoxes); |
927 checkGooglePrivacyDlpV2beta1RecordKey(o.recordKey); | 927 checkGooglePrivacyDlpV2beta1RecordKey(o.recordKey); |
928 } | 928 } |
929 buildCounterGooglePrivacyDlpV2beta1Location--; | 929 buildCounterGooglePrivacyDlpV2beta1Location--; |
930 } | 930 } |
931 | 931 |
932 core.int buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig = 0; | 932 core.int buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig = 0; |
933 buildGooglePrivacyDlpV2beta1OutputStorageConfig() { | 933 buildGooglePrivacyDlpV2beta1OutputStorageConfig() { |
934 var o = new api.GooglePrivacyDlpV2beta1OutputStorageConfig(); | 934 var o = new api.GooglePrivacyDlpV2beta1OutputStorageConfig(); |
935 buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig++; | 935 buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig++; |
936 if (buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig < 3) { | 936 if (buildCounterGooglePrivacyDlpV2beta1OutputStorageConfig < 3) { |
(...skipping 128 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1065 | 1065 |
1066 checkGooglePrivacyDlpV2beta1RecordKey(api.GooglePrivacyDlpV2beta1RecordKey o) { | 1066 checkGooglePrivacyDlpV2beta1RecordKey(api.GooglePrivacyDlpV2beta1RecordKey o) { |
1067 buildCounterGooglePrivacyDlpV2beta1RecordKey++; | 1067 buildCounterGooglePrivacyDlpV2beta1RecordKey++; |
1068 if (buildCounterGooglePrivacyDlpV2beta1RecordKey < 3) { | 1068 if (buildCounterGooglePrivacyDlpV2beta1RecordKey < 3) { |
1069 checkGooglePrivacyDlpV2beta1CloudStorageKey(o.cloudStorageKey); | 1069 checkGooglePrivacyDlpV2beta1CloudStorageKey(o.cloudStorageKey); |
1070 checkGooglePrivacyDlpV2beta1DatastoreKey(o.datastoreKey); | 1070 checkGooglePrivacyDlpV2beta1DatastoreKey(o.datastoreKey); |
1071 } | 1071 } |
1072 buildCounterGooglePrivacyDlpV2beta1RecordKey--; | 1072 buildCounterGooglePrivacyDlpV2beta1RecordKey--; |
1073 } | 1073 } |
1074 | 1074 |
1075 buildUnnamed3301() { | 1075 buildUnnamed3297() { |
1076 var o = new core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig>(); | 1076 var o = new core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig>(); |
1077 o.add(buildGooglePrivacyDlpV2beta1ImageRedactionConfig()); | 1077 o.add(buildGooglePrivacyDlpV2beta1ImageRedactionConfig()); |
1078 o.add(buildGooglePrivacyDlpV2beta1ImageRedactionConfig()); | 1078 o.add(buildGooglePrivacyDlpV2beta1ImageRedactionConfig()); |
1079 return o; | 1079 return o; |
1080 } | 1080 } |
1081 | 1081 |
1082 checkUnnamed3301(core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig> o) { | 1082 checkUnnamed3297(core.List<api.GooglePrivacyDlpV2beta1ImageRedactionConfig> o) { |
1083 unittest.expect(o, unittest.hasLength(2)); | 1083 unittest.expect(o, unittest.hasLength(2)); |
1084 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(o[0]); | 1084 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(o[0]); |
1085 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(o[1]); | 1085 checkGooglePrivacyDlpV2beta1ImageRedactionConfig(o[1]); |
1086 } | 1086 } |
1087 | 1087 |
1088 buildUnnamed3302() { | 1088 buildUnnamed3298() { |
1089 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); | 1089 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); |
1090 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); | 1090 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); |
1091 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); | 1091 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); |
1092 return o; | 1092 return o; |
1093 } | 1093 } |
1094 | 1094 |
1095 checkUnnamed3302(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { | 1095 checkUnnamed3298(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { |
1096 unittest.expect(o, unittest.hasLength(2)); | 1096 unittest.expect(o, unittest.hasLength(2)); |
1097 checkGooglePrivacyDlpV2beta1ContentItem(o[0]); | 1097 checkGooglePrivacyDlpV2beta1ContentItem(o[0]); |
1098 checkGooglePrivacyDlpV2beta1ContentItem(o[1]); | 1098 checkGooglePrivacyDlpV2beta1ContentItem(o[1]); |
1099 } | 1099 } |
1100 | 1100 |
1101 buildUnnamed3303() { | 1101 buildUnnamed3299() { |
1102 var o = new core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig>(); | 1102 var o = new core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig>(); |
1103 o.add(buildGooglePrivacyDlpV2beta1ReplaceConfig()); | 1103 o.add(buildGooglePrivacyDlpV2beta1ReplaceConfig()); |
1104 o.add(buildGooglePrivacyDlpV2beta1ReplaceConfig()); | 1104 o.add(buildGooglePrivacyDlpV2beta1ReplaceConfig()); |
1105 return o; | 1105 return o; |
1106 } | 1106 } |
1107 | 1107 |
1108 checkUnnamed3303(core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig> o) { | 1108 checkUnnamed3299(core.List<api.GooglePrivacyDlpV2beta1ReplaceConfig> o) { |
1109 unittest.expect(o, unittest.hasLength(2)); | 1109 unittest.expect(o, unittest.hasLength(2)); |
1110 checkGooglePrivacyDlpV2beta1ReplaceConfig(o[0]); | 1110 checkGooglePrivacyDlpV2beta1ReplaceConfig(o[0]); |
1111 checkGooglePrivacyDlpV2beta1ReplaceConfig(o[1]); | 1111 checkGooglePrivacyDlpV2beta1ReplaceConfig(o[1]); |
1112 } | 1112 } |
1113 | 1113 |
1114 core.int buildCounterGooglePrivacyDlpV2beta1RedactContentRequest = 0; | 1114 core.int buildCounterGooglePrivacyDlpV2beta1RedactContentRequest = 0; |
1115 buildGooglePrivacyDlpV2beta1RedactContentRequest() { | 1115 buildGooglePrivacyDlpV2beta1RedactContentRequest() { |
1116 var o = new api.GooglePrivacyDlpV2beta1RedactContentRequest(); | 1116 var o = new api.GooglePrivacyDlpV2beta1RedactContentRequest(); |
1117 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest++; | 1117 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest++; |
1118 if (buildCounterGooglePrivacyDlpV2beta1RedactContentRequest < 3) { | 1118 if (buildCounterGooglePrivacyDlpV2beta1RedactContentRequest < 3) { |
1119 o.imageRedactionConfigs = buildUnnamed3301(); | 1119 o.imageRedactionConfigs = buildUnnamed3297(); |
1120 o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); | 1120 o.inspectConfig = buildGooglePrivacyDlpV2beta1InspectConfig(); |
1121 o.items = buildUnnamed3302(); | 1121 o.items = buildUnnamed3298(); |
1122 o.replaceConfigs = buildUnnamed3303(); | 1122 o.replaceConfigs = buildUnnamed3299(); |
1123 } | 1123 } |
1124 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest--; | 1124 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest--; |
1125 return o; | 1125 return o; |
1126 } | 1126 } |
1127 | 1127 |
1128 checkGooglePrivacyDlpV2beta1RedactContentRequest(api.GooglePrivacyDlpV2beta1Reda
ctContentRequest o) { | 1128 checkGooglePrivacyDlpV2beta1RedactContentRequest(api.GooglePrivacyDlpV2beta1Reda
ctContentRequest o) { |
1129 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest++; | 1129 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest++; |
1130 if (buildCounterGooglePrivacyDlpV2beta1RedactContentRequest < 3) { | 1130 if (buildCounterGooglePrivacyDlpV2beta1RedactContentRequest < 3) { |
1131 checkUnnamed3301(o.imageRedactionConfigs); | 1131 checkUnnamed3297(o.imageRedactionConfigs); |
1132 checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig); | 1132 checkGooglePrivacyDlpV2beta1InspectConfig(o.inspectConfig); |
1133 checkUnnamed3302(o.items); | 1133 checkUnnamed3298(o.items); |
1134 checkUnnamed3303(o.replaceConfigs); | 1134 checkUnnamed3299(o.replaceConfigs); |
1135 } | 1135 } |
1136 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest--; | 1136 buildCounterGooglePrivacyDlpV2beta1RedactContentRequest--; |
1137 } | 1137 } |
1138 | 1138 |
1139 buildUnnamed3304() { | 1139 buildUnnamed3300() { |
1140 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); | 1140 var o = new core.List<api.GooglePrivacyDlpV2beta1ContentItem>(); |
1141 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); | 1141 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); |
1142 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); | 1142 o.add(buildGooglePrivacyDlpV2beta1ContentItem()); |
1143 return o; | 1143 return o; |
1144 } | 1144 } |
1145 | 1145 |
1146 checkUnnamed3304(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { | 1146 checkUnnamed3300(core.List<api.GooglePrivacyDlpV2beta1ContentItem> o) { |
1147 unittest.expect(o, unittest.hasLength(2)); | 1147 unittest.expect(o, unittest.hasLength(2)); |
1148 checkGooglePrivacyDlpV2beta1ContentItem(o[0]); | 1148 checkGooglePrivacyDlpV2beta1ContentItem(o[0]); |
1149 checkGooglePrivacyDlpV2beta1ContentItem(o[1]); | 1149 checkGooglePrivacyDlpV2beta1ContentItem(o[1]); |
1150 } | 1150 } |
1151 | 1151 |
1152 core.int buildCounterGooglePrivacyDlpV2beta1RedactContentResponse = 0; | 1152 core.int buildCounterGooglePrivacyDlpV2beta1RedactContentResponse = 0; |
1153 buildGooglePrivacyDlpV2beta1RedactContentResponse() { | 1153 buildGooglePrivacyDlpV2beta1RedactContentResponse() { |
1154 var o = new api.GooglePrivacyDlpV2beta1RedactContentResponse(); | 1154 var o = new api.GooglePrivacyDlpV2beta1RedactContentResponse(); |
1155 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse++; | 1155 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse++; |
1156 if (buildCounterGooglePrivacyDlpV2beta1RedactContentResponse < 3) { | 1156 if (buildCounterGooglePrivacyDlpV2beta1RedactContentResponse < 3) { |
1157 o.items = buildUnnamed3304(); | 1157 o.items = buildUnnamed3300(); |
1158 } | 1158 } |
1159 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse--; | 1159 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse--; |
1160 return o; | 1160 return o; |
1161 } | 1161 } |
1162 | 1162 |
1163 checkGooglePrivacyDlpV2beta1RedactContentResponse(api.GooglePrivacyDlpV2beta1Red
actContentResponse o) { | 1163 checkGooglePrivacyDlpV2beta1RedactContentResponse(api.GooglePrivacyDlpV2beta1Red
actContentResponse o) { |
1164 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse++; | 1164 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse++; |
1165 if (buildCounterGooglePrivacyDlpV2beta1RedactContentResponse < 3) { | 1165 if (buildCounterGooglePrivacyDlpV2beta1RedactContentResponse < 3) { |
1166 checkUnnamed3304(o.items); | 1166 checkUnnamed3300(o.items); |
1167 } | 1167 } |
1168 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse--; | 1168 buildCounterGooglePrivacyDlpV2beta1RedactContentResponse--; |
1169 } | 1169 } |
1170 | 1170 |
1171 core.int buildCounterGooglePrivacyDlpV2beta1ReplaceConfig = 0; | 1171 core.int buildCounterGooglePrivacyDlpV2beta1ReplaceConfig = 0; |
1172 buildGooglePrivacyDlpV2beta1ReplaceConfig() { | 1172 buildGooglePrivacyDlpV2beta1ReplaceConfig() { |
1173 var o = new api.GooglePrivacyDlpV2beta1ReplaceConfig(); | 1173 var o = new api.GooglePrivacyDlpV2beta1ReplaceConfig(); |
1174 buildCounterGooglePrivacyDlpV2beta1ReplaceConfig++; | 1174 buildCounterGooglePrivacyDlpV2beta1ReplaceConfig++; |
1175 if (buildCounterGooglePrivacyDlpV2beta1ReplaceConfig < 3) { | 1175 if (buildCounterGooglePrivacyDlpV2beta1ReplaceConfig < 3) { |
1176 o.infoType = buildGooglePrivacyDlpV2beta1InfoType(); | 1176 o.infoType = buildGooglePrivacyDlpV2beta1InfoType(); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1220 return o; | 1220 return o; |
1221 } | 1221 } |
1222 | 1222 |
1223 checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { | 1223 checkGoogleProtobufEmpty(api.GoogleProtobufEmpty o) { |
1224 buildCounterGoogleProtobufEmpty++; | 1224 buildCounterGoogleProtobufEmpty++; |
1225 if (buildCounterGoogleProtobufEmpty < 3) { | 1225 if (buildCounterGoogleProtobufEmpty < 3) { |
1226 } | 1226 } |
1227 buildCounterGoogleProtobufEmpty--; | 1227 buildCounterGoogleProtobufEmpty--; |
1228 } | 1228 } |
1229 | 1229 |
1230 buildUnnamed3305() { | 1230 buildUnnamed3301() { |
1231 var o = new core.Map<core.String, core.Object>(); | 1231 var o = new core.Map<core.String, core.Object>(); |
1232 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1232 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1233 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; | 1233 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; |
1234 return o; | 1234 return o; |
1235 } | 1235 } |
1236 | 1236 |
1237 checkUnnamed3305(core.Map<core.String, core.Object> o) { | 1237 checkUnnamed3301(core.Map<core.String, core.Object> o) { |
1238 unittest.expect(o, unittest.hasLength(2)); | 1238 unittest.expect(o, unittest.hasLength(2)); |
1239 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')); | 1239 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')); |
1240 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')); | 1240 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')); |
1241 } | 1241 } |
1242 | 1242 |
1243 buildUnnamed3306() { | 1243 buildUnnamed3302() { |
1244 var o = new core.List<core.Map<core.String, core.Object>>(); | 1244 var o = new core.List<core.Map<core.String, core.Object>>(); |
1245 o.add(buildUnnamed3305()); | 1245 o.add(buildUnnamed3301()); |
1246 o.add(buildUnnamed3305()); | 1246 o.add(buildUnnamed3301()); |
1247 return o; | 1247 return o; |
1248 } | 1248 } |
1249 | 1249 |
1250 checkUnnamed3306(core.List<core.Map<core.String, core.Object>> o) { | 1250 checkUnnamed3302(core.List<core.Map<core.String, core.Object>> o) { |
1251 unittest.expect(o, unittest.hasLength(2)); | 1251 unittest.expect(o, unittest.hasLength(2)); |
1252 checkUnnamed3305(o[0]); | 1252 checkUnnamed3301(o[0]); |
1253 checkUnnamed3305(o[1]); | 1253 checkUnnamed3301(o[1]); |
1254 } | 1254 } |
1255 | 1255 |
1256 core.int buildCounterGoogleRpcStatus = 0; | 1256 core.int buildCounterGoogleRpcStatus = 0; |
1257 buildGoogleRpcStatus() { | 1257 buildGoogleRpcStatus() { |
1258 var o = new api.GoogleRpcStatus(); | 1258 var o = new api.GoogleRpcStatus(); |
1259 buildCounterGoogleRpcStatus++; | 1259 buildCounterGoogleRpcStatus++; |
1260 if (buildCounterGoogleRpcStatus < 3) { | 1260 if (buildCounterGoogleRpcStatus < 3) { |
1261 o.code = 42; | 1261 o.code = 42; |
1262 o.details = buildUnnamed3306(); | 1262 o.details = buildUnnamed3302(); |
1263 o.message = "foo"; | 1263 o.message = "foo"; |
1264 } | 1264 } |
1265 buildCounterGoogleRpcStatus--; | 1265 buildCounterGoogleRpcStatus--; |
1266 return o; | 1266 return o; |
1267 } | 1267 } |
1268 | 1268 |
1269 checkGoogleRpcStatus(api.GoogleRpcStatus o) { | 1269 checkGoogleRpcStatus(api.GoogleRpcStatus o) { |
1270 buildCounterGoogleRpcStatus++; | 1270 buildCounterGoogleRpcStatus++; |
1271 if (buildCounterGoogleRpcStatus < 3) { | 1271 if (buildCounterGoogleRpcStatus < 3) { |
1272 unittest.expect(o.code, unittest.equals(42)); | 1272 unittest.expect(o.code, unittest.equals(42)); |
1273 checkUnnamed3306(o.details); | 1273 checkUnnamed3302(o.details); |
1274 unittest.expect(o.message, unittest.equals('foo')); | 1274 unittest.expect(o.message, unittest.equals('foo')); |
1275 } | 1275 } |
1276 buildCounterGoogleRpcStatus--; | 1276 buildCounterGoogleRpcStatus--; |
1277 } | 1277 } |
1278 | 1278 |
1279 | 1279 |
1280 main() { | 1280 main() { |
1281 unittest.group("obj-schema-GoogleLongrunningCancelOperationRequest", () { | 1281 unittest.group("obj-schema-GoogleLongrunningCancelOperationRequest", () { |
1282 unittest.test("to-json--from-json", () { | 1282 unittest.test("to-json--from-json", () { |
1283 var o = buildGoogleLongrunningCancelOperationRequest(); | 1283 var o = buildGoogleLongrunningCancelOperationRequest(); |
(...skipping 682 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1966 res.get(arg_name).then(unittest.expectAsync1(((api.GoogleLongrunningOperat
ion response) { | 1966 res.get(arg_name).then(unittest.expectAsync1(((api.GoogleLongrunningOperat
ion response) { |
1967 checkGoogleLongrunningOperation(response); | 1967 checkGoogleLongrunningOperation(response); |
1968 }))); | 1968 }))); |
1969 }); | 1969 }); |
1970 | 1970 |
1971 unittest.test("method--list", () { | 1971 unittest.test("method--list", () { |
1972 | 1972 |
1973 var mock = new HttpServerMock(); | 1973 var mock = new HttpServerMock(); |
1974 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat
ions; | 1974 api.InspectOperationsResourceApi res = new api.DlpApi(mock).inspect.operat
ions; |
1975 var arg_name = "foo"; | 1975 var arg_name = "foo"; |
| 1976 var arg_pageSize = 42; |
1976 var arg_filter = "foo"; | 1977 var arg_filter = "foo"; |
1977 var arg_pageToken = "foo"; | 1978 var arg_pageToken = "foo"; |
1978 var arg_pageSize = 42; | |
1979 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 1979 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
1980 var path = (req.url).path; | 1980 var path = (req.url).path; |
1981 var pathOffset = 0; | 1981 var pathOffset = 0; |
1982 var index; | 1982 var index; |
1983 var subPart; | 1983 var subPart; |
1984 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1984 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
1985 pathOffset += 1; | 1985 pathOffset += 1; |
1986 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v2beta1/")); | 1986 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v2beta1/")); |
1987 pathOffset += 8; | 1987 pathOffset += 8; |
1988 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1988 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
1989 | 1989 |
1990 var query = (req.url).query; | 1990 var query = (req.url).query; |
1991 var queryOffset = 0; | 1991 var queryOffset = 0; |
1992 var queryMap = {}; | 1992 var queryMap = {}; |
1993 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 1993 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
1994 parseBool(n) { | 1994 parseBool(n) { |
1995 if (n == "true") return true; | 1995 if (n == "true") return true; |
1996 if (n == "false") return false; | 1996 if (n == "false") return false; |
1997 if (n == null) return null; | 1997 if (n == null) return null; |
1998 throw new core.ArgumentError("Invalid boolean: $n"); | 1998 throw new core.ArgumentError("Invalid boolean: $n"); |
1999 } | 1999 } |
2000 if (query.length > 0) { | 2000 if (query.length > 0) { |
2001 for (var part in query.split("&")) { | 2001 for (var part in query.split("&")) { |
2002 var keyvalue = part.split("="); | 2002 var keyvalue = part.split("="); |
2003 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2003 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2004 } | 2004 } |
2005 } | 2005 } |
| 2006 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2006 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2007 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2007 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2008 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2008 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2009 | 2009 |
2010 | 2010 |
2011 var h = { | 2011 var h = { |
2012 "content-type" : "application/json; charset=utf-8", | 2012 "content-type" : "application/json; charset=utf-8", |
2013 }; | 2013 }; |
2014 var resp = convert.JSON.encode(buildGoogleLongrunningListOperationsRespo
nse()); | 2014 var resp = convert.JSON.encode(buildGoogleLongrunningListOperationsRespo
nse()); |
2015 return new async.Future.value(stringResponse(200, h, resp)); | 2015 return new async.Future.value(stringResponse(200, h, resp)); |
2016 }), true); | 2016 }), true); |
2017 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize:
arg_pageSize).then(unittest.expectAsync1(((api.GoogleLongrunningListOperationsR
esponse response) { | 2017 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken:
arg_pageToken).then(unittest.expectAsync1(((api.GoogleLongrunningListOperationsR
esponse response) { |
2018 checkGoogleLongrunningListOperationsResponse(response); | 2018 checkGoogleLongrunningListOperationsResponse(response); |
2019 }))); | 2019 }))); |
2020 }); | 2020 }); |
2021 | 2021 |
2022 }); | 2022 }); |
2023 | 2023 |
2024 | 2024 |
2025 unittest.group("resource-InspectResultsFindingsResourceApi", () { | 2025 unittest.group("resource-InspectResultsFindingsResourceApi", () { |
2026 unittest.test("method--list", () { | 2026 unittest.test("method--list", () { |
2027 | 2027 |
2028 var mock = new HttpServerMock(); | 2028 var mock = new HttpServerMock(); |
2029 api.InspectResultsFindingsResourceApi res = new api.DlpApi(mock).inspect.r
esults.findings; | 2029 api.InspectResultsFindingsResourceApi res = new api.DlpApi(mock).inspect.r
esults.findings; |
2030 var arg_name = "foo"; | 2030 var arg_name = "foo"; |
| 2031 var arg_pageSize = 42; |
2031 var arg_filter = "foo"; | 2032 var arg_filter = "foo"; |
2032 var arg_pageToken = "foo"; | 2033 var arg_pageToken = "foo"; |
2033 var arg_pageSize = 42; | |
2034 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { | 2034 mock.register(unittest.expectAsync2((http.BaseRequest req, json) { |
2035 var path = (req.url).path; | 2035 var path = (req.url).path; |
2036 var pathOffset = 0; | 2036 var pathOffset = 0; |
2037 var index; | 2037 var index; |
2038 var subPart; | 2038 var subPart; |
2039 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 2039 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
2040 pathOffset += 1; | 2040 pathOffset += 1; |
2041 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v2beta1/")); | 2041 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ
als("v2beta1/")); |
2042 pathOffset += 8; | 2042 pathOffset += 8; |
2043 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 2043 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
2044 | 2044 |
2045 var query = (req.url).query; | 2045 var query = (req.url).query; |
2046 var queryOffset = 0; | 2046 var queryOffset = 0; |
2047 var queryMap = {}; | 2047 var queryMap = {}; |
2048 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); | 2048 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v); |
2049 parseBool(n) { | 2049 parseBool(n) { |
2050 if (n == "true") return true; | 2050 if (n == "true") return true; |
2051 if (n == "false") return false; | 2051 if (n == "false") return false; |
2052 if (n == null) return null; | 2052 if (n == null) return null; |
2053 throw new core.ArgumentError("Invalid boolean: $n"); | 2053 throw new core.ArgumentError("Invalid boolean: $n"); |
2054 } | 2054 } |
2055 if (query.length > 0) { | 2055 if (query.length > 0) { |
2056 for (var part in query.split("&")) { | 2056 for (var part in query.split("&")) { |
2057 var keyvalue = part.split("="); | 2057 var keyvalue = part.split("="); |
2058 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); | 2058 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d
ecodeQueryComponent(keyvalue[1])); |
2059 } | 2059 } |
2060 } | 2060 } |
| 2061 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); |
2061 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); | 2062 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); |
2062 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); | 2063 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok
en)); |
2063 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ
als(arg_pageSize)); | |
2064 | 2064 |
2065 | 2065 |
2066 var h = { | 2066 var h = { |
2067 "content-type" : "application/json; charset=utf-8", | 2067 "content-type" : "application/json; charset=utf-8", |
2068 }; | 2068 }; |
2069 var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1ListInspectFi
ndingsResponse()); | 2069 var resp = convert.JSON.encode(buildGooglePrivacyDlpV2beta1ListInspectFi
ndingsResponse()); |
2070 return new async.Future.value(stringResponse(200, h, resp)); | 2070 return new async.Future.value(stringResponse(200, h, resp)); |
2071 }), true); | 2071 }), true); |
2072 res.list(arg_name, filter: arg_filter, pageToken: arg_pageToken, pageSize:
arg_pageSize).then(unittest.expectAsync1(((api.GooglePrivacyDlpV2beta1ListInspe
ctFindingsResponse response) { | 2072 res.list(arg_name, pageSize: arg_pageSize, filter: arg_filter, pageToken:
arg_pageToken).then(unittest.expectAsync1(((api.GooglePrivacyDlpV2beta1ListInspe
ctFindingsResponse response) { |
2073 checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(response); | 2073 checkGooglePrivacyDlpV2beta1ListInspectFindingsResponse(response); |
2074 }))); | 2074 }))); |
2075 }); | 2075 }); |
2076 | 2076 |
2077 }); | 2077 }); |
2078 | 2078 |
2079 | 2079 |
2080 unittest.group("resource-RootCategoriesResourceApi", () { | 2080 unittest.group("resource-RootCategoriesResourceApi", () { |
2081 unittest.test("method--list", () { | 2081 unittest.test("method--list", () { |
2082 | 2082 |
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2172 res.list(arg_category, languageCode: arg_languageCode).then(unittest.expec
tAsync1(((api.GooglePrivacyDlpV2beta1ListInfoTypesResponse response) { | 2172 res.list(arg_category, languageCode: arg_languageCode).then(unittest.expec
tAsync1(((api.GooglePrivacyDlpV2beta1ListInfoTypesResponse response) { |
2173 checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(response); | 2173 checkGooglePrivacyDlpV2beta1ListInfoTypesResponse(response); |
2174 }))); | 2174 }))); |
2175 }); | 2175 }); |
2176 | 2176 |
2177 }); | 2177 }); |
2178 | 2178 |
2179 | 2179 |
2180 } | 2180 } |
2181 | 2181 |
OLD | NEW |