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

Side by Side Diff: generated/googleapis_beta/test/appengine/v1beta_test.dart

Issue 2936613002: Api-Roll 50: 2017-06-12 (Closed)
Patch Set: Created 3 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 library googleapis_beta.appengine.v1beta.test; 1 library googleapis_beta.appengine.v1beta.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:test/test.dart' as unittest;
11 11
12 import 'package:googleapis_beta/appengine/v1beta.dart' as api; 12 import 'package:googleapis_beta/appengine/v1beta.dart' as api;
13 13
14 class HttpServerMock extends http.BaseClient { 14 class HttpServerMock extends http.BaseClient {
15 core.Function _callback; 15 core.Function _callback;
16 core.bool _expectJson; 16 core.bool _expectJson;
17 17
18 void register(core.Function callback, core.bool expectJson) { 18 void register(core.Function callback, core.bool expectJson) {
19 _callback = callback; 19 _callback = callback;
20 _expectJson = expectJson; 20 _expectJson = expectJson;
(...skipping 18 matching lines...) Expand all
39 } else { 39 } else {
40 return stream.toBytes().then((data) { 40 return stream.toBytes().then((data) {
41 return _callback(request, data); 41 return _callback(request, data);
42 }); 42 });
43 } 43 }
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<core.String, core.String> headers, core.String bod y) {
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 core.int buildCounterApiConfigHandler = 0; 54 core.int buildCounterApiConfigHandler = 0;
55 buildApiConfigHandler() { 55 buildApiConfigHandler() {
56 var o = new api.ApiConfigHandler(); 56 var o = new api.ApiConfigHandler();
57 buildCounterApiConfigHandler++; 57 buildCounterApiConfigHandler++;
58 if (buildCounterApiConfigHandler < 3) { 58 if (buildCounterApiConfigHandler < 3) {
59 o.authFailAction = "foo"; 59 o.authFailAction = "foo";
(...skipping 30 matching lines...) Expand all
90 } 90 }
91 91
92 checkApiEndpointHandler(api.ApiEndpointHandler o) { 92 checkApiEndpointHandler(api.ApiEndpointHandler o) {
93 buildCounterApiEndpointHandler++; 93 buildCounterApiEndpointHandler++;
94 if (buildCounterApiEndpointHandler < 3) { 94 if (buildCounterApiEndpointHandler < 3) {
95 unittest.expect(o.scriptPath, unittest.equals('foo')); 95 unittest.expect(o.scriptPath, unittest.equals('foo'));
96 } 96 }
97 buildCounterApiEndpointHandler--; 97 buildCounterApiEndpointHandler--;
98 } 98 }
99 99
100 buildUnnamed3959() { 100 buildUnnamed3449() {
101 var o = new core.List<api.UrlDispatchRule>(); 101 var o = new core.List<api.UrlDispatchRule>();
102 o.add(buildUrlDispatchRule()); 102 o.add(buildUrlDispatchRule());
103 o.add(buildUrlDispatchRule()); 103 o.add(buildUrlDispatchRule());
104 return o; 104 return o;
105 } 105 }
106 106
107 checkUnnamed3959(core.List<api.UrlDispatchRule> o) { 107 checkUnnamed3449(core.List<api.UrlDispatchRule> o) {
108 unittest.expect(o, unittest.hasLength(2)); 108 unittest.expect(o, unittest.hasLength(2));
109 checkUrlDispatchRule(o[0]); 109 checkUrlDispatchRule(o[0]);
110 checkUrlDispatchRule(o[1]); 110 checkUrlDispatchRule(o[1]);
111 } 111 }
112 112
113 core.int buildCounterApplication = 0; 113 core.int buildCounterApplication = 0;
114 buildApplication() { 114 buildApplication() {
115 var o = new api.Application(); 115 var o = new api.Application();
116 buildCounterApplication++; 116 buildCounterApplication++;
117 if (buildCounterApplication < 3) { 117 if (buildCounterApplication < 3) {
118 o.authDomain = "foo"; 118 o.authDomain = "foo";
119 o.codeBucket = "foo"; 119 o.codeBucket = "foo";
120 o.defaultBucket = "foo"; 120 o.defaultBucket = "foo";
121 o.defaultCookieExpiration = "foo"; 121 o.defaultCookieExpiration = "foo";
122 o.defaultHostname = "foo"; 122 o.defaultHostname = "foo";
123 o.dispatchRules = buildUnnamed3959(); 123 o.dispatchRules = buildUnnamed3449();
124 o.gcrDomain = "foo"; 124 o.gcrDomain = "foo";
125 o.iap = buildIdentityAwareProxy(); 125 o.iap = buildIdentityAwareProxy();
126 o.id = "foo"; 126 o.id = "foo";
127 o.locationId = "foo"; 127 o.locationId = "foo";
128 o.name = "foo"; 128 o.name = "foo";
129 o.servingStatus = "foo"; 129 o.servingStatus = "foo";
130 } 130 }
131 buildCounterApplication--; 131 buildCounterApplication--;
132 return o; 132 return o;
133 } 133 }
134 134
135 checkApplication(api.Application o) { 135 checkApplication(api.Application o) {
136 buildCounterApplication++; 136 buildCounterApplication++;
137 if (buildCounterApplication < 3) { 137 if (buildCounterApplication < 3) {
138 unittest.expect(o.authDomain, unittest.equals('foo')); 138 unittest.expect(o.authDomain, unittest.equals('foo'));
139 unittest.expect(o.codeBucket, unittest.equals('foo')); 139 unittest.expect(o.codeBucket, unittest.equals('foo'));
140 unittest.expect(o.defaultBucket, unittest.equals('foo')); 140 unittest.expect(o.defaultBucket, unittest.equals('foo'));
141 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo')); 141 unittest.expect(o.defaultCookieExpiration, unittest.equals('foo'));
142 unittest.expect(o.defaultHostname, unittest.equals('foo')); 142 unittest.expect(o.defaultHostname, unittest.equals('foo'));
143 checkUnnamed3959(o.dispatchRules); 143 checkUnnamed3449(o.dispatchRules);
144 unittest.expect(o.gcrDomain, unittest.equals('foo')); 144 unittest.expect(o.gcrDomain, unittest.equals('foo'));
145 checkIdentityAwareProxy(o.iap); 145 checkIdentityAwareProxy(o.iap);
146 unittest.expect(o.id, unittest.equals('foo')); 146 unittest.expect(o.id, unittest.equals('foo'));
147 unittest.expect(o.locationId, unittest.equals('foo')); 147 unittest.expect(o.locationId, unittest.equals('foo'));
148 unittest.expect(o.name, unittest.equals('foo')); 148 unittest.expect(o.name, unittest.equals('foo'));
149 unittest.expect(o.servingStatus, unittest.equals('foo')); 149 unittest.expect(o.servingStatus, unittest.equals('foo'));
150 } 150 }
151 buildCounterApplication--; 151 buildCounterApplication--;
152 } 152 }
153 153
154 buildUnnamed3960() { 154 buildUnnamed3450() {
155 var o = new core.List<core.String>(); 155 var o = new core.List<core.String>();
156 o.add("foo"); 156 o.add("foo");
157 o.add("foo"); 157 o.add("foo");
158 return o; 158 return o;
159 } 159 }
160 160
161 checkUnnamed3960(core.List<core.String> o) { 161 checkUnnamed3450(core.List<core.String> o) {
162 unittest.expect(o, unittest.hasLength(2)); 162 unittest.expect(o, unittest.hasLength(2));
163 unittest.expect(o[0], unittest.equals('foo')); 163 unittest.expect(o[0], unittest.equals('foo'));
164 unittest.expect(o[1], unittest.equals('foo')); 164 unittest.expect(o[1], unittest.equals('foo'));
165 } 165 }
166 166
167 buildUnnamed3961() { 167 buildUnnamed3451() {
168 var o = new core.List<core.String>(); 168 var o = new core.List<core.String>();
169 o.add("foo"); 169 o.add("foo");
170 o.add("foo"); 170 o.add("foo");
171 return o; 171 return o;
172 } 172 }
173 173
174 checkUnnamed3961(core.List<core.String> o) { 174 checkUnnamed3451(core.List<core.String> o) {
175 unittest.expect(o, unittest.hasLength(2)); 175 unittest.expect(o, unittest.hasLength(2));
176 unittest.expect(o[0], unittest.equals('foo')); 176 unittest.expect(o[0], unittest.equals('foo'));
177 unittest.expect(o[1], unittest.equals('foo')); 177 unittest.expect(o[1], unittest.equals('foo'));
178 } 178 }
179 179
180 core.int buildCounterAuthorizedCertificate = 0; 180 core.int buildCounterAuthorizedCertificate = 0;
181 buildAuthorizedCertificate() { 181 buildAuthorizedCertificate() {
182 var o = new api.AuthorizedCertificate(); 182 var o = new api.AuthorizedCertificate();
183 buildCounterAuthorizedCertificate++; 183 buildCounterAuthorizedCertificate++;
184 if (buildCounterAuthorizedCertificate < 3) { 184 if (buildCounterAuthorizedCertificate < 3) {
185 o.certificateRawData = buildCertificateRawData(); 185 o.certificateRawData = buildCertificateRawData();
186 o.displayName = "foo"; 186 o.displayName = "foo";
187 o.domainMappingsCount = 42; 187 o.domainMappingsCount = 42;
188 o.domainNames = buildUnnamed3960(); 188 o.domainNames = buildUnnamed3450();
189 o.expireTime = "foo"; 189 o.expireTime = "foo";
190 o.id = "foo"; 190 o.id = "foo";
191 o.name = "foo"; 191 o.name = "foo";
192 o.visibleDomainMappings = buildUnnamed3961(); 192 o.visibleDomainMappings = buildUnnamed3451();
193 } 193 }
194 buildCounterAuthorizedCertificate--; 194 buildCounterAuthorizedCertificate--;
195 return o; 195 return o;
196 } 196 }
197 197
198 checkAuthorizedCertificate(api.AuthorizedCertificate o) { 198 checkAuthorizedCertificate(api.AuthorizedCertificate o) {
199 buildCounterAuthorizedCertificate++; 199 buildCounterAuthorizedCertificate++;
200 if (buildCounterAuthorizedCertificate < 3) { 200 if (buildCounterAuthorizedCertificate < 3) {
201 checkCertificateRawData(o.certificateRawData); 201 checkCertificateRawData(o.certificateRawData);
202 unittest.expect(o.displayName, unittest.equals('foo')); 202 unittest.expect(o.displayName, unittest.equals('foo'));
203 unittest.expect(o.domainMappingsCount, unittest.equals(42)); 203 unittest.expect(o.domainMappingsCount, unittest.equals(42));
204 checkUnnamed3960(o.domainNames); 204 checkUnnamed3450(o.domainNames);
205 unittest.expect(o.expireTime, unittest.equals('foo')); 205 unittest.expect(o.expireTime, unittest.equals('foo'));
206 unittest.expect(o.id, unittest.equals('foo')); 206 unittest.expect(o.id, unittest.equals('foo'));
207 unittest.expect(o.name, unittest.equals('foo')); 207 unittest.expect(o.name, unittest.equals('foo'));
208 checkUnnamed3961(o.visibleDomainMappings); 208 checkUnnamed3451(o.visibleDomainMappings);
209 } 209 }
210 buildCounterAuthorizedCertificate--; 210 buildCounterAuthorizedCertificate--;
211 } 211 }
212 212
213 core.int buildCounterAuthorizedDomain = 0; 213 core.int buildCounterAuthorizedDomain = 0;
214 buildAuthorizedDomain() { 214 buildAuthorizedDomain() {
215 var o = new api.AuthorizedDomain(); 215 var o = new api.AuthorizedDomain();
216 buildCounterAuthorizedDomain++; 216 buildCounterAuthorizedDomain++;
217 if (buildCounterAuthorizedDomain < 3) { 217 if (buildCounterAuthorizedDomain < 3) {
218 o.id = "foo"; 218 o.id = "foo";
(...skipping 22 matching lines...) Expand all
241 o.diskUtilization = buildDiskUtilization(); 241 o.diskUtilization = buildDiskUtilization();
242 o.maxConcurrentRequests = 42; 242 o.maxConcurrentRequests = 42;
243 o.maxIdleInstances = 42; 243 o.maxIdleInstances = 42;
244 o.maxPendingLatency = "foo"; 244 o.maxPendingLatency = "foo";
245 o.maxTotalInstances = 42; 245 o.maxTotalInstances = 42;
246 o.minIdleInstances = 42; 246 o.minIdleInstances = 42;
247 o.minPendingLatency = "foo"; 247 o.minPendingLatency = "foo";
248 o.minTotalInstances = 42; 248 o.minTotalInstances = 42;
249 o.networkUtilization = buildNetworkUtilization(); 249 o.networkUtilization = buildNetworkUtilization();
250 o.requestUtilization = buildRequestUtilization(); 250 o.requestUtilization = buildRequestUtilization();
251 o.standardSchedulerSettings = buildStandardSchedulerSettings();
251 } 252 }
252 buildCounterAutomaticScaling--; 253 buildCounterAutomaticScaling--;
253 return o; 254 return o;
254 } 255 }
255 256
256 checkAutomaticScaling(api.AutomaticScaling o) { 257 checkAutomaticScaling(api.AutomaticScaling o) {
257 buildCounterAutomaticScaling++; 258 buildCounterAutomaticScaling++;
258 if (buildCounterAutomaticScaling < 3) { 259 if (buildCounterAutomaticScaling < 3) {
259 unittest.expect(o.coolDownPeriod, unittest.equals('foo')); 260 unittest.expect(o.coolDownPeriod, unittest.equals('foo'));
260 checkCpuUtilization(o.cpuUtilization); 261 checkCpuUtilization(o.cpuUtilization);
261 checkDiskUtilization(o.diskUtilization); 262 checkDiskUtilization(o.diskUtilization);
262 unittest.expect(o.maxConcurrentRequests, unittest.equals(42)); 263 unittest.expect(o.maxConcurrentRequests, unittest.equals(42));
263 unittest.expect(o.maxIdleInstances, unittest.equals(42)); 264 unittest.expect(o.maxIdleInstances, unittest.equals(42));
264 unittest.expect(o.maxPendingLatency, unittest.equals('foo')); 265 unittest.expect(o.maxPendingLatency, unittest.equals('foo'));
265 unittest.expect(o.maxTotalInstances, unittest.equals(42)); 266 unittest.expect(o.maxTotalInstances, unittest.equals(42));
266 unittest.expect(o.minIdleInstances, unittest.equals(42)); 267 unittest.expect(o.minIdleInstances, unittest.equals(42));
267 unittest.expect(o.minPendingLatency, unittest.equals('foo')); 268 unittest.expect(o.minPendingLatency, unittest.equals('foo'));
268 unittest.expect(o.minTotalInstances, unittest.equals(42)); 269 unittest.expect(o.minTotalInstances, unittest.equals(42));
269 checkNetworkUtilization(o.networkUtilization); 270 checkNetworkUtilization(o.networkUtilization);
270 checkRequestUtilization(o.requestUtilization); 271 checkRequestUtilization(o.requestUtilization);
272 checkStandardSchedulerSettings(o.standardSchedulerSettings);
271 } 273 }
272 buildCounterAutomaticScaling--; 274 buildCounterAutomaticScaling--;
273 } 275 }
274 276
275 core.int buildCounterBasicScaling = 0; 277 core.int buildCounterBasicScaling = 0;
276 buildBasicScaling() { 278 buildBasicScaling() {
277 var o = new api.BasicScaling(); 279 var o = new api.BasicScaling();
278 buildCounterBasicScaling++; 280 buildCounterBasicScaling++;
279 if (buildCounterBasicScaling < 3) { 281 if (buildCounterBasicScaling < 3) {
280 o.idleTimeout = "foo"; 282 o.idleTimeout = "foo";
281 o.maxInstances = 42; 283 o.maxInstances = 42;
282 } 284 }
283 buildCounterBasicScaling--; 285 buildCounterBasicScaling--;
284 return o; 286 return o;
285 } 287 }
286 288
287 checkBasicScaling(api.BasicScaling o) { 289 checkBasicScaling(api.BasicScaling o) {
288 buildCounterBasicScaling++; 290 buildCounterBasicScaling++;
289 if (buildCounterBasicScaling < 3) { 291 if (buildCounterBasicScaling < 3) {
290 unittest.expect(o.idleTimeout, unittest.equals('foo')); 292 unittest.expect(o.idleTimeout, unittest.equals('foo'));
291 unittest.expect(o.maxInstances, unittest.equals(42)); 293 unittest.expect(o.maxInstances, unittest.equals(42));
292 } 294 }
293 buildCounterBasicScaling--; 295 buildCounterBasicScaling--;
294 } 296 }
295 297
298 core.int buildCounterBuildInfo = 0;
299 buildBuildInfo() {
300 var o = new api.BuildInfo();
301 buildCounterBuildInfo++;
302 if (buildCounterBuildInfo < 3) {
303 o.cloudBuildId = "foo";
304 }
305 buildCounterBuildInfo--;
306 return o;
307 }
308
309 checkBuildInfo(api.BuildInfo o) {
310 buildCounterBuildInfo++;
311 if (buildCounterBuildInfo < 3) {
312 unittest.expect(o.cloudBuildId, unittest.equals('foo'));
313 }
314 buildCounterBuildInfo--;
315 }
316
296 core.int buildCounterCertificateRawData = 0; 317 core.int buildCounterCertificateRawData = 0;
297 buildCertificateRawData() { 318 buildCertificateRawData() {
298 var o = new api.CertificateRawData(); 319 var o = new api.CertificateRawData();
299 buildCounterCertificateRawData++; 320 buildCounterCertificateRawData++;
300 if (buildCounterCertificateRawData < 3) { 321 if (buildCounterCertificateRawData < 3) {
301 o.privateKey = "foo"; 322 o.privateKey = "foo";
302 o.publicCertificate = "foo"; 323 o.publicCertificate = "foo";
303 } 324 }
304 buildCounterCertificateRawData--; 325 buildCounterCertificateRawData--;
305 return o; 326 return o;
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
366 } 387 }
367 388
368 checkDebugInstanceRequest(api.DebugInstanceRequest o) { 389 checkDebugInstanceRequest(api.DebugInstanceRequest o) {
369 buildCounterDebugInstanceRequest++; 390 buildCounterDebugInstanceRequest++;
370 if (buildCounterDebugInstanceRequest < 3) { 391 if (buildCounterDebugInstanceRequest < 3) {
371 unittest.expect(o.sshKey, unittest.equals('foo')); 392 unittest.expect(o.sshKey, unittest.equals('foo'));
372 } 393 }
373 buildCounterDebugInstanceRequest--; 394 buildCounterDebugInstanceRequest--;
374 } 395 }
375 396
376 buildUnnamed3962() { 397 buildUnnamed3452() {
377 var o = new core.Map<core.String, api.FileInfo>(); 398 var o = new core.Map<core.String, api.FileInfo>();
378 o["x"] = buildFileInfo(); 399 o["x"] = buildFileInfo();
379 o["y"] = buildFileInfo(); 400 o["y"] = buildFileInfo();
380 return o; 401 return o;
381 } 402 }
382 403
383 checkUnnamed3962(core.Map<core.String, api.FileInfo> o) { 404 checkUnnamed3452(core.Map<core.String, api.FileInfo> o) {
384 unittest.expect(o, unittest.hasLength(2)); 405 unittest.expect(o, unittest.hasLength(2));
385 checkFileInfo(o["x"]); 406 checkFileInfo(o["x"]);
386 checkFileInfo(o["y"]); 407 checkFileInfo(o["y"]);
387 } 408 }
388 409
389 core.int buildCounterDeployment = 0; 410 core.int buildCounterDeployment = 0;
390 buildDeployment() { 411 buildDeployment() {
391 var o = new api.Deployment(); 412 var o = new api.Deployment();
392 buildCounterDeployment++; 413 buildCounterDeployment++;
393 if (buildCounterDeployment < 3) { 414 if (buildCounterDeployment < 3) {
415 o.build = buildBuildInfo();
394 o.container = buildContainerInfo(); 416 o.container = buildContainerInfo();
395 o.files = buildUnnamed3962(); 417 o.files = buildUnnamed3452();
396 o.zip = buildZipInfo(); 418 o.zip = buildZipInfo();
397 } 419 }
398 buildCounterDeployment--; 420 buildCounterDeployment--;
399 return o; 421 return o;
400 } 422 }
401 423
402 checkDeployment(api.Deployment o) { 424 checkDeployment(api.Deployment o) {
403 buildCounterDeployment++; 425 buildCounterDeployment++;
404 if (buildCounterDeployment < 3) { 426 if (buildCounterDeployment < 3) {
427 checkBuildInfo(o.build);
405 checkContainerInfo(o.container); 428 checkContainerInfo(o.container);
406 checkUnnamed3962(o.files); 429 checkUnnamed3452(o.files);
407 checkZipInfo(o.zip); 430 checkZipInfo(o.zip);
408 } 431 }
409 buildCounterDeployment--; 432 buildCounterDeployment--;
410 } 433 }
411 434
412 core.int buildCounterDiskUtilization = 0; 435 core.int buildCounterDiskUtilization = 0;
413 buildDiskUtilization() { 436 buildDiskUtilization() {
414 var o = new api.DiskUtilization(); 437 var o = new api.DiskUtilization();
415 buildCounterDiskUtilization++; 438 buildCounterDiskUtilization++;
416 if (buildCounterDiskUtilization < 3) { 439 if (buildCounterDiskUtilization < 3) {
(...skipping 10 matching lines...) Expand all
427 buildCounterDiskUtilization++; 450 buildCounterDiskUtilization++;
428 if (buildCounterDiskUtilization < 3) { 451 if (buildCounterDiskUtilization < 3) {
429 unittest.expect(o.targetReadBytesPerSecond, unittest.equals(42)); 452 unittest.expect(o.targetReadBytesPerSecond, unittest.equals(42));
430 unittest.expect(o.targetReadOpsPerSecond, unittest.equals(42)); 453 unittest.expect(o.targetReadOpsPerSecond, unittest.equals(42));
431 unittest.expect(o.targetWriteBytesPerSecond, unittest.equals(42)); 454 unittest.expect(o.targetWriteBytesPerSecond, unittest.equals(42));
432 unittest.expect(o.targetWriteOpsPerSecond, unittest.equals(42)); 455 unittest.expect(o.targetWriteOpsPerSecond, unittest.equals(42));
433 } 456 }
434 buildCounterDiskUtilization--; 457 buildCounterDiskUtilization--;
435 } 458 }
436 459
437 buildUnnamed3963() { 460 buildUnnamed3453() {
438 var o = new core.List<api.ResourceRecord>(); 461 var o = new core.List<api.ResourceRecord>();
439 o.add(buildResourceRecord()); 462 o.add(buildResourceRecord());
440 o.add(buildResourceRecord()); 463 o.add(buildResourceRecord());
441 return o; 464 return o;
442 } 465 }
443 466
444 checkUnnamed3963(core.List<api.ResourceRecord> o) { 467 checkUnnamed3453(core.List<api.ResourceRecord> o) {
445 unittest.expect(o, unittest.hasLength(2)); 468 unittest.expect(o, unittest.hasLength(2));
446 checkResourceRecord(o[0]); 469 checkResourceRecord(o[0]);
447 checkResourceRecord(o[1]); 470 checkResourceRecord(o[1]);
448 } 471 }
449 472
450 core.int buildCounterDomainMapping = 0; 473 core.int buildCounterDomainMapping = 0;
451 buildDomainMapping() { 474 buildDomainMapping() {
452 var o = new api.DomainMapping(); 475 var o = new api.DomainMapping();
453 buildCounterDomainMapping++; 476 buildCounterDomainMapping++;
454 if (buildCounterDomainMapping < 3) { 477 if (buildCounterDomainMapping < 3) {
455 o.id = "foo"; 478 o.id = "foo";
456 o.name = "foo"; 479 o.name = "foo";
457 o.resourceRecords = buildUnnamed3963(); 480 o.resourceRecords = buildUnnamed3453();
458 o.sslSettings = buildSslSettings(); 481 o.sslSettings = buildSslSettings();
459 } 482 }
460 buildCounterDomainMapping--; 483 buildCounterDomainMapping--;
461 return o; 484 return o;
462 } 485 }
463 486
464 checkDomainMapping(api.DomainMapping o) { 487 checkDomainMapping(api.DomainMapping o) {
465 buildCounterDomainMapping++; 488 buildCounterDomainMapping++;
466 if (buildCounterDomainMapping < 3) { 489 if (buildCounterDomainMapping < 3) {
467 unittest.expect(o.id, unittest.equals('foo')); 490 unittest.expect(o.id, unittest.equals('foo'));
468 unittest.expect(o.name, unittest.equals('foo')); 491 unittest.expect(o.name, unittest.equals('foo'));
469 checkUnnamed3963(o.resourceRecords); 492 checkUnnamed3453(o.resourceRecords);
470 checkSslSettings(o.sslSettings); 493 checkSslSettings(o.sslSettings);
471 } 494 }
472 buildCounterDomainMapping--; 495 buildCounterDomainMapping--;
473 } 496 }
474 497
475 core.int buildCounterEmpty = 0; 498 core.int buildCounterEmpty = 0;
476 buildEmpty() { 499 buildEmpty() {
477 var o = new api.Empty(); 500 var o = new api.Empty();
478 buildCounterEmpty++; 501 buildCounterEmpty++;
479 if (buildCounterEmpty < 3) { 502 if (buildCounterEmpty < 3) {
(...skipping 195 matching lines...) Expand 10 before | Expand all | Expand 10 after
675 698
676 checkLibrary(api.Library o) { 699 checkLibrary(api.Library o) {
677 buildCounterLibrary++; 700 buildCounterLibrary++;
678 if (buildCounterLibrary < 3) { 701 if (buildCounterLibrary < 3) {
679 unittest.expect(o.name, unittest.equals('foo')); 702 unittest.expect(o.name, unittest.equals('foo'));
680 unittest.expect(o.version, unittest.equals('foo')); 703 unittest.expect(o.version, unittest.equals('foo'));
681 } 704 }
682 buildCounterLibrary--; 705 buildCounterLibrary--;
683 } 706 }
684 707
685 buildUnnamed3964() { 708 buildUnnamed3454() {
686 var o = new core.List<api.AuthorizedCertificate>(); 709 var o = new core.List<api.AuthorizedCertificate>();
687 o.add(buildAuthorizedCertificate()); 710 o.add(buildAuthorizedCertificate());
688 o.add(buildAuthorizedCertificate()); 711 o.add(buildAuthorizedCertificate());
689 return o; 712 return o;
690 } 713 }
691 714
692 checkUnnamed3964(core.List<api.AuthorizedCertificate> o) { 715 checkUnnamed3454(core.List<api.AuthorizedCertificate> o) {
693 unittest.expect(o, unittest.hasLength(2)); 716 unittest.expect(o, unittest.hasLength(2));
694 checkAuthorizedCertificate(o[0]); 717 checkAuthorizedCertificate(o[0]);
695 checkAuthorizedCertificate(o[1]); 718 checkAuthorizedCertificate(o[1]);
696 } 719 }
697 720
698 core.int buildCounterListAuthorizedCertificatesResponse = 0; 721 core.int buildCounterListAuthorizedCertificatesResponse = 0;
699 buildListAuthorizedCertificatesResponse() { 722 buildListAuthorizedCertificatesResponse() {
700 var o = new api.ListAuthorizedCertificatesResponse(); 723 var o = new api.ListAuthorizedCertificatesResponse();
701 buildCounterListAuthorizedCertificatesResponse++; 724 buildCounterListAuthorizedCertificatesResponse++;
702 if (buildCounterListAuthorizedCertificatesResponse < 3) { 725 if (buildCounterListAuthorizedCertificatesResponse < 3) {
703 o.certificates = buildUnnamed3964(); 726 o.certificates = buildUnnamed3454();
704 o.nextPageToken = "foo"; 727 o.nextPageToken = "foo";
705 } 728 }
706 buildCounterListAuthorizedCertificatesResponse--; 729 buildCounterListAuthorizedCertificatesResponse--;
707 return o; 730 return o;
708 } 731 }
709 732
710 checkListAuthorizedCertificatesResponse(api.ListAuthorizedCertificatesResponse o ) { 733 checkListAuthorizedCertificatesResponse(api.ListAuthorizedCertificatesResponse o ) {
711 buildCounterListAuthorizedCertificatesResponse++; 734 buildCounterListAuthorizedCertificatesResponse++;
712 if (buildCounterListAuthorizedCertificatesResponse < 3) { 735 if (buildCounterListAuthorizedCertificatesResponse < 3) {
713 checkUnnamed3964(o.certificates); 736 checkUnnamed3454(o.certificates);
714 unittest.expect(o.nextPageToken, unittest.equals('foo')); 737 unittest.expect(o.nextPageToken, unittest.equals('foo'));
715 } 738 }
716 buildCounterListAuthorizedCertificatesResponse--; 739 buildCounterListAuthorizedCertificatesResponse--;
717 } 740 }
718 741
719 buildUnnamed3965() { 742 buildUnnamed3455() {
720 var o = new core.List<api.AuthorizedDomain>(); 743 var o = new core.List<api.AuthorizedDomain>();
721 o.add(buildAuthorizedDomain()); 744 o.add(buildAuthorizedDomain());
722 o.add(buildAuthorizedDomain()); 745 o.add(buildAuthorizedDomain());
723 return o; 746 return o;
724 } 747 }
725 748
726 checkUnnamed3965(core.List<api.AuthorizedDomain> o) { 749 checkUnnamed3455(core.List<api.AuthorizedDomain> o) {
727 unittest.expect(o, unittest.hasLength(2)); 750 unittest.expect(o, unittest.hasLength(2));
728 checkAuthorizedDomain(o[0]); 751 checkAuthorizedDomain(o[0]);
729 checkAuthorizedDomain(o[1]); 752 checkAuthorizedDomain(o[1]);
730 } 753 }
731 754
732 core.int buildCounterListAuthorizedDomainsResponse = 0; 755 core.int buildCounterListAuthorizedDomainsResponse = 0;
733 buildListAuthorizedDomainsResponse() { 756 buildListAuthorizedDomainsResponse() {
734 var o = new api.ListAuthorizedDomainsResponse(); 757 var o = new api.ListAuthorizedDomainsResponse();
735 buildCounterListAuthorizedDomainsResponse++; 758 buildCounterListAuthorizedDomainsResponse++;
736 if (buildCounterListAuthorizedDomainsResponse < 3) { 759 if (buildCounterListAuthorizedDomainsResponse < 3) {
737 o.domains = buildUnnamed3965(); 760 o.domains = buildUnnamed3455();
738 o.nextPageToken = "foo"; 761 o.nextPageToken = "foo";
739 } 762 }
740 buildCounterListAuthorizedDomainsResponse--; 763 buildCounterListAuthorizedDomainsResponse--;
741 return o; 764 return o;
742 } 765 }
743 766
744 checkListAuthorizedDomainsResponse(api.ListAuthorizedDomainsResponse o) { 767 checkListAuthorizedDomainsResponse(api.ListAuthorizedDomainsResponse o) {
745 buildCounterListAuthorizedDomainsResponse++; 768 buildCounterListAuthorizedDomainsResponse++;
746 if (buildCounterListAuthorizedDomainsResponse < 3) { 769 if (buildCounterListAuthorizedDomainsResponse < 3) {
747 checkUnnamed3965(o.domains); 770 checkUnnamed3455(o.domains);
748 unittest.expect(o.nextPageToken, unittest.equals('foo')); 771 unittest.expect(o.nextPageToken, unittest.equals('foo'));
749 } 772 }
750 buildCounterListAuthorizedDomainsResponse--; 773 buildCounterListAuthorizedDomainsResponse--;
751 } 774 }
752 775
753 buildUnnamed3966() { 776 buildUnnamed3456() {
754 var o = new core.List<api.DomainMapping>(); 777 var o = new core.List<api.DomainMapping>();
755 o.add(buildDomainMapping()); 778 o.add(buildDomainMapping());
756 o.add(buildDomainMapping()); 779 o.add(buildDomainMapping());
757 return o; 780 return o;
758 } 781 }
759 782
760 checkUnnamed3966(core.List<api.DomainMapping> o) { 783 checkUnnamed3456(core.List<api.DomainMapping> o) {
761 unittest.expect(o, unittest.hasLength(2)); 784 unittest.expect(o, unittest.hasLength(2));
762 checkDomainMapping(o[0]); 785 checkDomainMapping(o[0]);
763 checkDomainMapping(o[1]); 786 checkDomainMapping(o[1]);
764 } 787 }
765 788
766 core.int buildCounterListDomainMappingsResponse = 0; 789 core.int buildCounterListDomainMappingsResponse = 0;
767 buildListDomainMappingsResponse() { 790 buildListDomainMappingsResponse() {
768 var o = new api.ListDomainMappingsResponse(); 791 var o = new api.ListDomainMappingsResponse();
769 buildCounterListDomainMappingsResponse++; 792 buildCounterListDomainMappingsResponse++;
770 if (buildCounterListDomainMappingsResponse < 3) { 793 if (buildCounterListDomainMappingsResponse < 3) {
771 o.domainMappings = buildUnnamed3966(); 794 o.domainMappings = buildUnnamed3456();
772 o.nextPageToken = "foo"; 795 o.nextPageToken = "foo";
773 } 796 }
774 buildCounterListDomainMappingsResponse--; 797 buildCounterListDomainMappingsResponse--;
775 return o; 798 return o;
776 } 799 }
777 800
778 checkListDomainMappingsResponse(api.ListDomainMappingsResponse o) { 801 checkListDomainMappingsResponse(api.ListDomainMappingsResponse o) {
779 buildCounterListDomainMappingsResponse++; 802 buildCounterListDomainMappingsResponse++;
780 if (buildCounterListDomainMappingsResponse < 3) { 803 if (buildCounterListDomainMappingsResponse < 3) {
781 checkUnnamed3966(o.domainMappings); 804 checkUnnamed3456(o.domainMappings);
782 unittest.expect(o.nextPageToken, unittest.equals('foo')); 805 unittest.expect(o.nextPageToken, unittest.equals('foo'));
783 } 806 }
784 buildCounterListDomainMappingsResponse--; 807 buildCounterListDomainMappingsResponse--;
785 } 808 }
786 809
787 buildUnnamed3967() { 810 buildUnnamed3457() {
788 var o = new core.List<api.Instance>(); 811 var o = new core.List<api.Instance>();
789 o.add(buildInstance()); 812 o.add(buildInstance());
790 o.add(buildInstance()); 813 o.add(buildInstance());
791 return o; 814 return o;
792 } 815 }
793 816
794 checkUnnamed3967(core.List<api.Instance> o) { 817 checkUnnamed3457(core.List<api.Instance> o) {
795 unittest.expect(o, unittest.hasLength(2)); 818 unittest.expect(o, unittest.hasLength(2));
796 checkInstance(o[0]); 819 checkInstance(o[0]);
797 checkInstance(o[1]); 820 checkInstance(o[1]);
798 } 821 }
799 822
800 core.int buildCounterListInstancesResponse = 0; 823 core.int buildCounterListInstancesResponse = 0;
801 buildListInstancesResponse() { 824 buildListInstancesResponse() {
802 var o = new api.ListInstancesResponse(); 825 var o = new api.ListInstancesResponse();
803 buildCounterListInstancesResponse++; 826 buildCounterListInstancesResponse++;
804 if (buildCounterListInstancesResponse < 3) { 827 if (buildCounterListInstancesResponse < 3) {
805 o.instances = buildUnnamed3967(); 828 o.instances = buildUnnamed3457();
806 o.nextPageToken = "foo"; 829 o.nextPageToken = "foo";
807 } 830 }
808 buildCounterListInstancesResponse--; 831 buildCounterListInstancesResponse--;
809 return o; 832 return o;
810 } 833 }
811 834
812 checkListInstancesResponse(api.ListInstancesResponse o) { 835 checkListInstancesResponse(api.ListInstancesResponse o) {
813 buildCounterListInstancesResponse++; 836 buildCounterListInstancesResponse++;
814 if (buildCounterListInstancesResponse < 3) { 837 if (buildCounterListInstancesResponse < 3) {
815 checkUnnamed3967(o.instances); 838 checkUnnamed3457(o.instances);
816 unittest.expect(o.nextPageToken, unittest.equals('foo')); 839 unittest.expect(o.nextPageToken, unittest.equals('foo'));
817 } 840 }
818 buildCounterListInstancesResponse--; 841 buildCounterListInstancesResponse--;
819 } 842 }
820 843
821 buildUnnamed3968() { 844 buildUnnamed3458() {
822 var o = new core.List<api.Location>(); 845 var o = new core.List<api.Location>();
823 o.add(buildLocation()); 846 o.add(buildLocation());
824 o.add(buildLocation()); 847 o.add(buildLocation());
825 return o; 848 return o;
826 } 849 }
827 850
828 checkUnnamed3968(core.List<api.Location> o) { 851 checkUnnamed3458(core.List<api.Location> o) {
829 unittest.expect(o, unittest.hasLength(2)); 852 unittest.expect(o, unittest.hasLength(2));
830 checkLocation(o[0]); 853 checkLocation(o[0]);
831 checkLocation(o[1]); 854 checkLocation(o[1]);
832 } 855 }
833 856
834 core.int buildCounterListLocationsResponse = 0; 857 core.int buildCounterListLocationsResponse = 0;
835 buildListLocationsResponse() { 858 buildListLocationsResponse() {
836 var o = new api.ListLocationsResponse(); 859 var o = new api.ListLocationsResponse();
837 buildCounterListLocationsResponse++; 860 buildCounterListLocationsResponse++;
838 if (buildCounterListLocationsResponse < 3) { 861 if (buildCounterListLocationsResponse < 3) {
839 o.locations = buildUnnamed3968(); 862 o.locations = buildUnnamed3458();
840 o.nextPageToken = "foo"; 863 o.nextPageToken = "foo";
841 } 864 }
842 buildCounterListLocationsResponse--; 865 buildCounterListLocationsResponse--;
843 return o; 866 return o;
844 } 867 }
845 868
846 checkListLocationsResponse(api.ListLocationsResponse o) { 869 checkListLocationsResponse(api.ListLocationsResponse o) {
847 buildCounterListLocationsResponse++; 870 buildCounterListLocationsResponse++;
848 if (buildCounterListLocationsResponse < 3) { 871 if (buildCounterListLocationsResponse < 3) {
849 checkUnnamed3968(o.locations); 872 checkUnnamed3458(o.locations);
850 unittest.expect(o.nextPageToken, unittest.equals('foo')); 873 unittest.expect(o.nextPageToken, unittest.equals('foo'));
851 } 874 }
852 buildCounterListLocationsResponse--; 875 buildCounterListLocationsResponse--;
853 } 876 }
854 877
855 buildUnnamed3969() { 878 buildUnnamed3459() {
856 var o = new core.List<api.Operation>(); 879 var o = new core.List<api.Operation>();
857 o.add(buildOperation()); 880 o.add(buildOperation());
858 o.add(buildOperation()); 881 o.add(buildOperation());
859 return o; 882 return o;
860 } 883 }
861 884
862 checkUnnamed3969(core.List<api.Operation> o) { 885 checkUnnamed3459(core.List<api.Operation> o) {
863 unittest.expect(o, unittest.hasLength(2)); 886 unittest.expect(o, unittest.hasLength(2));
864 checkOperation(o[0]); 887 checkOperation(o[0]);
865 checkOperation(o[1]); 888 checkOperation(o[1]);
866 } 889 }
867 890
868 core.int buildCounterListOperationsResponse = 0; 891 core.int buildCounterListOperationsResponse = 0;
869 buildListOperationsResponse() { 892 buildListOperationsResponse() {
870 var o = new api.ListOperationsResponse(); 893 var o = new api.ListOperationsResponse();
871 buildCounterListOperationsResponse++; 894 buildCounterListOperationsResponse++;
872 if (buildCounterListOperationsResponse < 3) { 895 if (buildCounterListOperationsResponse < 3) {
873 o.nextPageToken = "foo"; 896 o.nextPageToken = "foo";
874 o.operations = buildUnnamed3969(); 897 o.operations = buildUnnamed3459();
875 } 898 }
876 buildCounterListOperationsResponse--; 899 buildCounterListOperationsResponse--;
877 return o; 900 return o;
878 } 901 }
879 902
880 checkListOperationsResponse(api.ListOperationsResponse o) { 903 checkListOperationsResponse(api.ListOperationsResponse o) {
881 buildCounterListOperationsResponse++; 904 buildCounterListOperationsResponse++;
882 if (buildCounterListOperationsResponse < 3) { 905 if (buildCounterListOperationsResponse < 3) {
883 unittest.expect(o.nextPageToken, unittest.equals('foo')); 906 unittest.expect(o.nextPageToken, unittest.equals('foo'));
884 checkUnnamed3969(o.operations); 907 checkUnnamed3459(o.operations);
885 } 908 }
886 buildCounterListOperationsResponse--; 909 buildCounterListOperationsResponse--;
887 } 910 }
888 911
889 buildUnnamed3970() { 912 buildUnnamed3460() {
890 var o = new core.List<api.Service>(); 913 var o = new core.List<api.Service>();
891 o.add(buildService()); 914 o.add(buildService());
892 o.add(buildService()); 915 o.add(buildService());
893 return o; 916 return o;
894 } 917 }
895 918
896 checkUnnamed3970(core.List<api.Service> o) { 919 checkUnnamed3460(core.List<api.Service> o) {
897 unittest.expect(o, unittest.hasLength(2)); 920 unittest.expect(o, unittest.hasLength(2));
898 checkService(o[0]); 921 checkService(o[0]);
899 checkService(o[1]); 922 checkService(o[1]);
900 } 923 }
901 924
902 core.int buildCounterListServicesResponse = 0; 925 core.int buildCounterListServicesResponse = 0;
903 buildListServicesResponse() { 926 buildListServicesResponse() {
904 var o = new api.ListServicesResponse(); 927 var o = new api.ListServicesResponse();
905 buildCounterListServicesResponse++; 928 buildCounterListServicesResponse++;
906 if (buildCounterListServicesResponse < 3) { 929 if (buildCounterListServicesResponse < 3) {
907 o.nextPageToken = "foo"; 930 o.nextPageToken = "foo";
908 o.services = buildUnnamed3970(); 931 o.services = buildUnnamed3460();
909 } 932 }
910 buildCounterListServicesResponse--; 933 buildCounterListServicesResponse--;
911 return o; 934 return o;
912 } 935 }
913 936
914 checkListServicesResponse(api.ListServicesResponse o) { 937 checkListServicesResponse(api.ListServicesResponse o) {
915 buildCounterListServicesResponse++; 938 buildCounterListServicesResponse++;
916 if (buildCounterListServicesResponse < 3) { 939 if (buildCounterListServicesResponse < 3) {
917 unittest.expect(o.nextPageToken, unittest.equals('foo')); 940 unittest.expect(o.nextPageToken, unittest.equals('foo'));
918 checkUnnamed3970(o.services); 941 checkUnnamed3460(o.services);
919 } 942 }
920 buildCounterListServicesResponse--; 943 buildCounterListServicesResponse--;
921 } 944 }
922 945
923 buildUnnamed3971() { 946 buildUnnamed3461() {
924 var o = new core.List<api.Version>(); 947 var o = new core.List<api.Version>();
925 o.add(buildVersion()); 948 o.add(buildVersion());
926 o.add(buildVersion()); 949 o.add(buildVersion());
927 return o; 950 return o;
928 } 951 }
929 952
930 checkUnnamed3971(core.List<api.Version> o) { 953 checkUnnamed3461(core.List<api.Version> o) {
931 unittest.expect(o, unittest.hasLength(2)); 954 unittest.expect(o, unittest.hasLength(2));
932 checkVersion(o[0]); 955 checkVersion(o[0]);
933 checkVersion(o[1]); 956 checkVersion(o[1]);
934 } 957 }
935 958
936 core.int buildCounterListVersionsResponse = 0; 959 core.int buildCounterListVersionsResponse = 0;
937 buildListVersionsResponse() { 960 buildListVersionsResponse() {
938 var o = new api.ListVersionsResponse(); 961 var o = new api.ListVersionsResponse();
939 buildCounterListVersionsResponse++; 962 buildCounterListVersionsResponse++;
940 if (buildCounterListVersionsResponse < 3) { 963 if (buildCounterListVersionsResponse < 3) {
941 o.nextPageToken = "foo"; 964 o.nextPageToken = "foo";
942 o.versions = buildUnnamed3971(); 965 o.versions = buildUnnamed3461();
943 } 966 }
944 buildCounterListVersionsResponse--; 967 buildCounterListVersionsResponse--;
945 return o; 968 return o;
946 } 969 }
947 970
948 checkListVersionsResponse(api.ListVersionsResponse o) { 971 checkListVersionsResponse(api.ListVersionsResponse o) {
949 buildCounterListVersionsResponse++; 972 buildCounterListVersionsResponse++;
950 if (buildCounterListVersionsResponse < 3) { 973 if (buildCounterListVersionsResponse < 3) {
951 unittest.expect(o.nextPageToken, unittest.equals('foo')); 974 unittest.expect(o.nextPageToken, unittest.equals('foo'));
952 checkUnnamed3971(o.versions); 975 checkUnnamed3461(o.versions);
953 } 976 }
954 buildCounterListVersionsResponse--; 977 buildCounterListVersionsResponse--;
955 } 978 }
956 979
957 core.int buildCounterLivenessCheck = 0; 980 core.int buildCounterLivenessCheck = 0;
958 buildLivenessCheck() { 981 buildLivenessCheck() {
959 var o = new api.LivenessCheck(); 982 var o = new api.LivenessCheck();
960 buildCounterLivenessCheck++; 983 buildCounterLivenessCheck++;
961 if (buildCounterLivenessCheck < 3) { 984 if (buildCounterLivenessCheck < 3) {
962 o.checkInterval = "foo"; 985 o.checkInterval = "foo";
(...skipping 15 matching lines...) Expand all
978 unittest.expect(o.failureThreshold, unittest.equals(42)); 1001 unittest.expect(o.failureThreshold, unittest.equals(42));
979 unittest.expect(o.host, unittest.equals('foo')); 1002 unittest.expect(o.host, unittest.equals('foo'));
980 unittest.expect(o.initialDelay, unittest.equals('foo')); 1003 unittest.expect(o.initialDelay, unittest.equals('foo'));
981 unittest.expect(o.path, unittest.equals('foo')); 1004 unittest.expect(o.path, unittest.equals('foo'));
982 unittest.expect(o.successThreshold, unittest.equals(42)); 1005 unittest.expect(o.successThreshold, unittest.equals(42));
983 unittest.expect(o.timeout, unittest.equals('foo')); 1006 unittest.expect(o.timeout, unittest.equals('foo'));
984 } 1007 }
985 buildCounterLivenessCheck--; 1008 buildCounterLivenessCheck--;
986 } 1009 }
987 1010
988 buildUnnamed3972() { 1011 buildUnnamed3462() {
989 var o = new core.Map<core.String, core.String>(); 1012 var o = new core.Map<core.String, core.String>();
990 o["x"] = "foo"; 1013 o["x"] = "foo";
991 o["y"] = "foo"; 1014 o["y"] = "foo";
992 return o; 1015 return o;
993 } 1016 }
994 1017
995 checkUnnamed3972(core.Map<core.String, core.String> o) { 1018 checkUnnamed3462(core.Map<core.String, core.String> o) {
996 unittest.expect(o, unittest.hasLength(2)); 1019 unittest.expect(o, unittest.hasLength(2));
997 unittest.expect(o["x"], unittest.equals('foo')); 1020 unittest.expect(o["x"], unittest.equals('foo'));
998 unittest.expect(o["y"], unittest.equals('foo')); 1021 unittest.expect(o["y"], unittest.equals('foo'));
999 } 1022 }
1000 1023
1001 buildUnnamed3973() { 1024 buildUnnamed3463() {
1002 var o = new core.Map<core.String, core.Object>(); 1025 var o = new core.Map<core.String, core.Object>();
1003 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1026 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1004 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1027 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1005 return o; 1028 return o;
1006 } 1029 }
1007 1030
1008 checkUnnamed3973(core.Map<core.String, core.Object> o) { 1031 checkUnnamed3463(core.Map<core.String, core.Object> o) {
1009 unittest.expect(o, unittest.hasLength(2)); 1032 unittest.expect(o, unittest.hasLength(2));
1010 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')); 1033 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'));
1011 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')); 1034 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'));
1012 } 1035 }
1013 1036
1014 core.int buildCounterLocation = 0; 1037 core.int buildCounterLocation = 0;
1015 buildLocation() { 1038 buildLocation() {
1016 var o = new api.Location(); 1039 var o = new api.Location();
1017 buildCounterLocation++; 1040 buildCounterLocation++;
1018 if (buildCounterLocation < 3) { 1041 if (buildCounterLocation < 3) {
1019 o.labels = buildUnnamed3972(); 1042 o.labels = buildUnnamed3462();
1020 o.locationId = "foo"; 1043 o.locationId = "foo";
1021 o.metadata = buildUnnamed3973(); 1044 o.metadata = buildUnnamed3463();
1022 o.name = "foo"; 1045 o.name = "foo";
1023 } 1046 }
1024 buildCounterLocation--; 1047 buildCounterLocation--;
1025 return o; 1048 return o;
1026 } 1049 }
1027 1050
1028 checkLocation(api.Location o) { 1051 checkLocation(api.Location o) {
1029 buildCounterLocation++; 1052 buildCounterLocation++;
1030 if (buildCounterLocation < 3) { 1053 if (buildCounterLocation < 3) {
1031 checkUnnamed3972(o.labels); 1054 checkUnnamed3462(o.labels);
1032 unittest.expect(o.locationId, unittest.equals('foo')); 1055 unittest.expect(o.locationId, unittest.equals('foo'));
1033 checkUnnamed3973(o.metadata); 1056 checkUnnamed3463(o.metadata);
1034 unittest.expect(o.name, unittest.equals('foo')); 1057 unittest.expect(o.name, unittest.equals('foo'));
1035 } 1058 }
1036 buildCounterLocation--; 1059 buildCounterLocation--;
1037 } 1060 }
1038 1061
1039 core.int buildCounterLocationMetadata = 0; 1062 core.int buildCounterLocationMetadata = 0;
1040 buildLocationMetadata() { 1063 buildLocationMetadata() {
1041 var o = new api.LocationMetadata(); 1064 var o = new api.LocationMetadata();
1042 buildCounterLocationMetadata++; 1065 buildCounterLocationMetadata++;
1043 if (buildCounterLocationMetadata < 3) { 1066 if (buildCounterLocationMetadata < 3) {
(...skipping 25 matching lines...) Expand all
1069 } 1092 }
1070 1093
1071 checkManualScaling(api.ManualScaling o) { 1094 checkManualScaling(api.ManualScaling o) {
1072 buildCounterManualScaling++; 1095 buildCounterManualScaling++;
1073 if (buildCounterManualScaling < 3) { 1096 if (buildCounterManualScaling < 3) {
1074 unittest.expect(o.instances, unittest.equals(42)); 1097 unittest.expect(o.instances, unittest.equals(42));
1075 } 1098 }
1076 buildCounterManualScaling--; 1099 buildCounterManualScaling--;
1077 } 1100 }
1078 1101
1079 buildUnnamed3974() { 1102 buildUnnamed3464() {
1080 var o = new core.List<core.String>(); 1103 var o = new core.List<core.String>();
1081 o.add("foo"); 1104 o.add("foo");
1082 o.add("foo"); 1105 o.add("foo");
1083 return o; 1106 return o;
1084 } 1107 }
1085 1108
1086 checkUnnamed3974(core.List<core.String> o) { 1109 checkUnnamed3464(core.List<core.String> o) {
1087 unittest.expect(o, unittest.hasLength(2)); 1110 unittest.expect(o, unittest.hasLength(2));
1088 unittest.expect(o[0], unittest.equals('foo')); 1111 unittest.expect(o[0], unittest.equals('foo'));
1089 unittest.expect(o[1], unittest.equals('foo')); 1112 unittest.expect(o[1], unittest.equals('foo'));
1090 } 1113 }
1091 1114
1092 core.int buildCounterNetwork = 0; 1115 core.int buildCounterNetwork = 0;
1093 buildNetwork() { 1116 buildNetwork() {
1094 var o = new api.Network(); 1117 var o = new api.Network();
1095 buildCounterNetwork++; 1118 buildCounterNetwork++;
1096 if (buildCounterNetwork < 3) { 1119 if (buildCounterNetwork < 3) {
1097 o.forwardedPorts = buildUnnamed3974(); 1120 o.forwardedPorts = buildUnnamed3464();
1098 o.instanceTag = "foo"; 1121 o.instanceTag = "foo";
1099 o.name = "foo"; 1122 o.name = "foo";
1100 o.subnetworkName = "foo"; 1123 o.subnetworkName = "foo";
1101 } 1124 }
1102 buildCounterNetwork--; 1125 buildCounterNetwork--;
1103 return o; 1126 return o;
1104 } 1127 }
1105 1128
1106 checkNetwork(api.Network o) { 1129 checkNetwork(api.Network o) {
1107 buildCounterNetwork++; 1130 buildCounterNetwork++;
1108 if (buildCounterNetwork < 3) { 1131 if (buildCounterNetwork < 3) {
1109 checkUnnamed3974(o.forwardedPorts); 1132 checkUnnamed3464(o.forwardedPorts);
1110 unittest.expect(o.instanceTag, unittest.equals('foo')); 1133 unittest.expect(o.instanceTag, unittest.equals('foo'));
1111 unittest.expect(o.name, unittest.equals('foo')); 1134 unittest.expect(o.name, unittest.equals('foo'));
1112 unittest.expect(o.subnetworkName, unittest.equals('foo')); 1135 unittest.expect(o.subnetworkName, unittest.equals('foo'));
1113 } 1136 }
1114 buildCounterNetwork--; 1137 buildCounterNetwork--;
1115 } 1138 }
1116 1139
1117 core.int buildCounterNetworkUtilization = 0; 1140 core.int buildCounterNetworkUtilization = 0;
1118 buildNetworkUtilization() { 1141 buildNetworkUtilization() {
1119 var o = new api.NetworkUtilization(); 1142 var o = new api.NetworkUtilization();
(...skipping 12 matching lines...) Expand all
1132 buildCounterNetworkUtilization++; 1155 buildCounterNetworkUtilization++;
1133 if (buildCounterNetworkUtilization < 3) { 1156 if (buildCounterNetworkUtilization < 3) {
1134 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42)); 1157 unittest.expect(o.targetReceivedBytesPerSecond, unittest.equals(42));
1135 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42)); 1158 unittest.expect(o.targetReceivedPacketsPerSecond, unittest.equals(42));
1136 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42)); 1159 unittest.expect(o.targetSentBytesPerSecond, unittest.equals(42));
1137 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42)); 1160 unittest.expect(o.targetSentPacketsPerSecond, unittest.equals(42));
1138 } 1161 }
1139 buildCounterNetworkUtilization--; 1162 buildCounterNetworkUtilization--;
1140 } 1163 }
1141 1164
1142 buildUnnamed3975() { 1165 buildUnnamed3465() {
1143 var o = new core.Map<core.String, core.Object>(); 1166 var o = new core.Map<core.String, core.Object>();
1144 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1167 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1145 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1168 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1146 return o; 1169 return o;
1147 } 1170 }
1148 1171
1149 checkUnnamed3975(core.Map<core.String, core.Object> o) { 1172 checkUnnamed3465(core.Map<core.String, core.Object> o) {
1150 unittest.expect(o, unittest.hasLength(2)); 1173 unittest.expect(o, unittest.hasLength(2));
1151 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')); 1174 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'));
1152 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')); 1175 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'));
1153 } 1176 }
1154 1177
1155 buildUnnamed3976() { 1178 buildUnnamed3466() {
1156 var o = new core.Map<core.String, core.Object>(); 1179 var o = new core.Map<core.String, core.Object>();
1157 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1180 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1158 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1181 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1159 return o; 1182 return o;
1160 } 1183 }
1161 1184
1162 checkUnnamed3976(core.Map<core.String, core.Object> o) { 1185 checkUnnamed3466(core.Map<core.String, core.Object> o) {
1163 unittest.expect(o, unittest.hasLength(2)); 1186 unittest.expect(o, unittest.hasLength(2));
1164 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')); 1187 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'));
1165 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')); 1188 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'));
1166 } 1189 }
1167 1190
1168 core.int buildCounterOperation = 0; 1191 core.int buildCounterOperation = 0;
1169 buildOperation() { 1192 buildOperation() {
1170 var o = new api.Operation(); 1193 var o = new api.Operation();
1171 buildCounterOperation++; 1194 buildCounterOperation++;
1172 if (buildCounterOperation < 3) { 1195 if (buildCounterOperation < 3) {
1173 o.done = true; 1196 o.done = true;
1174 o.error = buildStatus(); 1197 o.error = buildStatus();
1175 o.metadata = buildUnnamed3975(); 1198 o.metadata = buildUnnamed3465();
1176 o.name = "foo"; 1199 o.name = "foo";
1177 o.response = buildUnnamed3976(); 1200 o.response = buildUnnamed3466();
1178 } 1201 }
1179 buildCounterOperation--; 1202 buildCounterOperation--;
1180 return o; 1203 return o;
1181 } 1204 }
1182 1205
1183 checkOperation(api.Operation o) { 1206 checkOperation(api.Operation o) {
1184 buildCounterOperation++; 1207 buildCounterOperation++;
1185 if (buildCounterOperation < 3) { 1208 if (buildCounterOperation < 3) {
1186 unittest.expect(o.done, unittest.isTrue); 1209 unittest.expect(o.done, unittest.isTrue);
1187 checkStatus(o.error); 1210 checkStatus(o.error);
1188 checkUnnamed3975(o.metadata); 1211 checkUnnamed3465(o.metadata);
1189 unittest.expect(o.name, unittest.equals('foo')); 1212 unittest.expect(o.name, unittest.equals('foo'));
1190 checkUnnamed3976(o.response); 1213 checkUnnamed3466(o.response);
1191 } 1214 }
1192 buildCounterOperation--; 1215 buildCounterOperation--;
1193 } 1216 }
1194 1217
1195 core.int buildCounterOperationMetadata = 0; 1218 core.int buildCounterOperationMetadata = 0;
1196 buildOperationMetadata() { 1219 buildOperationMetadata() {
1197 var o = new api.OperationMetadata(); 1220 var o = new api.OperationMetadata();
1198 buildCounterOperationMetadata++; 1221 buildCounterOperationMetadata++;
1199 if (buildCounterOperationMetadata < 3) { 1222 if (buildCounterOperationMetadata < 3) {
1200 o.endTime = "foo"; 1223 o.endTime = "foo";
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
1241 if (buildCounterOperationMetadataExperimental < 3) { 1264 if (buildCounterOperationMetadataExperimental < 3) {
1242 unittest.expect(o.endTime, unittest.equals('foo')); 1265 unittest.expect(o.endTime, unittest.equals('foo'));
1243 unittest.expect(o.insertTime, unittest.equals('foo')); 1266 unittest.expect(o.insertTime, unittest.equals('foo'));
1244 unittest.expect(o.method, unittest.equals('foo')); 1267 unittest.expect(o.method, unittest.equals('foo'));
1245 unittest.expect(o.target, unittest.equals('foo')); 1268 unittest.expect(o.target, unittest.equals('foo'));
1246 unittest.expect(o.user, unittest.equals('foo')); 1269 unittest.expect(o.user, unittest.equals('foo'));
1247 } 1270 }
1248 buildCounterOperationMetadataExperimental--; 1271 buildCounterOperationMetadataExperimental--;
1249 } 1272 }
1250 1273
1251 buildUnnamed3977() { 1274 buildUnnamed3467() {
1252 var o = new core.List<core.String>(); 1275 var o = new core.List<core.String>();
1253 o.add("foo"); 1276 o.add("foo");
1254 o.add("foo"); 1277 o.add("foo");
1255 return o; 1278 return o;
1256 } 1279 }
1257 1280
1258 checkUnnamed3977(core.List<core.String> o) { 1281 checkUnnamed3467(core.List<core.String> o) {
1259 unittest.expect(o, unittest.hasLength(2)); 1282 unittest.expect(o, unittest.hasLength(2));
1260 unittest.expect(o[0], unittest.equals('foo')); 1283 unittest.expect(o[0], unittest.equals('foo'));
1261 unittest.expect(o[1], unittest.equals('foo')); 1284 unittest.expect(o[1], unittest.equals('foo'));
1262 } 1285 }
1263 1286
1264 core.int buildCounterOperationMetadataV1 = 0; 1287 core.int buildCounterOperationMetadataV1 = 0;
1265 buildOperationMetadataV1() { 1288 buildOperationMetadataV1() {
1266 var o = new api.OperationMetadataV1(); 1289 var o = new api.OperationMetadataV1();
1267 buildCounterOperationMetadataV1++; 1290 buildCounterOperationMetadataV1++;
1268 if (buildCounterOperationMetadataV1 < 3) { 1291 if (buildCounterOperationMetadataV1 < 3) {
1269 o.endTime = "foo"; 1292 o.endTime = "foo";
1270 o.ephemeralMessage = "foo"; 1293 o.ephemeralMessage = "foo";
1271 o.insertTime = "foo"; 1294 o.insertTime = "foo";
1272 o.method = "foo"; 1295 o.method = "foo";
1273 o.target = "foo"; 1296 o.target = "foo";
1274 o.user = "foo"; 1297 o.user = "foo";
1275 o.warning = buildUnnamed3977(); 1298 o.warning = buildUnnamed3467();
1276 } 1299 }
1277 buildCounterOperationMetadataV1--; 1300 buildCounterOperationMetadataV1--;
1278 return o; 1301 return o;
1279 } 1302 }
1280 1303
1281 checkOperationMetadataV1(api.OperationMetadataV1 o) { 1304 checkOperationMetadataV1(api.OperationMetadataV1 o) {
1282 buildCounterOperationMetadataV1++; 1305 buildCounterOperationMetadataV1++;
1283 if (buildCounterOperationMetadataV1 < 3) { 1306 if (buildCounterOperationMetadataV1 < 3) {
1284 unittest.expect(o.endTime, unittest.equals('foo')); 1307 unittest.expect(o.endTime, unittest.equals('foo'));
1285 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 1308 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1286 unittest.expect(o.insertTime, unittest.equals('foo')); 1309 unittest.expect(o.insertTime, unittest.equals('foo'));
1287 unittest.expect(o.method, unittest.equals('foo')); 1310 unittest.expect(o.method, unittest.equals('foo'));
1288 unittest.expect(o.target, unittest.equals('foo')); 1311 unittest.expect(o.target, unittest.equals('foo'));
1289 unittest.expect(o.user, unittest.equals('foo')); 1312 unittest.expect(o.user, unittest.equals('foo'));
1290 checkUnnamed3977(o.warning); 1313 checkUnnamed3467(o.warning);
1291 } 1314 }
1292 buildCounterOperationMetadataV1--; 1315 buildCounterOperationMetadataV1--;
1293 } 1316 }
1294 1317
1295 buildUnnamed3978() { 1318 buildUnnamed3468() {
1296 var o = new core.List<core.String>(); 1319 var o = new core.List<core.String>();
1297 o.add("foo"); 1320 o.add("foo");
1298 o.add("foo"); 1321 o.add("foo");
1299 return o; 1322 return o;
1300 } 1323 }
1301 1324
1302 checkUnnamed3978(core.List<core.String> o) { 1325 checkUnnamed3468(core.List<core.String> o) {
1303 unittest.expect(o, unittest.hasLength(2)); 1326 unittest.expect(o, unittest.hasLength(2));
1304 unittest.expect(o[0], unittest.equals('foo')); 1327 unittest.expect(o[0], unittest.equals('foo'));
1305 unittest.expect(o[1], unittest.equals('foo')); 1328 unittest.expect(o[1], unittest.equals('foo'));
1329 }
1330
1331 core.int buildCounterOperationMetadataV1Alpha = 0;
1332 buildOperationMetadataV1Alpha() {
1333 var o = new api.OperationMetadataV1Alpha();
1334 buildCounterOperationMetadataV1Alpha++;
1335 if (buildCounterOperationMetadataV1Alpha < 3) {
1336 o.endTime = "foo";
1337 o.ephemeralMessage = "foo";
1338 o.insertTime = "foo";
1339 o.method = "foo";
1340 o.target = "foo";
1341 o.user = "foo";
1342 o.warning = buildUnnamed3468();
1343 }
1344 buildCounterOperationMetadataV1Alpha--;
1345 return o;
1346 }
1347
1348 checkOperationMetadataV1Alpha(api.OperationMetadataV1Alpha o) {
1349 buildCounterOperationMetadataV1Alpha++;
1350 if (buildCounterOperationMetadataV1Alpha < 3) {
1351 unittest.expect(o.endTime, unittest.equals('foo'));
1352 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1353 unittest.expect(o.insertTime, unittest.equals('foo'));
1354 unittest.expect(o.method, unittest.equals('foo'));
1355 unittest.expect(o.target, unittest.equals('foo'));
1356 unittest.expect(o.user, unittest.equals('foo'));
1357 checkUnnamed3468(o.warning);
1358 }
1359 buildCounterOperationMetadataV1Alpha--;
1360 }
1361
1362 buildUnnamed3469() {
1363 var o = new core.List<core.String>();
1364 o.add("foo");
1365 o.add("foo");
1366 return o;
1367 }
1368
1369 checkUnnamed3469(core.List<core.String> o) {
1370 unittest.expect(o, unittest.hasLength(2));
1371 unittest.expect(o[0], unittest.equals('foo'));
1372 unittest.expect(o[1], unittest.equals('foo'));
1306 } 1373 }
1307 1374
1308 core.int buildCounterOperationMetadataV1Beta = 0; 1375 core.int buildCounterOperationMetadataV1Beta = 0;
1309 buildOperationMetadataV1Beta() { 1376 buildOperationMetadataV1Beta() {
1310 var o = new api.OperationMetadataV1Beta(); 1377 var o = new api.OperationMetadataV1Beta();
1311 buildCounterOperationMetadataV1Beta++; 1378 buildCounterOperationMetadataV1Beta++;
1312 if (buildCounterOperationMetadataV1Beta < 3) { 1379 if (buildCounterOperationMetadataV1Beta < 3) {
1313 o.endTime = "foo"; 1380 o.endTime = "foo";
1314 o.ephemeralMessage = "foo"; 1381 o.ephemeralMessage = "foo";
1315 o.insertTime = "foo"; 1382 o.insertTime = "foo";
1316 o.method = "foo"; 1383 o.method = "foo";
1317 o.target = "foo"; 1384 o.target = "foo";
1318 o.user = "foo"; 1385 o.user = "foo";
1319 o.warning = buildUnnamed3978(); 1386 o.warning = buildUnnamed3469();
1320 } 1387 }
1321 buildCounterOperationMetadataV1Beta--; 1388 buildCounterOperationMetadataV1Beta--;
1322 return o; 1389 return o;
1323 } 1390 }
1324 1391
1325 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) { 1392 checkOperationMetadataV1Beta(api.OperationMetadataV1Beta o) {
1326 buildCounterOperationMetadataV1Beta++; 1393 buildCounterOperationMetadataV1Beta++;
1327 if (buildCounterOperationMetadataV1Beta < 3) { 1394 if (buildCounterOperationMetadataV1Beta < 3) {
1328 unittest.expect(o.endTime, unittest.equals('foo')); 1395 unittest.expect(o.endTime, unittest.equals('foo'));
1329 unittest.expect(o.ephemeralMessage, unittest.equals('foo')); 1396 unittest.expect(o.ephemeralMessage, unittest.equals('foo'));
1330 unittest.expect(o.insertTime, unittest.equals('foo')); 1397 unittest.expect(o.insertTime, unittest.equals('foo'));
1331 unittest.expect(o.method, unittest.equals('foo')); 1398 unittest.expect(o.method, unittest.equals('foo'));
1332 unittest.expect(o.target, unittest.equals('foo')); 1399 unittest.expect(o.target, unittest.equals('foo'));
1333 unittest.expect(o.user, unittest.equals('foo')); 1400 unittest.expect(o.user, unittest.equals('foo'));
1334 checkUnnamed3978(o.warning); 1401 checkUnnamed3469(o.warning);
1335 } 1402 }
1336 buildCounterOperationMetadataV1Beta--; 1403 buildCounterOperationMetadataV1Beta--;
1337 } 1404 }
1338 1405
1339 core.int buildCounterOperationMetadataV1Beta5 = 0; 1406 core.int buildCounterOperationMetadataV1Beta5 = 0;
1340 buildOperationMetadataV1Beta5() { 1407 buildOperationMetadataV1Beta5() {
1341 var o = new api.OperationMetadataV1Beta5(); 1408 var o = new api.OperationMetadataV1Beta5();
1342 buildCounterOperationMetadataV1Beta5++; 1409 buildCounterOperationMetadataV1Beta5++;
1343 if (buildCounterOperationMetadataV1Beta5 < 3) { 1410 if (buildCounterOperationMetadataV1Beta5 < 3) {
1344 o.endTime = "foo"; 1411 o.endTime = "foo";
(...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after
1446 checkResourceRecord(api.ResourceRecord o) { 1513 checkResourceRecord(api.ResourceRecord o) {
1447 buildCounterResourceRecord++; 1514 buildCounterResourceRecord++;
1448 if (buildCounterResourceRecord < 3) { 1515 if (buildCounterResourceRecord < 3) {
1449 unittest.expect(o.name, unittest.equals('foo')); 1516 unittest.expect(o.name, unittest.equals('foo'));
1450 unittest.expect(o.rrdata, unittest.equals('foo')); 1517 unittest.expect(o.rrdata, unittest.equals('foo'));
1451 unittest.expect(o.type, unittest.equals('foo')); 1518 unittest.expect(o.type, unittest.equals('foo'));
1452 } 1519 }
1453 buildCounterResourceRecord--; 1520 buildCounterResourceRecord--;
1454 } 1521 }
1455 1522
1456 buildUnnamed3979() { 1523 buildUnnamed3470() {
1457 var o = new core.List<api.Volume>(); 1524 var o = new core.List<api.Volume>();
1458 o.add(buildVolume()); 1525 o.add(buildVolume());
1459 o.add(buildVolume()); 1526 o.add(buildVolume());
1460 return o; 1527 return o;
1461 } 1528 }
1462 1529
1463 checkUnnamed3979(core.List<api.Volume> o) { 1530 checkUnnamed3470(core.List<api.Volume> o) {
1464 unittest.expect(o, unittest.hasLength(2)); 1531 unittest.expect(o, unittest.hasLength(2));
1465 checkVolume(o[0]); 1532 checkVolume(o[0]);
1466 checkVolume(o[1]); 1533 checkVolume(o[1]);
1467 } 1534 }
1468 1535
1469 core.int buildCounterResources = 0; 1536 core.int buildCounterResources = 0;
1470 buildResources() { 1537 buildResources() {
1471 var o = new api.Resources(); 1538 var o = new api.Resources();
1472 buildCounterResources++; 1539 buildCounterResources++;
1473 if (buildCounterResources < 3) { 1540 if (buildCounterResources < 3) {
1474 o.cpu = 42.0; 1541 o.cpu = 42.0;
1475 o.diskGb = 42.0; 1542 o.diskGb = 42.0;
1476 o.memoryGb = 42.0; 1543 o.memoryGb = 42.0;
1477 o.volumes = buildUnnamed3979(); 1544 o.volumes = buildUnnamed3470();
1478 } 1545 }
1479 buildCounterResources--; 1546 buildCounterResources--;
1480 return o; 1547 return o;
1481 } 1548 }
1482 1549
1483 checkResources(api.Resources o) { 1550 checkResources(api.Resources o) {
1484 buildCounterResources++; 1551 buildCounterResources++;
1485 if (buildCounterResources < 3) { 1552 if (buildCounterResources < 3) {
1486 unittest.expect(o.cpu, unittest.equals(42.0)); 1553 unittest.expect(o.cpu, unittest.equals(42.0));
1487 unittest.expect(o.diskGb, unittest.equals(42.0)); 1554 unittest.expect(o.diskGb, unittest.equals(42.0));
1488 unittest.expect(o.memoryGb, unittest.equals(42.0)); 1555 unittest.expect(o.memoryGb, unittest.equals(42.0));
1489 checkUnnamed3979(o.volumes); 1556 checkUnnamed3470(o.volumes);
1490 } 1557 }
1491 buildCounterResources--; 1558 buildCounterResources--;
1492 } 1559 }
1493 1560
1494 core.int buildCounterScriptHandler = 0; 1561 core.int buildCounterScriptHandler = 0;
1495 buildScriptHandler() { 1562 buildScriptHandler() {
1496 var o = new api.ScriptHandler(); 1563 var o = new api.ScriptHandler();
1497 buildCounterScriptHandler++; 1564 buildCounterScriptHandler++;
1498 if (buildCounterScriptHandler < 3) { 1565 if (buildCounterScriptHandler < 3) {
1499 o.scriptPath = "foo"; 1566 o.scriptPath = "foo";
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
1545 } 1612 }
1546 1613
1547 checkSslSettings(api.SslSettings o) { 1614 checkSslSettings(api.SslSettings o) {
1548 buildCounterSslSettings++; 1615 buildCounterSslSettings++;
1549 if (buildCounterSslSettings < 3) { 1616 if (buildCounterSslSettings < 3) {
1550 unittest.expect(o.certificateId, unittest.equals('foo')); 1617 unittest.expect(o.certificateId, unittest.equals('foo'));
1551 } 1618 }
1552 buildCounterSslSettings--; 1619 buildCounterSslSettings--;
1553 } 1620 }
1554 1621
1555 buildUnnamed3980() { 1622 core.int buildCounterStandardSchedulerSettings = 0;
1623 buildStandardSchedulerSettings() {
1624 var o = new api.StandardSchedulerSettings();
1625 buildCounterStandardSchedulerSettings++;
1626 if (buildCounterStandardSchedulerSettings < 3) {
1627 o.targetCpuUtilization = 42.0;
1628 o.targetThroughputUtilization = 42.0;
1629 }
1630 buildCounterStandardSchedulerSettings--;
1631 return o;
1632 }
1633
1634 checkStandardSchedulerSettings(api.StandardSchedulerSettings o) {
1635 buildCounterStandardSchedulerSettings++;
1636 if (buildCounterStandardSchedulerSettings < 3) {
1637 unittest.expect(o.targetCpuUtilization, unittest.equals(42.0));
1638 unittest.expect(o.targetThroughputUtilization, unittest.equals(42.0));
1639 }
1640 buildCounterStandardSchedulerSettings--;
1641 }
1642
1643 buildUnnamed3471() {
1556 var o = new core.Map<core.String, core.String>(); 1644 var o = new core.Map<core.String, core.String>();
1557 o["x"] = "foo"; 1645 o["x"] = "foo";
1558 o["y"] = "foo"; 1646 o["y"] = "foo";
1559 return o; 1647 return o;
1560 } 1648 }
1561 1649
1562 checkUnnamed3980(core.Map<core.String, core.String> o) { 1650 checkUnnamed3471(core.Map<core.String, core.String> o) {
1563 unittest.expect(o, unittest.hasLength(2)); 1651 unittest.expect(o, unittest.hasLength(2));
1564 unittest.expect(o["x"], unittest.equals('foo')); 1652 unittest.expect(o["x"], unittest.equals('foo'));
1565 unittest.expect(o["y"], unittest.equals('foo')); 1653 unittest.expect(o["y"], unittest.equals('foo'));
1566 } 1654 }
1567 1655
1568 core.int buildCounterStaticFilesHandler = 0; 1656 core.int buildCounterStaticFilesHandler = 0;
1569 buildStaticFilesHandler() { 1657 buildStaticFilesHandler() {
1570 var o = new api.StaticFilesHandler(); 1658 var o = new api.StaticFilesHandler();
1571 buildCounterStaticFilesHandler++; 1659 buildCounterStaticFilesHandler++;
1572 if (buildCounterStaticFilesHandler < 3) { 1660 if (buildCounterStaticFilesHandler < 3) {
1573 o.applicationReadable = true; 1661 o.applicationReadable = true;
1574 o.expiration = "foo"; 1662 o.expiration = "foo";
1575 o.httpHeaders = buildUnnamed3980(); 1663 o.httpHeaders = buildUnnamed3471();
1576 o.mimeType = "foo"; 1664 o.mimeType = "foo";
1577 o.path = "foo"; 1665 o.path = "foo";
1578 o.requireMatchingFile = true; 1666 o.requireMatchingFile = true;
1579 o.uploadPathRegex = "foo"; 1667 o.uploadPathRegex = "foo";
1580 } 1668 }
1581 buildCounterStaticFilesHandler--; 1669 buildCounterStaticFilesHandler--;
1582 return o; 1670 return o;
1583 } 1671 }
1584 1672
1585 checkStaticFilesHandler(api.StaticFilesHandler o) { 1673 checkStaticFilesHandler(api.StaticFilesHandler o) {
1586 buildCounterStaticFilesHandler++; 1674 buildCounterStaticFilesHandler++;
1587 if (buildCounterStaticFilesHandler < 3) { 1675 if (buildCounterStaticFilesHandler < 3) {
1588 unittest.expect(o.applicationReadable, unittest.isTrue); 1676 unittest.expect(o.applicationReadable, unittest.isTrue);
1589 unittest.expect(o.expiration, unittest.equals('foo')); 1677 unittest.expect(o.expiration, unittest.equals('foo'));
1590 checkUnnamed3980(o.httpHeaders); 1678 checkUnnamed3471(o.httpHeaders);
1591 unittest.expect(o.mimeType, unittest.equals('foo')); 1679 unittest.expect(o.mimeType, unittest.equals('foo'));
1592 unittest.expect(o.path, unittest.equals('foo')); 1680 unittest.expect(o.path, unittest.equals('foo'));
1593 unittest.expect(o.requireMatchingFile, unittest.isTrue); 1681 unittest.expect(o.requireMatchingFile, unittest.isTrue);
1594 unittest.expect(o.uploadPathRegex, unittest.equals('foo')); 1682 unittest.expect(o.uploadPathRegex, unittest.equals('foo'));
1595 } 1683 }
1596 buildCounterStaticFilesHandler--; 1684 buildCounterStaticFilesHandler--;
1597 } 1685 }
1598 1686
1599 buildUnnamed3981() { 1687 buildUnnamed3472() {
1600 var o = new core.Map<core.String, core.Object>(); 1688 var o = new core.Map<core.String, core.Object>();
1601 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1689 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1602 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 1690 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
1603 return o; 1691 return o;
1604 } 1692 }
1605 1693
1606 checkUnnamed3981(core.Map<core.String, core.Object> o) { 1694 checkUnnamed3472(core.Map<core.String, core.Object> o) {
1607 unittest.expect(o, unittest.hasLength(2)); 1695 unittest.expect(o, unittest.hasLength(2));
1608 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo')); 1696 var casted7 = (o["x"]) as core.Map; unittest.expect(casted7, unittest.hasLengt h(3)); unittest.expect(casted7["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted7["bool"], unittest.equals(true)); unittest.expect(casted7["string"], unittest.equals('foo'));
1609 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo')); 1697 var casted8 = (o["y"]) as core.Map; unittest.expect(casted8, unittest.hasLengt h(3)); unittest.expect(casted8["list"], unittest.equals([1, 2, 3])); unittest.ex pect(casted8["bool"], unittest.equals(true)); unittest.expect(casted8["string"], unittest.equals('foo'));
1610 } 1698 }
1611 1699
1612 buildUnnamed3982() { 1700 buildUnnamed3473() {
1613 var o = new core.List<core.Map<core.String, core.Object>>(); 1701 var o = new core.List<core.Map<core.String, core.Object>>();
1614 o.add(buildUnnamed3981()); 1702 o.add(buildUnnamed3472());
1615 o.add(buildUnnamed3981()); 1703 o.add(buildUnnamed3472());
1616 return o; 1704 return o;
1617 } 1705 }
1618 1706
1619 checkUnnamed3982(core.List<core.Map<core.String, core.Object>> o) { 1707 checkUnnamed3473(core.List<core.Map<core.String, core.Object>> o) {
1620 unittest.expect(o, unittest.hasLength(2)); 1708 unittest.expect(o, unittest.hasLength(2));
1621 checkUnnamed3981(o[0]); 1709 checkUnnamed3472(o[0]);
1622 checkUnnamed3981(o[1]); 1710 checkUnnamed3472(o[1]);
1623 } 1711 }
1624 1712
1625 core.int buildCounterStatus = 0; 1713 core.int buildCounterStatus = 0;
1626 buildStatus() { 1714 buildStatus() {
1627 var o = new api.Status(); 1715 var o = new api.Status();
1628 buildCounterStatus++; 1716 buildCounterStatus++;
1629 if (buildCounterStatus < 3) { 1717 if (buildCounterStatus < 3) {
1630 o.code = 42; 1718 o.code = 42;
1631 o.details = buildUnnamed3982(); 1719 o.details = buildUnnamed3473();
1632 o.message = "foo"; 1720 o.message = "foo";
1633 } 1721 }
1634 buildCounterStatus--; 1722 buildCounterStatus--;
1635 return o; 1723 return o;
1636 } 1724 }
1637 1725
1638 checkStatus(api.Status o) { 1726 checkStatus(api.Status o) {
1639 buildCounterStatus++; 1727 buildCounterStatus++;
1640 if (buildCounterStatus < 3) { 1728 if (buildCounterStatus < 3) {
1641 unittest.expect(o.code, unittest.equals(42)); 1729 unittest.expect(o.code, unittest.equals(42));
1642 checkUnnamed3982(o.details); 1730 checkUnnamed3473(o.details);
1643 unittest.expect(o.message, unittest.equals('foo')); 1731 unittest.expect(o.message, unittest.equals('foo'));
1644 } 1732 }
1645 buildCounterStatus--; 1733 buildCounterStatus--;
1646 } 1734 }
1647 1735
1648 buildUnnamed3983() { 1736 buildUnnamed3474() {
1649 var o = new core.Map<core.String, core.double>(); 1737 var o = new core.Map<core.String, core.double>();
1650 o["x"] = 42.0; 1738 o["x"] = 42.0;
1651 o["y"] = 42.0; 1739 o["y"] = 42.0;
1652 return o; 1740 return o;
1653 } 1741 }
1654 1742
1655 checkUnnamed3983(core.Map<core.String, core.double> o) { 1743 checkUnnamed3474(core.Map<core.String, core.double> o) {
1656 unittest.expect(o, unittest.hasLength(2)); 1744 unittest.expect(o, unittest.hasLength(2));
1657 unittest.expect(o["x"], unittest.equals(42.0)); 1745 unittest.expect(o["x"], unittest.equals(42.0));
1658 unittest.expect(o["y"], unittest.equals(42.0)); 1746 unittest.expect(o["y"], unittest.equals(42.0));
1659 } 1747 }
1660 1748
1661 core.int buildCounterTrafficSplit = 0; 1749 core.int buildCounterTrafficSplit = 0;
1662 buildTrafficSplit() { 1750 buildTrafficSplit() {
1663 var o = new api.TrafficSplit(); 1751 var o = new api.TrafficSplit();
1664 buildCounterTrafficSplit++; 1752 buildCounterTrafficSplit++;
1665 if (buildCounterTrafficSplit < 3) { 1753 if (buildCounterTrafficSplit < 3) {
1666 o.allocations = buildUnnamed3983(); 1754 o.allocations = buildUnnamed3474();
1667 o.shardBy = "foo"; 1755 o.shardBy = "foo";
1668 } 1756 }
1669 buildCounterTrafficSplit--; 1757 buildCounterTrafficSplit--;
1670 return o; 1758 return o;
1671 } 1759 }
1672 1760
1673 checkTrafficSplit(api.TrafficSplit o) { 1761 checkTrafficSplit(api.TrafficSplit o) {
1674 buildCounterTrafficSplit++; 1762 buildCounterTrafficSplit++;
1675 if (buildCounterTrafficSplit < 3) { 1763 if (buildCounterTrafficSplit < 3) {
1676 checkUnnamed3983(o.allocations); 1764 checkUnnamed3474(o.allocations);
1677 unittest.expect(o.shardBy, unittest.equals('foo')); 1765 unittest.expect(o.shardBy, unittest.equals('foo'));
1678 } 1766 }
1679 buildCounterTrafficSplit--; 1767 buildCounterTrafficSplit--;
1680 } 1768 }
1681 1769
1682 core.int buildCounterUrlDispatchRule = 0; 1770 core.int buildCounterUrlDispatchRule = 0;
1683 buildUrlDispatchRule() { 1771 buildUrlDispatchRule() {
1684 var o = new api.UrlDispatchRule(); 1772 var o = new api.UrlDispatchRule();
1685 buildCounterUrlDispatchRule++; 1773 buildCounterUrlDispatchRule++;
1686 if (buildCounterUrlDispatchRule < 3) { 1774 if (buildCounterUrlDispatchRule < 3) {
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
1728 unittest.expect(o.login, unittest.equals('foo')); 1816 unittest.expect(o.login, unittest.equals('foo'));
1729 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo')); 1817 unittest.expect(o.redirectHttpResponseCode, unittest.equals('foo'));
1730 checkScriptHandler(o.script); 1818 checkScriptHandler(o.script);
1731 unittest.expect(o.securityLevel, unittest.equals('foo')); 1819 unittest.expect(o.securityLevel, unittest.equals('foo'));
1732 checkStaticFilesHandler(o.staticFiles); 1820 checkStaticFilesHandler(o.staticFiles);
1733 unittest.expect(o.urlRegex, unittest.equals('foo')); 1821 unittest.expect(o.urlRegex, unittest.equals('foo'));
1734 } 1822 }
1735 buildCounterUrlMap--; 1823 buildCounterUrlMap--;
1736 } 1824 }
1737 1825
1738 buildUnnamed3984() { 1826 buildUnnamed3475() {
1739 var o = new core.Map<core.String, core.String>(); 1827 var o = new core.Map<core.String, core.String>();
1740 o["x"] = "foo"; 1828 o["x"] = "foo";
1741 o["y"] = "foo"; 1829 o["y"] = "foo";
1742 return o; 1830 return o;
1743 } 1831 }
1744 1832
1745 checkUnnamed3984(core.Map<core.String, core.String> o) { 1833 checkUnnamed3475(core.Map<core.String, core.String> o) {
1746 unittest.expect(o, unittest.hasLength(2)); 1834 unittest.expect(o, unittest.hasLength(2));
1747 unittest.expect(o["x"], unittest.equals('foo')); 1835 unittest.expect(o["x"], unittest.equals('foo'));
1748 unittest.expect(o["y"], unittest.equals('foo')); 1836 unittest.expect(o["y"], unittest.equals('foo'));
1749 } 1837 }
1750 1838
1751 buildUnnamed3985() { 1839 buildUnnamed3476() {
1752 var o = new core.Map<core.String, core.String>(); 1840 var o = new core.Map<core.String, core.String>();
1753 o["x"] = "foo"; 1841 o["x"] = "foo";
1754 o["y"] = "foo"; 1842 o["y"] = "foo";
1755 return o; 1843 return o;
1756 } 1844 }
1757 1845
1758 checkUnnamed3985(core.Map<core.String, core.String> o) { 1846 checkUnnamed3476(core.Map<core.String, core.String> o) {
1759 unittest.expect(o, unittest.hasLength(2)); 1847 unittest.expect(o, unittest.hasLength(2));
1760 unittest.expect(o["x"], unittest.equals('foo')); 1848 unittest.expect(o["x"], unittest.equals('foo'));
1761 unittest.expect(o["y"], unittest.equals('foo')); 1849 unittest.expect(o["y"], unittest.equals('foo'));
1762 } 1850 }
1763 1851
1764 buildUnnamed3986() { 1852 buildUnnamed3477() {
1765 var o = new core.List<api.ErrorHandler>(); 1853 var o = new core.List<api.ErrorHandler>();
1766 o.add(buildErrorHandler()); 1854 o.add(buildErrorHandler());
1767 o.add(buildErrorHandler()); 1855 o.add(buildErrorHandler());
1768 return o; 1856 return o;
1769 } 1857 }
1770 1858
1771 checkUnnamed3986(core.List<api.ErrorHandler> o) { 1859 checkUnnamed3477(core.List<api.ErrorHandler> o) {
1772 unittest.expect(o, unittest.hasLength(2)); 1860 unittest.expect(o, unittest.hasLength(2));
1773 checkErrorHandler(o[0]); 1861 checkErrorHandler(o[0]);
1774 checkErrorHandler(o[1]); 1862 checkErrorHandler(o[1]);
1775 } 1863 }
1776 1864
1777 buildUnnamed3987() { 1865 buildUnnamed3478() {
1778 var o = new core.List<api.UrlMap>(); 1866 var o = new core.List<api.UrlMap>();
1779 o.add(buildUrlMap()); 1867 o.add(buildUrlMap());
1780 o.add(buildUrlMap()); 1868 o.add(buildUrlMap());
1781 return o; 1869 return o;
1782 } 1870 }
1783 1871
1784 checkUnnamed3987(core.List<api.UrlMap> o) { 1872 checkUnnamed3478(core.List<api.UrlMap> o) {
1785 unittest.expect(o, unittest.hasLength(2)); 1873 unittest.expect(o, unittest.hasLength(2));
1786 checkUrlMap(o[0]); 1874 checkUrlMap(o[0]);
1787 checkUrlMap(o[1]); 1875 checkUrlMap(o[1]);
1788 } 1876 }
1789 1877
1790 buildUnnamed3988() { 1878 buildUnnamed3479() {
1791 var o = new core.List<core.String>(); 1879 var o = new core.List<core.String>();
1792 o.add("foo"); 1880 o.add("foo");
1793 o.add("foo"); 1881 o.add("foo");
1794 return o; 1882 return o;
1795 } 1883 }
1796 1884
1797 checkUnnamed3988(core.List<core.String> o) { 1885 checkUnnamed3479(core.List<core.String> o) {
1798 unittest.expect(o, unittest.hasLength(2)); 1886 unittest.expect(o, unittest.hasLength(2));
1799 unittest.expect(o[0], unittest.equals('foo')); 1887 unittest.expect(o[0], unittest.equals('foo'));
1800 unittest.expect(o[1], unittest.equals('foo')); 1888 unittest.expect(o[1], unittest.equals('foo'));
1801 } 1889 }
1802 1890
1803 buildUnnamed3989() { 1891 buildUnnamed3480() {
1804 var o = new core.List<api.Library>(); 1892 var o = new core.List<api.Library>();
1805 o.add(buildLibrary()); 1893 o.add(buildLibrary());
1806 o.add(buildLibrary()); 1894 o.add(buildLibrary());
1807 return o; 1895 return o;
1808 } 1896 }
1809 1897
1810 checkUnnamed3989(core.List<api.Library> o) { 1898 checkUnnamed3480(core.List<api.Library> o) {
1811 unittest.expect(o, unittest.hasLength(2)); 1899 unittest.expect(o, unittest.hasLength(2));
1812 checkLibrary(o[0]); 1900 checkLibrary(o[0]);
1813 checkLibrary(o[1]); 1901 checkLibrary(o[1]);
1814 } 1902 }
1815 1903
1816 core.int buildCounterVersion = 0; 1904 core.int buildCounterVersion = 0;
1817 buildVersion() { 1905 buildVersion() {
1818 var o = new api.Version(); 1906 var o = new api.Version();
1819 buildCounterVersion++; 1907 buildCounterVersion++;
1820 if (buildCounterVersion < 3) { 1908 if (buildCounterVersion < 3) {
1821 o.apiConfig = buildApiConfigHandler(); 1909 o.apiConfig = buildApiConfigHandler();
1822 o.automaticScaling = buildAutomaticScaling(); 1910 o.automaticScaling = buildAutomaticScaling();
1823 o.basicScaling = buildBasicScaling(); 1911 o.basicScaling = buildBasicScaling();
1824 o.betaSettings = buildUnnamed3984(); 1912 o.betaSettings = buildUnnamed3475();
1825 o.createTime = "foo"; 1913 o.createTime = "foo";
1826 o.createdBy = "foo"; 1914 o.createdBy = "foo";
1827 o.defaultExpiration = "foo"; 1915 o.defaultExpiration = "foo";
1828 o.deployment = buildDeployment(); 1916 o.deployment = buildDeployment();
1829 o.diskUsageBytes = "foo"; 1917 o.diskUsageBytes = "foo";
1830 o.endpointsApiService = buildEndpointsApiService(); 1918 o.endpointsApiService = buildEndpointsApiService();
1831 o.env = "foo"; 1919 o.env = "foo";
1832 o.envVariables = buildUnnamed3985(); 1920 o.envVariables = buildUnnamed3476();
1833 o.errorHandlers = buildUnnamed3986(); 1921 o.errorHandlers = buildUnnamed3477();
1834 o.handlers = buildUnnamed3987(); 1922 o.handlers = buildUnnamed3478();
1835 o.healthCheck = buildHealthCheck(); 1923 o.healthCheck = buildHealthCheck();
1836 o.id = "foo"; 1924 o.id = "foo";
1837 o.inboundServices = buildUnnamed3988(); 1925 o.inboundServices = buildUnnamed3479();
1838 o.instanceClass = "foo"; 1926 o.instanceClass = "foo";
1839 o.libraries = buildUnnamed3989(); 1927 o.libraries = buildUnnamed3480();
1840 o.livenessCheck = buildLivenessCheck(); 1928 o.livenessCheck = buildLivenessCheck();
1841 o.manualScaling = buildManualScaling(); 1929 o.manualScaling = buildManualScaling();
1842 o.name = "foo"; 1930 o.name = "foo";
1843 o.network = buildNetwork(); 1931 o.network = buildNetwork();
1844 o.nobuildFilesRegex = "foo"; 1932 o.nobuildFilesRegex = "foo";
1845 o.readinessCheck = buildReadinessCheck(); 1933 o.readinessCheck = buildReadinessCheck();
1846 o.resources = buildResources(); 1934 o.resources = buildResources();
1847 o.runtime = "foo"; 1935 o.runtime = "foo";
1936 o.runtimeApiVersion = "foo";
1848 o.servingStatus = "foo"; 1937 o.servingStatus = "foo";
1849 o.threadsafe = true; 1938 o.threadsafe = true;
1850 o.versionUrl = "foo"; 1939 o.versionUrl = "foo";
1851 o.vm = true; 1940 o.vm = true;
1852 } 1941 }
1853 buildCounterVersion--; 1942 buildCounterVersion--;
1854 return o; 1943 return o;
1855 } 1944 }
1856 1945
1857 checkVersion(api.Version o) { 1946 checkVersion(api.Version o) {
1858 buildCounterVersion++; 1947 buildCounterVersion++;
1859 if (buildCounterVersion < 3) { 1948 if (buildCounterVersion < 3) {
1860 checkApiConfigHandler(o.apiConfig); 1949 checkApiConfigHandler(o.apiConfig);
1861 checkAutomaticScaling(o.automaticScaling); 1950 checkAutomaticScaling(o.automaticScaling);
1862 checkBasicScaling(o.basicScaling); 1951 checkBasicScaling(o.basicScaling);
1863 checkUnnamed3984(o.betaSettings); 1952 checkUnnamed3475(o.betaSettings);
1864 unittest.expect(o.createTime, unittest.equals('foo')); 1953 unittest.expect(o.createTime, unittest.equals('foo'));
1865 unittest.expect(o.createdBy, unittest.equals('foo')); 1954 unittest.expect(o.createdBy, unittest.equals('foo'));
1866 unittest.expect(o.defaultExpiration, unittest.equals('foo')); 1955 unittest.expect(o.defaultExpiration, unittest.equals('foo'));
1867 checkDeployment(o.deployment); 1956 checkDeployment(o.deployment);
1868 unittest.expect(o.diskUsageBytes, unittest.equals('foo')); 1957 unittest.expect(o.diskUsageBytes, unittest.equals('foo'));
1869 checkEndpointsApiService(o.endpointsApiService); 1958 checkEndpointsApiService(o.endpointsApiService);
1870 unittest.expect(o.env, unittest.equals('foo')); 1959 unittest.expect(o.env, unittest.equals('foo'));
1871 checkUnnamed3985(o.envVariables); 1960 checkUnnamed3476(o.envVariables);
1872 checkUnnamed3986(o.errorHandlers); 1961 checkUnnamed3477(o.errorHandlers);
1873 checkUnnamed3987(o.handlers); 1962 checkUnnamed3478(o.handlers);
1874 checkHealthCheck(o.healthCheck); 1963 checkHealthCheck(o.healthCheck);
1875 unittest.expect(o.id, unittest.equals('foo')); 1964 unittest.expect(o.id, unittest.equals('foo'));
1876 checkUnnamed3988(o.inboundServices); 1965 checkUnnamed3479(o.inboundServices);
1877 unittest.expect(o.instanceClass, unittest.equals('foo')); 1966 unittest.expect(o.instanceClass, unittest.equals('foo'));
1878 checkUnnamed3989(o.libraries); 1967 checkUnnamed3480(o.libraries);
1879 checkLivenessCheck(o.livenessCheck); 1968 checkLivenessCheck(o.livenessCheck);
1880 checkManualScaling(o.manualScaling); 1969 checkManualScaling(o.manualScaling);
1881 unittest.expect(o.name, unittest.equals('foo')); 1970 unittest.expect(o.name, unittest.equals('foo'));
1882 checkNetwork(o.network); 1971 checkNetwork(o.network);
1883 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo')); 1972 unittest.expect(o.nobuildFilesRegex, unittest.equals('foo'));
1884 checkReadinessCheck(o.readinessCheck); 1973 checkReadinessCheck(o.readinessCheck);
1885 checkResources(o.resources); 1974 checkResources(o.resources);
1886 unittest.expect(o.runtime, unittest.equals('foo')); 1975 unittest.expect(o.runtime, unittest.equals('foo'));
1976 unittest.expect(o.runtimeApiVersion, unittest.equals('foo'));
1887 unittest.expect(o.servingStatus, unittest.equals('foo')); 1977 unittest.expect(o.servingStatus, unittest.equals('foo'));
1888 unittest.expect(o.threadsafe, unittest.isTrue); 1978 unittest.expect(o.threadsafe, unittest.isTrue);
1889 unittest.expect(o.versionUrl, unittest.equals('foo')); 1979 unittest.expect(o.versionUrl, unittest.equals('foo'));
1890 unittest.expect(o.vm, unittest.isTrue); 1980 unittest.expect(o.vm, unittest.isTrue);
1891 } 1981 }
1892 buildCounterVersion--; 1982 buildCounterVersion--;
1893 } 1983 }
1894 1984
1895 core.int buildCounterVolume = 0; 1985 core.int buildCounterVolume = 0;
1896 buildVolume() { 1986 buildVolume() {
(...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after
1994 2084
1995 unittest.group("obj-schema-BasicScaling", () { 2085 unittest.group("obj-schema-BasicScaling", () {
1996 unittest.test("to-json--from-json", () { 2086 unittest.test("to-json--from-json", () {
1997 var o = buildBasicScaling(); 2087 var o = buildBasicScaling();
1998 var od = new api.BasicScaling.fromJson(o.toJson()); 2088 var od = new api.BasicScaling.fromJson(o.toJson());
1999 checkBasicScaling(od); 2089 checkBasicScaling(od);
2000 }); 2090 });
2001 }); 2091 });
2002 2092
2003 2093
2094 unittest.group("obj-schema-BuildInfo", () {
2095 unittest.test("to-json--from-json", () {
2096 var o = buildBuildInfo();
2097 var od = new api.BuildInfo.fromJson(o.toJson());
2098 checkBuildInfo(od);
2099 });
2100 });
2101
2102
2004 unittest.group("obj-schema-CertificateRawData", () { 2103 unittest.group("obj-schema-CertificateRawData", () {
2005 unittest.test("to-json--from-json", () { 2104 unittest.test("to-json--from-json", () {
2006 var o = buildCertificateRawData(); 2105 var o = buildCertificateRawData();
2007 var od = new api.CertificateRawData.fromJson(o.toJson()); 2106 var od = new api.CertificateRawData.fromJson(o.toJson());
2008 checkCertificateRawData(od); 2107 checkCertificateRawData(od);
2009 }); 2108 });
2010 }); 2109 });
2011 2110
2012 2111
2013 unittest.group("obj-schema-ContainerInfo", () { 2112 unittest.group("obj-schema-ContainerInfo", () {
(...skipping 277 matching lines...) Expand 10 before | Expand all | Expand 10 after
2291 2390
2292 unittest.group("obj-schema-OperationMetadataV1", () { 2391 unittest.group("obj-schema-OperationMetadataV1", () {
2293 unittest.test("to-json--from-json", () { 2392 unittest.test("to-json--from-json", () {
2294 var o = buildOperationMetadataV1(); 2393 var o = buildOperationMetadataV1();
2295 var od = new api.OperationMetadataV1.fromJson(o.toJson()); 2394 var od = new api.OperationMetadataV1.fromJson(o.toJson());
2296 checkOperationMetadataV1(od); 2395 checkOperationMetadataV1(od);
2297 }); 2396 });
2298 }); 2397 });
2299 2398
2300 2399
2400 unittest.group("obj-schema-OperationMetadataV1Alpha", () {
2401 unittest.test("to-json--from-json", () {
2402 var o = buildOperationMetadataV1Alpha();
2403 var od = new api.OperationMetadataV1Alpha.fromJson(o.toJson());
2404 checkOperationMetadataV1Alpha(od);
2405 });
2406 });
2407
2408
2301 unittest.group("obj-schema-OperationMetadataV1Beta", () { 2409 unittest.group("obj-schema-OperationMetadataV1Beta", () {
2302 unittest.test("to-json--from-json", () { 2410 unittest.test("to-json--from-json", () {
2303 var o = buildOperationMetadataV1Beta(); 2411 var o = buildOperationMetadataV1Beta();
2304 var od = new api.OperationMetadataV1Beta.fromJson(o.toJson()); 2412 var od = new api.OperationMetadataV1Beta.fromJson(o.toJson());
2305 checkOperationMetadataV1Beta(od); 2413 checkOperationMetadataV1Beta(od);
2306 }); 2414 });
2307 }); 2415 });
2308 2416
2309 2417
2310 unittest.group("obj-schema-OperationMetadataV1Beta5", () { 2418 unittest.group("obj-schema-OperationMetadataV1Beta5", () {
(...skipping 70 matching lines...) Expand 10 before | Expand all | Expand 10 after
2381 2489
2382 unittest.group("obj-schema-SslSettings", () { 2490 unittest.group("obj-schema-SslSettings", () {
2383 unittest.test("to-json--from-json", () { 2491 unittest.test("to-json--from-json", () {
2384 var o = buildSslSettings(); 2492 var o = buildSslSettings();
2385 var od = new api.SslSettings.fromJson(o.toJson()); 2493 var od = new api.SslSettings.fromJson(o.toJson());
2386 checkSslSettings(od); 2494 checkSslSettings(od);
2387 }); 2495 });
2388 }); 2496 });
2389 2497
2390 2498
2499 unittest.group("obj-schema-StandardSchedulerSettings", () {
2500 unittest.test("to-json--from-json", () {
2501 var o = buildStandardSchedulerSettings();
2502 var od = new api.StandardSchedulerSettings.fromJson(o.toJson());
2503 checkStandardSchedulerSettings(od);
2504 });
2505 });
2506
2507
2391 unittest.group("obj-schema-StaticFilesHandler", () { 2508 unittest.group("obj-schema-StaticFilesHandler", () {
2392 unittest.test("to-json--from-json", () { 2509 unittest.test("to-json--from-json", () {
2393 var o = buildStaticFilesHandler(); 2510 var o = buildStaticFilesHandler();
2394 var od = new api.StaticFilesHandler.fromJson(o.toJson()); 2511 var od = new api.StaticFilesHandler.fromJson(o.toJson());
2395 checkStaticFilesHandler(od); 2512 checkStaticFilesHandler(od);
2396 }); 2513 });
2397 }); 2514 });
2398 2515
2399 2516
2400 unittest.group("obj-schema-Status", () { 2517 unittest.group("obj-schema-Status", () {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
2459 }); 2576 });
2460 }); 2577 });
2461 2578
2462 2579
2463 unittest.group("resource-AppsResourceApi", () { 2580 unittest.group("resource-AppsResourceApi", () {
2464 unittest.test("method--create", () { 2581 unittest.test("method--create", () {
2465 2582
2466 var mock = new HttpServerMock(); 2583 var mock = new HttpServerMock();
2467 api.AppsResourceApi res = new api.AppengineApi(mock).apps; 2584 api.AppsResourceApi res = new api.AppengineApi(mock).apps;
2468 var arg_request = buildApplication(); 2585 var arg_request = buildApplication();
2469 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2586 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2470 var obj = new api.Application.fromJson(json); 2587 var obj = new api.Application.fromJson(json);
2471 checkApplication(obj); 2588 checkApplication(obj);
2472 2589
2473 var path = (req.url).path; 2590 var path = (req.url).path;
2474 var pathOffset = 0; 2591 var pathOffset = 0;
2475 var index; 2592 var index;
2476 var subPart; 2593 var subPart;
2477 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2594 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2478 pathOffset += 1; 2595 pathOffset += 1;
2479 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("v1beta/apps")); 2596 unittest.expect(path.substring(pathOffset, pathOffset + 11), unittest.eq uals("v1beta/apps"));
(...skipping 16 matching lines...) Expand all
2496 } 2613 }
2497 } 2614 }
2498 2615
2499 2616
2500 var h = { 2617 var h = {
2501 "content-type" : "application/json; charset=utf-8", 2618 "content-type" : "application/json; charset=utf-8",
2502 }; 2619 };
2503 var resp = convert.JSON.encode(buildOperation()); 2620 var resp = convert.JSON.encode(buildOperation());
2504 return new async.Future.value(stringResponse(200, h, resp)); 2621 return new async.Future.value(stringResponse(200, h, resp));
2505 }), true); 2622 }), true);
2506 res.create(arg_request).then(unittest.expectAsync(((api.Operation response ) { 2623 res.create(arg_request).then(unittest.expectAsync1(((api.Operation respons e) {
2507 checkOperation(response); 2624 checkOperation(response);
2508 }))); 2625 })));
2509 }); 2626 });
2510 2627
2511 unittest.test("method--get", () { 2628 unittest.test("method--get", () {
2512 2629
2513 var mock = new HttpServerMock(); 2630 var mock = new HttpServerMock();
2514 api.AppsResourceApi res = new api.AppengineApi(mock).apps; 2631 api.AppsResourceApi res = new api.AppengineApi(mock).apps;
2515 var arg_appsId = "foo"; 2632 var arg_appsId = "foo";
2516 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2633 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2517 var path = (req.url).path; 2634 var path = (req.url).path;
2518 var pathOffset = 0; 2635 var pathOffset = 0;
2519 var index; 2636 var index;
2520 var subPart; 2637 var subPart;
2521 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2638 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2522 pathOffset += 1; 2639 pathOffset += 1;
2523 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 2640 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
2524 pathOffset += 12; 2641 pathOffset += 12;
2525 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset)); 2642 subPart = core.Uri.decodeQueryComponent(path.substring(pathOffset));
2526 pathOffset = path.length; 2643 pathOffset = path.length;
(...skipping 16 matching lines...) Expand all
2543 } 2660 }
2544 } 2661 }
2545 2662
2546 2663
2547 var h = { 2664 var h = {
2548 "content-type" : "application/json; charset=utf-8", 2665 "content-type" : "application/json; charset=utf-8",
2549 }; 2666 };
2550 var resp = convert.JSON.encode(buildApplication()); 2667 var resp = convert.JSON.encode(buildApplication());
2551 return new async.Future.value(stringResponse(200, h, resp)); 2668 return new async.Future.value(stringResponse(200, h, resp));
2552 }), true); 2669 }), true);
2553 res.get(arg_appsId).then(unittest.expectAsync(((api.Application response) { 2670 res.get(arg_appsId).then(unittest.expectAsync1(((api.Application response) {
2554 checkApplication(response); 2671 checkApplication(response);
2555 }))); 2672 })));
2556 }); 2673 });
2557 2674
2558 unittest.test("method--patch", () { 2675 unittest.test("method--patch", () {
2559 2676
2560 var mock = new HttpServerMock(); 2677 var mock = new HttpServerMock();
2561 api.AppsResourceApi res = new api.AppengineApi(mock).apps; 2678 api.AppsResourceApi res = new api.AppengineApi(mock).apps;
2562 var arg_request = buildApplication(); 2679 var arg_request = buildApplication();
2563 var arg_appsId = "foo"; 2680 var arg_appsId = "foo";
2564 var arg_updateMask = "foo"; 2681 var arg_updateMask = "foo";
2565 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2682 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2566 var obj = new api.Application.fromJson(json); 2683 var obj = new api.Application.fromJson(json);
2567 checkApplication(obj); 2684 checkApplication(obj);
2568 2685
2569 var path = (req.url).path; 2686 var path = (req.url).path;
2570 var pathOffset = 0; 2687 var pathOffset = 0;
2571 var index; 2688 var index;
2572 var subPart; 2689 var subPart;
2573 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2690 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2574 pathOffset += 1; 2691 pathOffset += 1;
2575 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 2692 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
(...skipping 20 matching lines...) Expand all
2596 } 2713 }
2597 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask)); 2714 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask));
2598 2715
2599 2716
2600 var h = { 2717 var h = {
2601 "content-type" : "application/json; charset=utf-8", 2718 "content-type" : "application/json; charset=utf-8",
2602 }; 2719 };
2603 var resp = convert.JSON.encode(buildOperation()); 2720 var resp = convert.JSON.encode(buildOperation());
2604 return new async.Future.value(stringResponse(200, h, resp)); 2721 return new async.Future.value(stringResponse(200, h, resp));
2605 }), true); 2722 }), true);
2606 res.patch(arg_request, arg_appsId, updateMask: arg_updateMask).then(unitte st.expectAsync(((api.Operation response) { 2723 res.patch(arg_request, arg_appsId, updateMask: arg_updateMask).then(unitte st.expectAsync1(((api.Operation response) {
2607 checkOperation(response); 2724 checkOperation(response);
2608 }))); 2725 })));
2609 }); 2726 });
2610 2727
2611 unittest.test("method--repair", () { 2728 unittest.test("method--repair", () {
2612 2729
2613 var mock = new HttpServerMock(); 2730 var mock = new HttpServerMock();
2614 api.AppsResourceApi res = new api.AppengineApi(mock).apps; 2731 api.AppsResourceApi res = new api.AppengineApi(mock).apps;
2615 var arg_request = buildRepairApplicationRequest(); 2732 var arg_request = buildRepairApplicationRequest();
2616 var arg_appsId = "foo"; 2733 var arg_appsId = "foo";
2617 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2734 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2618 var obj = new api.RepairApplicationRequest.fromJson(json); 2735 var obj = new api.RepairApplicationRequest.fromJson(json);
2619 checkRepairApplicationRequest(obj); 2736 checkRepairApplicationRequest(obj);
2620 2737
2621 var path = (req.url).path; 2738 var path = (req.url).path;
2622 var pathOffset = 0; 2739 var pathOffset = 0;
2623 var index; 2740 var index;
2624 var subPart; 2741 var subPart;
2625 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2742 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2626 pathOffset += 1; 2743 pathOffset += 1;
2627 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 2744 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
(...skipping 23 matching lines...) Expand all
2651 } 2768 }
2652 } 2769 }
2653 2770
2654 2771
2655 var h = { 2772 var h = {
2656 "content-type" : "application/json; charset=utf-8", 2773 "content-type" : "application/json; charset=utf-8",
2657 }; 2774 };
2658 var resp = convert.JSON.encode(buildOperation()); 2775 var resp = convert.JSON.encode(buildOperation());
2659 return new async.Future.value(stringResponse(200, h, resp)); 2776 return new async.Future.value(stringResponse(200, h, resp));
2660 }), true); 2777 }), true);
2661 res.repair(arg_request, arg_appsId).then(unittest.expectAsync(((api.Operat ion response) { 2778 res.repair(arg_request, arg_appsId).then(unittest.expectAsync1(((api.Opera tion response) {
2662 checkOperation(response); 2779 checkOperation(response);
2663 }))); 2780 })));
2664 }); 2781 });
2665 2782
2666 }); 2783 });
2667 2784
2668 2785
2669 unittest.group("resource-AppsAuthorizedCertificatesResourceApi", () { 2786 unittest.group("resource-AppsAuthorizedCertificatesResourceApi", () {
2670 unittest.test("method--create", () { 2787 unittest.test("method--create", () {
2671 2788
2672 var mock = new HttpServerMock(); 2789 var mock = new HttpServerMock();
2673 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates; 2790 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates;
2674 var arg_request = buildAuthorizedCertificate(); 2791 var arg_request = buildAuthorizedCertificate();
2675 var arg_appsId = "foo"; 2792 var arg_appsId = "foo";
2676 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2793 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2677 var obj = new api.AuthorizedCertificate.fromJson(json); 2794 var obj = new api.AuthorizedCertificate.fromJson(json);
2678 checkAuthorizedCertificate(obj); 2795 checkAuthorizedCertificate(obj);
2679 2796
2680 var path = (req.url).path; 2797 var path = (req.url).path;
2681 var pathOffset = 0; 2798 var pathOffset = 0;
2682 var index; 2799 var index;
2683 var subPart; 2800 var subPart;
2684 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2801 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2685 pathOffset += 1; 2802 pathOffset += 1;
2686 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 2803 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
(...skipping 23 matching lines...) Expand all
2710 } 2827 }
2711 } 2828 }
2712 2829
2713 2830
2714 var h = { 2831 var h = {
2715 "content-type" : "application/json; charset=utf-8", 2832 "content-type" : "application/json; charset=utf-8",
2716 }; 2833 };
2717 var resp = convert.JSON.encode(buildAuthorizedCertificate()); 2834 var resp = convert.JSON.encode(buildAuthorizedCertificate());
2718 return new async.Future.value(stringResponse(200, h, resp)); 2835 return new async.Future.value(stringResponse(200, h, resp));
2719 }), true); 2836 }), true);
2720 res.create(arg_request, arg_appsId).then(unittest.expectAsync(((api.Author izedCertificate response) { 2837 res.create(arg_request, arg_appsId).then(unittest.expectAsync1(((api.Autho rizedCertificate response) {
2721 checkAuthorizedCertificate(response); 2838 checkAuthorizedCertificate(response);
2722 }))); 2839 })));
2723 }); 2840 });
2724 2841
2725 unittest.test("method--delete", () { 2842 unittest.test("method--delete", () {
2726 2843
2727 var mock = new HttpServerMock(); 2844 var mock = new HttpServerMock();
2728 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates; 2845 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates;
2729 var arg_appsId = "foo"; 2846 var arg_appsId = "foo";
2730 var arg_authorizedCertificatesId = "foo"; 2847 var arg_authorizedCertificatesId = "foo";
2731 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2848 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2732 var path = (req.url).path; 2849 var path = (req.url).path;
2733 var pathOffset = 0; 2850 var pathOffset = 0;
2734 var index; 2851 var index;
2735 var subPart; 2852 var subPart;
2736 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2853 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2737 pathOffset += 1; 2854 pathOffset += 1;
2738 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 2855 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
2739 pathOffset += 12; 2856 pathOffset += 12;
2740 index = path.indexOf("/authorizedCertificates/", pathOffset); 2857 index = path.indexOf("/authorizedCertificates/", pathOffset);
2741 unittest.expect(index >= 0, unittest.isTrue); 2858 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 23 matching lines...) Expand all
2765 } 2882 }
2766 } 2883 }
2767 2884
2768 2885
2769 var h = { 2886 var h = {
2770 "content-type" : "application/json; charset=utf-8", 2887 "content-type" : "application/json; charset=utf-8",
2771 }; 2888 };
2772 var resp = convert.JSON.encode(buildEmpty()); 2889 var resp = convert.JSON.encode(buildEmpty());
2773 return new async.Future.value(stringResponse(200, h, resp)); 2890 return new async.Future.value(stringResponse(200, h, resp));
2774 }), true); 2891 }), true);
2775 res.delete(arg_appsId, arg_authorizedCertificatesId).then(unittest.expectA sync(((api.Empty response) { 2892 res.delete(arg_appsId, arg_authorizedCertificatesId).then(unittest.expectA sync1(((api.Empty response) {
2776 checkEmpty(response); 2893 checkEmpty(response);
2777 }))); 2894 })));
2778 }); 2895 });
2779 2896
2780 unittest.test("method--get", () { 2897 unittest.test("method--get", () {
2781 2898
2782 var mock = new HttpServerMock(); 2899 var mock = new HttpServerMock();
2783 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates; 2900 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates;
2784 var arg_appsId = "foo"; 2901 var arg_appsId = "foo";
2785 var arg_authorizedCertificatesId = "foo"; 2902 var arg_authorizedCertificatesId = "foo";
2786 var arg_view = "foo"; 2903 var arg_view = "foo";
2787 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 2904 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2788 var path = (req.url).path; 2905 var path = (req.url).path;
2789 var pathOffset = 0; 2906 var pathOffset = 0;
2790 var index; 2907 var index;
2791 var subPart; 2908 var subPart;
2792 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2909 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2793 pathOffset += 1; 2910 pathOffset += 1;
2794 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 2911 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
2795 pathOffset += 12; 2912 pathOffset += 12;
2796 index = path.indexOf("/authorizedCertificates/", pathOffset); 2913 index = path.indexOf("/authorizedCertificates/", pathOffset);
2797 unittest.expect(index >= 0, unittest.isTrue); 2914 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 24 matching lines...) Expand all
2822 } 2939 }
2823 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); 2940 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
2824 2941
2825 2942
2826 var h = { 2943 var h = {
2827 "content-type" : "application/json; charset=utf-8", 2944 "content-type" : "application/json; charset=utf-8",
2828 }; 2945 };
2829 var resp = convert.JSON.encode(buildAuthorizedCertificate()); 2946 var resp = convert.JSON.encode(buildAuthorizedCertificate());
2830 return new async.Future.value(stringResponse(200, h, resp)); 2947 return new async.Future.value(stringResponse(200, h, resp));
2831 }), true); 2948 }), true);
2832 res.get(arg_appsId, arg_authorizedCertificatesId, view: arg_view).then(uni ttest.expectAsync(((api.AuthorizedCertificate response) { 2949 res.get(arg_appsId, arg_authorizedCertificatesId, view: arg_view).then(uni ttest.expectAsync1(((api.AuthorizedCertificate response) {
2833 checkAuthorizedCertificate(response); 2950 checkAuthorizedCertificate(response);
2834 }))); 2951 })));
2835 }); 2952 });
2836 2953
2837 unittest.test("method--list", () { 2954 unittest.test("method--list", () {
2838 2955
2839 var mock = new HttpServerMock(); 2956 var mock = new HttpServerMock();
2840 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates; 2957 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates;
2841 var arg_appsId = "foo"; 2958 var arg_appsId = "foo";
2959 var arg_pageSize = 42;
2842 var arg_pageToken = "foo"; 2960 var arg_pageToken = "foo";
2843 var arg_pageSize = 42; 2961 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2844 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
2845 var path = (req.url).path; 2962 var path = (req.url).path;
2846 var pathOffset = 0; 2963 var pathOffset = 0;
2847 var index; 2964 var index;
2848 var subPart; 2965 var subPart;
2849 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 2966 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2850 pathOffset += 1; 2967 pathOffset += 1;
2851 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 2968 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
2852 pathOffset += 12; 2969 pathOffset += 12;
2853 index = path.indexOf("/authorizedCertificates", pathOffset); 2970 index = path.indexOf("/authorizedCertificates", pathOffset);
2854 unittest.expect(index >= 0, unittest.isTrue); 2971 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 12 matching lines...) Expand all
2867 if (n == "false") return false; 2984 if (n == "false") return false;
2868 if (n == null) return null; 2985 if (n == null) return null;
2869 throw new core.ArgumentError("Invalid boolean: $n"); 2986 throw new core.ArgumentError("Invalid boolean: $n");
2870 } 2987 }
2871 if (query.length > 0) { 2988 if (query.length > 0) {
2872 for (var part in query.split("&")) { 2989 for (var part in query.split("&")) {
2873 var keyvalue = part.split("="); 2990 var keyvalue = part.split("=");
2874 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 2991 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
2875 } 2992 }
2876 } 2993 }
2994 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2877 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 2995 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2878 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2879 2996
2880 2997
2881 var h = { 2998 var h = {
2882 "content-type" : "application/json; charset=utf-8", 2999 "content-type" : "application/json; charset=utf-8",
2883 }; 3000 };
2884 var resp = convert.JSON.encode(buildListAuthorizedCertificatesResponse() ); 3001 var resp = convert.JSON.encode(buildListAuthorizedCertificatesResponse() );
2885 return new async.Future.value(stringResponse(200, h, resp)); 3002 return new async.Future.value(stringResponse(200, h, resp));
2886 }), true); 3003 }), true);
2887 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync(((api.ListAuthorizedCertificatesResponse response) { 3004 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync1(((api.ListAuthorizedCertificatesResponse response) {
2888 checkListAuthorizedCertificatesResponse(response); 3005 checkListAuthorizedCertificatesResponse(response);
2889 }))); 3006 })));
2890 }); 3007 });
2891 3008
2892 unittest.test("method--patch", () { 3009 unittest.test("method--patch", () {
2893 3010
2894 var mock = new HttpServerMock(); 3011 var mock = new HttpServerMock();
2895 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates; 3012 api.AppsAuthorizedCertificatesResourceApi res = new api.AppengineApi(mock) .apps.authorizedCertificates;
2896 var arg_request = buildAuthorizedCertificate(); 3013 var arg_request = buildAuthorizedCertificate();
2897 var arg_appsId = "foo"; 3014 var arg_appsId = "foo";
2898 var arg_authorizedCertificatesId = "foo"; 3015 var arg_authorizedCertificatesId = "foo";
2899 var arg_updateMask = "foo"; 3016 var arg_updateMask = "foo";
2900 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3017 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2901 var obj = new api.AuthorizedCertificate.fromJson(json); 3018 var obj = new api.AuthorizedCertificate.fromJson(json);
2902 checkAuthorizedCertificate(obj); 3019 checkAuthorizedCertificate(obj);
2903 3020
2904 var path = (req.url).path; 3021 var path = (req.url).path;
2905 var pathOffset = 0; 3022 var pathOffset = 0;
2906 var index; 3023 var index;
2907 var subPart; 3024 var subPart;
2908 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3025 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2909 pathOffset += 1; 3026 pathOffset += 1;
2910 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3027 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
(...skipping 27 matching lines...) Expand all
2938 } 3055 }
2939 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask)); 3056 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask));
2940 3057
2941 3058
2942 var h = { 3059 var h = {
2943 "content-type" : "application/json; charset=utf-8", 3060 "content-type" : "application/json; charset=utf-8",
2944 }; 3061 };
2945 var resp = convert.JSON.encode(buildAuthorizedCertificate()); 3062 var resp = convert.JSON.encode(buildAuthorizedCertificate());
2946 return new async.Future.value(stringResponse(200, h, resp)); 3063 return new async.Future.value(stringResponse(200, h, resp));
2947 }), true); 3064 }), true);
2948 res.patch(arg_request, arg_appsId, arg_authorizedCertificatesId, updateMas k: arg_updateMask).then(unittest.expectAsync(((api.AuthorizedCertificate respons e) { 3065 res.patch(arg_request, arg_appsId, arg_authorizedCertificatesId, updateMas k: arg_updateMask).then(unittest.expectAsync1(((api.AuthorizedCertificate respon se) {
2949 checkAuthorizedCertificate(response); 3066 checkAuthorizedCertificate(response);
2950 }))); 3067 })));
2951 }); 3068 });
2952 3069
2953 }); 3070 });
2954 3071
2955 3072
2956 unittest.group("resource-AppsAuthorizedDomainsResourceApi", () { 3073 unittest.group("resource-AppsAuthorizedDomainsResourceApi", () {
2957 unittest.test("method--list", () { 3074 unittest.test("method--list", () {
2958 3075
2959 var mock = new HttpServerMock(); 3076 var mock = new HttpServerMock();
2960 api.AppsAuthorizedDomainsResourceApi res = new api.AppengineApi(mock).apps .authorizedDomains; 3077 api.AppsAuthorizedDomainsResourceApi res = new api.AppengineApi(mock).apps .authorizedDomains;
2961 var arg_appsId = "foo"; 3078 var arg_appsId = "foo";
2962 var arg_pageToken = "foo"; 3079 var arg_pageToken = "foo";
2963 var arg_pageSize = 42; 3080 var arg_pageSize = 42;
2964 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3081 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
2965 var path = (req.url).path; 3082 var path = (req.url).path;
2966 var pathOffset = 0; 3083 var pathOffset = 0;
2967 var index; 3084 var index;
2968 var subPart; 3085 var subPart;
2969 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3086 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
2970 pathOffset += 1; 3087 pathOffset += 1;
2971 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3088 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
2972 pathOffset += 12; 3089 pathOffset += 12;
2973 index = path.indexOf("/authorizedDomains", pathOffset); 3090 index = path.indexOf("/authorizedDomains", pathOffset);
2974 unittest.expect(index >= 0, unittest.isTrue); 3091 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 22 matching lines...) Expand all
2997 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 3114 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
2998 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 3115 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
2999 3116
3000 3117
3001 var h = { 3118 var h = {
3002 "content-type" : "application/json; charset=utf-8", 3119 "content-type" : "application/json; charset=utf-8",
3003 }; 3120 };
3004 var resp = convert.JSON.encode(buildListAuthorizedDomainsResponse()); 3121 var resp = convert.JSON.encode(buildListAuthorizedDomainsResponse());
3005 return new async.Future.value(stringResponse(200, h, resp)); 3122 return new async.Future.value(stringResponse(200, h, resp));
3006 }), true); 3123 }), true);
3007 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync(((api.ListAuthorizedDomainsResponse response) { 3124 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync1(((api.ListAuthorizedDomainsResponse response) {
3008 checkListAuthorizedDomainsResponse(response); 3125 checkListAuthorizedDomainsResponse(response);
3009 }))); 3126 })));
3010 }); 3127 });
3011 3128
3012 }); 3129 });
3013 3130
3014 3131
3015 unittest.group("resource-AppsDomainMappingsResourceApi", () { 3132 unittest.group("resource-AppsDomainMappingsResourceApi", () {
3016 unittest.test("method--create", () { 3133 unittest.test("method--create", () {
3017 3134
3018 var mock = new HttpServerMock(); 3135 var mock = new HttpServerMock();
3019 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings; 3136 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings;
3020 var arg_request = buildDomainMapping(); 3137 var arg_request = buildDomainMapping();
3021 var arg_appsId = "foo"; 3138 var arg_appsId = "foo";
3022 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3139 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3023 var obj = new api.DomainMapping.fromJson(json); 3140 var obj = new api.DomainMapping.fromJson(json);
3024 checkDomainMapping(obj); 3141 checkDomainMapping(obj);
3025 3142
3026 var path = (req.url).path; 3143 var path = (req.url).path;
3027 var pathOffset = 0; 3144 var pathOffset = 0;
3028 var index; 3145 var index;
3029 var subPart; 3146 var subPart;
3030 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3147 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3031 pathOffset += 1; 3148 pathOffset += 1;
3032 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3149 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
(...skipping 23 matching lines...) Expand all
3056 } 3173 }
3057 } 3174 }
3058 3175
3059 3176
3060 var h = { 3177 var h = {
3061 "content-type" : "application/json; charset=utf-8", 3178 "content-type" : "application/json; charset=utf-8",
3062 }; 3179 };
3063 var resp = convert.JSON.encode(buildOperation()); 3180 var resp = convert.JSON.encode(buildOperation());
3064 return new async.Future.value(stringResponse(200, h, resp)); 3181 return new async.Future.value(stringResponse(200, h, resp));
3065 }), true); 3182 }), true);
3066 res.create(arg_request, arg_appsId).then(unittest.expectAsync(((api.Operat ion response) { 3183 res.create(arg_request, arg_appsId).then(unittest.expectAsync1(((api.Opera tion response) {
3067 checkOperation(response); 3184 checkOperation(response);
3068 }))); 3185 })));
3069 }); 3186 });
3070 3187
3071 unittest.test("method--delete", () { 3188 unittest.test("method--delete", () {
3072 3189
3073 var mock = new HttpServerMock(); 3190 var mock = new HttpServerMock();
3074 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings; 3191 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings;
3075 var arg_appsId = "foo"; 3192 var arg_appsId = "foo";
3076 var arg_domainMappingsId = "foo"; 3193 var arg_domainMappingsId = "foo";
3077 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3194 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3078 var path = (req.url).path; 3195 var path = (req.url).path;
3079 var pathOffset = 0; 3196 var pathOffset = 0;
3080 var index; 3197 var index;
3081 var subPart; 3198 var subPart;
3082 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3199 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3083 pathOffset += 1; 3200 pathOffset += 1;
3084 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3201 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3085 pathOffset += 12; 3202 pathOffset += 12;
3086 index = path.indexOf("/domainMappings/", pathOffset); 3203 index = path.indexOf("/domainMappings/", pathOffset);
3087 unittest.expect(index >= 0, unittest.isTrue); 3204 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 23 matching lines...) Expand all
3111 } 3228 }
3112 } 3229 }
3113 3230
3114 3231
3115 var h = { 3232 var h = {
3116 "content-type" : "application/json; charset=utf-8", 3233 "content-type" : "application/json; charset=utf-8",
3117 }; 3234 };
3118 var resp = convert.JSON.encode(buildOperation()); 3235 var resp = convert.JSON.encode(buildOperation());
3119 return new async.Future.value(stringResponse(200, h, resp)); 3236 return new async.Future.value(stringResponse(200, h, resp));
3120 }), true); 3237 }), true);
3121 res.delete(arg_appsId, arg_domainMappingsId).then(unittest.expectAsync(((a pi.Operation response) { 3238 res.delete(arg_appsId, arg_domainMappingsId).then(unittest.expectAsync1((( api.Operation response) {
3122 checkOperation(response); 3239 checkOperation(response);
3123 }))); 3240 })));
3124 }); 3241 });
3125 3242
3126 unittest.test("method--get", () { 3243 unittest.test("method--get", () {
3127 3244
3128 var mock = new HttpServerMock(); 3245 var mock = new HttpServerMock();
3129 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings; 3246 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings;
3130 var arg_appsId = "foo"; 3247 var arg_appsId = "foo";
3131 var arg_domainMappingsId = "foo"; 3248 var arg_domainMappingsId = "foo";
3132 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3249 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3133 var path = (req.url).path; 3250 var path = (req.url).path;
3134 var pathOffset = 0; 3251 var pathOffset = 0;
3135 var index; 3252 var index;
3136 var subPart; 3253 var subPart;
3137 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3254 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3138 pathOffset += 1; 3255 pathOffset += 1;
3139 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3256 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3140 pathOffset += 12; 3257 pathOffset += 12;
3141 index = path.indexOf("/domainMappings/", pathOffset); 3258 index = path.indexOf("/domainMappings/", pathOffset);
3142 unittest.expect(index >= 0, unittest.isTrue); 3259 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 23 matching lines...) Expand all
3166 } 3283 }
3167 } 3284 }
3168 3285
3169 3286
3170 var h = { 3287 var h = {
3171 "content-type" : "application/json; charset=utf-8", 3288 "content-type" : "application/json; charset=utf-8",
3172 }; 3289 };
3173 var resp = convert.JSON.encode(buildDomainMapping()); 3290 var resp = convert.JSON.encode(buildDomainMapping());
3174 return new async.Future.value(stringResponse(200, h, resp)); 3291 return new async.Future.value(stringResponse(200, h, resp));
3175 }), true); 3292 }), true);
3176 res.get(arg_appsId, arg_domainMappingsId).then(unittest.expectAsync(((api. DomainMapping response) { 3293 res.get(arg_appsId, arg_domainMappingsId).then(unittest.expectAsync1(((api .DomainMapping response) {
3177 checkDomainMapping(response); 3294 checkDomainMapping(response);
3178 }))); 3295 })));
3179 }); 3296 });
3180 3297
3181 unittest.test("method--list", () { 3298 unittest.test("method--list", () {
3182 3299
3183 var mock = new HttpServerMock(); 3300 var mock = new HttpServerMock();
3184 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings; 3301 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings;
3185 var arg_appsId = "foo"; 3302 var arg_appsId = "foo";
3303 var arg_pageSize = 42;
3186 var arg_pageToken = "foo"; 3304 var arg_pageToken = "foo";
3187 var arg_pageSize = 42; 3305 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3188 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3189 var path = (req.url).path; 3306 var path = (req.url).path;
3190 var pathOffset = 0; 3307 var pathOffset = 0;
3191 var index; 3308 var index;
3192 var subPart; 3309 var subPart;
3193 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3310 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3194 pathOffset += 1; 3311 pathOffset += 1;
3195 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3312 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3196 pathOffset += 12; 3313 pathOffset += 12;
3197 index = path.indexOf("/domainMappings", pathOffset); 3314 index = path.indexOf("/domainMappings", pathOffset);
3198 unittest.expect(index >= 0, unittest.isTrue); 3315 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 12 matching lines...) Expand all
3211 if (n == "false") return false; 3328 if (n == "false") return false;
3212 if (n == null) return null; 3329 if (n == null) return null;
3213 throw new core.ArgumentError("Invalid boolean: $n"); 3330 throw new core.ArgumentError("Invalid boolean: $n");
3214 } 3331 }
3215 if (query.length > 0) { 3332 if (query.length > 0) {
3216 for (var part in query.split("&")) { 3333 for (var part in query.split("&")) {
3217 var keyvalue = part.split("="); 3334 var keyvalue = part.split("=");
3218 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3335 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3219 } 3336 }
3220 } 3337 }
3338 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3221 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 3339 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3222 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3223 3340
3224 3341
3225 var h = { 3342 var h = {
3226 "content-type" : "application/json; charset=utf-8", 3343 "content-type" : "application/json; charset=utf-8",
3227 }; 3344 };
3228 var resp = convert.JSON.encode(buildListDomainMappingsResponse()); 3345 var resp = convert.JSON.encode(buildListDomainMappingsResponse());
3229 return new async.Future.value(stringResponse(200, h, resp)); 3346 return new async.Future.value(stringResponse(200, h, resp));
3230 }), true); 3347 }), true);
3231 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync(((api.ListDomainMappingsResponse response) { 3348 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync1(((api.ListDomainMappingsResponse response) {
3232 checkListDomainMappingsResponse(response); 3349 checkListDomainMappingsResponse(response);
3233 }))); 3350 })));
3234 }); 3351 });
3235 3352
3236 unittest.test("method--patch", () { 3353 unittest.test("method--patch", () {
3237 3354
3238 var mock = new HttpServerMock(); 3355 var mock = new HttpServerMock();
3239 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings; 3356 api.AppsDomainMappingsResourceApi res = new api.AppengineApi(mock).apps.do mainMappings;
3240 var arg_request = buildDomainMapping(); 3357 var arg_request = buildDomainMapping();
3241 var arg_appsId = "foo"; 3358 var arg_appsId = "foo";
3242 var arg_domainMappingsId = "foo"; 3359 var arg_domainMappingsId = "foo";
3243 var arg_updateMask = "foo"; 3360 var arg_updateMask = "foo";
3244 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3361 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3245 var obj = new api.DomainMapping.fromJson(json); 3362 var obj = new api.DomainMapping.fromJson(json);
3246 checkDomainMapping(obj); 3363 checkDomainMapping(obj);
3247 3364
3248 var path = (req.url).path; 3365 var path = (req.url).path;
3249 var pathOffset = 0; 3366 var pathOffset = 0;
3250 var index; 3367 var index;
3251 var subPart; 3368 var subPart;
3252 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3369 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3253 pathOffset += 1; 3370 pathOffset += 1;
3254 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3371 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
(...skipping 27 matching lines...) Expand all
3282 } 3399 }
3283 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask)); 3400 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask));
3284 3401
3285 3402
3286 var h = { 3403 var h = {
3287 "content-type" : "application/json; charset=utf-8", 3404 "content-type" : "application/json; charset=utf-8",
3288 }; 3405 };
3289 var resp = convert.JSON.encode(buildOperation()); 3406 var resp = convert.JSON.encode(buildOperation());
3290 return new async.Future.value(stringResponse(200, h, resp)); 3407 return new async.Future.value(stringResponse(200, h, resp));
3291 }), true); 3408 }), true);
3292 res.patch(arg_request, arg_appsId, arg_domainMappingsId, updateMask: arg_u pdateMask).then(unittest.expectAsync(((api.Operation response) { 3409 res.patch(arg_request, arg_appsId, arg_domainMappingsId, updateMask: arg_u pdateMask).then(unittest.expectAsync1(((api.Operation response) {
3293 checkOperation(response); 3410 checkOperation(response);
3294 }))); 3411 })));
3295 }); 3412 });
3296 3413
3297 }); 3414 });
3298 3415
3299 3416
3300 unittest.group("resource-AppsLocationsResourceApi", () { 3417 unittest.group("resource-AppsLocationsResourceApi", () {
3301 unittest.test("method--get", () { 3418 unittest.test("method--get", () {
3302 3419
3303 var mock = new HttpServerMock(); 3420 var mock = new HttpServerMock();
3304 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns; 3421 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns;
3305 var arg_appsId = "foo"; 3422 var arg_appsId = "foo";
3306 var arg_locationsId = "foo"; 3423 var arg_locationsId = "foo";
3307 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3424 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3308 var path = (req.url).path; 3425 var path = (req.url).path;
3309 var pathOffset = 0; 3426 var pathOffset = 0;
3310 var index; 3427 var index;
3311 var subPart; 3428 var subPart;
3312 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3429 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3313 pathOffset += 1; 3430 pathOffset += 1;
3314 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3431 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3315 pathOffset += 12; 3432 pathOffset += 12;
3316 index = path.indexOf("/locations/", pathOffset); 3433 index = path.indexOf("/locations/", pathOffset);
3317 unittest.expect(index >= 0, unittest.isTrue); 3434 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 23 matching lines...) Expand all
3341 } 3458 }
3342 } 3459 }
3343 3460
3344 3461
3345 var h = { 3462 var h = {
3346 "content-type" : "application/json; charset=utf-8", 3463 "content-type" : "application/json; charset=utf-8",
3347 }; 3464 };
3348 var resp = convert.JSON.encode(buildLocation()); 3465 var resp = convert.JSON.encode(buildLocation());
3349 return new async.Future.value(stringResponse(200, h, resp)); 3466 return new async.Future.value(stringResponse(200, h, resp));
3350 }), true); 3467 }), true);
3351 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync(((api.Locat ion response) { 3468 res.get(arg_appsId, arg_locationsId).then(unittest.expectAsync1(((api.Loca tion response) {
3352 checkLocation(response); 3469 checkLocation(response);
3353 }))); 3470 })));
3354 }); 3471 });
3355 3472
3356 unittest.test("method--list", () { 3473 unittest.test("method--list", () {
3357 3474
3358 var mock = new HttpServerMock(); 3475 var mock = new HttpServerMock();
3359 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns; 3476 api.AppsLocationsResourceApi res = new api.AppengineApi(mock).apps.locatio ns;
3360 var arg_appsId = "foo"; 3477 var arg_appsId = "foo";
3361 var arg_pageSize = 42; 3478 var arg_pageSize = 42;
3362 var arg_filter = "foo"; 3479 var arg_filter = "foo";
3363 var arg_pageToken = "foo"; 3480 var arg_pageToken = "foo";
3364 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3481 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3365 var path = (req.url).path; 3482 var path = (req.url).path;
3366 var pathOffset = 0; 3483 var pathOffset = 0;
3367 var index; 3484 var index;
3368 var subPart; 3485 var subPart;
3369 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3486 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3370 pathOffset += 1; 3487 pathOffset += 1;
3371 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3488 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3372 pathOffset += 12; 3489 pathOffset += 12;
3373 index = path.indexOf("/locations", pathOffset); 3490 index = path.indexOf("/locations", pathOffset);
3374 unittest.expect(index >= 0, unittest.isTrue); 3491 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 23 matching lines...) Expand all
3398 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 3515 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
3399 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 3516 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3400 3517
3401 3518
3402 var h = { 3519 var h = {
3403 "content-type" : "application/json; charset=utf-8", 3520 "content-type" : "application/json; charset=utf-8",
3404 }; 3521 };
3405 var resp = convert.JSON.encode(buildListLocationsResponse()); 3522 var resp = convert.JSON.encode(buildListLocationsResponse());
3406 return new async.Future.value(stringResponse(200, h, resp)); 3523 return new async.Future.value(stringResponse(200, h, resp));
3407 }), true); 3524 }), true);
3408 res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken : arg_pageToken).then(unittest.expectAsync(((api.ListLocationsResponse response) { 3525 res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken : arg_pageToken).then(unittest.expectAsync1(((api.ListLocationsResponse response ) {
3409 checkListLocationsResponse(response); 3526 checkListLocationsResponse(response);
3410 }))); 3527 })));
3411 }); 3528 });
3412 3529
3413 }); 3530 });
3414 3531
3415 3532
3416 unittest.group("resource-AppsOperationsResourceApi", () { 3533 unittest.group("resource-AppsOperationsResourceApi", () {
3417 unittest.test("method--get", () { 3534 unittest.test("method--get", () {
3418 3535
3419 var mock = new HttpServerMock(); 3536 var mock = new HttpServerMock();
3420 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat ions; 3537 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat ions;
3421 var arg_appsId = "foo"; 3538 var arg_appsId = "foo";
3422 var arg_operationsId = "foo"; 3539 var arg_operationsId = "foo";
3423 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3540 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3424 var path = (req.url).path; 3541 var path = (req.url).path;
3425 var pathOffset = 0; 3542 var pathOffset = 0;
3426 var index; 3543 var index;
3427 var subPart; 3544 var subPart;
3428 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3545 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3429 pathOffset += 1; 3546 pathOffset += 1;
3430 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3547 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3431 pathOffset += 12; 3548 pathOffset += 12;
3432 index = path.indexOf("/operations/", pathOffset); 3549 index = path.indexOf("/operations/", pathOffset);
3433 unittest.expect(index >= 0, unittest.isTrue); 3550 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 23 matching lines...) Expand all
3457 } 3574 }
3458 } 3575 }
3459 3576
3460 3577
3461 var h = { 3578 var h = {
3462 "content-type" : "application/json; charset=utf-8", 3579 "content-type" : "application/json; charset=utf-8",
3463 }; 3580 };
3464 var resp = convert.JSON.encode(buildOperation()); 3581 var resp = convert.JSON.encode(buildOperation());
3465 return new async.Future.value(stringResponse(200, h, resp)); 3582 return new async.Future.value(stringResponse(200, h, resp));
3466 }), true); 3583 }), true);
3467 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync(((api.Oper ation response) { 3584 res.get(arg_appsId, arg_operationsId).then(unittest.expectAsync1(((api.Ope ration response) {
3468 checkOperation(response); 3585 checkOperation(response);
3469 }))); 3586 })));
3470 }); 3587 });
3471 3588
3472 unittest.test("method--list", () { 3589 unittest.test("method--list", () {
3473 3590
3474 var mock = new HttpServerMock(); 3591 var mock = new HttpServerMock();
3475 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat ions; 3592 api.AppsOperationsResourceApi res = new api.AppengineApi(mock).apps.operat ions;
3476 var arg_appsId = "foo"; 3593 var arg_appsId = "foo";
3477 var arg_pageSize = 42;
3478 var arg_filter = "foo"; 3594 var arg_filter = "foo";
3479 var arg_pageToken = "foo"; 3595 var arg_pageToken = "foo";
3480 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3596 var arg_pageSize = 42;
3597 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3481 var path = (req.url).path; 3598 var path = (req.url).path;
3482 var pathOffset = 0; 3599 var pathOffset = 0;
3483 var index; 3600 var index;
3484 var subPart; 3601 var subPart;
3485 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3602 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3486 pathOffset += 1; 3603 pathOffset += 1;
3487 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3604 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3488 pathOffset += 12; 3605 pathOffset += 12;
3489 index = path.indexOf("/operations", pathOffset); 3606 index = path.indexOf("/operations", pathOffset);
3490 unittest.expect(index >= 0, unittest.isTrue); 3607 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 12 matching lines...) Expand all
3503 if (n == "false") return false; 3620 if (n == "false") return false;
3504 if (n == null) return null; 3621 if (n == null) return null;
3505 throw new core.ArgumentError("Invalid boolean: $n"); 3622 throw new core.ArgumentError("Invalid boolean: $n");
3506 } 3623 }
3507 if (query.length > 0) { 3624 if (query.length > 0) {
3508 for (var part in query.split("&")) { 3625 for (var part in query.split("&")) {
3509 var keyvalue = part.split("="); 3626 var keyvalue = part.split("=");
3510 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3627 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3511 } 3628 }
3512 } 3629 }
3513 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3514 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter)); 3630 unittest.expect(queryMap["filter"].first, unittest.equals(arg_filter));
3515 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 3631 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3632 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3516 3633
3517 3634
3518 var h = { 3635 var h = {
3519 "content-type" : "application/json; charset=utf-8", 3636 "content-type" : "application/json; charset=utf-8",
3520 }; 3637 };
3521 var resp = convert.JSON.encode(buildListOperationsResponse()); 3638 var resp = convert.JSON.encode(buildListOperationsResponse());
3522 return new async.Future.value(stringResponse(200, h, resp)); 3639 return new async.Future.value(stringResponse(200, h, resp));
3523 }), true); 3640 }), true);
3524 res.list(arg_appsId, pageSize: arg_pageSize, filter: arg_filter, pageToken : arg_pageToken).then(unittest.expectAsync(((api.ListOperationsResponse response ) { 3641 res.list(arg_appsId, filter: arg_filter, pageToken: arg_pageToken, pageSiz e: arg_pageSize).then(unittest.expectAsync1(((api.ListOperationsResponse respons e) {
3525 checkListOperationsResponse(response); 3642 checkListOperationsResponse(response);
3526 }))); 3643 })));
3527 }); 3644 });
3528 3645
3529 }); 3646 });
3530 3647
3531 3648
3532 unittest.group("resource-AppsServicesResourceApi", () { 3649 unittest.group("resource-AppsServicesResourceApi", () {
3533 unittest.test("method--delete", () { 3650 unittest.test("method--delete", () {
3534 3651
3535 var mock = new HttpServerMock(); 3652 var mock = new HttpServerMock();
3536 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ; 3653 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ;
3537 var arg_appsId = "foo"; 3654 var arg_appsId = "foo";
3538 var arg_servicesId = "foo"; 3655 var arg_servicesId = "foo";
3539 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3656 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3540 var path = (req.url).path; 3657 var path = (req.url).path;
3541 var pathOffset = 0; 3658 var pathOffset = 0;
3542 var index; 3659 var index;
3543 var subPart; 3660 var subPart;
3544 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3661 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3545 pathOffset += 1; 3662 pathOffset += 1;
3546 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3663 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3547 pathOffset += 12; 3664 pathOffset += 12;
3548 index = path.indexOf("/services/", pathOffset); 3665 index = path.indexOf("/services/", pathOffset);
3549 unittest.expect(index >= 0, unittest.isTrue); 3666 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 23 matching lines...) Expand all
3573 } 3690 }
3574 } 3691 }
3575 3692
3576 3693
3577 var h = { 3694 var h = {
3578 "content-type" : "application/json; charset=utf-8", 3695 "content-type" : "application/json; charset=utf-8",
3579 }; 3696 };
3580 var resp = convert.JSON.encode(buildOperation()); 3697 var resp = convert.JSON.encode(buildOperation());
3581 return new async.Future.value(stringResponse(200, h, resp)); 3698 return new async.Future.value(stringResponse(200, h, resp));
3582 }), true); 3699 }), true);
3583 res.delete(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Ope ration response) { 3700 res.delete(arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Op eration response) {
3584 checkOperation(response); 3701 checkOperation(response);
3585 }))); 3702 })));
3586 }); 3703 });
3587 3704
3588 unittest.test("method--get", () { 3705 unittest.test("method--get", () {
3589 3706
3590 var mock = new HttpServerMock(); 3707 var mock = new HttpServerMock();
3591 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ; 3708 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ;
3592 var arg_appsId = "foo"; 3709 var arg_appsId = "foo";
3593 var arg_servicesId = "foo"; 3710 var arg_servicesId = "foo";
3594 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3711 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3595 var path = (req.url).path; 3712 var path = (req.url).path;
3596 var pathOffset = 0; 3713 var pathOffset = 0;
3597 var index; 3714 var index;
3598 var subPart; 3715 var subPart;
3599 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3716 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3600 pathOffset += 1; 3717 pathOffset += 1;
3601 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3718 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3602 pathOffset += 12; 3719 pathOffset += 12;
3603 index = path.indexOf("/services/", pathOffset); 3720 index = path.indexOf("/services/", pathOffset);
3604 unittest.expect(index >= 0, unittest.isTrue); 3721 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 23 matching lines...) Expand all
3628 } 3745 }
3629 } 3746 }
3630 3747
3631 3748
3632 var h = { 3749 var h = {
3633 "content-type" : "application/json; charset=utf-8", 3750 "content-type" : "application/json; charset=utf-8",
3634 }; 3751 };
3635 var resp = convert.JSON.encode(buildService()); 3752 var resp = convert.JSON.encode(buildService());
3636 return new async.Future.value(stringResponse(200, h, resp)); 3753 return new async.Future.value(stringResponse(200, h, resp));
3637 }), true); 3754 }), true);
3638 res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync(((api.Servic e response) { 3755 res.get(arg_appsId, arg_servicesId).then(unittest.expectAsync1(((api.Servi ce response) {
3639 checkService(response); 3756 checkService(response);
3640 }))); 3757 })));
3641 }); 3758 });
3642 3759
3643 unittest.test("method--list", () { 3760 unittest.test("method--list", () {
3644 3761
3645 var mock = new HttpServerMock(); 3762 var mock = new HttpServerMock();
3646 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ; 3763 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ;
3647 var arg_appsId = "foo"; 3764 var arg_appsId = "foo";
3765 var arg_pageSize = 42;
3648 var arg_pageToken = "foo"; 3766 var arg_pageToken = "foo";
3649 var arg_pageSize = 42; 3767 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3650 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3651 var path = (req.url).path; 3768 var path = (req.url).path;
3652 var pathOffset = 0; 3769 var pathOffset = 0;
3653 var index; 3770 var index;
3654 var subPart; 3771 var subPart;
3655 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3772 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3656 pathOffset += 1; 3773 pathOffset += 1;
3657 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3774 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3658 pathOffset += 12; 3775 pathOffset += 12;
3659 index = path.indexOf("/services", pathOffset); 3776 index = path.indexOf("/services", pathOffset);
3660 unittest.expect(index >= 0, unittest.isTrue); 3777 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 12 matching lines...) Expand all
3673 if (n == "false") return false; 3790 if (n == "false") return false;
3674 if (n == null) return null; 3791 if (n == null) return null;
3675 throw new core.ArgumentError("Invalid boolean: $n"); 3792 throw new core.ArgumentError("Invalid boolean: $n");
3676 } 3793 }
3677 if (query.length > 0) { 3794 if (query.length > 0) {
3678 for (var part in query.split("&")) { 3795 for (var part in query.split("&")) {
3679 var keyvalue = part.split("="); 3796 var keyvalue = part.split("=");
3680 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 3797 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
3681 } 3798 }
3682 } 3799 }
3800 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3683 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 3801 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
3684 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
3685 3802
3686 3803
3687 var h = { 3804 var h = {
3688 "content-type" : "application/json; charset=utf-8", 3805 "content-type" : "application/json; charset=utf-8",
3689 }; 3806 };
3690 var resp = convert.JSON.encode(buildListServicesResponse()); 3807 var resp = convert.JSON.encode(buildListServicesResponse());
3691 return new async.Future.value(stringResponse(200, h, resp)); 3808 return new async.Future.value(stringResponse(200, h, resp));
3692 }), true); 3809 }), true);
3693 res.list(arg_appsId, pageToken: arg_pageToken, pageSize: arg_pageSize).the n(unittest.expectAsync(((api.ListServicesResponse response) { 3810 res.list(arg_appsId, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync1(((api.ListServicesResponse response) {
3694 checkListServicesResponse(response); 3811 checkListServicesResponse(response);
3695 }))); 3812 })));
3696 }); 3813 });
3697 3814
3698 unittest.test("method--patch", () { 3815 unittest.test("method--patch", () {
3699 3816
3700 var mock = new HttpServerMock(); 3817 var mock = new HttpServerMock();
3701 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ; 3818 api.AppsServicesResourceApi res = new api.AppengineApi(mock).apps.services ;
3702 var arg_request = buildService(); 3819 var arg_request = buildService();
3703 var arg_appsId = "foo"; 3820 var arg_appsId = "foo";
3704 var arg_servicesId = "foo"; 3821 var arg_servicesId = "foo";
3705 var arg_migrateTraffic = true; 3822 var arg_migrateTraffic = true;
3706 var arg_updateMask = "foo"; 3823 var arg_updateMask = "foo";
3707 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3824 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3708 var obj = new api.Service.fromJson(json); 3825 var obj = new api.Service.fromJson(json);
3709 checkService(obj); 3826 checkService(obj);
3710 3827
3711 var path = (req.url).path; 3828 var path = (req.url).path;
3712 var pathOffset = 0; 3829 var pathOffset = 0;
3713 var index; 3830 var index;
3714 var subPart; 3831 var subPart;
3715 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3832 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3716 pathOffset += 1; 3833 pathOffset += 1;
3717 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3834 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
(...skipping 28 matching lines...) Expand all
3746 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_ migrateTraffic")); 3863 unittest.expect(queryMap["migrateTraffic"].first, unittest.equals("$arg_ migrateTraffic"));
3747 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask)); 3864 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask));
3748 3865
3749 3866
3750 var h = { 3867 var h = {
3751 "content-type" : "application/json; charset=utf-8", 3868 "content-type" : "application/json; charset=utf-8",
3752 }; 3869 };
3753 var resp = convert.JSON.encode(buildOperation()); 3870 var resp = convert.JSON.encode(buildOperation());
3754 return new async.Future.value(stringResponse(200, h, resp)); 3871 return new async.Future.value(stringResponse(200, h, resp));
3755 }), true); 3872 }), true);
3756 res.patch(arg_request, arg_appsId, arg_servicesId, migrateTraffic: arg_mig rateTraffic, updateMask: arg_updateMask).then(unittest.expectAsync(((api.Operati on response) { 3873 res.patch(arg_request, arg_appsId, arg_servicesId, migrateTraffic: arg_mig rateTraffic, updateMask: arg_updateMask).then(unittest.expectAsync1(((api.Operat ion response) {
3757 checkOperation(response); 3874 checkOperation(response);
3758 }))); 3875 })));
3759 }); 3876 });
3760 3877
3761 }); 3878 });
3762 3879
3763 3880
3764 unittest.group("resource-AppsServicesVersionsResourceApi", () { 3881 unittest.group("resource-AppsServicesVersionsResourceApi", () {
3765 unittest.test("method--create", () { 3882 unittest.test("method--create", () {
3766 3883
3767 var mock = new HttpServerMock(); 3884 var mock = new HttpServerMock();
3768 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps. services.versions; 3885 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps. services.versions;
3769 var arg_request = buildVersion(); 3886 var arg_request = buildVersion();
3770 var arg_appsId = "foo"; 3887 var arg_appsId = "foo";
3771 var arg_servicesId = "foo"; 3888 var arg_servicesId = "foo";
3772 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3889 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3773 var obj = new api.Version.fromJson(json); 3890 var obj = new api.Version.fromJson(json);
3774 checkVersion(obj); 3891 checkVersion(obj);
3775 3892
3776 var path = (req.url).path; 3893 var path = (req.url).path;
3777 var pathOffset = 0; 3894 var pathOffset = 0;
3778 var index; 3895 var index;
3779 var subPart; 3896 var subPart;
3780 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3897 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3781 pathOffset += 1; 3898 pathOffset += 1;
3782 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3899 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
(...skipping 30 matching lines...) Expand all
3813 } 3930 }
3814 } 3931 }
3815 3932
3816 3933
3817 var h = { 3934 var h = {
3818 "content-type" : "application/json; charset=utf-8", 3935 "content-type" : "application/json; charset=utf-8",
3819 }; 3936 };
3820 var resp = convert.JSON.encode(buildOperation()); 3937 var resp = convert.JSON.encode(buildOperation());
3821 return new async.Future.value(stringResponse(200, h, resp)); 3938 return new async.Future.value(stringResponse(200, h, resp));
3822 }), true); 3939 }), true);
3823 res.create(arg_request, arg_appsId, arg_servicesId).then(unittest.expectAs ync(((api.Operation response) { 3940 res.create(arg_request, arg_appsId, arg_servicesId).then(unittest.expectAs ync1(((api.Operation response) {
3824 checkOperation(response); 3941 checkOperation(response);
3825 }))); 3942 })));
3826 }); 3943 });
3827 3944
3828 unittest.test("method--delete", () { 3945 unittest.test("method--delete", () {
3829 3946
3830 var mock = new HttpServerMock(); 3947 var mock = new HttpServerMock();
3831 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps. services.versions; 3948 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps. services.versions;
3832 var arg_appsId = "foo"; 3949 var arg_appsId = "foo";
3833 var arg_servicesId = "foo"; 3950 var arg_servicesId = "foo";
3834 var arg_versionsId = "foo"; 3951 var arg_versionsId = "foo";
3835 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 3952 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3836 var path = (req.url).path; 3953 var path = (req.url).path;
3837 var pathOffset = 0; 3954 var pathOffset = 0;
3838 var index; 3955 var index;
3839 var subPart; 3956 var subPart;
3840 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 3957 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3841 pathOffset += 1; 3958 pathOffset += 1;
3842 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 3959 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3843 pathOffset += 12; 3960 pathOffset += 12;
3844 index = path.indexOf("/services/", pathOffset); 3961 index = path.indexOf("/services/", pathOffset);
3845 unittest.expect(index >= 0, unittest.isTrue); 3962 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 30 matching lines...) Expand all
3876 } 3993 }
3877 } 3994 }
3878 3995
3879 3996
3880 var h = { 3997 var h = {
3881 "content-type" : "application/json; charset=utf-8", 3998 "content-type" : "application/json; charset=utf-8",
3882 }; 3999 };
3883 var resp = convert.JSON.encode(buildOperation()); 4000 var resp = convert.JSON.encode(buildOperation());
3884 return new async.Future.value(stringResponse(200, h, resp)); 4001 return new async.Future.value(stringResponse(200, h, resp));
3885 }), true); 4002 }), true);
3886 res.delete(arg_appsId, arg_servicesId, arg_versionsId).then(unittest.expec tAsync(((api.Operation response) { 4003 res.delete(arg_appsId, arg_servicesId, arg_versionsId).then(unittest.expec tAsync1(((api.Operation response) {
3887 checkOperation(response); 4004 checkOperation(response);
3888 }))); 4005 })));
3889 }); 4006 });
3890 4007
3891 unittest.test("method--get", () { 4008 unittest.test("method--get", () {
3892 4009
3893 var mock = new HttpServerMock(); 4010 var mock = new HttpServerMock();
3894 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps. services.versions; 4011 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps. services.versions;
3895 var arg_appsId = "foo"; 4012 var arg_appsId = "foo";
3896 var arg_servicesId = "foo"; 4013 var arg_servicesId = "foo";
3897 var arg_versionsId = "foo"; 4014 var arg_versionsId = "foo";
3898 var arg_view = "foo"; 4015 var arg_view = "foo";
3899 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4016 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3900 var path = (req.url).path; 4017 var path = (req.url).path;
3901 var pathOffset = 0; 4018 var pathOffset = 0;
3902 var index; 4019 var index;
3903 var subPart; 4020 var subPart;
3904 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4021 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3905 pathOffset += 1; 4022 pathOffset += 1;
3906 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 4023 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3907 pathOffset += 12; 4024 pathOffset += 12;
3908 index = path.indexOf("/services/", pathOffset); 4025 index = path.indexOf("/services/", pathOffset);
3909 unittest.expect(index >= 0, unittest.isTrue); 4026 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
3941 } 4058 }
3942 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); 4059 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
3943 4060
3944 4061
3945 var h = { 4062 var h = {
3946 "content-type" : "application/json; charset=utf-8", 4063 "content-type" : "application/json; charset=utf-8",
3947 }; 4064 };
3948 var resp = convert.JSON.encode(buildVersion()); 4065 var resp = convert.JSON.encode(buildVersion());
3949 return new async.Future.value(stringResponse(200, h, resp)); 4066 return new async.Future.value(stringResponse(200, h, resp));
3950 }), true); 4067 }), true);
3951 res.get(arg_appsId, arg_servicesId, arg_versionsId, view: arg_view).then(u nittest.expectAsync(((api.Version response) { 4068 res.get(arg_appsId, arg_servicesId, arg_versionsId, view: arg_view).then(u nittest.expectAsync1(((api.Version response) {
3952 checkVersion(response); 4069 checkVersion(response);
3953 }))); 4070 })));
3954 }); 4071 });
3955 4072
3956 unittest.test("method--list", () { 4073 unittest.test("method--list", () {
3957 4074
3958 var mock = new HttpServerMock(); 4075 var mock = new HttpServerMock();
3959 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps. services.versions; 4076 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps. services.versions;
3960 var arg_appsId = "foo"; 4077 var arg_appsId = "foo";
3961 var arg_servicesId = "foo"; 4078 var arg_servicesId = "foo";
4079 var arg_pageToken = "foo";
3962 var arg_pageSize = 42; 4080 var arg_pageSize = 42;
3963 var arg_view = "foo"; 4081 var arg_view = "foo";
3964 var arg_pageToken = "foo"; 4082 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
3965 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
3966 var path = (req.url).path; 4083 var path = (req.url).path;
3967 var pathOffset = 0; 4084 var pathOffset = 0;
3968 var index; 4085 var index;
3969 var subPart; 4086 var subPart;
3970 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4087 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
3971 pathOffset += 1; 4088 pathOffset += 1;
3972 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 4089 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
3973 pathOffset += 12; 4090 pathOffset += 12;
3974 index = path.indexOf("/services/", pathOffset); 4091 index = path.indexOf("/services/", pathOffset);
3975 unittest.expect(index >= 0, unittest.isTrue); 4092 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 19 matching lines...) Expand all
3995 if (n == "false") return false; 4112 if (n == "false") return false;
3996 if (n == null) return null; 4113 if (n == null) return null;
3997 throw new core.ArgumentError("Invalid boolean: $n"); 4114 throw new core.ArgumentError("Invalid boolean: $n");
3998 } 4115 }
3999 if (query.length > 0) { 4116 if (query.length > 0) {
4000 for (var part in query.split("&")) { 4117 for (var part in query.split("&")) {
4001 var keyvalue = part.split("="); 4118 var keyvalue = part.split("=");
4002 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1])); 4119 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
4003 } 4120 }
4004 } 4121 }
4122 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4005 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 4123 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
4006 unittest.expect(queryMap["view"].first, unittest.equals(arg_view)); 4124 unittest.expect(queryMap["view"].first, unittest.equals(arg_view));
4007 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4008 4125
4009 4126
4010 var h = { 4127 var h = {
4011 "content-type" : "application/json; charset=utf-8", 4128 "content-type" : "application/json; charset=utf-8",
4012 }; 4129 };
4013 var resp = convert.JSON.encode(buildListVersionsResponse()); 4130 var resp = convert.JSON.encode(buildListVersionsResponse());
4014 return new async.Future.value(stringResponse(200, h, resp)); 4131 return new async.Future.value(stringResponse(200, h, resp));
4015 }), true); 4132 }), true);
4016 res.list(arg_appsId, arg_servicesId, pageSize: arg_pageSize, view: arg_vie w, pageToken: arg_pageToken).then(unittest.expectAsync(((api.ListVersionsRespons e response) { 4133 res.list(arg_appsId, arg_servicesId, pageToken: arg_pageToken, pageSize: a rg_pageSize, view: arg_view).then(unittest.expectAsync1(((api.ListVersionsRespon se response) {
4017 checkListVersionsResponse(response); 4134 checkListVersionsResponse(response);
4018 }))); 4135 })));
4019 }); 4136 });
4020 4137
4021 unittest.test("method--patch", () { 4138 unittest.test("method--patch", () {
4022 4139
4023 var mock = new HttpServerMock(); 4140 var mock = new HttpServerMock();
4024 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps. services.versions; 4141 api.AppsServicesVersionsResourceApi res = new api.AppengineApi(mock).apps. services.versions;
4025 var arg_request = buildVersion(); 4142 var arg_request = buildVersion();
4026 var arg_appsId = "foo"; 4143 var arg_appsId = "foo";
4027 var arg_servicesId = "foo"; 4144 var arg_servicesId = "foo";
4028 var arg_versionsId = "foo"; 4145 var arg_versionsId = "foo";
4029 var arg_updateMask = "foo"; 4146 var arg_updateMask = "foo";
4030 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4147 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4031 var obj = new api.Version.fromJson(json); 4148 var obj = new api.Version.fromJson(json);
4032 checkVersion(obj); 4149 checkVersion(obj);
4033 4150
4034 var path = (req.url).path; 4151 var path = (req.url).path;
4035 var pathOffset = 0; 4152 var pathOffset = 0;
4036 var index; 4153 var index;
4037 var subPart; 4154 var subPart;
4038 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4155 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4039 pathOffset += 1; 4156 pathOffset += 1;
4040 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 4157 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
4075 } 4192 }
4076 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask)); 4193 unittest.expect(queryMap["updateMask"].first, unittest.equals(arg_update Mask));
4077 4194
4078 4195
4079 var h = { 4196 var h = {
4080 "content-type" : "application/json; charset=utf-8", 4197 "content-type" : "application/json; charset=utf-8",
4081 }; 4198 };
4082 var resp = convert.JSON.encode(buildOperation()); 4199 var resp = convert.JSON.encode(buildOperation());
4083 return new async.Future.value(stringResponse(200, h, resp)); 4200 return new async.Future.value(stringResponse(200, h, resp));
4084 }), true); 4201 }), true);
4085 res.patch(arg_request, arg_appsId, arg_servicesId, arg_versionsId, updateM ask: arg_updateMask).then(unittest.expectAsync(((api.Operation response) { 4202 res.patch(arg_request, arg_appsId, arg_servicesId, arg_versionsId, updateM ask: arg_updateMask).then(unittest.expectAsync1(((api.Operation response) {
4086 checkOperation(response); 4203 checkOperation(response);
4087 }))); 4204 })));
4088 }); 4205 });
4089 4206
4090 }); 4207 });
4091 4208
4092 4209
4093 unittest.group("resource-AppsServicesVersionsInstancesResourceApi", () { 4210 unittest.group("resource-AppsServicesVersionsInstancesResourceApi", () {
4094 unittest.test("method--debug", () { 4211 unittest.test("method--debug", () {
4095 4212
4096 var mock = new HttpServerMock(); 4213 var mock = new HttpServerMock();
4097 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo ck).apps.services.versions.instances; 4214 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo ck).apps.services.versions.instances;
4098 var arg_request = buildDebugInstanceRequest(); 4215 var arg_request = buildDebugInstanceRequest();
4099 var arg_appsId = "foo"; 4216 var arg_appsId = "foo";
4100 var arg_servicesId = "foo"; 4217 var arg_servicesId = "foo";
4101 var arg_versionsId = "foo"; 4218 var arg_versionsId = "foo";
4102 var arg_instancesId = "foo"; 4219 var arg_instancesId = "foo";
4103 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4220 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4104 var obj = new api.DebugInstanceRequest.fromJson(json); 4221 var obj = new api.DebugInstanceRequest.fromJson(json);
4105 checkDebugInstanceRequest(obj); 4222 checkDebugInstanceRequest(obj);
4106 4223
4107 var path = (req.url).path; 4224 var path = (req.url).path;
4108 var pathOffset = 0; 4225 var pathOffset = 0;
4109 var index; 4226 var index;
4110 var subPart; 4227 var subPart;
4111 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4228 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4112 pathOffset += 1; 4229 pathOffset += 1;
4113 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 4230 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
4158 } 4275 }
4159 } 4276 }
4160 4277
4161 4278
4162 var h = { 4279 var h = {
4163 "content-type" : "application/json; charset=utf-8", 4280 "content-type" : "application/json; charset=utf-8",
4164 }; 4281 };
4165 var resp = convert.JSON.encode(buildOperation()); 4282 var resp = convert.JSON.encode(buildOperation());
4166 return new async.Future.value(stringResponse(200, h, resp)); 4283 return new async.Future.value(stringResponse(200, h, resp));
4167 }), true); 4284 }), true);
4168 res.debug(arg_request, arg_appsId, arg_servicesId, arg_versionsId, arg_ins tancesId).then(unittest.expectAsync(((api.Operation response) { 4285 res.debug(arg_request, arg_appsId, arg_servicesId, arg_versionsId, arg_ins tancesId).then(unittest.expectAsync1(((api.Operation response) {
4169 checkOperation(response); 4286 checkOperation(response);
4170 }))); 4287 })));
4171 }); 4288 });
4172 4289
4173 unittest.test("method--delete", () { 4290 unittest.test("method--delete", () {
4174 4291
4175 var mock = new HttpServerMock(); 4292 var mock = new HttpServerMock();
4176 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo ck).apps.services.versions.instances; 4293 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo ck).apps.services.versions.instances;
4177 var arg_appsId = "foo"; 4294 var arg_appsId = "foo";
4178 var arg_servicesId = "foo"; 4295 var arg_servicesId = "foo";
4179 var arg_versionsId = "foo"; 4296 var arg_versionsId = "foo";
4180 var arg_instancesId = "foo"; 4297 var arg_instancesId = "foo";
4181 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4298 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4182 var path = (req.url).path; 4299 var path = (req.url).path;
4183 var pathOffset = 0; 4300 var pathOffset = 0;
4184 var index; 4301 var index;
4185 var subPart; 4302 var subPart;
4186 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4303 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4187 pathOffset += 1; 4304 pathOffset += 1;
4188 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 4305 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
4189 pathOffset += 12; 4306 pathOffset += 12;
4190 index = path.indexOf("/services/", pathOffset); 4307 index = path.indexOf("/services/", pathOffset);
4191 unittest.expect(index >= 0, unittest.isTrue); 4308 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
4229 } 4346 }
4230 } 4347 }
4231 4348
4232 4349
4233 var h = { 4350 var h = {
4234 "content-type" : "application/json; charset=utf-8", 4351 "content-type" : "application/json; charset=utf-8",
4235 }; 4352 };
4236 var resp = convert.JSON.encode(buildOperation()); 4353 var resp = convert.JSON.encode(buildOperation());
4237 return new async.Future.value(stringResponse(200, h, resp)); 4354 return new async.Future.value(stringResponse(200, h, resp));
4238 }), true); 4355 }), true);
4239 res.delete(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).th en(unittest.expectAsync(((api.Operation response) { 4356 res.delete(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).th en(unittest.expectAsync1(((api.Operation response) {
4240 checkOperation(response); 4357 checkOperation(response);
4241 }))); 4358 })));
4242 }); 4359 });
4243 4360
4244 unittest.test("method--get", () { 4361 unittest.test("method--get", () {
4245 4362
4246 var mock = new HttpServerMock(); 4363 var mock = new HttpServerMock();
4247 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo ck).apps.services.versions.instances; 4364 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo ck).apps.services.versions.instances;
4248 var arg_appsId = "foo"; 4365 var arg_appsId = "foo";
4249 var arg_servicesId = "foo"; 4366 var arg_servicesId = "foo";
4250 var arg_versionsId = "foo"; 4367 var arg_versionsId = "foo";
4251 var arg_instancesId = "foo"; 4368 var arg_instancesId = "foo";
4252 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4369 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4253 var path = (req.url).path; 4370 var path = (req.url).path;
4254 var pathOffset = 0; 4371 var pathOffset = 0;
4255 var index; 4372 var index;
4256 var subPart; 4373 var subPart;
4257 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4374 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4258 pathOffset += 1; 4375 pathOffset += 1;
4259 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 4376 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
4260 pathOffset += 12; 4377 pathOffset += 12;
4261 index = path.indexOf("/services/", pathOffset); 4378 index = path.indexOf("/services/", pathOffset);
4262 unittest.expect(index >= 0, unittest.isTrue); 4379 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
4300 } 4417 }
4301 } 4418 }
4302 4419
4303 4420
4304 var h = { 4421 var h = {
4305 "content-type" : "application/json; charset=utf-8", 4422 "content-type" : "application/json; charset=utf-8",
4306 }; 4423 };
4307 var resp = convert.JSON.encode(buildInstance()); 4424 var resp = convert.JSON.encode(buildInstance());
4308 return new async.Future.value(stringResponse(200, h, resp)); 4425 return new async.Future.value(stringResponse(200, h, resp));
4309 }), true); 4426 }), true);
4310 res.get(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then( unittest.expectAsync(((api.Instance response) { 4427 res.get(arg_appsId, arg_servicesId, arg_versionsId, arg_instancesId).then( unittest.expectAsync1(((api.Instance response) {
4311 checkInstance(response); 4428 checkInstance(response);
4312 }))); 4429 })));
4313 }); 4430 });
4314 4431
4315 unittest.test("method--list", () { 4432 unittest.test("method--list", () {
4316 4433
4317 var mock = new HttpServerMock(); 4434 var mock = new HttpServerMock();
4318 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo ck).apps.services.versions.instances; 4435 api.AppsServicesVersionsInstancesResourceApi res = new api.AppengineApi(mo ck).apps.services.versions.instances;
4319 var arg_appsId = "foo"; 4436 var arg_appsId = "foo";
4320 var arg_servicesId = "foo"; 4437 var arg_servicesId = "foo";
4321 var arg_versionsId = "foo"; 4438 var arg_versionsId = "foo";
4322 var arg_pageToken = "foo"; 4439 var arg_pageToken = "foo";
4323 var arg_pageSize = 42; 4440 var arg_pageSize = 42;
4324 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 4441 mock.register(unittest.expectAsync2((http.BaseRequest req, json) {
4325 var path = (req.url).path; 4442 var path = (req.url).path;
4326 var pathOffset = 0; 4443 var pathOffset = 0;
4327 var index; 4444 var index;
4328 var subPart; 4445 var subPart;
4329 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/")); 4446 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
4330 pathOffset += 1; 4447 pathOffset += 1;
4331 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/")); 4448 unittest.expect(path.substring(pathOffset, pathOffset + 12), unittest.eq uals("v1beta/apps/"));
4332 pathOffset += 12; 4449 pathOffset += 12;
4333 index = path.indexOf("/services/", pathOffset); 4450 index = path.indexOf("/services/", pathOffset);
4334 unittest.expect(index >= 0, unittest.isTrue); 4451 unittest.expect(index >= 0, unittest.isTrue);
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
4371 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en)); 4488 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
4372 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize)); 4489 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
4373 4490
4374 4491
4375 var h = { 4492 var h = {
4376 "content-type" : "application/json; charset=utf-8", 4493 "content-type" : "application/json; charset=utf-8",
4377 }; 4494 };
4378 var resp = convert.JSON.encode(buildListInstancesResponse()); 4495 var resp = convert.JSON.encode(buildListInstancesResponse());
4379 return new async.Future.value(stringResponse(200, h, resp)); 4496 return new async.Future.value(stringResponse(200, h, resp));
4380 }), true); 4497 }), true);
4381 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageTo ken, pageSize: arg_pageSize).then(unittest.expectAsync(((api.ListInstancesRespon se response) { 4498 res.list(arg_appsId, arg_servicesId, arg_versionsId, pageToken: arg_pageTo ken, pageSize: arg_pageSize).then(unittest.expectAsync1(((api.ListInstancesRespo nse response) {
4382 checkListInstancesResponse(response); 4499 checkListInstancesResponse(response);
4383 }))); 4500 })));
4384 }); 4501 });
4385 4502
4386 }); 4503 });
4387 4504
4388 4505
4389 } 4506 }
4390 4507
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698