| OLD | NEW |
| 1 library googleapis.iam.v1.test; | 1 library googleapis.iam.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 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 } | 44 } |
| 45 } | 45 } |
| 46 } | 46 } |
| 47 | 47 |
| 48 http.StreamedResponse stringResponse( | 48 http.StreamedResponse stringResponse( |
| 49 core.int status, core.Map headers, core.String body) { | 49 core.int status, core.Map headers, core.String body) { |
| 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); | 50 var stream = new async.Stream.fromIterable([convert.UTF8.encode(body)]); |
| 51 return new http.StreamedResponse(stream, status, headers: headers); | 51 return new http.StreamedResponse(stream, status, headers: headers); |
| 52 } | 52 } |
| 53 | 53 |
| 54 buildUnnamed2435() { | 54 buildUnnamed1182() { |
| 55 var o = new core.List<core.String>(); | 55 var o = new core.List<core.String>(); |
| 56 o.add("foo"); | 56 o.add("foo"); |
| 57 o.add("foo"); | 57 o.add("foo"); |
| 58 return o; | 58 return o; |
| 59 } | 59 } |
| 60 | 60 |
| 61 checkUnnamed2435(core.List<core.String> o) { | 61 checkUnnamed1182(core.List<core.String> o) { |
| 62 unittest.expect(o, unittest.hasLength(2)); | 62 unittest.expect(o, unittest.hasLength(2)); |
| 63 unittest.expect(o[0], unittest.equals('foo')); | 63 unittest.expect(o[0], unittest.equals('foo')); |
| 64 unittest.expect(o[1], unittest.equals('foo')); | 64 unittest.expect(o[1], unittest.equals('foo')); |
| 65 } | 65 } |
| 66 | 66 |
| 67 core.int buildCounterBinding = 0; | 67 core.int buildCounterBinding = 0; |
| 68 buildBinding() { | 68 buildBinding() { |
| 69 var o = new api.Binding(); | 69 var o = new api.Binding(); |
| 70 buildCounterBinding++; | 70 buildCounterBinding++; |
| 71 if (buildCounterBinding < 3) { | 71 if (buildCounterBinding < 3) { |
| 72 o.members = buildUnnamed2435(); | 72 o.members = buildUnnamed1182(); |
| 73 o.role = "foo"; | 73 o.role = "foo"; |
| 74 } | 74 } |
| 75 buildCounterBinding--; | 75 buildCounterBinding--; |
| 76 return o; | 76 return o; |
| 77 } | 77 } |
| 78 | 78 |
| 79 checkBinding(api.Binding o) { | 79 checkBinding(api.Binding o) { |
| 80 buildCounterBinding++; | 80 buildCounterBinding++; |
| 81 if (buildCounterBinding < 3) { | 81 if (buildCounterBinding < 3) { |
| 82 checkUnnamed2435(o.members); | 82 checkUnnamed1182(o.members); |
| 83 unittest.expect(o.role, unittest.equals('foo')); | 83 unittest.expect(o.role, unittest.equals('foo')); |
| 84 } | 84 } |
| 85 buildCounterBinding--; | 85 buildCounterBinding--; |
| 86 } | 86 } |
| 87 | 87 |
| 88 core.int buildCounterCloudAuditOptions = 0; | 88 core.int buildCounterCloudAuditOptions = 0; |
| 89 buildCloudAuditOptions() { | 89 buildCloudAuditOptions() { |
| 90 var o = new api.CloudAuditOptions(); | 90 var o = new api.CloudAuditOptions(); |
| 91 buildCounterCloudAuditOptions++; | 91 buildCounterCloudAuditOptions++; |
| 92 if (buildCounterCloudAuditOptions < 3) { | 92 if (buildCounterCloudAuditOptions < 3) { |
| 93 } | 93 } |
| 94 buildCounterCloudAuditOptions--; | 94 buildCounterCloudAuditOptions--; |
| 95 return o; | 95 return o; |
| 96 } | 96 } |
| 97 | 97 |
| 98 checkCloudAuditOptions(api.CloudAuditOptions o) { | 98 checkCloudAuditOptions(api.CloudAuditOptions o) { |
| 99 buildCounterCloudAuditOptions++; | 99 buildCounterCloudAuditOptions++; |
| 100 if (buildCounterCloudAuditOptions < 3) { | 100 if (buildCounterCloudAuditOptions < 3) { |
| 101 } | 101 } |
| 102 buildCounterCloudAuditOptions--; | 102 buildCounterCloudAuditOptions--; |
| 103 } | 103 } |
| 104 | 104 |
| 105 buildUnnamed2436() { | 105 buildUnnamed1183() { |
| 106 var o = new core.List<core.String>(); | 106 var o = new core.List<core.String>(); |
| 107 o.add("foo"); | 107 o.add("foo"); |
| 108 o.add("foo"); | 108 o.add("foo"); |
| 109 return o; | 109 return o; |
| 110 } | 110 } |
| 111 | 111 |
| 112 checkUnnamed2436(core.List<core.String> o) { | 112 checkUnnamed1183(core.List<core.String> o) { |
| 113 unittest.expect(o, unittest.hasLength(2)); | 113 unittest.expect(o, unittest.hasLength(2)); |
| 114 unittest.expect(o[0], unittest.equals('foo')); | 114 unittest.expect(o[0], unittest.equals('foo')); |
| 115 unittest.expect(o[1], unittest.equals('foo')); | 115 unittest.expect(o[1], unittest.equals('foo')); |
| 116 } | 116 } |
| 117 | 117 |
| 118 core.int buildCounterCondition = 0; | 118 core.int buildCounterCondition = 0; |
| 119 buildCondition() { | 119 buildCondition() { |
| 120 var o = new api.Condition(); | 120 var o = new api.Condition(); |
| 121 buildCounterCondition++; | 121 buildCounterCondition++; |
| 122 if (buildCounterCondition < 3) { | 122 if (buildCounterCondition < 3) { |
| 123 o.iam = "foo"; | 123 o.iam = "foo"; |
| 124 o.op = "foo"; | 124 o.op = "foo"; |
| 125 o.svc = "foo"; | 125 o.svc = "foo"; |
| 126 o.sys = "foo"; | 126 o.sys = "foo"; |
| 127 o.value = "foo"; | 127 o.value = "foo"; |
| 128 o.values = buildUnnamed2436(); | 128 o.values = buildUnnamed1183(); |
| 129 } | 129 } |
| 130 buildCounterCondition--; | 130 buildCounterCondition--; |
| 131 return o; | 131 return o; |
| 132 } | 132 } |
| 133 | 133 |
| 134 checkCondition(api.Condition o) { | 134 checkCondition(api.Condition o) { |
| 135 buildCounterCondition++; | 135 buildCounterCondition++; |
| 136 if (buildCounterCondition < 3) { | 136 if (buildCounterCondition < 3) { |
| 137 unittest.expect(o.iam, unittest.equals('foo')); | 137 unittest.expect(o.iam, unittest.equals('foo')); |
| 138 unittest.expect(o.op, unittest.equals('foo')); | 138 unittest.expect(o.op, unittest.equals('foo')); |
| 139 unittest.expect(o.svc, unittest.equals('foo')); | 139 unittest.expect(o.svc, unittest.equals('foo')); |
| 140 unittest.expect(o.sys, unittest.equals('foo')); | 140 unittest.expect(o.sys, unittest.equals('foo')); |
| 141 unittest.expect(o.value, unittest.equals('foo')); | 141 unittest.expect(o.value, unittest.equals('foo')); |
| 142 checkUnnamed2436(o.values); | 142 checkUnnamed1183(o.values); |
| 143 } | 143 } |
| 144 buildCounterCondition--; | 144 buildCounterCondition--; |
| 145 } | 145 } |
| 146 | 146 |
| 147 core.int buildCounterCounterOptions = 0; | 147 core.int buildCounterCounterOptions = 0; |
| 148 buildCounterOptions() { | 148 buildCounterOptions() { |
| 149 var o = new api.CounterOptions(); | 149 var o = new api.CounterOptions(); |
| 150 buildCounterCounterOptions++; | 150 buildCounterCounterOptions++; |
| 151 if (buildCounterCounterOptions < 3) { | 151 if (buildCounterCounterOptions < 3) { |
| 152 o.field = "foo"; | 152 o.field = "foo"; |
| (...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 232 return o; | 232 return o; |
| 233 } | 233 } |
| 234 | 234 |
| 235 checkEmpty(api.Empty o) { | 235 checkEmpty(api.Empty o) { |
| 236 buildCounterEmpty++; | 236 buildCounterEmpty++; |
| 237 if (buildCounterEmpty < 3) { | 237 if (buildCounterEmpty < 3) { |
| 238 } | 238 } |
| 239 buildCounterEmpty--; | 239 buildCounterEmpty--; |
| 240 } | 240 } |
| 241 | 241 |
| 242 buildUnnamed2437() { | 242 buildUnnamed1184() { |
| 243 var o = new core.List<api.ServiceAccountKey>(); | 243 var o = new core.List<api.ServiceAccountKey>(); |
| 244 o.add(buildServiceAccountKey()); | 244 o.add(buildServiceAccountKey()); |
| 245 o.add(buildServiceAccountKey()); | 245 o.add(buildServiceAccountKey()); |
| 246 return o; | 246 return o; |
| 247 } | 247 } |
| 248 | 248 |
| 249 checkUnnamed2437(core.List<api.ServiceAccountKey> o) { | 249 checkUnnamed1184(core.List<api.ServiceAccountKey> o) { |
| 250 unittest.expect(o, unittest.hasLength(2)); | 250 unittest.expect(o, unittest.hasLength(2)); |
| 251 checkServiceAccountKey(o[0]); | 251 checkServiceAccountKey(o[0]); |
| 252 checkServiceAccountKey(o[1]); | 252 checkServiceAccountKey(o[1]); |
| 253 } | 253 } |
| 254 | 254 |
| 255 core.int buildCounterListServiceAccountKeysResponse = 0; | 255 core.int buildCounterListServiceAccountKeysResponse = 0; |
| 256 buildListServiceAccountKeysResponse() { | 256 buildListServiceAccountKeysResponse() { |
| 257 var o = new api.ListServiceAccountKeysResponse(); | 257 var o = new api.ListServiceAccountKeysResponse(); |
| 258 buildCounterListServiceAccountKeysResponse++; | 258 buildCounterListServiceAccountKeysResponse++; |
| 259 if (buildCounterListServiceAccountKeysResponse < 3) { | 259 if (buildCounterListServiceAccountKeysResponse < 3) { |
| 260 o.keys = buildUnnamed2437(); | 260 o.keys = buildUnnamed1184(); |
| 261 } | 261 } |
| 262 buildCounterListServiceAccountKeysResponse--; | 262 buildCounterListServiceAccountKeysResponse--; |
| 263 return o; | 263 return o; |
| 264 } | 264 } |
| 265 | 265 |
| 266 checkListServiceAccountKeysResponse(api.ListServiceAccountKeysResponse o) { | 266 checkListServiceAccountKeysResponse(api.ListServiceAccountKeysResponse o) { |
| 267 buildCounterListServiceAccountKeysResponse++; | 267 buildCounterListServiceAccountKeysResponse++; |
| 268 if (buildCounterListServiceAccountKeysResponse < 3) { | 268 if (buildCounterListServiceAccountKeysResponse < 3) { |
| 269 checkUnnamed2437(o.keys); | 269 checkUnnamed1184(o.keys); |
| 270 } | 270 } |
| 271 buildCounterListServiceAccountKeysResponse--; | 271 buildCounterListServiceAccountKeysResponse--; |
| 272 } | 272 } |
| 273 | 273 |
| 274 buildUnnamed2438() { | 274 buildUnnamed1185() { |
| 275 var o = new core.List<api.ServiceAccount>(); | 275 var o = new core.List<api.ServiceAccount>(); |
| 276 o.add(buildServiceAccount()); | 276 o.add(buildServiceAccount()); |
| 277 o.add(buildServiceAccount()); | 277 o.add(buildServiceAccount()); |
| 278 return o; | 278 return o; |
| 279 } | 279 } |
| 280 | 280 |
| 281 checkUnnamed2438(core.List<api.ServiceAccount> o) { | 281 checkUnnamed1185(core.List<api.ServiceAccount> o) { |
| 282 unittest.expect(o, unittest.hasLength(2)); | 282 unittest.expect(o, unittest.hasLength(2)); |
| 283 checkServiceAccount(o[0]); | 283 checkServiceAccount(o[0]); |
| 284 checkServiceAccount(o[1]); | 284 checkServiceAccount(o[1]); |
| 285 } | 285 } |
| 286 | 286 |
| 287 core.int buildCounterListServiceAccountsResponse = 0; | 287 core.int buildCounterListServiceAccountsResponse = 0; |
| 288 buildListServiceAccountsResponse() { | 288 buildListServiceAccountsResponse() { |
| 289 var o = new api.ListServiceAccountsResponse(); | 289 var o = new api.ListServiceAccountsResponse(); |
| 290 buildCounterListServiceAccountsResponse++; | 290 buildCounterListServiceAccountsResponse++; |
| 291 if (buildCounterListServiceAccountsResponse < 3) { | 291 if (buildCounterListServiceAccountsResponse < 3) { |
| 292 o.accounts = buildUnnamed2438(); | 292 o.accounts = buildUnnamed1185(); |
| 293 o.nextPageToken = "foo"; | 293 o.nextPageToken = "foo"; |
| 294 } | 294 } |
| 295 buildCounterListServiceAccountsResponse--; | 295 buildCounterListServiceAccountsResponse--; |
| 296 return o; | 296 return o; |
| 297 } | 297 } |
| 298 | 298 |
| 299 checkListServiceAccountsResponse(api.ListServiceAccountsResponse o) { | 299 checkListServiceAccountsResponse(api.ListServiceAccountsResponse o) { |
| 300 buildCounterListServiceAccountsResponse++; | 300 buildCounterListServiceAccountsResponse++; |
| 301 if (buildCounterListServiceAccountsResponse < 3) { | 301 if (buildCounterListServiceAccountsResponse < 3) { |
| 302 checkUnnamed2438(o.accounts); | 302 checkUnnamed1185(o.accounts); |
| 303 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 303 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 304 } | 304 } |
| 305 buildCounterListServiceAccountsResponse--; | 305 buildCounterListServiceAccountsResponse--; |
| 306 } | 306 } |
| 307 | 307 |
| 308 core.int buildCounterLogConfig = 0; | 308 core.int buildCounterLogConfig = 0; |
| 309 buildLogConfig() { | 309 buildLogConfig() { |
| 310 var o = new api.LogConfig(); | 310 var o = new api.LogConfig(); |
| 311 buildCounterLogConfig++; | 311 buildCounterLogConfig++; |
| 312 if (buildCounterLogConfig < 3) { | 312 if (buildCounterLogConfig < 3) { |
| 313 o.cloudAudit = buildCloudAuditOptions(); | 313 o.cloudAudit = buildCloudAuditOptions(); |
| 314 o.counter = buildCounterOptions(); | 314 o.counter = buildCounterOptions(); |
| 315 o.dataAccess = buildDataAccessOptions(); | 315 o.dataAccess = buildDataAccessOptions(); |
| 316 } | 316 } |
| 317 buildCounterLogConfig--; | 317 buildCounterLogConfig--; |
| 318 return o; | 318 return o; |
| 319 } | 319 } |
| 320 | 320 |
| 321 checkLogConfig(api.LogConfig o) { | 321 checkLogConfig(api.LogConfig o) { |
| 322 buildCounterLogConfig++; | 322 buildCounterLogConfig++; |
| 323 if (buildCounterLogConfig < 3) { | 323 if (buildCounterLogConfig < 3) { |
| 324 checkCloudAuditOptions(o.cloudAudit); | 324 checkCloudAuditOptions(o.cloudAudit); |
| 325 checkCounterOptions(o.counter); | 325 checkCounterOptions(o.counter); |
| 326 checkDataAccessOptions(o.dataAccess); | 326 checkDataAccessOptions(o.dataAccess); |
| 327 } | 327 } |
| 328 buildCounterLogConfig--; | 328 buildCounterLogConfig--; |
| 329 } | 329 } |
| 330 | 330 |
| 331 buildUnnamed2439() { | 331 buildUnnamed1186() { |
| 332 var o = new core.List<api.Binding>(); | 332 var o = new core.List<api.Binding>(); |
| 333 o.add(buildBinding()); | 333 o.add(buildBinding()); |
| 334 o.add(buildBinding()); | 334 o.add(buildBinding()); |
| 335 return o; | 335 return o; |
| 336 } | 336 } |
| 337 | 337 |
| 338 checkUnnamed2439(core.List<api.Binding> o) { | 338 checkUnnamed1186(core.List<api.Binding> o) { |
| 339 unittest.expect(o, unittest.hasLength(2)); | 339 unittest.expect(o, unittest.hasLength(2)); |
| 340 checkBinding(o[0]); | 340 checkBinding(o[0]); |
| 341 checkBinding(o[1]); | 341 checkBinding(o[1]); |
| 342 } | 342 } |
| 343 | 343 |
| 344 buildUnnamed2440() { | 344 buildUnnamed1187() { |
| 345 var o = new core.List<api.Rule>(); | 345 var o = new core.List<api.Rule>(); |
| 346 o.add(buildRule()); | 346 o.add(buildRule()); |
| 347 o.add(buildRule()); | 347 o.add(buildRule()); |
| 348 return o; | 348 return o; |
| 349 } | 349 } |
| 350 | 350 |
| 351 checkUnnamed2440(core.List<api.Rule> o) { | 351 checkUnnamed1187(core.List<api.Rule> o) { |
| 352 unittest.expect(o, unittest.hasLength(2)); | 352 unittest.expect(o, unittest.hasLength(2)); |
| 353 checkRule(o[0]); | 353 checkRule(o[0]); |
| 354 checkRule(o[1]); | 354 checkRule(o[1]); |
| 355 } | 355 } |
| 356 | 356 |
| 357 core.int buildCounterPolicy = 0; | 357 core.int buildCounterPolicy = 0; |
| 358 buildPolicy() { | 358 buildPolicy() { |
| 359 var o = new api.Policy(); | 359 var o = new api.Policy(); |
| 360 buildCounterPolicy++; | 360 buildCounterPolicy++; |
| 361 if (buildCounterPolicy < 3) { | 361 if (buildCounterPolicy < 3) { |
| 362 o.bindings = buildUnnamed2439(); | 362 o.bindings = buildUnnamed1186(); |
| 363 o.etag = "foo"; | 363 o.etag = "foo"; |
| 364 o.rules = buildUnnamed2440(); | 364 o.rules = buildUnnamed1187(); |
| 365 o.version = 42; | 365 o.version = 42; |
| 366 } | 366 } |
| 367 buildCounterPolicy--; | 367 buildCounterPolicy--; |
| 368 return o; | 368 return o; |
| 369 } | 369 } |
| 370 | 370 |
| 371 checkPolicy(api.Policy o) { | 371 checkPolicy(api.Policy o) { |
| 372 buildCounterPolicy++; | 372 buildCounterPolicy++; |
| 373 if (buildCounterPolicy < 3) { | 373 if (buildCounterPolicy < 3) { |
| 374 checkUnnamed2439(o.bindings); | 374 checkUnnamed1186(o.bindings); |
| 375 unittest.expect(o.etag, unittest.equals('foo')); | 375 unittest.expect(o.etag, unittest.equals('foo')); |
| 376 checkUnnamed2440(o.rules); | 376 checkUnnamed1187(o.rules); |
| 377 unittest.expect(o.version, unittest.equals(42)); | 377 unittest.expect(o.version, unittest.equals(42)); |
| 378 } | 378 } |
| 379 buildCounterPolicy--; | 379 buildCounterPolicy--; |
| 380 } | 380 } |
| 381 | 381 |
| 382 buildUnnamed2441() { | 382 buildUnnamed1188() { |
| 383 var o = new core.List<api.Condition>(); | 383 var o = new core.List<api.Condition>(); |
| 384 o.add(buildCondition()); | 384 o.add(buildCondition()); |
| 385 o.add(buildCondition()); | 385 o.add(buildCondition()); |
| 386 return o; | 386 return o; |
| 387 } | 387 } |
| 388 | 388 |
| 389 checkUnnamed2441(core.List<api.Condition> o) { | 389 checkUnnamed1188(core.List<api.Condition> o) { |
| 390 unittest.expect(o, unittest.hasLength(2)); | 390 unittest.expect(o, unittest.hasLength(2)); |
| 391 checkCondition(o[0]); | 391 checkCondition(o[0]); |
| 392 checkCondition(o[1]); | 392 checkCondition(o[1]); |
| 393 } | 393 } |
| 394 | 394 |
| 395 buildUnnamed2442() { | 395 buildUnnamed1189() { |
| 396 var o = new core.List<core.String>(); | 396 var o = new core.List<core.String>(); |
| 397 o.add("foo"); | 397 o.add("foo"); |
| 398 o.add("foo"); | 398 o.add("foo"); |
| 399 return o; | 399 return o; |
| 400 } | 400 } |
| 401 | 401 |
| 402 checkUnnamed2442(core.List<core.String> o) { | 402 checkUnnamed1189(core.List<core.String> o) { |
| 403 unittest.expect(o, unittest.hasLength(2)); | 403 unittest.expect(o, unittest.hasLength(2)); |
| 404 unittest.expect(o[0], unittest.equals('foo')); | 404 unittest.expect(o[0], unittest.equals('foo')); |
| 405 unittest.expect(o[1], unittest.equals('foo')); | 405 unittest.expect(o[1], unittest.equals('foo')); |
| 406 } | 406 } |
| 407 | 407 |
| 408 buildUnnamed2443() { | 408 buildUnnamed1190() { |
| 409 var o = new core.List<api.LogConfig>(); | 409 var o = new core.List<api.LogConfig>(); |
| 410 o.add(buildLogConfig()); | 410 o.add(buildLogConfig()); |
| 411 o.add(buildLogConfig()); | 411 o.add(buildLogConfig()); |
| 412 return o; | 412 return o; |
| 413 } | 413 } |
| 414 | 414 |
| 415 checkUnnamed2443(core.List<api.LogConfig> o) { | 415 checkUnnamed1190(core.List<api.LogConfig> o) { |
| 416 unittest.expect(o, unittest.hasLength(2)); | 416 unittest.expect(o, unittest.hasLength(2)); |
| 417 checkLogConfig(o[0]); | 417 checkLogConfig(o[0]); |
| 418 checkLogConfig(o[1]); | 418 checkLogConfig(o[1]); |
| 419 } | 419 } |
| 420 | 420 |
| 421 buildUnnamed2444() { | 421 buildUnnamed1191() { |
| 422 var o = new core.List<core.String>(); | 422 var o = new core.List<core.String>(); |
| 423 o.add("foo"); | 423 o.add("foo"); |
| 424 o.add("foo"); | 424 o.add("foo"); |
| 425 return o; | 425 return o; |
| 426 } | 426 } |
| 427 | 427 |
| 428 checkUnnamed2444(core.List<core.String> o) { | 428 checkUnnamed1191(core.List<core.String> o) { |
| 429 unittest.expect(o, unittest.hasLength(2)); | 429 unittest.expect(o, unittest.hasLength(2)); |
| 430 unittest.expect(o[0], unittest.equals('foo')); | 430 unittest.expect(o[0], unittest.equals('foo')); |
| 431 unittest.expect(o[1], unittest.equals('foo')); | 431 unittest.expect(o[1], unittest.equals('foo')); |
| 432 } | 432 } |
| 433 | 433 |
| 434 buildUnnamed2445() { | 434 buildUnnamed1192() { |
| 435 var o = new core.List<core.String>(); | 435 var o = new core.List<core.String>(); |
| 436 o.add("foo"); | 436 o.add("foo"); |
| 437 o.add("foo"); | 437 o.add("foo"); |
| 438 return o; | 438 return o; |
| 439 } | 439 } |
| 440 | 440 |
| 441 checkUnnamed2445(core.List<core.String> o) { | 441 checkUnnamed1192(core.List<core.String> o) { |
| 442 unittest.expect(o, unittest.hasLength(2)); | 442 unittest.expect(o, unittest.hasLength(2)); |
| 443 unittest.expect(o[0], unittest.equals('foo')); | 443 unittest.expect(o[0], unittest.equals('foo')); |
| 444 unittest.expect(o[1], unittest.equals('foo')); | 444 unittest.expect(o[1], unittest.equals('foo')); |
| 445 } | 445 } |
| 446 | 446 |
| 447 core.int buildCounterRule = 0; | 447 core.int buildCounterRule = 0; |
| 448 buildRule() { | 448 buildRule() { |
| 449 var o = new api.Rule(); | 449 var o = new api.Rule(); |
| 450 buildCounterRule++; | 450 buildCounterRule++; |
| 451 if (buildCounterRule < 3) { | 451 if (buildCounterRule < 3) { |
| 452 o.action = "foo"; | 452 o.action = "foo"; |
| 453 o.conditions = buildUnnamed2441(); | 453 o.conditions = buildUnnamed1188(); |
| 454 o.description = "foo"; | 454 o.description = "foo"; |
| 455 o.in_ = buildUnnamed2442(); | 455 o.in_ = buildUnnamed1189(); |
| 456 o.logConfig = buildUnnamed2443(); | 456 o.logConfig = buildUnnamed1190(); |
| 457 o.notIn = buildUnnamed2444(); | 457 o.notIn = buildUnnamed1191(); |
| 458 o.permissions = buildUnnamed2445(); | 458 o.permissions = buildUnnamed1192(); |
| 459 } | 459 } |
| 460 buildCounterRule--; | 460 buildCounterRule--; |
| 461 return o; | 461 return o; |
| 462 } | 462 } |
| 463 | 463 |
| 464 checkRule(api.Rule o) { | 464 checkRule(api.Rule o) { |
| 465 buildCounterRule++; | 465 buildCounterRule++; |
| 466 if (buildCounterRule < 3) { | 466 if (buildCounterRule < 3) { |
| 467 unittest.expect(o.action, unittest.equals('foo')); | 467 unittest.expect(o.action, unittest.equals('foo')); |
| 468 checkUnnamed2441(o.conditions); | 468 checkUnnamed1188(o.conditions); |
| 469 unittest.expect(o.description, unittest.equals('foo')); | 469 unittest.expect(o.description, unittest.equals('foo')); |
| 470 checkUnnamed2442(o.in_); | 470 checkUnnamed1189(o.in_); |
| 471 checkUnnamed2443(o.logConfig); | 471 checkUnnamed1190(o.logConfig); |
| 472 checkUnnamed2444(o.notIn); | 472 checkUnnamed1191(o.notIn); |
| 473 checkUnnamed2445(o.permissions); | 473 checkUnnamed1192(o.permissions); |
| 474 } | 474 } |
| 475 buildCounterRule--; | 475 buildCounterRule--; |
| 476 } | 476 } |
| 477 | 477 |
| 478 core.int buildCounterServiceAccount = 0; | 478 core.int buildCounterServiceAccount = 0; |
| 479 buildServiceAccount() { | 479 buildServiceAccount() { |
| 480 var o = new api.ServiceAccount(); | 480 var o = new api.ServiceAccount(); |
| 481 buildCounterServiceAccount++; | 481 buildCounterServiceAccount++; |
| 482 if (buildCounterServiceAccount < 3) { | 482 if (buildCounterServiceAccount < 3) { |
| 483 o.displayName = "foo"; | 483 o.displayName = "foo"; |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 585 | 585 |
| 586 checkSignBlobResponse(api.SignBlobResponse o) { | 586 checkSignBlobResponse(api.SignBlobResponse o) { |
| 587 buildCounterSignBlobResponse++; | 587 buildCounterSignBlobResponse++; |
| 588 if (buildCounterSignBlobResponse < 3) { | 588 if (buildCounterSignBlobResponse < 3) { |
| 589 unittest.expect(o.keyId, unittest.equals('foo')); | 589 unittest.expect(o.keyId, unittest.equals('foo')); |
| 590 unittest.expect(o.signature, unittest.equals('foo')); | 590 unittest.expect(o.signature, unittest.equals('foo')); |
| 591 } | 591 } |
| 592 buildCounterSignBlobResponse--; | 592 buildCounterSignBlobResponse--; |
| 593 } | 593 } |
| 594 | 594 |
| 595 buildUnnamed2446() { | 595 buildUnnamed1193() { |
| 596 var o = new core.List<core.String>(); | 596 var o = new core.List<core.String>(); |
| 597 o.add("foo"); | 597 o.add("foo"); |
| 598 o.add("foo"); | 598 o.add("foo"); |
| 599 return o; | 599 return o; |
| 600 } | 600 } |
| 601 | 601 |
| 602 checkUnnamed2446(core.List<core.String> o) { | 602 checkUnnamed1193(core.List<core.String> o) { |
| 603 unittest.expect(o, unittest.hasLength(2)); | 603 unittest.expect(o, unittest.hasLength(2)); |
| 604 unittest.expect(o[0], unittest.equals('foo')); | 604 unittest.expect(o[0], unittest.equals('foo')); |
| 605 unittest.expect(o[1], unittest.equals('foo')); | 605 unittest.expect(o[1], unittest.equals('foo')); |
| 606 } | 606 } |
| 607 | 607 |
| 608 core.int buildCounterTestIamPermissionsRequest = 0; | 608 core.int buildCounterTestIamPermissionsRequest = 0; |
| 609 buildTestIamPermissionsRequest() { | 609 buildTestIamPermissionsRequest() { |
| 610 var o = new api.TestIamPermissionsRequest(); | 610 var o = new api.TestIamPermissionsRequest(); |
| 611 buildCounterTestIamPermissionsRequest++; | 611 buildCounterTestIamPermissionsRequest++; |
| 612 if (buildCounterTestIamPermissionsRequest < 3) { | 612 if (buildCounterTestIamPermissionsRequest < 3) { |
| 613 o.permissions = buildUnnamed2446(); | 613 o.permissions = buildUnnamed1193(); |
| 614 } | 614 } |
| 615 buildCounterTestIamPermissionsRequest--; | 615 buildCounterTestIamPermissionsRequest--; |
| 616 return o; | 616 return o; |
| 617 } | 617 } |
| 618 | 618 |
| 619 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 619 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
| 620 buildCounterTestIamPermissionsRequest++; | 620 buildCounterTestIamPermissionsRequest++; |
| 621 if (buildCounterTestIamPermissionsRequest < 3) { | 621 if (buildCounterTestIamPermissionsRequest < 3) { |
| 622 checkUnnamed2446(o.permissions); | 622 checkUnnamed1193(o.permissions); |
| 623 } | 623 } |
| 624 buildCounterTestIamPermissionsRequest--; | 624 buildCounterTestIamPermissionsRequest--; |
| 625 } | 625 } |
| 626 | 626 |
| 627 buildUnnamed2447() { | 627 buildUnnamed1194() { |
| 628 var o = new core.List<core.String>(); | 628 var o = new core.List<core.String>(); |
| 629 o.add("foo"); | 629 o.add("foo"); |
| 630 o.add("foo"); | 630 o.add("foo"); |
| 631 return o; | 631 return o; |
| 632 } | 632 } |
| 633 | 633 |
| 634 checkUnnamed2447(core.List<core.String> o) { | 634 checkUnnamed1194(core.List<core.String> o) { |
| 635 unittest.expect(o, unittest.hasLength(2)); | 635 unittest.expect(o, unittest.hasLength(2)); |
| 636 unittest.expect(o[0], unittest.equals('foo')); | 636 unittest.expect(o[0], unittest.equals('foo')); |
| 637 unittest.expect(o[1], unittest.equals('foo')); | 637 unittest.expect(o[1], unittest.equals('foo')); |
| 638 } | 638 } |
| 639 | 639 |
| 640 core.int buildCounterTestIamPermissionsResponse = 0; | 640 core.int buildCounterTestIamPermissionsResponse = 0; |
| 641 buildTestIamPermissionsResponse() { | 641 buildTestIamPermissionsResponse() { |
| 642 var o = new api.TestIamPermissionsResponse(); | 642 var o = new api.TestIamPermissionsResponse(); |
| 643 buildCounterTestIamPermissionsResponse++; | 643 buildCounterTestIamPermissionsResponse++; |
| 644 if (buildCounterTestIamPermissionsResponse < 3) { | 644 if (buildCounterTestIamPermissionsResponse < 3) { |
| 645 o.permissions = buildUnnamed2447(); | 645 o.permissions = buildUnnamed1194(); |
| 646 } | 646 } |
| 647 buildCounterTestIamPermissionsResponse--; | 647 buildCounterTestIamPermissionsResponse--; |
| 648 return o; | 648 return o; |
| 649 } | 649 } |
| 650 | 650 |
| 651 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 651 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
| 652 buildCounterTestIamPermissionsResponse++; | 652 buildCounterTestIamPermissionsResponse++; |
| 653 if (buildCounterTestIamPermissionsResponse < 3) { | 653 if (buildCounterTestIamPermissionsResponse < 3) { |
| 654 checkUnnamed2447(o.permissions); | 654 checkUnnamed1194(o.permissions); |
| 655 } | 655 } |
| 656 buildCounterTestIamPermissionsResponse--; | 656 buildCounterTestIamPermissionsResponse--; |
| 657 } | 657 } |
| 658 | 658 |
| 659 buildUnnamed2448() { | 659 buildUnnamed1195() { |
| 660 var o = new core.List<core.String>(); | 660 var o = new core.List<core.String>(); |
| 661 o.add("foo"); | 661 o.add("foo"); |
| 662 o.add("foo"); | 662 o.add("foo"); |
| 663 return o; | 663 return o; |
| 664 } | 664 } |
| 665 | 665 |
| 666 checkUnnamed2448(core.List<core.String> o) { | 666 checkUnnamed1195(core.List<core.String> o) { |
| 667 unittest.expect(o, unittest.hasLength(2)); | 667 unittest.expect(o, unittest.hasLength(2)); |
| 668 unittest.expect(o[0], unittest.equals('foo')); | 668 unittest.expect(o[0], unittest.equals('foo')); |
| 669 unittest.expect(o[1], unittest.equals('foo')); | 669 unittest.expect(o[1], unittest.equals('foo')); |
| 670 } | 670 } |
| 671 | 671 |
| 672 | 672 |
| 673 main() { | 673 main() { |
| 674 unittest.group("obj-schema-Binding", () { | 674 unittest.group("obj-schema-Binding", () { |
| 675 unittest.test("to-json--from-json", () { | 675 unittest.test("to-json--from-json", () { |
| 676 var o = buildBinding(); | 676 var o = buildBinding(); |
| (...skipping 745 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1422 res.get(arg_name).then(unittest.expectAsync(((api.ServiceAccountKey respon
se) { | 1422 res.get(arg_name).then(unittest.expectAsync(((api.ServiceAccountKey respon
se) { |
| 1423 checkServiceAccountKey(response); | 1423 checkServiceAccountKey(response); |
| 1424 }))); | 1424 }))); |
| 1425 }); | 1425 }); |
| 1426 | 1426 |
| 1427 unittest.test("method--list", () { | 1427 unittest.test("method--list", () { |
| 1428 | 1428 |
| 1429 var mock = new HttpServerMock(); | 1429 var mock = new HttpServerMock(); |
| 1430 api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).proj
ects.serviceAccounts.keys; | 1430 api.ProjectsServiceAccountsKeysResourceApi res = new api.IamApi(mock).proj
ects.serviceAccounts.keys; |
| 1431 var arg_name = "foo"; | 1431 var arg_name = "foo"; |
| 1432 var arg_keyTypes = buildUnnamed2448(); | 1432 var arg_keyTypes = buildUnnamed1195(); |
| 1433 mock.register(unittest.expectAsync((http.BaseRequest req, json) { | 1433 mock.register(unittest.expectAsync((http.BaseRequest req, json) { |
| 1434 var path = (req.url).path; | 1434 var path = (req.url).path; |
| 1435 var pathOffset = 0; | 1435 var pathOffset = 0; |
| 1436 var index; | 1436 var index; |
| 1437 var subPart; | 1437 var subPart; |
| 1438 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); | 1438 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ
als("/")); |
| 1439 pathOffset += 1; | 1439 pathOffset += 1; |
| 1440 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); | 1440 unittest.expect(path.substring(pathOffset, pathOffset + 3), unittest.equ
als("v1/")); |
| 1441 pathOffset += 3; | 1441 pathOffset += 3; |
| 1442 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; | 1442 // NOTE: We cannot test reserved expansions due to the inability to reve
rse the operation; |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1469 res.list(arg_name, keyTypes: arg_keyTypes).then(unittest.expectAsync(((api
.ListServiceAccountKeysResponse response) { | 1469 res.list(arg_name, keyTypes: arg_keyTypes).then(unittest.expectAsync(((api
.ListServiceAccountKeysResponse response) { |
| 1470 checkListServiceAccountKeysResponse(response); | 1470 checkListServiceAccountKeysResponse(response); |
| 1471 }))); | 1471 }))); |
| 1472 }); | 1472 }); |
| 1473 | 1473 |
| 1474 }); | 1474 }); |
| 1475 | 1475 |
| 1476 | 1476 |
| 1477 } | 1477 } |
| 1478 | 1478 |
| OLD | NEW |