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

Side by Side Diff: generated/googleapis_beta/test/logging/v2beta1_test.dart

Issue 2571553005: Api-roll 43: 2016-12-13 (Closed)
Patch Set: Created 4 years 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.logging.v2beta1.test; 1 library googleapis_beta.logging.v2beta1.test;
2 2
3 import "dart:core" as core; 3 import "dart:core" as core;
4 import "dart:collection" as collection; 4 import "dart:collection" as collection;
5 import "dart:async" as async; 5 import "dart:async" as async;
6 import "dart:convert" as convert; 6 import "dart:convert" as convert;
7 7
8 import 'package:http/http.dart' as http; 8 import 'package:http/http.dart' as http;
9 import 'package:http/testing.dart' as http_testing; 9 import 'package:http/testing.dart' as http_testing;
10 import 'package:unittest/unittest.dart' as unittest; 10 import 'package:unittest/unittest.dart' as unittest;
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after
129 checkLabelDescriptor(api.LabelDescriptor o) { 129 checkLabelDescriptor(api.LabelDescriptor o) {
130 buildCounterLabelDescriptor++; 130 buildCounterLabelDescriptor++;
131 if (buildCounterLabelDescriptor < 3) { 131 if (buildCounterLabelDescriptor < 3) {
132 unittest.expect(o.description, unittest.equals('foo')); 132 unittest.expect(o.description, unittest.equals('foo'));
133 unittest.expect(o.key, unittest.equals('foo')); 133 unittest.expect(o.key, unittest.equals('foo'));
134 unittest.expect(o.valueType, unittest.equals('foo')); 134 unittest.expect(o.valueType, unittest.equals('foo'));
135 } 135 }
136 buildCounterLabelDescriptor--; 136 buildCounterLabelDescriptor--;
137 } 137 }
138 138
139 buildUnnamed3986() { 139 buildUnnamed3697() {
140 var o = new core.List<core.String>(); 140 var o = new core.List<core.String>();
141 o.add("foo"); 141 o.add("foo");
142 o.add("foo"); 142 o.add("foo");
143 return o; 143 return o;
144 } 144 }
145 145
146 checkUnnamed3986(core.List<core.String> o) { 146 checkUnnamed3697(core.List<core.String> o) {
147 unittest.expect(o, unittest.hasLength(2)); 147 unittest.expect(o, unittest.hasLength(2));
148 unittest.expect(o[0], unittest.equals('foo')); 148 unittest.expect(o[0], unittest.equals('foo'));
149 unittest.expect(o[1], unittest.equals('foo')); 149 unittest.expect(o[1], unittest.equals('foo'));
150 } 150 }
151 151
152 buildUnnamed3987() { 152 buildUnnamed3698() {
153 var o = new core.List<core.String>(); 153 var o = new core.List<core.String>();
154 o.add("foo"); 154 o.add("foo");
155 o.add("foo"); 155 o.add("foo");
156 return o; 156 return o;
157 } 157 }
158 158
159 checkUnnamed3987(core.List<core.String> o) { 159 checkUnnamed3698(core.List<core.String> o) {
160 unittest.expect(o, unittest.hasLength(2)); 160 unittest.expect(o, unittest.hasLength(2));
161 unittest.expect(o[0], unittest.equals('foo')); 161 unittest.expect(o[0], unittest.equals('foo'));
162 unittest.expect(o[1], unittest.equals('foo')); 162 unittest.expect(o[1], unittest.equals('foo'));
163 } 163 }
164 164
165 core.int buildCounterListLogEntriesRequest = 0; 165 core.int buildCounterListLogEntriesRequest = 0;
166 buildListLogEntriesRequest() { 166 buildListLogEntriesRequest() {
167 var o = new api.ListLogEntriesRequest(); 167 var o = new api.ListLogEntriesRequest();
168 buildCounterListLogEntriesRequest++; 168 buildCounterListLogEntriesRequest++;
169 if (buildCounterListLogEntriesRequest < 3) { 169 if (buildCounterListLogEntriesRequest < 3) {
170 o.filter = "foo"; 170 o.filter = "foo";
171 o.orderBy = "foo"; 171 o.orderBy = "foo";
172 o.pageSize = 42; 172 o.pageSize = 42;
173 o.pageToken = "foo"; 173 o.pageToken = "foo";
174 o.projectIds = buildUnnamed3986(); 174 o.projectIds = buildUnnamed3697();
175 o.resourceNames = buildUnnamed3987(); 175 o.resourceNames = buildUnnamed3698();
176 } 176 }
177 buildCounterListLogEntriesRequest--; 177 buildCounterListLogEntriesRequest--;
178 return o; 178 return o;
179 } 179 }
180 180
181 checkListLogEntriesRequest(api.ListLogEntriesRequest o) { 181 checkListLogEntriesRequest(api.ListLogEntriesRequest o) {
182 buildCounterListLogEntriesRequest++; 182 buildCounterListLogEntriesRequest++;
183 if (buildCounterListLogEntriesRequest < 3) { 183 if (buildCounterListLogEntriesRequest < 3) {
184 unittest.expect(o.filter, unittest.equals('foo')); 184 unittest.expect(o.filter, unittest.equals('foo'));
185 unittest.expect(o.orderBy, unittest.equals('foo')); 185 unittest.expect(o.orderBy, unittest.equals('foo'));
186 unittest.expect(o.pageSize, unittest.equals(42)); 186 unittest.expect(o.pageSize, unittest.equals(42));
187 unittest.expect(o.pageToken, unittest.equals('foo')); 187 unittest.expect(o.pageToken, unittest.equals('foo'));
188 checkUnnamed3986(o.projectIds); 188 checkUnnamed3697(o.projectIds);
189 checkUnnamed3987(o.resourceNames); 189 checkUnnamed3698(o.resourceNames);
190 } 190 }
191 buildCounterListLogEntriesRequest--; 191 buildCounterListLogEntriesRequest--;
192 } 192 }
193 193
194 buildUnnamed3988() { 194 buildUnnamed3699() {
195 var o = new core.List<api.LogEntry>(); 195 var o = new core.List<api.LogEntry>();
196 o.add(buildLogEntry()); 196 o.add(buildLogEntry());
197 o.add(buildLogEntry()); 197 o.add(buildLogEntry());
198 return o; 198 return o;
199 } 199 }
200 200
201 checkUnnamed3988(core.List<api.LogEntry> o) { 201 checkUnnamed3699(core.List<api.LogEntry> o) {
202 unittest.expect(o, unittest.hasLength(2)); 202 unittest.expect(o, unittest.hasLength(2));
203 checkLogEntry(o[0]); 203 checkLogEntry(o[0]);
204 checkLogEntry(o[1]); 204 checkLogEntry(o[1]);
205 } 205 }
206 206
207 core.int buildCounterListLogEntriesResponse = 0; 207 core.int buildCounterListLogEntriesResponse = 0;
208 buildListLogEntriesResponse() { 208 buildListLogEntriesResponse() {
209 var o = new api.ListLogEntriesResponse(); 209 var o = new api.ListLogEntriesResponse();
210 buildCounterListLogEntriesResponse++; 210 buildCounterListLogEntriesResponse++;
211 if (buildCounterListLogEntriesResponse < 3) { 211 if (buildCounterListLogEntriesResponse < 3) {
212 o.entries = buildUnnamed3988(); 212 o.entries = buildUnnamed3699();
213 o.nextPageToken = "foo"; 213 o.nextPageToken = "foo";
214 } 214 }
215 buildCounterListLogEntriesResponse--; 215 buildCounterListLogEntriesResponse--;
216 return o; 216 return o;
217 } 217 }
218 218
219 checkListLogEntriesResponse(api.ListLogEntriesResponse o) { 219 checkListLogEntriesResponse(api.ListLogEntriesResponse o) {
220 buildCounterListLogEntriesResponse++; 220 buildCounterListLogEntriesResponse++;
221 if (buildCounterListLogEntriesResponse < 3) { 221 if (buildCounterListLogEntriesResponse < 3) {
222 checkUnnamed3988(o.entries); 222 checkUnnamed3699(o.entries);
223 unittest.expect(o.nextPageToken, unittest.equals('foo')); 223 unittest.expect(o.nextPageToken, unittest.equals('foo'));
224 } 224 }
225 buildCounterListLogEntriesResponse--; 225 buildCounterListLogEntriesResponse--;
226 } 226 }
227 227
228 buildUnnamed3989() { 228 buildUnnamed3700() {
229 var o = new core.List<api.LogMetric>(); 229 var o = new core.List<api.LogMetric>();
230 o.add(buildLogMetric()); 230 o.add(buildLogMetric());
231 o.add(buildLogMetric()); 231 o.add(buildLogMetric());
232 return o; 232 return o;
233 } 233 }
234 234
235 checkUnnamed3989(core.List<api.LogMetric> o) { 235 checkUnnamed3700(core.List<api.LogMetric> o) {
236 unittest.expect(o, unittest.hasLength(2)); 236 unittest.expect(o, unittest.hasLength(2));
237 checkLogMetric(o[0]); 237 checkLogMetric(o[0]);
238 checkLogMetric(o[1]); 238 checkLogMetric(o[1]);
239 } 239 }
240 240
241 core.int buildCounterListLogMetricsResponse = 0; 241 core.int buildCounterListLogMetricsResponse = 0;
242 buildListLogMetricsResponse() { 242 buildListLogMetricsResponse() {
243 var o = new api.ListLogMetricsResponse(); 243 var o = new api.ListLogMetricsResponse();
244 buildCounterListLogMetricsResponse++; 244 buildCounterListLogMetricsResponse++;
245 if (buildCounterListLogMetricsResponse < 3) { 245 if (buildCounterListLogMetricsResponse < 3) {
246 o.metrics = buildUnnamed3989(); 246 o.metrics = buildUnnamed3700();
247 o.nextPageToken = "foo"; 247 o.nextPageToken = "foo";
248 } 248 }
249 buildCounterListLogMetricsResponse--; 249 buildCounterListLogMetricsResponse--;
250 return o; 250 return o;
251 } 251 }
252 252
253 checkListLogMetricsResponse(api.ListLogMetricsResponse o) { 253 checkListLogMetricsResponse(api.ListLogMetricsResponse o) {
254 buildCounterListLogMetricsResponse++; 254 buildCounterListLogMetricsResponse++;
255 if (buildCounterListLogMetricsResponse < 3) { 255 if (buildCounterListLogMetricsResponse < 3) {
256 checkUnnamed3989(o.metrics); 256 checkUnnamed3700(o.metrics);
257 unittest.expect(o.nextPageToken, unittest.equals('foo')); 257 unittest.expect(o.nextPageToken, unittest.equals('foo'));
258 } 258 }
259 buildCounterListLogMetricsResponse--; 259 buildCounterListLogMetricsResponse--;
260 } 260 }
261 261
262 buildUnnamed3990() { 262 buildUnnamed3701() {
263 var o = new core.List<core.String>();
264 o.add("foo");
265 o.add("foo");
266 return o;
267 }
268
269 checkUnnamed3701(core.List<core.String> o) {
270 unittest.expect(o, unittest.hasLength(2));
271 unittest.expect(o[0], unittest.equals('foo'));
272 unittest.expect(o[1], unittest.equals('foo'));
273 }
274
275 core.int buildCounterListLogsResponse = 0;
276 buildListLogsResponse() {
277 var o = new api.ListLogsResponse();
278 buildCounterListLogsResponse++;
279 if (buildCounterListLogsResponse < 3) {
280 o.logNames = buildUnnamed3701();
281 o.nextPageToken = "foo";
282 }
283 buildCounterListLogsResponse--;
284 return o;
285 }
286
287 checkListLogsResponse(api.ListLogsResponse o) {
288 buildCounterListLogsResponse++;
289 if (buildCounterListLogsResponse < 3) {
290 checkUnnamed3701(o.logNames);
291 unittest.expect(o.nextPageToken, unittest.equals('foo'));
292 }
293 buildCounterListLogsResponse--;
294 }
295
296 buildUnnamed3702() {
263 var o = new core.List<api.MonitoredResourceDescriptor>(); 297 var o = new core.List<api.MonitoredResourceDescriptor>();
264 o.add(buildMonitoredResourceDescriptor()); 298 o.add(buildMonitoredResourceDescriptor());
265 o.add(buildMonitoredResourceDescriptor()); 299 o.add(buildMonitoredResourceDescriptor());
266 return o; 300 return o;
267 } 301 }
268 302
269 checkUnnamed3990(core.List<api.MonitoredResourceDescriptor> o) { 303 checkUnnamed3702(core.List<api.MonitoredResourceDescriptor> o) {
270 unittest.expect(o, unittest.hasLength(2)); 304 unittest.expect(o, unittest.hasLength(2));
271 checkMonitoredResourceDescriptor(o[0]); 305 checkMonitoredResourceDescriptor(o[0]);
272 checkMonitoredResourceDescriptor(o[1]); 306 checkMonitoredResourceDescriptor(o[1]);
273 } 307 }
274 308
275 core.int buildCounterListMonitoredResourceDescriptorsResponse = 0; 309 core.int buildCounterListMonitoredResourceDescriptorsResponse = 0;
276 buildListMonitoredResourceDescriptorsResponse() { 310 buildListMonitoredResourceDescriptorsResponse() {
277 var o = new api.ListMonitoredResourceDescriptorsResponse(); 311 var o = new api.ListMonitoredResourceDescriptorsResponse();
278 buildCounterListMonitoredResourceDescriptorsResponse++; 312 buildCounterListMonitoredResourceDescriptorsResponse++;
279 if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { 313 if (buildCounterListMonitoredResourceDescriptorsResponse < 3) {
280 o.nextPageToken = "foo"; 314 o.nextPageToken = "foo";
281 o.resourceDescriptors = buildUnnamed3990(); 315 o.resourceDescriptors = buildUnnamed3702();
282 } 316 }
283 buildCounterListMonitoredResourceDescriptorsResponse--; 317 buildCounterListMonitoredResourceDescriptorsResponse--;
284 return o; 318 return o;
285 } 319 }
286 320
287 checkListMonitoredResourceDescriptorsResponse(api.ListMonitoredResourceDescripto rsResponse o) { 321 checkListMonitoredResourceDescriptorsResponse(api.ListMonitoredResourceDescripto rsResponse o) {
288 buildCounterListMonitoredResourceDescriptorsResponse++; 322 buildCounterListMonitoredResourceDescriptorsResponse++;
289 if (buildCounterListMonitoredResourceDescriptorsResponse < 3) { 323 if (buildCounterListMonitoredResourceDescriptorsResponse < 3) {
290 unittest.expect(o.nextPageToken, unittest.equals('foo')); 324 unittest.expect(o.nextPageToken, unittest.equals('foo'));
291 checkUnnamed3990(o.resourceDescriptors); 325 checkUnnamed3702(o.resourceDescriptors);
292 } 326 }
293 buildCounterListMonitoredResourceDescriptorsResponse--; 327 buildCounterListMonitoredResourceDescriptorsResponse--;
294 } 328 }
295 329
296 buildUnnamed3991() { 330 buildUnnamed3703() {
297 var o = new core.List<api.LogSink>(); 331 var o = new core.List<api.LogSink>();
298 o.add(buildLogSink()); 332 o.add(buildLogSink());
299 o.add(buildLogSink()); 333 o.add(buildLogSink());
300 return o; 334 return o;
301 } 335 }
302 336
303 checkUnnamed3991(core.List<api.LogSink> o) { 337 checkUnnamed3703(core.List<api.LogSink> o) {
304 unittest.expect(o, unittest.hasLength(2)); 338 unittest.expect(o, unittest.hasLength(2));
305 checkLogSink(o[0]); 339 checkLogSink(o[0]);
306 checkLogSink(o[1]); 340 checkLogSink(o[1]);
307 } 341 }
308 342
309 core.int buildCounterListSinksResponse = 0; 343 core.int buildCounterListSinksResponse = 0;
310 buildListSinksResponse() { 344 buildListSinksResponse() {
311 var o = new api.ListSinksResponse(); 345 var o = new api.ListSinksResponse();
312 buildCounterListSinksResponse++; 346 buildCounterListSinksResponse++;
313 if (buildCounterListSinksResponse < 3) { 347 if (buildCounterListSinksResponse < 3) {
314 o.nextPageToken = "foo"; 348 o.nextPageToken = "foo";
315 o.sinks = buildUnnamed3991(); 349 o.sinks = buildUnnamed3703();
316 } 350 }
317 buildCounterListSinksResponse--; 351 buildCounterListSinksResponse--;
318 return o; 352 return o;
319 } 353 }
320 354
321 checkListSinksResponse(api.ListSinksResponse o) { 355 checkListSinksResponse(api.ListSinksResponse o) {
322 buildCounterListSinksResponse++; 356 buildCounterListSinksResponse++;
323 if (buildCounterListSinksResponse < 3) { 357 if (buildCounterListSinksResponse < 3) {
324 unittest.expect(o.nextPageToken, unittest.equals('foo')); 358 unittest.expect(o.nextPageToken, unittest.equals('foo'));
325 checkUnnamed3991(o.sinks); 359 checkUnnamed3703(o.sinks);
326 } 360 }
327 buildCounterListSinksResponse--; 361 buildCounterListSinksResponse--;
328 } 362 }
329 363
330 buildUnnamed3992() { 364 buildUnnamed3704() {
331 var o = new core.Map<core.String, core.Object>(); 365 var o = new core.Map<core.String, core.Object>();
332 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 366 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
333 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 367 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
334 return o; 368 return o;
335 } 369 }
336 370
337 checkUnnamed3992(core.Map<core.String, core.Object> o) { 371 checkUnnamed3704(core.Map<core.String, core.Object> o) {
338 unittest.expect(o, unittest.hasLength(2)); 372 unittest.expect(o, unittest.hasLength(2));
339 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')); 373 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'));
340 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')); 374 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'));
341 } 375 }
342 376
343 buildUnnamed3993() { 377 buildUnnamed3705() {
344 var o = new core.Map<core.String, core.String>(); 378 var o = new core.Map<core.String, core.String>();
345 o["x"] = "foo"; 379 o["x"] = "foo";
346 o["y"] = "foo"; 380 o["y"] = "foo";
347 return o; 381 return o;
348 } 382 }
349 383
350 checkUnnamed3993(core.Map<core.String, core.String> o) { 384 checkUnnamed3705(core.Map<core.String, core.String> o) {
351 unittest.expect(o, unittest.hasLength(2)); 385 unittest.expect(o, unittest.hasLength(2));
352 unittest.expect(o["x"], unittest.equals('foo')); 386 unittest.expect(o["x"], unittest.equals('foo'));
353 unittest.expect(o["y"], unittest.equals('foo')); 387 unittest.expect(o["y"], unittest.equals('foo'));
354 } 388 }
355 389
356 buildUnnamed3994() { 390 buildUnnamed3706() {
357 var o = new core.Map<core.String, core.Object>(); 391 var o = new core.Map<core.String, core.Object>();
358 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 392 o["x"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
359 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'}; 393 o["y"] = {'list' : [1, 2, 3], 'bool' : true, 'string' : 'foo'};
360 return o; 394 return o;
361 } 395 }
362 396
363 checkUnnamed3994(core.Map<core.String, core.Object> o) { 397 checkUnnamed3706(core.Map<core.String, core.Object> o) {
364 unittest.expect(o, unittest.hasLength(2)); 398 unittest.expect(o, unittest.hasLength(2));
365 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')); 399 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'));
366 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')); 400 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'));
367 } 401 }
368 402
369 core.int buildCounterLogEntry = 0; 403 core.int buildCounterLogEntry = 0;
370 buildLogEntry() { 404 buildLogEntry() {
371 var o = new api.LogEntry(); 405 var o = new api.LogEntry();
372 buildCounterLogEntry++; 406 buildCounterLogEntry++;
373 if (buildCounterLogEntry < 3) { 407 if (buildCounterLogEntry < 3) {
374 o.httpRequest = buildHttpRequest(); 408 o.httpRequest = buildHttpRequest();
375 o.insertId = "foo"; 409 o.insertId = "foo";
376 o.jsonPayload = buildUnnamed3992(); 410 o.jsonPayload = buildUnnamed3704();
377 o.labels = buildUnnamed3993(); 411 o.labels = buildUnnamed3705();
378 o.logName = "foo"; 412 o.logName = "foo";
379 o.operation = buildLogEntryOperation(); 413 o.operation = buildLogEntryOperation();
380 o.protoPayload = buildUnnamed3994(); 414 o.protoPayload = buildUnnamed3706();
381 o.resource = buildMonitoredResource(); 415 o.resource = buildMonitoredResource();
382 o.severity = "foo"; 416 o.severity = "foo";
417 o.sourceLocation = buildLogEntrySourceLocation();
383 o.textPayload = "foo"; 418 o.textPayload = "foo";
384 o.timestamp = "foo"; 419 o.timestamp = "foo";
420 o.trace = "foo";
385 } 421 }
386 buildCounterLogEntry--; 422 buildCounterLogEntry--;
387 return o; 423 return o;
388 } 424 }
389 425
390 checkLogEntry(api.LogEntry o) { 426 checkLogEntry(api.LogEntry o) {
391 buildCounterLogEntry++; 427 buildCounterLogEntry++;
392 if (buildCounterLogEntry < 3) { 428 if (buildCounterLogEntry < 3) {
393 checkHttpRequest(o.httpRequest); 429 checkHttpRequest(o.httpRequest);
394 unittest.expect(o.insertId, unittest.equals('foo')); 430 unittest.expect(o.insertId, unittest.equals('foo'));
395 checkUnnamed3992(o.jsonPayload); 431 checkUnnamed3704(o.jsonPayload);
396 checkUnnamed3993(o.labels); 432 checkUnnamed3705(o.labels);
397 unittest.expect(o.logName, unittest.equals('foo')); 433 unittest.expect(o.logName, unittest.equals('foo'));
398 checkLogEntryOperation(o.operation); 434 checkLogEntryOperation(o.operation);
399 checkUnnamed3994(o.protoPayload); 435 checkUnnamed3706(o.protoPayload);
400 checkMonitoredResource(o.resource); 436 checkMonitoredResource(o.resource);
401 unittest.expect(o.severity, unittest.equals('foo')); 437 unittest.expect(o.severity, unittest.equals('foo'));
438 checkLogEntrySourceLocation(o.sourceLocation);
402 unittest.expect(o.textPayload, unittest.equals('foo')); 439 unittest.expect(o.textPayload, unittest.equals('foo'));
403 unittest.expect(o.timestamp, unittest.equals('foo')); 440 unittest.expect(o.timestamp, unittest.equals('foo'));
441 unittest.expect(o.trace, unittest.equals('foo'));
404 } 442 }
405 buildCounterLogEntry--; 443 buildCounterLogEntry--;
406 } 444 }
407 445
408 core.int buildCounterLogEntryOperation = 0; 446 core.int buildCounterLogEntryOperation = 0;
409 buildLogEntryOperation() { 447 buildLogEntryOperation() {
410 var o = new api.LogEntryOperation(); 448 var o = new api.LogEntryOperation();
411 buildCounterLogEntryOperation++; 449 buildCounterLogEntryOperation++;
412 if (buildCounterLogEntryOperation < 3) { 450 if (buildCounterLogEntryOperation < 3) {
413 o.first = true; 451 o.first = true;
414 o.id = "foo"; 452 o.id = "foo";
415 o.last = true; 453 o.last = true;
416 o.producer = "foo"; 454 o.producer = "foo";
417 } 455 }
418 buildCounterLogEntryOperation--; 456 buildCounterLogEntryOperation--;
419 return o; 457 return o;
420 } 458 }
421 459
422 checkLogEntryOperation(api.LogEntryOperation o) { 460 checkLogEntryOperation(api.LogEntryOperation o) {
423 buildCounterLogEntryOperation++; 461 buildCounterLogEntryOperation++;
424 if (buildCounterLogEntryOperation < 3) { 462 if (buildCounterLogEntryOperation < 3) {
425 unittest.expect(o.first, unittest.isTrue); 463 unittest.expect(o.first, unittest.isTrue);
426 unittest.expect(o.id, unittest.equals('foo')); 464 unittest.expect(o.id, unittest.equals('foo'));
427 unittest.expect(o.last, unittest.isTrue); 465 unittest.expect(o.last, unittest.isTrue);
428 unittest.expect(o.producer, unittest.equals('foo')); 466 unittest.expect(o.producer, unittest.equals('foo'));
429 } 467 }
430 buildCounterLogEntryOperation--; 468 buildCounterLogEntryOperation--;
431 } 469 }
432 470
471 core.int buildCounterLogEntrySourceLocation = 0;
472 buildLogEntrySourceLocation() {
473 var o = new api.LogEntrySourceLocation();
474 buildCounterLogEntrySourceLocation++;
475 if (buildCounterLogEntrySourceLocation < 3) {
476 o.file = "foo";
477 o.function = "foo";
478 o.line = "foo";
479 }
480 buildCounterLogEntrySourceLocation--;
481 return o;
482 }
483
484 checkLogEntrySourceLocation(api.LogEntrySourceLocation o) {
485 buildCounterLogEntrySourceLocation++;
486 if (buildCounterLogEntrySourceLocation < 3) {
487 unittest.expect(o.file, unittest.equals('foo'));
488 unittest.expect(o.function, unittest.equals('foo'));
489 unittest.expect(o.line, unittest.equals('foo'));
490 }
491 buildCounterLogEntrySourceLocation--;
492 }
493
433 core.int buildCounterLogLine = 0; 494 core.int buildCounterLogLine = 0;
434 buildLogLine() { 495 buildLogLine() {
435 var o = new api.LogLine(); 496 var o = new api.LogLine();
436 buildCounterLogLine++; 497 buildCounterLogLine++;
437 if (buildCounterLogLine < 3) { 498 if (buildCounterLogLine < 3) {
438 o.logMessage = "foo"; 499 o.logMessage = "foo";
439 o.severity = "foo"; 500 o.severity = "foo";
440 o.sourceLocation = buildSourceLocation(); 501 o.sourceLocation = buildSourceLocation();
441 o.time = "foo"; 502 o.time = "foo";
442 } 503 }
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
504 unittest.expect(o.endTime, unittest.equals('foo')); 565 unittest.expect(o.endTime, unittest.equals('foo'));
505 unittest.expect(o.filter, unittest.equals('foo')); 566 unittest.expect(o.filter, unittest.equals('foo'));
506 unittest.expect(o.name, unittest.equals('foo')); 567 unittest.expect(o.name, unittest.equals('foo'));
507 unittest.expect(o.outputVersionFormat, unittest.equals('foo')); 568 unittest.expect(o.outputVersionFormat, unittest.equals('foo'));
508 unittest.expect(o.startTime, unittest.equals('foo')); 569 unittest.expect(o.startTime, unittest.equals('foo'));
509 unittest.expect(o.writerIdentity, unittest.equals('foo')); 570 unittest.expect(o.writerIdentity, unittest.equals('foo'));
510 } 571 }
511 buildCounterLogSink--; 572 buildCounterLogSink--;
512 } 573 }
513 574
514 buildUnnamed3995() { 575 buildUnnamed3707() {
515 var o = new core.Map<core.String, core.String>(); 576 var o = new core.Map<core.String, core.String>();
516 o["x"] = "foo"; 577 o["x"] = "foo";
517 o["y"] = "foo"; 578 o["y"] = "foo";
518 return o; 579 return o;
519 } 580 }
520 581
521 checkUnnamed3995(core.Map<core.String, core.String> o) { 582 checkUnnamed3707(core.Map<core.String, core.String> o) {
522 unittest.expect(o, unittest.hasLength(2)); 583 unittest.expect(o, unittest.hasLength(2));
523 unittest.expect(o["x"], unittest.equals('foo')); 584 unittest.expect(o["x"], unittest.equals('foo'));
524 unittest.expect(o["y"], unittest.equals('foo')); 585 unittest.expect(o["y"], unittest.equals('foo'));
525 } 586 }
526 587
527 core.int buildCounterMonitoredResource = 0; 588 core.int buildCounterMonitoredResource = 0;
528 buildMonitoredResource() { 589 buildMonitoredResource() {
529 var o = new api.MonitoredResource(); 590 var o = new api.MonitoredResource();
530 buildCounterMonitoredResource++; 591 buildCounterMonitoredResource++;
531 if (buildCounterMonitoredResource < 3) { 592 if (buildCounterMonitoredResource < 3) {
532 o.labels = buildUnnamed3995(); 593 o.labels = buildUnnamed3707();
533 o.type = "foo"; 594 o.type = "foo";
534 } 595 }
535 buildCounterMonitoredResource--; 596 buildCounterMonitoredResource--;
536 return o; 597 return o;
537 } 598 }
538 599
539 checkMonitoredResource(api.MonitoredResource o) { 600 checkMonitoredResource(api.MonitoredResource o) {
540 buildCounterMonitoredResource++; 601 buildCounterMonitoredResource++;
541 if (buildCounterMonitoredResource < 3) { 602 if (buildCounterMonitoredResource < 3) {
542 checkUnnamed3995(o.labels); 603 checkUnnamed3707(o.labels);
543 unittest.expect(o.type, unittest.equals('foo')); 604 unittest.expect(o.type, unittest.equals('foo'));
544 } 605 }
545 buildCounterMonitoredResource--; 606 buildCounterMonitoredResource--;
546 } 607 }
547 608
548 buildUnnamed3996() { 609 buildUnnamed3708() {
549 var o = new core.List<api.LabelDescriptor>(); 610 var o = new core.List<api.LabelDescriptor>();
550 o.add(buildLabelDescriptor()); 611 o.add(buildLabelDescriptor());
551 o.add(buildLabelDescriptor()); 612 o.add(buildLabelDescriptor());
552 return o; 613 return o;
553 } 614 }
554 615
555 checkUnnamed3996(core.List<api.LabelDescriptor> o) { 616 checkUnnamed3708(core.List<api.LabelDescriptor> o) {
556 unittest.expect(o, unittest.hasLength(2)); 617 unittest.expect(o, unittest.hasLength(2));
557 checkLabelDescriptor(o[0]); 618 checkLabelDescriptor(o[0]);
558 checkLabelDescriptor(o[1]); 619 checkLabelDescriptor(o[1]);
559 } 620 }
560 621
561 core.int buildCounterMonitoredResourceDescriptor = 0; 622 core.int buildCounterMonitoredResourceDescriptor = 0;
562 buildMonitoredResourceDescriptor() { 623 buildMonitoredResourceDescriptor() {
563 var o = new api.MonitoredResourceDescriptor(); 624 var o = new api.MonitoredResourceDescriptor();
564 buildCounterMonitoredResourceDescriptor++; 625 buildCounterMonitoredResourceDescriptor++;
565 if (buildCounterMonitoredResourceDescriptor < 3) { 626 if (buildCounterMonitoredResourceDescriptor < 3) {
566 o.description = "foo"; 627 o.description = "foo";
567 o.displayName = "foo"; 628 o.displayName = "foo";
568 o.labels = buildUnnamed3996(); 629 o.labels = buildUnnamed3708();
569 o.name = "foo"; 630 o.name = "foo";
570 o.type = "foo"; 631 o.type = "foo";
571 } 632 }
572 buildCounterMonitoredResourceDescriptor--; 633 buildCounterMonitoredResourceDescriptor--;
573 return o; 634 return o;
574 } 635 }
575 636
576 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) { 637 checkMonitoredResourceDescriptor(api.MonitoredResourceDescriptor o) {
577 buildCounterMonitoredResourceDescriptor++; 638 buildCounterMonitoredResourceDescriptor++;
578 if (buildCounterMonitoredResourceDescriptor < 3) { 639 if (buildCounterMonitoredResourceDescriptor < 3) {
579 unittest.expect(o.description, unittest.equals('foo')); 640 unittest.expect(o.description, unittest.equals('foo'));
580 unittest.expect(o.displayName, unittest.equals('foo')); 641 unittest.expect(o.displayName, unittest.equals('foo'));
581 checkUnnamed3996(o.labels); 642 checkUnnamed3708(o.labels);
582 unittest.expect(o.name, unittest.equals('foo')); 643 unittest.expect(o.name, unittest.equals('foo'));
583 unittest.expect(o.type, unittest.equals('foo')); 644 unittest.expect(o.type, unittest.equals('foo'));
584 } 645 }
585 buildCounterMonitoredResourceDescriptor--; 646 buildCounterMonitoredResourceDescriptor--;
586 } 647 }
587 648
588 buildUnnamed3997() { 649 buildUnnamed3709() {
589 var o = new core.List<api.LogLine>(); 650 var o = new core.List<api.LogLine>();
590 o.add(buildLogLine()); 651 o.add(buildLogLine());
591 o.add(buildLogLine()); 652 o.add(buildLogLine());
592 return o; 653 return o;
593 } 654 }
594 655
595 checkUnnamed3997(core.List<api.LogLine> o) { 656 checkUnnamed3709(core.List<api.LogLine> o) {
596 unittest.expect(o, unittest.hasLength(2)); 657 unittest.expect(o, unittest.hasLength(2));
597 checkLogLine(o[0]); 658 checkLogLine(o[0]);
598 checkLogLine(o[1]); 659 checkLogLine(o[1]);
599 } 660 }
600 661
601 buildUnnamed3998() { 662 buildUnnamed3710() {
602 var o = new core.List<api.SourceReference>(); 663 var o = new core.List<api.SourceReference>();
603 o.add(buildSourceReference()); 664 o.add(buildSourceReference());
604 o.add(buildSourceReference()); 665 o.add(buildSourceReference());
605 return o; 666 return o;
606 } 667 }
607 668
608 checkUnnamed3998(core.List<api.SourceReference> o) { 669 checkUnnamed3710(core.List<api.SourceReference> o) {
609 unittest.expect(o, unittest.hasLength(2)); 670 unittest.expect(o, unittest.hasLength(2));
610 checkSourceReference(o[0]); 671 checkSourceReference(o[0]);
611 checkSourceReference(o[1]); 672 checkSourceReference(o[1]);
612 } 673 }
613 674
614 core.int buildCounterRequestLog = 0; 675 core.int buildCounterRequestLog = 0;
615 buildRequestLog() { 676 buildRequestLog() {
616 var o = new api.RequestLog(); 677 var o = new api.RequestLog();
617 buildCounterRequestLog++; 678 buildCounterRequestLog++;
618 if (buildCounterRequestLog < 3) { 679 if (buildCounterRequestLog < 3) {
619 o.appEngineRelease = "foo"; 680 o.appEngineRelease = "foo";
620 o.appId = "foo"; 681 o.appId = "foo";
621 o.cost = 42.0; 682 o.cost = 42.0;
622 o.endTime = "foo"; 683 o.endTime = "foo";
623 o.finished = true; 684 o.finished = true;
624 o.first = true; 685 o.first = true;
625 o.host = "foo"; 686 o.host = "foo";
626 o.httpVersion = "foo"; 687 o.httpVersion = "foo";
627 o.instanceId = "foo"; 688 o.instanceId = "foo";
628 o.instanceIndex = 42; 689 o.instanceIndex = 42;
629 o.ip = "foo"; 690 o.ip = "foo";
630 o.latency = "foo"; 691 o.latency = "foo";
631 o.line = buildUnnamed3997(); 692 o.line = buildUnnamed3709();
632 o.megaCycles = "foo"; 693 o.megaCycles = "foo";
633 o.method = "foo"; 694 o.method = "foo";
634 o.moduleId = "foo"; 695 o.moduleId = "foo";
635 o.nickname = "foo"; 696 o.nickname = "foo";
636 o.pendingTime = "foo"; 697 o.pendingTime = "foo";
637 o.referrer = "foo"; 698 o.referrer = "foo";
638 o.requestId = "foo"; 699 o.requestId = "foo";
639 o.resource = "foo"; 700 o.resource = "foo";
640 o.responseSize = "foo"; 701 o.responseSize = "foo";
641 o.sourceReference = buildUnnamed3998(); 702 o.sourceReference = buildUnnamed3710();
642 o.startTime = "foo"; 703 o.startTime = "foo";
643 o.status = 42; 704 o.status = 42;
644 o.taskName = "foo"; 705 o.taskName = "foo";
645 o.taskQueueName = "foo"; 706 o.taskQueueName = "foo";
646 o.traceId = "foo"; 707 o.traceId = "foo";
647 o.urlMapEntry = "foo"; 708 o.urlMapEntry = "foo";
648 o.userAgent = "foo"; 709 o.userAgent = "foo";
649 o.versionId = "foo"; 710 o.versionId = "foo";
650 o.wasLoadingRequest = true; 711 o.wasLoadingRequest = true;
651 } 712 }
652 buildCounterRequestLog--; 713 buildCounterRequestLog--;
653 return o; 714 return o;
654 } 715 }
655 716
656 checkRequestLog(api.RequestLog o) { 717 checkRequestLog(api.RequestLog o) {
657 buildCounterRequestLog++; 718 buildCounterRequestLog++;
658 if (buildCounterRequestLog < 3) { 719 if (buildCounterRequestLog < 3) {
659 unittest.expect(o.appEngineRelease, unittest.equals('foo')); 720 unittest.expect(o.appEngineRelease, unittest.equals('foo'));
660 unittest.expect(o.appId, unittest.equals('foo')); 721 unittest.expect(o.appId, unittest.equals('foo'));
661 unittest.expect(o.cost, unittest.equals(42.0)); 722 unittest.expect(o.cost, unittest.equals(42.0));
662 unittest.expect(o.endTime, unittest.equals('foo')); 723 unittest.expect(o.endTime, unittest.equals('foo'));
663 unittest.expect(o.finished, unittest.isTrue); 724 unittest.expect(o.finished, unittest.isTrue);
664 unittest.expect(o.first, unittest.isTrue); 725 unittest.expect(o.first, unittest.isTrue);
665 unittest.expect(o.host, unittest.equals('foo')); 726 unittest.expect(o.host, unittest.equals('foo'));
666 unittest.expect(o.httpVersion, unittest.equals('foo')); 727 unittest.expect(o.httpVersion, unittest.equals('foo'));
667 unittest.expect(o.instanceId, unittest.equals('foo')); 728 unittest.expect(o.instanceId, unittest.equals('foo'));
668 unittest.expect(o.instanceIndex, unittest.equals(42)); 729 unittest.expect(o.instanceIndex, unittest.equals(42));
669 unittest.expect(o.ip, unittest.equals('foo')); 730 unittest.expect(o.ip, unittest.equals('foo'));
670 unittest.expect(o.latency, unittest.equals('foo')); 731 unittest.expect(o.latency, unittest.equals('foo'));
671 checkUnnamed3997(o.line); 732 checkUnnamed3709(o.line);
672 unittest.expect(o.megaCycles, unittest.equals('foo')); 733 unittest.expect(o.megaCycles, unittest.equals('foo'));
673 unittest.expect(o.method, unittest.equals('foo')); 734 unittest.expect(o.method, unittest.equals('foo'));
674 unittest.expect(o.moduleId, unittest.equals('foo')); 735 unittest.expect(o.moduleId, unittest.equals('foo'));
675 unittest.expect(o.nickname, unittest.equals('foo')); 736 unittest.expect(o.nickname, unittest.equals('foo'));
676 unittest.expect(o.pendingTime, unittest.equals('foo')); 737 unittest.expect(o.pendingTime, unittest.equals('foo'));
677 unittest.expect(o.referrer, unittest.equals('foo')); 738 unittest.expect(o.referrer, unittest.equals('foo'));
678 unittest.expect(o.requestId, unittest.equals('foo')); 739 unittest.expect(o.requestId, unittest.equals('foo'));
679 unittest.expect(o.resource, unittest.equals('foo')); 740 unittest.expect(o.resource, unittest.equals('foo'));
680 unittest.expect(o.responseSize, unittest.equals('foo')); 741 unittest.expect(o.responseSize, unittest.equals('foo'));
681 checkUnnamed3998(o.sourceReference); 742 checkUnnamed3710(o.sourceReference);
682 unittest.expect(o.startTime, unittest.equals('foo')); 743 unittest.expect(o.startTime, unittest.equals('foo'));
683 unittest.expect(o.status, unittest.equals(42)); 744 unittest.expect(o.status, unittest.equals(42));
684 unittest.expect(o.taskName, unittest.equals('foo')); 745 unittest.expect(o.taskName, unittest.equals('foo'));
685 unittest.expect(o.taskQueueName, unittest.equals('foo')); 746 unittest.expect(o.taskQueueName, unittest.equals('foo'));
686 unittest.expect(o.traceId, unittest.equals('foo')); 747 unittest.expect(o.traceId, unittest.equals('foo'));
687 unittest.expect(o.urlMapEntry, unittest.equals('foo')); 748 unittest.expect(o.urlMapEntry, unittest.equals('foo'));
688 unittest.expect(o.userAgent, unittest.equals('foo')); 749 unittest.expect(o.userAgent, unittest.equals('foo'));
689 unittest.expect(o.versionId, unittest.equals('foo')); 750 unittest.expect(o.versionId, unittest.equals('foo'));
690 unittest.expect(o.wasLoadingRequest, unittest.isTrue); 751 unittest.expect(o.wasLoadingRequest, unittest.isTrue);
691 } 752 }
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
729 790
730 checkSourceReference(api.SourceReference o) { 791 checkSourceReference(api.SourceReference o) {
731 buildCounterSourceReference++; 792 buildCounterSourceReference++;
732 if (buildCounterSourceReference < 3) { 793 if (buildCounterSourceReference < 3) {
733 unittest.expect(o.repository, unittest.equals('foo')); 794 unittest.expect(o.repository, unittest.equals('foo'));
734 unittest.expect(o.revisionId, unittest.equals('foo')); 795 unittest.expect(o.revisionId, unittest.equals('foo'));
735 } 796 }
736 buildCounterSourceReference--; 797 buildCounterSourceReference--;
737 } 798 }
738 799
739 buildUnnamed3999() { 800 buildUnnamed3711() {
740 var o = new core.List<api.LogEntry>(); 801 var o = new core.List<api.LogEntry>();
741 o.add(buildLogEntry()); 802 o.add(buildLogEntry());
742 o.add(buildLogEntry()); 803 o.add(buildLogEntry());
743 return o; 804 return o;
744 } 805 }
745 806
746 checkUnnamed3999(core.List<api.LogEntry> o) { 807 checkUnnamed3711(core.List<api.LogEntry> o) {
747 unittest.expect(o, unittest.hasLength(2)); 808 unittest.expect(o, unittest.hasLength(2));
748 checkLogEntry(o[0]); 809 checkLogEntry(o[0]);
749 checkLogEntry(o[1]); 810 checkLogEntry(o[1]);
750 } 811 }
751 812
752 buildUnnamed4000() { 813 buildUnnamed3712() {
753 var o = new core.Map<core.String, core.String>(); 814 var o = new core.Map<core.String, core.String>();
754 o["x"] = "foo"; 815 o["x"] = "foo";
755 o["y"] = "foo"; 816 o["y"] = "foo";
756 return o; 817 return o;
757 } 818 }
758 819
759 checkUnnamed4000(core.Map<core.String, core.String> o) { 820 checkUnnamed3712(core.Map<core.String, core.String> o) {
760 unittest.expect(o, unittest.hasLength(2)); 821 unittest.expect(o, unittest.hasLength(2));
761 unittest.expect(o["x"], unittest.equals('foo')); 822 unittest.expect(o["x"], unittest.equals('foo'));
762 unittest.expect(o["y"], unittest.equals('foo')); 823 unittest.expect(o["y"], unittest.equals('foo'));
763 } 824 }
764 825
765 core.int buildCounterWriteLogEntriesRequest = 0; 826 core.int buildCounterWriteLogEntriesRequest = 0;
766 buildWriteLogEntriesRequest() { 827 buildWriteLogEntriesRequest() {
767 var o = new api.WriteLogEntriesRequest(); 828 var o = new api.WriteLogEntriesRequest();
768 buildCounterWriteLogEntriesRequest++; 829 buildCounterWriteLogEntriesRequest++;
769 if (buildCounterWriteLogEntriesRequest < 3) { 830 if (buildCounterWriteLogEntriesRequest < 3) {
770 o.entries = buildUnnamed3999(); 831 o.entries = buildUnnamed3711();
771 o.labels = buildUnnamed4000(); 832 o.labels = buildUnnamed3712();
772 o.logName = "foo"; 833 o.logName = "foo";
773 o.partialSuccess = true; 834 o.partialSuccess = true;
774 o.resource = buildMonitoredResource(); 835 o.resource = buildMonitoredResource();
775 } 836 }
776 buildCounterWriteLogEntriesRequest--; 837 buildCounterWriteLogEntriesRequest--;
777 return o; 838 return o;
778 } 839 }
779 840
780 checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) { 841 checkWriteLogEntriesRequest(api.WriteLogEntriesRequest o) {
781 buildCounterWriteLogEntriesRequest++; 842 buildCounterWriteLogEntriesRequest++;
782 if (buildCounterWriteLogEntriesRequest < 3) { 843 if (buildCounterWriteLogEntriesRequest < 3) {
783 checkUnnamed3999(o.entries); 844 checkUnnamed3711(o.entries);
784 checkUnnamed4000(o.labels); 845 checkUnnamed3712(o.labels);
785 unittest.expect(o.logName, unittest.equals('foo')); 846 unittest.expect(o.logName, unittest.equals('foo'));
786 unittest.expect(o.partialSuccess, unittest.isTrue); 847 unittest.expect(o.partialSuccess, unittest.isTrue);
787 checkMonitoredResource(o.resource); 848 checkMonitoredResource(o.resource);
788 } 849 }
789 buildCounterWriteLogEntriesRequest--; 850 buildCounterWriteLogEntriesRequest--;
790 } 851 }
791 852
792 core.int buildCounterWriteLogEntriesResponse = 0; 853 core.int buildCounterWriteLogEntriesResponse = 0;
793 buildWriteLogEntriesResponse() { 854 buildWriteLogEntriesResponse() {
794 var o = new api.WriteLogEntriesResponse(); 855 var o = new api.WriteLogEntriesResponse();
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after
855 916
856 unittest.group("obj-schema-ListLogMetricsResponse", () { 917 unittest.group("obj-schema-ListLogMetricsResponse", () {
857 unittest.test("to-json--from-json", () { 918 unittest.test("to-json--from-json", () {
858 var o = buildListLogMetricsResponse(); 919 var o = buildListLogMetricsResponse();
859 var od = new api.ListLogMetricsResponse.fromJson(o.toJson()); 920 var od = new api.ListLogMetricsResponse.fromJson(o.toJson());
860 checkListLogMetricsResponse(od); 921 checkListLogMetricsResponse(od);
861 }); 922 });
862 }); 923 });
863 924
864 925
926 unittest.group("obj-schema-ListLogsResponse", () {
927 unittest.test("to-json--from-json", () {
928 var o = buildListLogsResponse();
929 var od = new api.ListLogsResponse.fromJson(o.toJson());
930 checkListLogsResponse(od);
931 });
932 });
933
934
865 unittest.group("obj-schema-ListMonitoredResourceDescriptorsResponse", () { 935 unittest.group("obj-schema-ListMonitoredResourceDescriptorsResponse", () {
866 unittest.test("to-json--from-json", () { 936 unittest.test("to-json--from-json", () {
867 var o = buildListMonitoredResourceDescriptorsResponse(); 937 var o = buildListMonitoredResourceDescriptorsResponse();
868 var od = new api.ListMonitoredResourceDescriptorsResponse.fromJson(o.toJso n()); 938 var od = new api.ListMonitoredResourceDescriptorsResponse.fromJson(o.toJso n());
869 checkListMonitoredResourceDescriptorsResponse(od); 939 checkListMonitoredResourceDescriptorsResponse(od);
870 }); 940 });
871 }); 941 });
872 942
873 943
874 unittest.group("obj-schema-ListSinksResponse", () { 944 unittest.group("obj-schema-ListSinksResponse", () {
(...skipping 16 matching lines...) Expand all
891 961
892 unittest.group("obj-schema-LogEntryOperation", () { 962 unittest.group("obj-schema-LogEntryOperation", () {
893 unittest.test("to-json--from-json", () { 963 unittest.test("to-json--from-json", () {
894 var o = buildLogEntryOperation(); 964 var o = buildLogEntryOperation();
895 var od = new api.LogEntryOperation.fromJson(o.toJson()); 965 var od = new api.LogEntryOperation.fromJson(o.toJson());
896 checkLogEntryOperation(od); 966 checkLogEntryOperation(od);
897 }); 967 });
898 }); 968 });
899 969
900 970
971 unittest.group("obj-schema-LogEntrySourceLocation", () {
972 unittest.test("to-json--from-json", () {
973 var o = buildLogEntrySourceLocation();
974 var od = new api.LogEntrySourceLocation.fromJson(o.toJson());
975 checkLogEntrySourceLocation(od);
976 });
977 });
978
979
901 unittest.group("obj-schema-LogLine", () { 980 unittest.group("obj-schema-LogLine", () {
902 unittest.test("to-json--from-json", () { 981 unittest.test("to-json--from-json", () {
903 var o = buildLogLine(); 982 var o = buildLogLine();
904 var od = new api.LogLine.fromJson(o.toJson()); 983 var od = new api.LogLine.fromJson(o.toJson());
905 checkLogLine(od); 984 checkLogLine(od);
906 }); 985 });
907 }); 986 });
908 987
909 988
910 unittest.group("obj-schema-LogMetric", () { 989 unittest.group("obj-schema-LogMetric", () {
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
1027 "content-type" : "application/json; charset=utf-8", 1106 "content-type" : "application/json; charset=utf-8",
1028 }; 1107 };
1029 var resp = convert.JSON.encode(buildEmpty()); 1108 var resp = convert.JSON.encode(buildEmpty());
1030 return new async.Future.value(stringResponse(200, h, resp)); 1109 return new async.Future.value(stringResponse(200, h, resp));
1031 }), true); 1110 }), true);
1032 res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { 1111 res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) {
1033 checkEmpty(response); 1112 checkEmpty(response);
1034 }))); 1113 })));
1035 }); 1114 });
1036 1115
1116 unittest.test("method--list", () {
1117
1118 var mock = new HttpServerMock();
1119 api.BillingAccountsLogsResourceApi res = new api.LoggingApi(mock).billingA ccounts.logs;
1120 var arg_parent = "foo";
1121 var arg_pageSize = 42;
1122 var arg_pageToken = "foo";
1123 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1124 var path = (req.url).path;
1125 var pathOffset = 0;
1126 var index;
1127 var subPart;
1128 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1129 pathOffset += 1;
1130 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v2beta1/"));
1131 pathOffset += 8;
1132 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1133
1134 var query = (req.url).query;
1135 var queryOffset = 0;
1136 var queryMap = {};
1137 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1138 parseBool(n) {
1139 if (n == "true") return true;
1140 if (n == "false") return false;
1141 if (n == null) return null;
1142 throw new core.ArgumentError("Invalid boolean: $n");
1143 }
1144 if (query.length > 0) {
1145 for (var part in query.split("&")) {
1146 var keyvalue = part.split("=");
1147 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1148 }
1149 }
1150 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1151 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1152
1153
1154 var h = {
1155 "content-type" : "application/json; charset=utf-8",
1156 };
1157 var resp = convert.JSON.encode(buildListLogsResponse());
1158 return new async.Future.value(stringResponse(200, h, resp));
1159 }), true);
1160 res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync(((api.ListLogsResponse response) {
1161 checkListLogsResponse(response);
1162 })));
1163 });
1164
1037 }); 1165 });
1038 1166
1039 1167
1040 unittest.group("resource-EntriesResourceApi", () { 1168 unittest.group("resource-EntriesResourceApi", () {
1041 unittest.test("method--list", () { 1169 unittest.test("method--list", () {
1042 1170
1043 var mock = new HttpServerMock(); 1171 var mock = new HttpServerMock();
1044 api.EntriesResourceApi res = new api.LoggingApi(mock).entries; 1172 api.EntriesResourceApi res = new api.LoggingApi(mock).entries;
1045 var arg_request = buildListLogEntriesRequest(); 1173 var arg_request = buildListLogEntriesRequest();
1046 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1174 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
1225 "content-type" : "application/json; charset=utf-8", 1353 "content-type" : "application/json; charset=utf-8",
1226 }; 1354 };
1227 var resp = convert.JSON.encode(buildEmpty()); 1355 var resp = convert.JSON.encode(buildEmpty());
1228 return new async.Future.value(stringResponse(200, h, resp)); 1356 return new async.Future.value(stringResponse(200, h, resp));
1229 }), true); 1357 }), true);
1230 res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { 1358 res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) {
1231 checkEmpty(response); 1359 checkEmpty(response);
1232 }))); 1360 })));
1233 }); 1361 });
1234 1362
1363 unittest.test("method--list", () {
1364
1365 var mock = new HttpServerMock();
1366 api.OrganizationsLogsResourceApi res = new api.LoggingApi(mock).organizati ons.logs;
1367 var arg_parent = "foo";
1368 var arg_pageSize = 42;
1369 var arg_pageToken = "foo";
1370 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1371 var path = (req.url).path;
1372 var pathOffset = 0;
1373 var index;
1374 var subPart;
1375 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1376 pathOffset += 1;
1377 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v2beta1/"));
1378 pathOffset += 8;
1379 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1380
1381 var query = (req.url).query;
1382 var queryOffset = 0;
1383 var queryMap = {};
1384 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1385 parseBool(n) {
1386 if (n == "true") return true;
1387 if (n == "false") return false;
1388 if (n == null) return null;
1389 throw new core.ArgumentError("Invalid boolean: $n");
1390 }
1391 if (query.length > 0) {
1392 for (var part in query.split("&")) {
1393 var keyvalue = part.split("=");
1394 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1395 }
1396 }
1397 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1398 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1399
1400
1401 var h = {
1402 "content-type" : "application/json; charset=utf-8",
1403 };
1404 var resp = convert.JSON.encode(buildListLogsResponse());
1405 return new async.Future.value(stringResponse(200, h, resp));
1406 }), true);
1407 res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync(((api.ListLogsResponse response) {
1408 checkListLogsResponse(response);
1409 })));
1410 });
1411
1235 }); 1412 });
1236 1413
1237 1414
1238 unittest.group("resource-ProjectsLogsResourceApi", () { 1415 unittest.group("resource-ProjectsLogsResourceApi", () {
1239 unittest.test("method--delete", () { 1416 unittest.test("method--delete", () {
1240 1417
1241 var mock = new HttpServerMock(); 1418 var mock = new HttpServerMock();
1242 api.ProjectsLogsResourceApi res = new api.LoggingApi(mock).projects.logs; 1419 api.ProjectsLogsResourceApi res = new api.LoggingApi(mock).projects.logs;
1243 var arg_logName = "foo"; 1420 var arg_logName = "foo";
1244 mock.register(unittest.expectAsync((http.BaseRequest req, json) { 1421 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
(...skipping 29 matching lines...) Expand all
1274 "content-type" : "application/json; charset=utf-8", 1451 "content-type" : "application/json; charset=utf-8",
1275 }; 1452 };
1276 var resp = convert.JSON.encode(buildEmpty()); 1453 var resp = convert.JSON.encode(buildEmpty());
1277 return new async.Future.value(stringResponse(200, h, resp)); 1454 return new async.Future.value(stringResponse(200, h, resp));
1278 }), true); 1455 }), true);
1279 res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) { 1456 res.delete(arg_logName).then(unittest.expectAsync(((api.Empty response) {
1280 checkEmpty(response); 1457 checkEmpty(response);
1281 }))); 1458 })));
1282 }); 1459 });
1283 1460
1461 unittest.test("method--list", () {
1462
1463 var mock = new HttpServerMock();
1464 api.ProjectsLogsResourceApi res = new api.LoggingApi(mock).projects.logs;
1465 var arg_parent = "foo";
1466 var arg_pageSize = 42;
1467 var arg_pageToken = "foo";
1468 mock.register(unittest.expectAsync((http.BaseRequest req, json) {
1469 var path = (req.url).path;
1470 var pathOffset = 0;
1471 var index;
1472 var subPart;
1473 unittest.expect(path.substring(pathOffset, pathOffset + 1), unittest.equ als("/"));
1474 pathOffset += 1;
1475 unittest.expect(path.substring(pathOffset, pathOffset + 8), unittest.equ als("v2beta1/"));
1476 pathOffset += 8;
1477 // NOTE: We cannot test reserved expansions due to the inability to reve rse the operation;
1478
1479 var query = (req.url).query;
1480 var queryOffset = 0;
1481 var queryMap = {};
1482 addQueryParam(n, v) => queryMap.putIfAbsent(n, () => []).add(v);
1483 parseBool(n) {
1484 if (n == "true") return true;
1485 if (n == "false") return false;
1486 if (n == null) return null;
1487 throw new core.ArgumentError("Invalid boolean: $n");
1488 }
1489 if (query.length > 0) {
1490 for (var part in query.split("&")) {
1491 var keyvalue = part.split("=");
1492 addQueryParam(core.Uri.decodeQueryComponent(keyvalue[0]), core.Uri.d ecodeQueryComponent(keyvalue[1]));
1493 }
1494 }
1495 unittest.expect(core.int.parse(queryMap["pageSize"].first), unittest.equ als(arg_pageSize));
1496 unittest.expect(queryMap["pageToken"].first, unittest.equals(arg_pageTok en));
1497
1498
1499 var h = {
1500 "content-type" : "application/json; charset=utf-8",
1501 };
1502 var resp = convert.JSON.encode(buildListLogsResponse());
1503 return new async.Future.value(stringResponse(200, h, resp));
1504 }), true);
1505 res.list(arg_parent, pageSize: arg_pageSize, pageToken: arg_pageToken).the n(unittest.expectAsync(((api.ListLogsResponse response) {
1506 checkListLogsResponse(response);
1507 })));
1508 });
1509
1284 }); 1510 });
1285 1511
1286 1512
1287 unittest.group("resource-ProjectsMetricsResourceApi", () { 1513 unittest.group("resource-ProjectsMetricsResourceApi", () {
1288 unittest.test("method--create", () { 1514 unittest.test("method--create", () {
1289 1515
1290 var mock = new HttpServerMock(); 1516 var mock = new HttpServerMock();
1291 api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.met rics; 1517 api.ProjectsMetricsResourceApi res = new api.LoggingApi(mock).projects.met rics;
1292 var arg_request = buildLogMetric(); 1518 var arg_request = buildLogMetric();
1293 var arg_parent = "foo"; 1519 var arg_parent = "foo";
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
1765 res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWrit erIdentity).then(unittest.expectAsync(((api.LogSink response) { 1991 res.update(arg_request, arg_sinkName, uniqueWriterIdentity: arg_uniqueWrit erIdentity).then(unittest.expectAsync(((api.LogSink response) {
1766 checkLogSink(response); 1992 checkLogSink(response);
1767 }))); 1993 })));
1768 }); 1994 });
1769 1995
1770 }); 1996 });
1771 1997
1772 1998
1773 } 1999 }
1774 2000
OLDNEW
« no previous file with comments | « generated/googleapis_beta/test/language/v1beta1_test.dart ('k') | generated/googleapis_beta/test/ml/v1beta1_test.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698