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_beta.dns.v1beta1; | 3 library googleapis.dns.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; |
11 | 11 |
12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
13 ApiRequestError, DetailedApiRequestError; | 13 ApiRequestError, DetailedApiRequestError; |
14 | 14 |
15 const core.String USER_AGENT = 'dart-api-client dns/v1beta1'; | 15 const core.String USER_AGENT = 'dart-api-client dns/v1'; |
16 | 16 |
17 /** | 17 /** |
18 * The Google Cloud DNS API provides services for configuring and serving | 18 * The Google Cloud DNS API provides services for configuring and serving |
19 * authoritative DNS records. | 19 * authoritative DNS records. |
20 */ | 20 */ |
21 class DnsApi { | 21 class DnsApi { |
22 /** View and manage your data across Google Cloud Platform services */ | 22 /** View and manage your data across Google Cloud Platform services */ |
23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
24 | 24 |
| 25 /** |
| 26 * MESSAGE UNDER CONSTRUCTION View your data across Google Cloud Platform |
| 27 * services |
| 28 */ |
| 29 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo
ud-platform.read-only"; |
| 30 |
25 /** View your DNS records hosted by Google Cloud DNS */ | 31 /** View your DNS records hosted by Google Cloud DNS */ |
26 static const NdevClouddnsReadonlyScope = "https://www.googleapis.com/auth/ndev
.clouddns.readonly"; | 32 static const NdevClouddnsReadonlyScope = "https://www.googleapis.com/auth/ndev
.clouddns.readonly"; |
27 | 33 |
28 /** View and manage your DNS records hosted by Google Cloud DNS */ | 34 /** View and manage your DNS records hosted by Google Cloud DNS */ |
29 static const NdevClouddnsReadwriteScope = "https://www.googleapis.com/auth/nde
v.clouddns.readwrite"; | 35 static const NdevClouddnsReadwriteScope = "https://www.googleapis.com/auth/nde
v.clouddns.readwrite"; |
30 | 36 |
31 | 37 |
32 final commons.ApiRequester _requester; | 38 final commons.ApiRequester _requester; |
33 | 39 |
34 ChangesResourceApi get changes => new ChangesResourceApi(_requester); | 40 ChangesResourceApi get changes => new ChangesResourceApi(_requester); |
35 ManagedZonesResourceApi get managedZones => new ManagedZonesResourceApi(_reque
ster); | 41 ManagedZonesResourceApi get managedZones => new ManagedZonesResourceApi(_reque
ster); |
36 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); | 42 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
37 ResourceRecordSetsResourceApi get resourceRecordSets => new ResourceRecordSets
ResourceApi(_requester); | 43 ResourceRecordSetsResourceApi get resourceRecordSets => new ResourceRecordSets
ResourceApi(_requester); |
38 | 44 |
39 DnsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/"
, core.String servicePath: "dns/v1beta1/projects/"}) : | 45 DnsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/"
, core.String servicePath: "dns/v1/projects/"}) : |
40 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 46 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
41 } | 47 } |
42 | 48 |
43 | 49 |
44 class ChangesResourceApi { | 50 class ChangesResourceApi { |
45 final commons.ApiRequester _requester; | 51 final commons.ApiRequester _requester; |
46 | 52 |
47 ChangesResourceApi(commons.ApiRequester client) : | 53 ChangesResourceApi(commons.ApiRequester client) : |
48 _requester = client; | 54 _requester = client; |
49 | 55 |
(...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
360 return _response.then((data) => new ManagedZone.fromJson(data)); | 366 return _response.then((data) => new ManagedZone.fromJson(data)); |
361 } | 367 } |
362 | 368 |
363 /** | 369 /** |
364 * Enumerate ManagedZones that have been created but not yet deleted. | 370 * Enumerate ManagedZones that have been created but not yet deleted. |
365 * | 371 * |
366 * Request parameters: | 372 * Request parameters: |
367 * | 373 * |
368 * [project] - Identifies the project addressed by this request. | 374 * [project] - Identifies the project addressed by this request. |
369 * | 375 * |
| 376 * [dnsName] - Restricts the list to return only zones with this domain name. |
| 377 * |
370 * [maxResults] - Optional. Maximum number of results to be returned. If | 378 * [maxResults] - Optional. Maximum number of results to be returned. If |
371 * unspecified, the server will decide how many results to return. | 379 * unspecified, the server will decide how many results to return. |
372 * | 380 * |
373 * [pageToken] - Optional. A tag returned by a previous list request that was | 381 * [pageToken] - Optional. A tag returned by a previous list request that was |
374 * truncated. Use this parameter to continue a previous list request. | 382 * truncated. Use this parameter to continue a previous list request. |
375 * | 383 * |
376 * Completes with a [ManagedZonesListResponse]. | 384 * Completes with a [ManagedZonesListResponse]. |
377 * | 385 * |
378 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 386 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
379 * error. | 387 * error. |
380 * | 388 * |
381 * If the used [http.Client] completes with an error when making a REST call, | 389 * If the used [http.Client] completes with an error when making a REST call, |
382 * this method will complete with the same error. | 390 * this method will complete with the same error. |
383 */ | 391 */ |
384 async.Future<ManagedZonesListResponse> list(core.String project, {core.int max
Results, core.String pageToken}) { | 392 async.Future<ManagedZonesListResponse> list(core.String project, {core.String
dnsName, core.int maxResults, core.String pageToken}) { |
385 var _url = null; | 393 var _url = null; |
386 var _queryParams = new core.Map(); | 394 var _queryParams = new core.Map(); |
387 var _uploadMedia = null; | 395 var _uploadMedia = null; |
388 var _uploadOptions = null; | 396 var _uploadOptions = null; |
389 var _downloadOptions = commons.DownloadOptions.Metadata; | 397 var _downloadOptions = commons.DownloadOptions.Metadata; |
390 var _body = null; | 398 var _body = null; |
391 | 399 |
392 if (project == null) { | 400 if (project == null) { |
393 throw new core.ArgumentError("Parameter project is required."); | 401 throw new core.ArgumentError("Parameter project is required."); |
394 } | 402 } |
| 403 if (dnsName != null) { |
| 404 _queryParams["dnsName"] = [dnsName]; |
| 405 } |
395 if (maxResults != null) { | 406 if (maxResults != null) { |
396 _queryParams["maxResults"] = ["${maxResults}"]; | 407 _queryParams["maxResults"] = ["${maxResults}"]; |
397 } | 408 } |
398 if (pageToken != null) { | 409 if (pageToken != null) { |
399 _queryParams["pageToken"] = [pageToken]; | 410 _queryParams["pageToken"] = [pageToken]; |
400 } | 411 } |
401 | 412 |
402 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones'; | 413 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones'; |
403 | 414 |
404 var _response = _requester.request(_url, | 415 var _response = _requester.request(_url, |
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
554 /** | 565 /** |
555 * Identifies what kind of resource this is. Value: the fixed string | 566 * Identifies what kind of resource this is. Value: the fixed string |
556 * "dns#change". | 567 * "dns#change". |
557 */ | 568 */ |
558 core.String kind; | 569 core.String kind; |
559 /** | 570 /** |
560 * The time that this operation was started by the server. This is in RFC3339 | 571 * The time that this operation was started by the server. This is in RFC3339 |
561 * text format. | 572 * text format. |
562 */ | 573 */ |
563 core.String startTime; | 574 core.String startTime; |
564 /** Status of the operation (output only). */ | 575 /** |
| 576 * Status of the operation (output only). |
| 577 * Possible string values are: |
| 578 * - "done" |
| 579 * - "pending" |
| 580 */ |
565 core.String status; | 581 core.String status; |
566 | 582 |
567 Change(); | 583 Change(); |
568 | 584 |
569 Change.fromJson(core.Map _json) { | 585 Change.fromJson(core.Map _json) { |
570 if (_json.containsKey("additions")) { | 586 if (_json.containsKey("additions")) { |
571 additions = _json["additions"].map((value) => new ResourceRecordSet.fromJs
on(value)).toList(); | 587 additions = _json["additions"].map((value) => new ResourceRecordSet.fromJs
on(value)).toList(); |
572 } | 588 } |
573 if (_json.containsKey("deletions")) { | 589 if (_json.containsKey("deletions")) { |
574 deletions = _json["deletions"].map((value) => new ResourceRecordSet.fromJs
on(value)).toList(); | 590 deletions = _json["deletions"].map((value) => new ResourceRecordSet.fromJs
on(value)).toList(); |
(...skipping 479 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1054 } | 1070 } |
1055 if (nextPageToken != null) { | 1071 if (nextPageToken != null) { |
1056 _json["nextPageToken"] = nextPageToken; | 1072 _json["nextPageToken"] = nextPageToken; |
1057 } | 1073 } |
1058 if (rrsets != null) { | 1074 if (rrsets != null) { |
1059 _json["rrsets"] = rrsets.map((value) => (value).toJson()).toList(); | 1075 _json["rrsets"] = rrsets.map((value) => (value).toJson()).toList(); |
1060 } | 1076 } |
1061 return _json; | 1077 return _json; |
1062 } | 1078 } |
1063 } | 1079 } |
OLD | NEW |