| OLD | NEW |
| 1 library googleapis_beta.cloudresourcemanager.v1beta1.test; | 1 library googleapis_beta.cloudresourcemanager.v1beta1.test; |
| 2 | 2 |
| 3 import "dart:core" as core; | 3 import "dart:core" as core; |
| 4 import "dart:collection" as collection; | 4 import "dart:collection" as collection; |
| 5 import "dart:async" as async; | 5 import "dart:async" as async; |
| 6 import "dart:convert" as convert; | 6 import "dart:convert" as convert; |
| 7 | 7 |
| 8 import 'package:http/http.dart' as http; | 8 import 'package:http/http.dart' as http; |
| 9 import 'package:http/testing.dart' as http_testing; | 9 import 'package:http/testing.dart' as http_testing; |
| 10 import 'package:unittest/unittest.dart' as unittest; | 10 import 'package:unittest/unittest.dart' as unittest; |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after 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 buildUnnamed2301() { | 54 buildUnnamed2626() { |
| 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 checkUnnamed2301(core.List<core.String> o) { | 61 checkUnnamed2626(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 = buildUnnamed2301(); | 72 o.members = buildUnnamed2626(); |
| 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 checkUnnamed2301(o.members); | 82 checkUnnamed2626(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 buildUnnamed2302() { | 105 buildUnnamed2627() { |
| 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 checkUnnamed2302(core.List<core.String> o) { | 112 checkUnnamed2627(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 = buildUnnamed2302(); | 128 o.values = buildUnnamed2627(); |
| 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 checkUnnamed2302(o.values); | 142 checkUnnamed2627(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 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 209 return o; | 209 return o; |
| 210 } | 210 } |
| 211 | 211 |
| 212 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { | 212 checkGetIamPolicyRequest(api.GetIamPolicyRequest o) { |
| 213 buildCounterGetIamPolicyRequest++; | 213 buildCounterGetIamPolicyRequest++; |
| 214 if (buildCounterGetIamPolicyRequest < 3) { | 214 if (buildCounterGetIamPolicyRequest < 3) { |
| 215 } | 215 } |
| 216 buildCounterGetIamPolicyRequest--; | 216 buildCounterGetIamPolicyRequest--; |
| 217 } | 217 } |
| 218 | 218 |
| 219 buildUnnamed2303() { | 219 buildUnnamed2628() { |
| 220 var o = new core.List<api.Project>(); | 220 var o = new core.List<api.Project>(); |
| 221 o.add(buildProject()); | 221 o.add(buildProject()); |
| 222 o.add(buildProject()); | 222 o.add(buildProject()); |
| 223 return o; | 223 return o; |
| 224 } | 224 } |
| 225 | 225 |
| 226 checkUnnamed2303(core.List<api.Project> o) { | 226 checkUnnamed2628(core.List<api.Project> o) { |
| 227 unittest.expect(o, unittest.hasLength(2)); | 227 unittest.expect(o, unittest.hasLength(2)); |
| 228 checkProject(o[0]); | 228 checkProject(o[0]); |
| 229 checkProject(o[1]); | 229 checkProject(o[1]); |
| 230 } | 230 } |
| 231 | 231 |
| 232 core.int buildCounterListProjectsResponse = 0; | 232 core.int buildCounterListProjectsResponse = 0; |
| 233 buildListProjectsResponse() { | 233 buildListProjectsResponse() { |
| 234 var o = new api.ListProjectsResponse(); | 234 var o = new api.ListProjectsResponse(); |
| 235 buildCounterListProjectsResponse++; | 235 buildCounterListProjectsResponse++; |
| 236 if (buildCounterListProjectsResponse < 3) { | 236 if (buildCounterListProjectsResponse < 3) { |
| 237 o.nextPageToken = "foo"; | 237 o.nextPageToken = "foo"; |
| 238 o.projects = buildUnnamed2303(); | 238 o.projects = buildUnnamed2628(); |
| 239 } | 239 } |
| 240 buildCounterListProjectsResponse--; | 240 buildCounterListProjectsResponse--; |
| 241 return o; | 241 return o; |
| 242 } | 242 } |
| 243 | 243 |
| 244 checkListProjectsResponse(api.ListProjectsResponse o) { | 244 checkListProjectsResponse(api.ListProjectsResponse o) { |
| 245 buildCounterListProjectsResponse++; | 245 buildCounterListProjectsResponse++; |
| 246 if (buildCounterListProjectsResponse < 3) { | 246 if (buildCounterListProjectsResponse < 3) { |
| 247 unittest.expect(o.nextPageToken, unittest.equals('foo')); | 247 unittest.expect(o.nextPageToken, unittest.equals('foo')); |
| 248 checkUnnamed2303(o.projects); | 248 checkUnnamed2628(o.projects); |
| 249 } | 249 } |
| 250 buildCounterListProjectsResponse--; | 250 buildCounterListProjectsResponse--; |
| 251 } | 251 } |
| 252 | 252 |
| 253 core.int buildCounterLogConfig = 0; | 253 core.int buildCounterLogConfig = 0; |
| 254 buildLogConfig() { | 254 buildLogConfig() { |
| 255 var o = new api.LogConfig(); | 255 var o = new api.LogConfig(); |
| 256 buildCounterLogConfig++; | 256 buildCounterLogConfig++; |
| 257 if (buildCounterLogConfig < 3) { | 257 if (buildCounterLogConfig < 3) { |
| 258 o.cloudAudit = buildCloudAuditOptions(); | 258 o.cloudAudit = buildCloudAuditOptions(); |
| 259 o.counter = buildCounterOptions(); | 259 o.counter = buildCounterOptions(); |
| 260 o.dataAccess = buildDataAccessOptions(); | 260 o.dataAccess = buildDataAccessOptions(); |
| 261 } | 261 } |
| 262 buildCounterLogConfig--; | 262 buildCounterLogConfig--; |
| 263 return o; | 263 return o; |
| 264 } | 264 } |
| 265 | 265 |
| 266 checkLogConfig(api.LogConfig o) { | 266 checkLogConfig(api.LogConfig o) { |
| 267 buildCounterLogConfig++; | 267 buildCounterLogConfig++; |
| 268 if (buildCounterLogConfig < 3) { | 268 if (buildCounterLogConfig < 3) { |
| 269 checkCloudAuditOptions(o.cloudAudit); | 269 checkCloudAuditOptions(o.cloudAudit); |
| 270 checkCounterOptions(o.counter); | 270 checkCounterOptions(o.counter); |
| 271 checkDataAccessOptions(o.dataAccess); | 271 checkDataAccessOptions(o.dataAccess); |
| 272 } | 272 } |
| 273 buildCounterLogConfig--; | 273 buildCounterLogConfig--; |
| 274 } | 274 } |
| 275 | 275 |
| 276 buildUnnamed2304() { | 276 buildUnnamed2629() { |
| 277 var o = new core.List<api.Binding>(); | 277 var o = new core.List<api.Binding>(); |
| 278 o.add(buildBinding()); | 278 o.add(buildBinding()); |
| 279 o.add(buildBinding()); | 279 o.add(buildBinding()); |
| 280 return o; | 280 return o; |
| 281 } | 281 } |
| 282 | 282 |
| 283 checkUnnamed2304(core.List<api.Binding> o) { | 283 checkUnnamed2629(core.List<api.Binding> o) { |
| 284 unittest.expect(o, unittest.hasLength(2)); | 284 unittest.expect(o, unittest.hasLength(2)); |
| 285 checkBinding(o[0]); | 285 checkBinding(o[0]); |
| 286 checkBinding(o[1]); | 286 checkBinding(o[1]); |
| 287 } | 287 } |
| 288 | 288 |
| 289 buildUnnamed2305() { | 289 buildUnnamed2630() { |
| 290 var o = new core.List<api.Rule>(); | 290 var o = new core.List<api.Rule>(); |
| 291 o.add(buildRule()); | 291 o.add(buildRule()); |
| 292 o.add(buildRule()); | 292 o.add(buildRule()); |
| 293 return o; | 293 return o; |
| 294 } | 294 } |
| 295 | 295 |
| 296 checkUnnamed2305(core.List<api.Rule> o) { | 296 checkUnnamed2630(core.List<api.Rule> o) { |
| 297 unittest.expect(o, unittest.hasLength(2)); | 297 unittest.expect(o, unittest.hasLength(2)); |
| 298 checkRule(o[0]); | 298 checkRule(o[0]); |
| 299 checkRule(o[1]); | 299 checkRule(o[1]); |
| 300 } | 300 } |
| 301 | 301 |
| 302 core.int buildCounterPolicy = 0; | 302 core.int buildCounterPolicy = 0; |
| 303 buildPolicy() { | 303 buildPolicy() { |
| 304 var o = new api.Policy(); | 304 var o = new api.Policy(); |
| 305 buildCounterPolicy++; | 305 buildCounterPolicy++; |
| 306 if (buildCounterPolicy < 3) { | 306 if (buildCounterPolicy < 3) { |
| 307 o.bindings = buildUnnamed2304(); | 307 o.bindings = buildUnnamed2629(); |
| 308 o.etag = "foo"; | 308 o.etag = "foo"; |
| 309 o.rules = buildUnnamed2305(); | 309 o.rules = buildUnnamed2630(); |
| 310 o.version = 42; | 310 o.version = 42; |
| 311 } | 311 } |
| 312 buildCounterPolicy--; | 312 buildCounterPolicy--; |
| 313 return o; | 313 return o; |
| 314 } | 314 } |
| 315 | 315 |
| 316 checkPolicy(api.Policy o) { | 316 checkPolicy(api.Policy o) { |
| 317 buildCounterPolicy++; | 317 buildCounterPolicy++; |
| 318 if (buildCounterPolicy < 3) { | 318 if (buildCounterPolicy < 3) { |
| 319 checkUnnamed2304(o.bindings); | 319 checkUnnamed2629(o.bindings); |
| 320 unittest.expect(o.etag, unittest.equals('foo')); | 320 unittest.expect(o.etag, unittest.equals('foo')); |
| 321 checkUnnamed2305(o.rules); | 321 checkUnnamed2630(o.rules); |
| 322 unittest.expect(o.version, unittest.equals(42)); | 322 unittest.expect(o.version, unittest.equals(42)); |
| 323 } | 323 } |
| 324 buildCounterPolicy--; | 324 buildCounterPolicy--; |
| 325 } | 325 } |
| 326 | 326 |
| 327 buildUnnamed2306() { | 327 buildUnnamed2631() { |
| 328 var o = new core.Map<core.String, core.String>(); | 328 var o = new core.Map<core.String, core.String>(); |
| 329 o["x"] = "foo"; | 329 o["x"] = "foo"; |
| 330 o["y"] = "foo"; | 330 o["y"] = "foo"; |
| 331 return o; | 331 return o; |
| 332 } | 332 } |
| 333 | 333 |
| 334 checkUnnamed2306(core.Map<core.String, core.String> o) { | 334 checkUnnamed2631(core.Map<core.String, core.String> o) { |
| 335 unittest.expect(o, unittest.hasLength(2)); | 335 unittest.expect(o, unittest.hasLength(2)); |
| 336 unittest.expect(o["x"], unittest.equals('foo')); | 336 unittest.expect(o["x"], unittest.equals('foo')); |
| 337 unittest.expect(o["y"], unittest.equals('foo')); | 337 unittest.expect(o["y"], unittest.equals('foo')); |
| 338 } | 338 } |
| 339 | 339 |
| 340 core.int buildCounterProject = 0; | 340 core.int buildCounterProject = 0; |
| 341 buildProject() { | 341 buildProject() { |
| 342 var o = new api.Project(); | 342 var o = new api.Project(); |
| 343 buildCounterProject++; | 343 buildCounterProject++; |
| 344 if (buildCounterProject < 3) { | 344 if (buildCounterProject < 3) { |
| 345 o.createTime = "foo"; | 345 o.createTime = "foo"; |
| 346 o.labels = buildUnnamed2306(); | 346 o.labels = buildUnnamed2631(); |
| 347 o.lifecycleState = "foo"; | 347 o.lifecycleState = "foo"; |
| 348 o.name = "foo"; | 348 o.name = "foo"; |
| 349 o.projectId = "foo"; | 349 o.projectId = "foo"; |
| 350 o.projectNumber = "foo"; | 350 o.projectNumber = "foo"; |
| 351 } | 351 } |
| 352 buildCounterProject--; | 352 buildCounterProject--; |
| 353 return o; | 353 return o; |
| 354 } | 354 } |
| 355 | 355 |
| 356 checkProject(api.Project o) { | 356 checkProject(api.Project o) { |
| 357 buildCounterProject++; | 357 buildCounterProject++; |
| 358 if (buildCounterProject < 3) { | 358 if (buildCounterProject < 3) { |
| 359 unittest.expect(o.createTime, unittest.equals('foo')); | 359 unittest.expect(o.createTime, unittest.equals('foo')); |
| 360 checkUnnamed2306(o.labels); | 360 checkUnnamed2631(o.labels); |
| 361 unittest.expect(o.lifecycleState, unittest.equals('foo')); | 361 unittest.expect(o.lifecycleState, unittest.equals('foo')); |
| 362 unittest.expect(o.name, unittest.equals('foo')); | 362 unittest.expect(o.name, unittest.equals('foo')); |
| 363 unittest.expect(o.projectId, unittest.equals('foo')); | 363 unittest.expect(o.projectId, unittest.equals('foo')); |
| 364 unittest.expect(o.projectNumber, unittest.equals('foo')); | 364 unittest.expect(o.projectNumber, unittest.equals('foo')); |
| 365 } | 365 } |
| 366 buildCounterProject--; | 366 buildCounterProject--; |
| 367 } | 367 } |
| 368 | 368 |
| 369 buildUnnamed2307() { | 369 buildUnnamed2632() { |
| 370 var o = new core.List<api.Condition>(); | 370 var o = new core.List<api.Condition>(); |
| 371 o.add(buildCondition()); | 371 o.add(buildCondition()); |
| 372 o.add(buildCondition()); | 372 o.add(buildCondition()); |
| 373 return o; | 373 return o; |
| 374 } | 374 } |
| 375 | 375 |
| 376 checkUnnamed2307(core.List<api.Condition> o) { | 376 checkUnnamed2632(core.List<api.Condition> o) { |
| 377 unittest.expect(o, unittest.hasLength(2)); | 377 unittest.expect(o, unittest.hasLength(2)); |
| 378 checkCondition(o[0]); | 378 checkCondition(o[0]); |
| 379 checkCondition(o[1]); | 379 checkCondition(o[1]); |
| 380 } | 380 } |
| 381 | 381 |
| 382 buildUnnamed2308() { | 382 buildUnnamed2633() { |
| 383 var o = new core.List<core.String>(); | 383 var o = new core.List<core.String>(); |
| 384 o.add("foo"); | 384 o.add("foo"); |
| 385 o.add("foo"); | 385 o.add("foo"); |
| 386 return o; | 386 return o; |
| 387 } | 387 } |
| 388 | 388 |
| 389 checkUnnamed2308(core.List<core.String> o) { | 389 checkUnnamed2633(core.List<core.String> o) { |
| 390 unittest.expect(o, unittest.hasLength(2)); | 390 unittest.expect(o, unittest.hasLength(2)); |
| 391 unittest.expect(o[0], unittest.equals('foo')); | 391 unittest.expect(o[0], unittest.equals('foo')); |
| 392 unittest.expect(o[1], unittest.equals('foo')); | 392 unittest.expect(o[1], unittest.equals('foo')); |
| 393 } | 393 } |
| 394 | 394 |
| 395 buildUnnamed2309() { | 395 buildUnnamed2634() { |
| 396 var o = new core.List<api.LogConfig>(); | 396 var o = new core.List<api.LogConfig>(); |
| 397 o.add(buildLogConfig()); | 397 o.add(buildLogConfig()); |
| 398 o.add(buildLogConfig()); | 398 o.add(buildLogConfig()); |
| 399 return o; | 399 return o; |
| 400 } | 400 } |
| 401 | 401 |
| 402 checkUnnamed2309(core.List<api.LogConfig> o) { | 402 checkUnnamed2634(core.List<api.LogConfig> o) { |
| 403 unittest.expect(o, unittest.hasLength(2)); | 403 unittest.expect(o, unittest.hasLength(2)); |
| 404 checkLogConfig(o[0]); | 404 checkLogConfig(o[0]); |
| 405 checkLogConfig(o[1]); | 405 checkLogConfig(o[1]); |
| 406 } | 406 } |
| 407 | 407 |
| 408 buildUnnamed2310() { | 408 buildUnnamed2635() { |
| 409 var o = new core.List<core.String>(); | 409 var o = new core.List<core.String>(); |
| 410 o.add("foo"); | 410 o.add("foo"); |
| 411 o.add("foo"); | 411 o.add("foo"); |
| 412 return o; | 412 return o; |
| 413 } | 413 } |
| 414 | 414 |
| 415 checkUnnamed2310(core.List<core.String> o) { | 415 checkUnnamed2635(core.List<core.String> o) { |
| 416 unittest.expect(o, unittest.hasLength(2)); | 416 unittest.expect(o, unittest.hasLength(2)); |
| 417 unittest.expect(o[0], unittest.equals('foo')); | 417 unittest.expect(o[0], unittest.equals('foo')); |
| 418 unittest.expect(o[1], unittest.equals('foo')); | 418 unittest.expect(o[1], unittest.equals('foo')); |
| 419 } | 419 } |
| 420 | 420 |
| 421 buildUnnamed2311() { | 421 buildUnnamed2636() { |
| 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 checkUnnamed2311(core.List<core.String> o) { | 428 checkUnnamed2636(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 core.int buildCounterRule = 0; | 434 core.int buildCounterRule = 0; |
| 435 buildRule() { | 435 buildRule() { |
| 436 var o = new api.Rule(); | 436 var o = new api.Rule(); |
| 437 buildCounterRule++; | 437 buildCounterRule++; |
| 438 if (buildCounterRule < 3) { | 438 if (buildCounterRule < 3) { |
| 439 o.action = "foo"; | 439 o.action = "foo"; |
| 440 o.conditions = buildUnnamed2307(); | 440 o.conditions = buildUnnamed2632(); |
| 441 o.description = "foo"; | 441 o.description = "foo"; |
| 442 o.in_ = buildUnnamed2308(); | 442 o.in_ = buildUnnamed2633(); |
| 443 o.logConfig = buildUnnamed2309(); | 443 o.logConfig = buildUnnamed2634(); |
| 444 o.notIn = buildUnnamed2310(); | 444 o.notIn = buildUnnamed2635(); |
| 445 o.permissions = buildUnnamed2311(); | 445 o.permissions = buildUnnamed2636(); |
| 446 } | 446 } |
| 447 buildCounterRule--; | 447 buildCounterRule--; |
| 448 return o; | 448 return o; |
| 449 } | 449 } |
| 450 | 450 |
| 451 checkRule(api.Rule o) { | 451 checkRule(api.Rule o) { |
| 452 buildCounterRule++; | 452 buildCounterRule++; |
| 453 if (buildCounterRule < 3) { | 453 if (buildCounterRule < 3) { |
| 454 unittest.expect(o.action, unittest.equals('foo')); | 454 unittest.expect(o.action, unittest.equals('foo')); |
| 455 checkUnnamed2307(o.conditions); | 455 checkUnnamed2632(o.conditions); |
| 456 unittest.expect(o.description, unittest.equals('foo')); | 456 unittest.expect(o.description, unittest.equals('foo')); |
| 457 checkUnnamed2308(o.in_); | 457 checkUnnamed2633(o.in_); |
| 458 checkUnnamed2309(o.logConfig); | 458 checkUnnamed2634(o.logConfig); |
| 459 checkUnnamed2310(o.notIn); | 459 checkUnnamed2635(o.notIn); |
| 460 checkUnnamed2311(o.permissions); | 460 checkUnnamed2636(o.permissions); |
| 461 } | 461 } |
| 462 buildCounterRule--; | 462 buildCounterRule--; |
| 463 } | 463 } |
| 464 | 464 |
| 465 core.int buildCounterSetIamPolicyRequest = 0; | 465 core.int buildCounterSetIamPolicyRequest = 0; |
| 466 buildSetIamPolicyRequest() { | 466 buildSetIamPolicyRequest() { |
| 467 var o = new api.SetIamPolicyRequest(); | 467 var o = new api.SetIamPolicyRequest(); |
| 468 buildCounterSetIamPolicyRequest++; | 468 buildCounterSetIamPolicyRequest++; |
| 469 if (buildCounterSetIamPolicyRequest < 3) { | 469 if (buildCounterSetIamPolicyRequest < 3) { |
| 470 o.policy = buildPolicy(); | 470 o.policy = buildPolicy(); |
| 471 } | 471 } |
| 472 buildCounterSetIamPolicyRequest--; | 472 buildCounterSetIamPolicyRequest--; |
| 473 return o; | 473 return o; |
| 474 } | 474 } |
| 475 | 475 |
| 476 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { | 476 checkSetIamPolicyRequest(api.SetIamPolicyRequest o) { |
| 477 buildCounterSetIamPolicyRequest++; | 477 buildCounterSetIamPolicyRequest++; |
| 478 if (buildCounterSetIamPolicyRequest < 3) { | 478 if (buildCounterSetIamPolicyRequest < 3) { |
| 479 checkPolicy(o.policy); | 479 checkPolicy(o.policy); |
| 480 } | 480 } |
| 481 buildCounterSetIamPolicyRequest--; | 481 buildCounterSetIamPolicyRequest--; |
| 482 } | 482 } |
| 483 | 483 |
| 484 buildUnnamed2312() { | 484 buildUnnamed2637() { |
| 485 var o = new core.List<core.String>(); | 485 var o = new core.List<core.String>(); |
| 486 o.add("foo"); | 486 o.add("foo"); |
| 487 o.add("foo"); | 487 o.add("foo"); |
| 488 return o; | 488 return o; |
| 489 } | 489 } |
| 490 | 490 |
| 491 checkUnnamed2312(core.List<core.String> o) { | 491 checkUnnamed2637(core.List<core.String> o) { |
| 492 unittest.expect(o, unittest.hasLength(2)); | 492 unittest.expect(o, unittest.hasLength(2)); |
| 493 unittest.expect(o[0], unittest.equals('foo')); | 493 unittest.expect(o[0], unittest.equals('foo')); |
| 494 unittest.expect(o[1], unittest.equals('foo')); | 494 unittest.expect(o[1], unittest.equals('foo')); |
| 495 } | 495 } |
| 496 | 496 |
| 497 core.int buildCounterTestIamPermissionsRequest = 0; | 497 core.int buildCounterTestIamPermissionsRequest = 0; |
| 498 buildTestIamPermissionsRequest() { | 498 buildTestIamPermissionsRequest() { |
| 499 var o = new api.TestIamPermissionsRequest(); | 499 var o = new api.TestIamPermissionsRequest(); |
| 500 buildCounterTestIamPermissionsRequest++; | 500 buildCounterTestIamPermissionsRequest++; |
| 501 if (buildCounterTestIamPermissionsRequest < 3) { | 501 if (buildCounterTestIamPermissionsRequest < 3) { |
| 502 o.permissions = buildUnnamed2312(); | 502 o.permissions = buildUnnamed2637(); |
| 503 } | 503 } |
| 504 buildCounterTestIamPermissionsRequest--; | 504 buildCounterTestIamPermissionsRequest--; |
| 505 return o; | 505 return o; |
| 506 } | 506 } |
| 507 | 507 |
| 508 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { | 508 checkTestIamPermissionsRequest(api.TestIamPermissionsRequest o) { |
| 509 buildCounterTestIamPermissionsRequest++; | 509 buildCounterTestIamPermissionsRequest++; |
| 510 if (buildCounterTestIamPermissionsRequest < 3) { | 510 if (buildCounterTestIamPermissionsRequest < 3) { |
| 511 checkUnnamed2312(o.permissions); | 511 checkUnnamed2637(o.permissions); |
| 512 } | 512 } |
| 513 buildCounterTestIamPermissionsRequest--; | 513 buildCounterTestIamPermissionsRequest--; |
| 514 } | 514 } |
| 515 | 515 |
| 516 buildUnnamed2313() { | 516 buildUnnamed2638() { |
| 517 var o = new core.List<core.String>(); | 517 var o = new core.List<core.String>(); |
| 518 o.add("foo"); | 518 o.add("foo"); |
| 519 o.add("foo"); | 519 o.add("foo"); |
| 520 return o; | 520 return o; |
| 521 } | 521 } |
| 522 | 522 |
| 523 checkUnnamed2313(core.List<core.String> o) { | 523 checkUnnamed2638(core.List<core.String> o) { |
| 524 unittest.expect(o, unittest.hasLength(2)); | 524 unittest.expect(o, unittest.hasLength(2)); |
| 525 unittest.expect(o[0], unittest.equals('foo')); | 525 unittest.expect(o[0], unittest.equals('foo')); |
| 526 unittest.expect(o[1], unittest.equals('foo')); | 526 unittest.expect(o[1], unittest.equals('foo')); |
| 527 } | 527 } |
| 528 | 528 |
| 529 core.int buildCounterTestIamPermissionsResponse = 0; | 529 core.int buildCounterTestIamPermissionsResponse = 0; |
| 530 buildTestIamPermissionsResponse() { | 530 buildTestIamPermissionsResponse() { |
| 531 var o = new api.TestIamPermissionsResponse(); | 531 var o = new api.TestIamPermissionsResponse(); |
| 532 buildCounterTestIamPermissionsResponse++; | 532 buildCounterTestIamPermissionsResponse++; |
| 533 if (buildCounterTestIamPermissionsResponse < 3) { | 533 if (buildCounterTestIamPermissionsResponse < 3) { |
| 534 o.permissions = buildUnnamed2313(); | 534 o.permissions = buildUnnamed2638(); |
| 535 } | 535 } |
| 536 buildCounterTestIamPermissionsResponse--; | 536 buildCounterTestIamPermissionsResponse--; |
| 537 return o; | 537 return o; |
| 538 } | 538 } |
| 539 | 539 |
| 540 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { | 540 checkTestIamPermissionsResponse(api.TestIamPermissionsResponse o) { |
| 541 buildCounterTestIamPermissionsResponse++; | 541 buildCounterTestIamPermissionsResponse++; |
| 542 if (buildCounterTestIamPermissionsResponse < 3) { | 542 if (buildCounterTestIamPermissionsResponse < 3) { |
| 543 checkUnnamed2313(o.permissions); | 543 checkUnnamed2638(o.permissions); |
| 544 } | 544 } |
| 545 buildCounterTestIamPermissionsResponse--; | 545 buildCounterTestIamPermissionsResponse--; |
| 546 } | 546 } |
| 547 | 547 |
| 548 | 548 |
| 549 main() { | 549 main() { |
| 550 unittest.group("obj-schema-Binding", () { | 550 unittest.group("obj-schema-Binding", () { |
| 551 unittest.test("to-json--from-json", () { | 551 unittest.test("to-json--from-json", () { |
| 552 var o = buildBinding(); | 552 var o = buildBinding(); |
| 553 var od = new api.Binding.fromJson(o.toJson()); | 553 var od = new api.Binding.fromJson(o.toJson()); |
| (...skipping 584 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1138 res.update(arg_request, arg_projectId).then(unittest.expectAsync(((api.Pro
ject response) { | 1138 res.update(arg_request, arg_projectId).then(unittest.expectAsync(((api.Pro
ject response) { |
| 1139 checkProject(response); | 1139 checkProject(response); |
| 1140 }))); | 1140 }))); |
| 1141 }); | 1141 }); |
| 1142 | 1142 |
| 1143 }); | 1143 }); |
| 1144 | 1144 |
| 1145 | 1145 |
| 1146 } | 1146 } |
| 1147 | 1147 |
| OLD | NEW |