| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis.siteVerification.v1; | 3 library googleapis.siteVerification.v1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| (...skipping 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 344 | 344 |
| 345 SiteVerificationWebResourceGettokenRequestSite.fromJson(core.Map _json) { | 345 SiteVerificationWebResourceGettokenRequestSite.fromJson(core.Map _json) { |
| 346 if (_json.containsKey("identifier")) { | 346 if (_json.containsKey("identifier")) { |
| 347 identifier = _json["identifier"]; | 347 identifier = _json["identifier"]; |
| 348 } | 348 } |
| 349 if (_json.containsKey("type")) { | 349 if (_json.containsKey("type")) { |
| 350 type = _json["type"]; | 350 type = _json["type"]; |
| 351 } | 351 } |
| 352 } | 352 } |
| 353 | 353 |
| 354 core.Map toJson() { | 354 core.Map<core.String, core.Object> toJson() { |
| 355 var _json = new core.Map(); | 355 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 356 if (identifier != null) { | 356 if (identifier != null) { |
| 357 _json["identifier"] = identifier; | 357 _json["identifier"] = identifier; |
| 358 } | 358 } |
| 359 if (type != null) { | 359 if (type != null) { |
| 360 _json["type"] = type; | 360 _json["type"] = type; |
| 361 } | 361 } |
| 362 return _json; | 362 return _json; |
| 363 } | 363 } |
| 364 } | 364 } |
| 365 | 365 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 376 | 376 |
| 377 SiteVerificationWebResourceGettokenRequest.fromJson(core.Map _json) { | 377 SiteVerificationWebResourceGettokenRequest.fromJson(core.Map _json) { |
| 378 if (_json.containsKey("site")) { | 378 if (_json.containsKey("site")) { |
| 379 site = new SiteVerificationWebResourceGettokenRequestSite.fromJson(_json["
site"]); | 379 site = new SiteVerificationWebResourceGettokenRequestSite.fromJson(_json["
site"]); |
| 380 } | 380 } |
| 381 if (_json.containsKey("verificationMethod")) { | 381 if (_json.containsKey("verificationMethod")) { |
| 382 verificationMethod = _json["verificationMethod"]; | 382 verificationMethod = _json["verificationMethod"]; |
| 383 } | 383 } |
| 384 } | 384 } |
| 385 | 385 |
| 386 core.Map toJson() { | 386 core.Map<core.String, core.Object> toJson() { |
| 387 var _json = new core.Map(); | 387 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 388 if (site != null) { | 388 if (site != null) { |
| 389 _json["site"] = (site).toJson(); | 389 _json["site"] = (site).toJson(); |
| 390 } | 390 } |
| 391 if (verificationMethod != null) { | 391 if (verificationMethod != null) { |
| 392 _json["verificationMethod"] = verificationMethod; | 392 _json["verificationMethod"] = verificationMethod; |
| 393 } | 393 } |
| 394 return _json; | 394 return _json; |
| 395 } | 395 } |
| 396 } | 396 } |
| 397 | 397 |
| (...skipping 16 matching lines...) Expand all Loading... |
| 414 | 414 |
| 415 SiteVerificationWebResourceGettokenResponse.fromJson(core.Map _json) { | 415 SiteVerificationWebResourceGettokenResponse.fromJson(core.Map _json) { |
| 416 if (_json.containsKey("method")) { | 416 if (_json.containsKey("method")) { |
| 417 method = _json["method"]; | 417 method = _json["method"]; |
| 418 } | 418 } |
| 419 if (_json.containsKey("token")) { | 419 if (_json.containsKey("token")) { |
| 420 token = _json["token"]; | 420 token = _json["token"]; |
| 421 } | 421 } |
| 422 } | 422 } |
| 423 | 423 |
| 424 core.Map toJson() { | 424 core.Map<core.String, core.Object> toJson() { |
| 425 var _json = new core.Map(); | 425 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 426 if (method != null) { | 426 if (method != null) { |
| 427 _json["method"] = method; | 427 _json["method"] = method; |
| 428 } | 428 } |
| 429 if (token != null) { | 429 if (token != null) { |
| 430 _json["token"] = token; | 430 _json["token"] = token; |
| 431 } | 431 } |
| 432 return _json; | 432 return _json; |
| 433 } | 433 } |
| 434 } | 434 } |
| 435 | 435 |
| 436 class SiteVerificationWebResourceListResponse { | 436 class SiteVerificationWebResourceListResponse { |
| 437 /** The list of sites that are owned by the authenticated user. */ | 437 /** The list of sites that are owned by the authenticated user. */ |
| 438 core.List<SiteVerificationWebResourceResource> items; | 438 core.List<SiteVerificationWebResourceResource> items; |
| 439 | 439 |
| 440 SiteVerificationWebResourceListResponse(); | 440 SiteVerificationWebResourceListResponse(); |
| 441 | 441 |
| 442 SiteVerificationWebResourceListResponse.fromJson(core.Map _json) { | 442 SiteVerificationWebResourceListResponse.fromJson(core.Map _json) { |
| 443 if (_json.containsKey("items")) { | 443 if (_json.containsKey("items")) { |
| 444 items = _json["items"].map((value) => new SiteVerificationWebResourceResou
rce.fromJson(value)).toList(); | 444 items = _json["items"].map((value) => new SiteVerificationWebResourceResou
rce.fromJson(value)).toList(); |
| 445 } | 445 } |
| 446 } | 446 } |
| 447 | 447 |
| 448 core.Map toJson() { | 448 core.Map<core.String, core.Object> toJson() { |
| 449 var _json = new core.Map(); | 449 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 450 if (items != null) { | 450 if (items != null) { |
| 451 _json["items"] = items.map((value) => (value).toJson()).toList(); | 451 _json["items"] = items.map((value) => (value).toJson()).toList(); |
| 452 } | 452 } |
| 453 return _json; | 453 return _json; |
| 454 } | 454 } |
| 455 } | 455 } |
| 456 | 456 |
| 457 /** The address and type of a site that is verified or will be verified. */ | 457 /** The address and type of a site that is verified or will be verified. */ |
| 458 class SiteVerificationWebResourceResourceSite { | 458 class SiteVerificationWebResourceResourceSite { |
| 459 /** | 459 /** |
| 460 * The site identifier. If the type is set to SITE, the identifier is a URL. | 460 * The site identifier. If the type is set to SITE, the identifier is a URL. |
| 461 * If the type is set to INET_DOMAIN, the site identifier is a domain name. | 461 * If the type is set to INET_DOMAIN, the site identifier is a domain name. |
| 462 */ | 462 */ |
| 463 core.String identifier; | 463 core.String identifier; |
| 464 /** The site type. Can be SITE or INET_DOMAIN (domain name). */ | 464 /** The site type. Can be SITE or INET_DOMAIN (domain name). */ |
| 465 core.String type; | 465 core.String type; |
| 466 | 466 |
| 467 SiteVerificationWebResourceResourceSite(); | 467 SiteVerificationWebResourceResourceSite(); |
| 468 | 468 |
| 469 SiteVerificationWebResourceResourceSite.fromJson(core.Map _json) { | 469 SiteVerificationWebResourceResourceSite.fromJson(core.Map _json) { |
| 470 if (_json.containsKey("identifier")) { | 470 if (_json.containsKey("identifier")) { |
| 471 identifier = _json["identifier"]; | 471 identifier = _json["identifier"]; |
| 472 } | 472 } |
| 473 if (_json.containsKey("type")) { | 473 if (_json.containsKey("type")) { |
| 474 type = _json["type"]; | 474 type = _json["type"]; |
| 475 } | 475 } |
| 476 } | 476 } |
| 477 | 477 |
| 478 core.Map toJson() { | 478 core.Map<core.String, core.Object> toJson() { |
| 479 var _json = new core.Map(); | 479 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 480 if (identifier != null) { | 480 if (identifier != null) { |
| 481 _json["identifier"] = identifier; | 481 _json["identifier"] = identifier; |
| 482 } | 482 } |
| 483 if (type != null) { | 483 if (type != null) { |
| 484 _json["type"] = type; | 484 _json["type"] = type; |
| 485 } | 485 } |
| 486 return _json; | 486 return _json; |
| 487 } | 487 } |
| 488 } | 488 } |
| 489 | 489 |
| (...skipping 15 matching lines...) Expand all Loading... |
| 505 id = _json["id"]; | 505 id = _json["id"]; |
| 506 } | 506 } |
| 507 if (_json.containsKey("owners")) { | 507 if (_json.containsKey("owners")) { |
| 508 owners = _json["owners"]; | 508 owners = _json["owners"]; |
| 509 } | 509 } |
| 510 if (_json.containsKey("site")) { | 510 if (_json.containsKey("site")) { |
| 511 site = new SiteVerificationWebResourceResourceSite.fromJson(_json["site"])
; | 511 site = new SiteVerificationWebResourceResourceSite.fromJson(_json["site"])
; |
| 512 } | 512 } |
| 513 } | 513 } |
| 514 | 514 |
| 515 core.Map toJson() { | 515 core.Map<core.String, core.Object> toJson() { |
| 516 var _json = new core.Map(); | 516 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); |
| 517 if (id != null) { | 517 if (id != null) { |
| 518 _json["id"] = id; | 518 _json["id"] = id; |
| 519 } | 519 } |
| 520 if (owners != null) { | 520 if (owners != null) { |
| 521 _json["owners"] = owners; | 521 _json["owners"] = owners; |
| 522 } | 522 } |
| 523 if (site != null) { | 523 if (site != null) { |
| 524 _json["site"] = (site).toJson(); | 524 _json["site"] = (site).toJson(); |
| 525 } | 525 } |
| 526 return _json; | 526 return _json; |
| 527 } | 527 } |
| 528 } | 528 } |
| OLD | NEW |