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

Side by Side Diff: generated/googleapis_beta/lib/dns/v1beta1.dart

Issue 1268013003: Api-roll 21: 2015-08-04 (Closed) Base URL: git@github.com:dart-lang/googleapis.git@master
Patch Set: Created 5 years, 4 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 // 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_beta.dns.v1beta1;
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/v1beta1';
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);
(...skipping 325 matching lines...) Expand 10 before | Expand all | Expand 10 after
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 649 matching lines...) Expand 10 before | Expand all | Expand 10 after
1054 } 1065 }
1055 if (nextPageToken != null) { 1066 if (nextPageToken != null) {
1056 _json["nextPageToken"] = nextPageToken; 1067 _json["nextPageToken"] = nextPageToken;
1057 } 1068 }
1058 if (rrsets != null) { 1069 if (rrsets != null) {
1059 _json["rrsets"] = rrsets.map((value) => (value).toJson()).toList(); 1070 _json["rrsets"] = rrsets.map((value) => (value).toJson()).toList();
1060 } 1071 }
1061 return _json; 1072 return _json;
1062 } 1073 }
1063 } 1074 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698