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

Unified Diff: generated/googleapis/lib/dns/v1.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis/lib/discovery/v1.dart ('k') | generated/googleapis/lib/doubleclickbidmanager/v1.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/dns/v1.dart
diff --git a/generated/googleapis/lib/dns/v1.dart b/generated/googleapis/lib/dns/v1.dart
index 27dd83e699fda62201a40c43a27d1492081cb968..b0e2840d09d8c769eb9947b17c8495cec15f1d9d 100644
--- a/generated/googleapis/lib/dns/v1.dart
+++ b/generated/googleapis/lib/dns/v1.dart
@@ -9,65 +9,70 @@ import 'dart:convert' as convert;
import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons;
import 'package:http/http.dart' as http;
-export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show
- ApiRequestError, DetailedApiRequestError;
+export 'package:_discoveryapis_commons/_discoveryapis_commons.dart'
+ show ApiRequestError, DetailedApiRequestError;
const core.String USER_AGENT = 'dart-api-client dns/v1';
-/** Configures and serves authoritative DNS records. */
+/// Configures and serves authoritative DNS records.
class DnsApi {
- /** View and manage your data across Google Cloud Platform services */
- static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform";
+ /// View and manage your data across Google Cloud Platform services
+ static const CloudPlatformScope =
+ "https://www.googleapis.com/auth/cloud-platform";
- /** View your data across Google Cloud Platform services */
- static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/cloud-platform.read-only";
+ /// View your data across Google Cloud Platform services
+ static const CloudPlatformReadOnlyScope =
+ "https://www.googleapis.com/auth/cloud-platform.read-only";
- /** View your DNS records hosted by Google Cloud DNS */
- static const NdevClouddnsReadonlyScope = "https://www.googleapis.com/auth/ndev.clouddns.readonly";
-
- /** View and manage your DNS records hosted by Google Cloud DNS */
- static const NdevClouddnsReadwriteScope = "https://www.googleapis.com/auth/ndev.clouddns.readwrite";
+ /// View your DNS records hosted by Google Cloud DNS
+ static const NdevClouddnsReadonlyScope =
+ "https://www.googleapis.com/auth/ndev.clouddns.readonly";
+ /// View and manage your DNS records hosted by Google Cloud DNS
+ static const NdevClouddnsReadwriteScope =
+ "https://www.googleapis.com/auth/ndev.clouddns.readwrite";
final commons.ApiRequester _requester;
ChangesResourceApi get changes => new ChangesResourceApi(_requester);
- ManagedZonesResourceApi get managedZones => new ManagedZonesResourceApi(_requester);
+ ManagedZonesResourceApi get managedZones =>
+ new ManagedZonesResourceApi(_requester);
ProjectsResourceApi get projects => new ProjectsResourceApi(_requester);
- ResourceRecordSetsResourceApi get resourceRecordSets => new ResourceRecordSetsResourceApi(_requester);
-
- DnsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/", core.String servicePath: "dns/v1/projects/"}) :
- _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
+ ResourceRecordSetsResourceApi get resourceRecordSets =>
+ new ResourceRecordSetsResourceApi(_requester);
+
+ DnsApi(http.Client client,
+ {core.String rootUrl: "https://www.googleapis.com/",
+ core.String servicePath: "dns/v1/projects/"})
+ : _requester =
+ new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
}
-
class ChangesResourceApi {
final commons.ApiRequester _requester;
- ChangesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Atomically update the ResourceRecordSet collection.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [project] - Identifies the project addressed by this request.
- *
- * [managedZone] - Identifies the managed zone addressed by this request. Can
- * be the managed zone name or id.
- *
- * Completes with a [Change].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Change> create(Change request, core.String project, core.String managedZone) {
+ ChangesResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Atomically update the ResourceRecordSet collection.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - Identifies the project addressed by this request.
+ ///
+ /// [managedZone] - Identifies the managed zone addressed by this request.
+ /// Can be the managed zone name or id.
+ ///
+ /// Completes with a [Change].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Change> create(
+ Change request, core.String project, core.String managedZone) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -85,40 +90,41 @@ class ChangesResourceApi {
throw new core.ArgumentError("Parameter managedZone is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + commons.Escaper.ecapeVariable('$managedZone') + '/changes';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/managedZones/' +
+ commons.Escaper.ecapeVariable('$managedZone') +
+ '/changes';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Change.fromJson(data));
}
- /**
- * Fetch the representation of an existing Change.
- *
- * Request parameters:
- *
- * [project] - Identifies the project addressed by this request.
- *
- * [managedZone] - Identifies the managed zone addressed by this request. Can
- * be the managed zone name or id.
- *
- * [changeId] - The identifier of the requested change, from a previous
- * ResourceRecordSetsChangeResponse.
- *
- * Completes with a [Change].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<Change> get(core.String project, core.String managedZone, core.String changeId) {
+ /// Fetch the representation of an existing Change.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - Identifies the project addressed by this request.
+ ///
+ /// [managedZone] - Identifies the managed zone addressed by this request.
+ /// Can be the managed zone name or id.
+ ///
+ /// [changeId] - The identifier of the requested change, from a previous
+ /// ResourceRecordSetsChangeResponse.
+ ///
+ /// Completes with a [Change].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<Change> get(
+ core.String project, core.String managedZone, core.String changeId) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -136,49 +142,56 @@ class ChangesResourceApi {
throw new core.ArgumentError("Parameter changeId is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + commons.Escaper.ecapeVariable('$managedZone') + '/changes/' + commons.Escaper.ecapeVariable('$changeId');
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/managedZones/' +
+ commons.Escaper.ecapeVariable('$managedZone') +
+ '/changes/' +
+ commons.Escaper.ecapeVariable('$changeId');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Change.fromJson(data));
}
- /**
- * Enumerate Changes to a ResourceRecordSet collection.
- *
- * Request parameters:
- *
- * [project] - Identifies the project addressed by this request.
- *
- * [managedZone] - Identifies the managed zone addressed by this request. Can
- * be the managed zone name or id.
- *
- * [maxResults] - Optional. Maximum number of results to be returned. If
- * unspecified, the server will decide how many results to return.
- *
- * [pageToken] - Optional. A tag returned by a previous list request that was
- * truncated. Use this parameter to continue a previous list request.
- *
- * [sortBy] - Sorting criterion. The only supported value is change sequence.
- * Possible string values are:
- * - "changeSequence"
- *
- * [sortOrder] - Sorting order direction: 'ascending' or 'descending'.
- *
- * Completes with a [ChangesListResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ChangesListResponse> list(core.String project, core.String managedZone, {core.int maxResults, core.String pageToken, core.String sortBy, core.String sortOrder}) {
+ /// Enumerate Changes to a ResourceRecordSet collection.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - Identifies the project addressed by this request.
+ ///
+ /// [managedZone] - Identifies the managed zone addressed by this request.
+ /// Can be the managed zone name or id.
+ ///
+ /// [maxResults] - Optional. Maximum number of results to be returned. If
+ /// unspecified, the server will decide how many results to return.
+ ///
+ /// [pageToken] - Optional. A tag returned by a previous list request that
+ /// was truncated. Use this parameter to continue a previous list request.
+ ///
+ /// [sortBy] - Sorting criterion. The only supported value is change
+ /// sequence.
+ /// Possible string values are:
+ /// - "changeSequence"
+ ///
+ /// [sortOrder] - Sorting order direction: 'ascending' or 'descending'.
+ ///
+ /// Completes with a [ChangesListResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ChangesListResponse> list(
+ core.String project, core.String managedZone,
+ {core.int maxResults,
+ core.String pageToken,
+ core.String sortBy,
+ core.String sortOrder}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -205,44 +218,41 @@ class ChangesResourceApi {
_queryParams["sortOrder"] = [sortOrder];
}
- _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + commons.Escaper.ecapeVariable('$managedZone') + '/changes';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/managedZones/' +
+ commons.Escaper.ecapeVariable('$managedZone') +
+ '/changes';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ChangesListResponse.fromJson(data));
}
-
}
-
class ManagedZonesResourceApi {
final commons.ApiRequester _requester;
- ManagedZonesResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Create a new ManagedZone.
- *
- * [request] - The metadata request object.
- *
- * Request parameters:
- *
- * [project] - Identifies the project addressed by this request.
- *
- * Completes with a [ManagedZone].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ ManagedZonesResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Create a new ManagedZone.
+ ///
+ /// [request] - The metadata request object.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - Identifies the project addressed by this request.
+ ///
+ /// Completes with a [ManagedZone].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<ManagedZone> create(ManagedZone request, core.String project) {
var _url = null;
var _queryParams = new core.Map();
@@ -260,32 +270,29 @@ class ManagedZonesResourceApi {
_url = commons.Escaper.ecapeVariable('$project') + '/managedZones';
- var _response = _requester.request(_url,
- "POST",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "POST",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ManagedZone.fromJson(data));
}
- /**
- * Delete a previously created ManagedZone.
- *
- * Request parameters:
- *
- * [project] - Identifies the project addressed by this request.
- *
- * [managedZone] - Identifies the managed zone addressed by this request. Can
- * be the managed zone name or id.
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Delete a previously created ManagedZone.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - Identifies the project addressed by this request.
+ ///
+ /// [managedZone] - Identifies the managed zone addressed by this request.
+ /// Can be the managed zone name or id.
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future delete(core.String project, core.String managedZone) {
var _url = null;
var _queryParams = new core.Map();
@@ -303,36 +310,35 @@ class ManagedZonesResourceApi {
_downloadOptions = null;
- _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + commons.Escaper.ecapeVariable('$managedZone');
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/managedZones/' +
+ commons.Escaper.ecapeVariable('$managedZone');
- var _response = _requester.request(_url,
- "DELETE",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "DELETE",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => null);
}
- /**
- * Fetch the representation of an existing ManagedZone.
- *
- * Request parameters:
- *
- * [project] - Identifies the project addressed by this request.
- *
- * [managedZone] - Identifies the managed zone addressed by this request. Can
- * be the managed zone name or id.
- *
- * Completes with a [ManagedZone].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ /// Fetch the representation of an existing ManagedZone.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - Identifies the project addressed by this request.
+ ///
+ /// [managedZone] - Identifies the managed zone addressed by this request.
+ /// Can be the managed zone name or id.
+ ///
+ /// Completes with a [ManagedZone].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<ManagedZone> get(core.String project, core.String managedZone) {
var _url = null;
var _queryParams = new core.Map();
@@ -348,42 +354,43 @@ class ManagedZonesResourceApi {
throw new core.ArgumentError("Parameter managedZone is required.");
}
- _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + commons.Escaper.ecapeVariable('$managedZone');
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/managedZones/' +
+ commons.Escaper.ecapeVariable('$managedZone');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new ManagedZone.fromJson(data));
}
- /**
- * Enumerate ManagedZones that have been created but not yet deleted.
- *
- * Request parameters:
- *
- * [project] - Identifies the project addressed by this request.
- *
- * [dnsName] - Restricts the list to return only zones with this domain name.
- *
- * [maxResults] - Optional. Maximum number of results to be returned. If
- * unspecified, the server will decide how many results to return.
- *
- * [pageToken] - Optional. A tag returned by a previous list request that was
- * truncated. Use this parameter to continue a previous list request.
- *
- * Completes with a [ManagedZonesListResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ManagedZonesListResponse> list(core.String project, {core.String dnsName, core.int maxResults, core.String pageToken}) {
+ /// Enumerate ManagedZones that have been created but not yet deleted.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - Identifies the project addressed by this request.
+ ///
+ /// [dnsName] - Restricts the list to return only zones with this domain
+ /// name.
+ ///
+ /// [maxResults] - Optional. Maximum number of results to be returned. If
+ /// unspecified, the server will decide how many results to return.
+ ///
+ /// [pageToken] - Optional. A tag returned by a previous list request that
+ /// was truncated. Use this parameter to continue a previous list request.
+ ///
+ /// Completes with a [ManagedZonesListResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ManagedZonesListResponse> list(core.String project,
+ {core.String dnsName, core.int maxResults, core.String pageToken}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -406,40 +413,35 @@ class ManagedZonesResourceApi {
_url = commons.Escaper.ecapeVariable('$project') + '/managedZones';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new ManagedZonesListResponse.fromJson(data));
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new ManagedZonesListResponse.fromJson(data));
}
-
}
-
class ProjectsResourceApi {
final commons.ApiRequester _requester;
- ProjectsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Fetch the representation of an existing Project.
- *
- * Request parameters:
- *
- * [project] - Identifies the project addressed by this request.
- *
- * Completes with a [Project].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
+ ProjectsResourceApi(commons.ApiRequester client) : _requester = client;
+
+ /// Fetch the representation of an existing Project.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - Identifies the project addressed by this request.
+ ///
+ /// Completes with a [Project].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
async.Future<Project> get(core.String project) {
var _url = null;
var _queryParams = new core.Map();
@@ -454,56 +456,56 @@ class ProjectsResourceApi {
_url = commons.Escaper.ecapeVariable('$project');
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
return _response.then((data) => new Project.fromJson(data));
}
-
}
-
class ResourceRecordSetsResourceApi {
final commons.ApiRequester _requester;
- ResourceRecordSetsResourceApi(commons.ApiRequester client) :
- _requester = client;
-
- /**
- * Enumerate ResourceRecordSets that have been created but not yet deleted.
- *
- * Request parameters:
- *
- * [project] - Identifies the project addressed by this request.
- *
- * [managedZone] - Identifies the managed zone addressed by this request. Can
- * be the managed zone name or id.
- *
- * [maxResults] - Optional. Maximum number of results to be returned. If
- * unspecified, the server will decide how many results to return.
- *
- * [name] - Restricts the list to return only records with this fully
- * qualified domain name.
- *
- * [pageToken] - Optional. A tag returned by a previous list request that was
- * truncated. Use this parameter to continue a previous list request.
- *
- * [type] - Restricts the list to return only records of this type. If
- * present, the "name" parameter must also be present.
- *
- * Completes with a [ResourceRecordSetsListResponse].
- *
- * Completes with a [commons.ApiRequestError] if the API endpoint returned an
- * error.
- *
- * If the used [http.Client] completes with an error when making a REST call,
- * this method will complete with the same error.
- */
- async.Future<ResourceRecordSetsListResponse> list(core.String project, core.String managedZone, {core.int maxResults, core.String name, core.String pageToken, core.String type}) {
+ ResourceRecordSetsResourceApi(commons.ApiRequester client)
+ : _requester = client;
+
+ /// Enumerate ResourceRecordSets that have been created but not yet deleted.
+ ///
+ /// Request parameters:
+ ///
+ /// [project] - Identifies the project addressed by this request.
+ ///
+ /// [managedZone] - Identifies the managed zone addressed by this request.
+ /// Can be the managed zone name or id.
+ ///
+ /// [maxResults] - Optional. Maximum number of results to be returned. If
+ /// unspecified, the server will decide how many results to return.
+ ///
+ /// [name] - Restricts the list to return only records with this fully
+ /// qualified domain name.
+ ///
+ /// [pageToken] - Optional. A tag returned by a previous list request that
+ /// was truncated. Use this parameter to continue a previous list request.
+ ///
+ /// [type] - Restricts the list to return only records of this type. If
+ /// present, the "name" parameter must also be present.
+ ///
+ /// Completes with a [ResourceRecordSetsListResponse].
+ ///
+ /// Completes with a [commons.ApiRequestError] if the API endpoint returned
+ /// an error.
+ ///
+ /// If the used [http.Client] completes with an error when making a REST
+ /// call, this method will complete with the same error.
+ async.Future<ResourceRecordSetsListResponse> list(
+ core.String project, core.String managedZone,
+ {core.int maxResults,
+ core.String name,
+ core.String pageToken,
+ core.String type}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -530,58 +532,59 @@ class ResourceRecordSetsResourceApi {
_queryParams["type"] = [type];
}
- _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + commons.Escaper.ecapeVariable('$managedZone') + '/rrsets';
+ _url = commons.Escaper.ecapeVariable('$project') +
+ '/managedZones/' +
+ commons.Escaper.ecapeVariable('$managedZone') +
+ '/rrsets';
- var _response = _requester.request(_url,
- "GET",
- body: _body,
- queryParams: _queryParams,
- uploadOptions: _uploadOptions,
- uploadMedia: _uploadMedia,
- downloadOptions: _downloadOptions);
- return _response.then((data) => new ResourceRecordSetsListResponse.fromJson(data));
+ var _response = _requester.request(_url, "GET",
+ body: _body,
+ queryParams: _queryParams,
+ uploadOptions: _uploadOptions,
+ uploadMedia: _uploadMedia,
+ downloadOptions: _downloadOptions);
+ return _response
+ .then((data) => new ResourceRecordSetsListResponse.fromJson(data));
}
-
}
-
-
-/** An atomic update to a collection of ResourceRecordSets. */
+/// An atomic update to a collection of ResourceRecordSets.
class Change {
- /** Which ResourceRecordSets to add? */
+ /// Which ResourceRecordSets to add?
core.List<ResourceRecordSet> additions;
- /** Which ResourceRecordSets to remove? Must match existing data exactly. */
+
+ /// Which ResourceRecordSets to remove? Must match existing data exactly.
core.List<ResourceRecordSet> deletions;
- /**
- * Unique identifier for the resource; defined by the server (output only).
- */
+
+ /// Unique identifier for the resource; defined by the server (output only).
core.String id;
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "dns#change".
- */
+
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "dns#change".
core.String kind;
- /**
- * The time that this operation was started by the server (output only). This
- * is in RFC3339 text format.
- */
+
+ /// The time that this operation was started by the server (output only).
+ /// This is in RFC3339 text format.
core.String startTime;
- /**
- * Status of the operation (output only).
- * Possible string values are:
- * - "done"
- * - "pending"
- */
+
+ /// Status of the operation (output only).
+ /// Possible string values are:
+ /// - "done"
+ /// - "pending"
core.String status;
Change();
Change.fromJson(core.Map _json) {
if (_json.containsKey("additions")) {
- additions = _json["additions"].map((value) => new ResourceRecordSet.fromJson(value)).toList();
+ additions = _json["additions"]
+ .map((value) => new ResourceRecordSet.fromJson(value))
+ .toList();
}
if (_json.containsKey("deletions")) {
- deletions = _json["deletions"].map((value) => new ResourceRecordSet.fromJson(value)).toList();
+ deletions = _json["deletions"]
+ .map((value) => new ResourceRecordSet.fromJson(value))
+ .toList();
}
if (_json.containsKey("id")) {
id = _json["id"];
@@ -598,7 +601,8 @@ class Change {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (additions != null) {
_json["additions"] = additions.map((value) => (value).toJson()).toList();
}
@@ -621,34 +625,33 @@ class Change {
}
}
-/**
- * The response to a request to enumerate Changes to a ResourceRecordSets
- * collection.
- */
+/// The response to a request to enumerate Changes to a ResourceRecordSets
+/// collection.
class ChangesListResponse {
- /** The requested changes. */
+ /// The requested changes.
core.List<Change> changes;
- /** Type of resource. */
+
+ /// Type of resource.
core.String kind;
- /**
- * The presence of this field indicates that there exist more results
- * following your last page of results in pagination order. To fetch them,
- * make another list request using this value as your pagination token.
- *
- * In this way you can retrieve the complete contents of even very large
- * collections one page at a time. However, if the contents of the collection
- * change between the first and last paginated list request, the set of all
- * elements returned will be an inconsistent view of the collection. There is
- * no way to retrieve a "snapshot" of collections larger than the maximum page
- * size.
- */
+
+ /// The presence of this field indicates that there exist more results
+ /// following your last page of results in pagination order. To fetch them,
+ /// make another list request using this value as your pagination token.
+ ///
+ /// In this way you can retrieve the complete contents of even very large
+ /// collections one page at a time. However, if the contents of the
+ /// collection change between the first and last paginated list request, the
+ /// set of all elements returned will be an inconsistent view of the
+ /// collection. There is no way to retrieve a "snapshot" of collections
+ /// larger than the maximum page size.
core.String nextPageToken;
ChangesListResponse();
ChangesListResponse.fromJson(core.Map _json) {
if (_json.containsKey("changes")) {
- changes = _json["changes"].map((value) => new Change.fromJson(value)).toList();
+ changes =
+ _json["changes"].map((value) => new Change.fromJson(value)).toList();
}
if (_json.containsKey("kind")) {
kind = _json["kind"];
@@ -659,7 +662,8 @@ class ChangesListResponse {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (changes != null) {
_json["changes"] = changes.map((value) => (value).toJson()).toList();
}
@@ -673,49 +677,40 @@ class ChangesListResponse {
}
}
-/**
- * A zone is a subtree of the DNS namespace under one administrative
- * responsibility. A ManagedZone is a resource that represents a DNS zone hosted
- * by the Cloud DNS service.
- */
+/// A zone is a subtree of the DNS namespace under one administrative
+/// responsibility. A ManagedZone is a resource that represents a DNS zone
+/// hosted by the Cloud DNS service.
class ManagedZone {
- /**
- * The time that this resource was created on the server. This is in RFC3339
- * text format. Output only.
- */
+ /// The time that this resource was created on the server. This is in RFC3339
+ /// text format. Output only.
core.String creationTime;
- /**
- * A mutable string of at most 1024 characters associated with this resource
- * for the user's convenience. Has no effect on the managed zone's function.
- */
+
+ /// A mutable string of at most 1024 characters associated with this resource
+ /// for the user's convenience. Has no effect on the managed zone's function.
core.String description;
- /** The DNS name of this managed zone, for instance "example.com.". */
+
+ /// The DNS name of this managed zone, for instance "example.com.".
core.String dnsName;
- /**
- * Unique identifier for the resource; defined by the server (output only)
- */
+
+ /// Unique identifier for the resource; defined by the server (output only)
core.String id;
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "dns#managedZone".
- */
+
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "dns#managedZone".
core.String kind;
- /**
- * User assigned name for this resource. Must be unique within the project.
- * The name must be 1-63 characters long, must begin with a letter, end with a
- * letter or digit, and only contain lowercase letters, digits or dashes.
- */
+
+ /// User assigned name for this resource. Must be unique within the project.
+ /// The name must be 1-63 characters long, must begin with a letter, end with
+ /// a letter or digit, and only contain lowercase letters, digits or dashes.
core.String name;
- /**
- * Optionally specifies the NameServerSet for this ManagedZone. A
- * NameServerSet is a set of DNS name servers that all host the same
- * ManagedZones. Most users will leave this field unset.
- */
+
+ /// Optionally specifies the NameServerSet for this ManagedZone. A
+ /// NameServerSet is a set of DNS name servers that all host the same
+ /// ManagedZones. Most users will leave this field unset.
core.String nameServerSet;
- /**
- * Delegate your managed_zone to these virtual name servers; defined by the
- * server (output only)
- */
+
+ /// Delegate your managed_zone to these virtual name servers; defined by the
+ /// server (output only)
core.List<core.String> nameServers;
ManagedZone();
@@ -748,7 +743,8 @@ class ManagedZone {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (creationTime != null) {
_json["creationTime"] = creationTime;
}
@@ -778,22 +774,22 @@ class ManagedZone {
}
class ManagedZonesListResponse {
- /** Type of resource. */
+ /// Type of resource.
core.String kind;
- /** The managed zone resources. */
+
+ /// The managed zone resources.
core.List<ManagedZone> managedZones;
- /**
- * The presence of this field indicates that there exist more results
- * following your last page of results in pagination order. To fetch them,
- * make another list request using this value as your page token.
- *
- * In this way you can retrieve the complete contents of even very large
- * collections one page at a time. However, if the contents of the collection
- * change between the first and last paginated list request, the set of all
- * elements returned will be an inconsistent view of the collection. There is
- * no way to retrieve a consistent snapshot of a collection larger than the
- * maximum page size.
- */
+
+ /// The presence of this field indicates that there exist more results
+ /// following your last page of results in pagination order. To fetch them,
+ /// make another list request using this value as your page token.
+ ///
+ /// In this way you can retrieve the complete contents of even very large
+ /// collections one page at a time. However, if the contents of the
+ /// collection change between the first and last paginated list request, the
+ /// set of all elements returned will be an inconsistent view of the
+ /// collection. There is no way to retrieve a consistent snapshot of a
+ /// collection larger than the maximum page size.
core.String nextPageToken;
ManagedZonesListResponse();
@@ -803,7 +799,9 @@ class ManagedZonesListResponse {
kind = _json["kind"];
}
if (_json.containsKey("managedZones")) {
- managedZones = _json["managedZones"].map((value) => new ManagedZone.fromJson(value)).toList();
+ managedZones = _json["managedZones"]
+ .map((value) => new ManagedZone.fromJson(value))
+ .toList();
}
if (_json.containsKey("nextPageToken")) {
nextPageToken = _json["nextPageToken"];
@@ -811,12 +809,14 @@ class ManagedZonesListResponse {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (kind != null) {
_json["kind"] = kind;
}
if (managedZones != null) {
- _json["managedZones"] = managedZones.map((value) => (value).toJson()).toList();
+ _json["managedZones"] =
+ managedZones.map((value) => (value).toJson()).toList();
}
if (nextPageToken != null) {
_json["nextPageToken"] = nextPageToken;
@@ -825,25 +825,22 @@ class ManagedZonesListResponse {
}
}
-/**
- * A project resource. The project is a top level container for resources
- * including Cloud DNS ManagedZones. Projects can be created only in the APIs
- * console.
- */
+/// A project resource. The project is a top level container for resources
+/// including Cloud DNS ManagedZones. Projects can be created only in the APIs
+/// console.
class Project {
- /** User assigned unique identifier for the resource (output only). */
+ /// User assigned unique identifier for the resource (output only).
core.String id;
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "dns#project".
- */
+
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "dns#project".
core.String kind;
- /**
- * Unique numeric identifier for the resource; defined by the server (output
- * only).
- */
+
+ /// Unique numeric identifier for the resource; defined by the server (output
+ /// only).
core.String number;
- /** Quotas assigned to this project (output only). */
+
+ /// Quotas assigned to this project (output only).
Quota quota;
Project();
@@ -864,7 +861,8 @@ class Project {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (id != null) {
_json["id"] = id;
}
@@ -881,32 +879,31 @@ class Project {
}
}
-/** Limits associated with a Project. */
+/// Limits associated with a Project.
class Quota {
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "dns#quota".
- */
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "dns#quota".
core.String kind;
- /** Maximum allowed number of managed zones in the project. */
+
+ /// Maximum allowed number of managed zones in the project.
core.int managedZones;
- /** Maximum allowed number of ResourceRecords per ResourceRecordSet. */
+
+ /// Maximum allowed number of ResourceRecords per ResourceRecordSet.
core.int resourceRecordsPerRrset;
- /**
- * Maximum allowed number of ResourceRecordSets to add per
- * ChangesCreateRequest.
- */
+
+ /// Maximum allowed number of ResourceRecordSets to add per
+ /// ChangesCreateRequest.
core.int rrsetAdditionsPerChange;
- /**
- * Maximum allowed number of ResourceRecordSets to delete per
- * ChangesCreateRequest.
- */
+
+ /// Maximum allowed number of ResourceRecordSets to delete per
+ /// ChangesCreateRequest.
core.int rrsetDeletionsPerChange;
- /** Maximum allowed number of ResourceRecordSets per zone in the project. */
+
+ /// Maximum allowed number of ResourceRecordSets per zone in the project.
core.int rrsetsPerManagedZone;
- /**
- * Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.
- */
+
+ /// Maximum allowed size for total rrdata in one ChangesCreateRequest in
+ /// bytes.
core.int totalRrdataSizePerChange;
Quota();
@@ -936,7 +933,8 @@ class Quota {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (kind != null) {
_json["kind"] = kind;
}
@@ -962,25 +960,23 @@ class Quota {
}
}
-/** A unit of data that will be returned by the DNS servers. */
+/// A unit of data that will be returned by the DNS servers.
class ResourceRecordSet {
- /**
- * Identifies what kind of resource this is. Value: the fixed string
- * "dns#resourceRecordSet".
- */
+ /// Identifies what kind of resource this is. Value: the fixed string
+ /// "dns#resourceRecordSet".
core.String kind;
- /** For example, www.example.com. */
+
+ /// For example, www.example.com.
core.String name;
- /** As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1). */
+
+ /// As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1).
core.List<core.String> rrdatas;
- /**
- * Number of seconds that this ResourceRecordSet can be cached by resolvers.
- */
+
+ /// Number of seconds that this ResourceRecordSet can be cached by resolvers.
core.int ttl;
- /**
- * The identifier of a supported record type, for example, A, AAAA, MX, TXT,
- * and so on.
- */
+
+ /// The identifier of a supported record type, for example, A, AAAA, MX, TXT,
+ /// and so on.
core.String type;
ResourceRecordSet();
@@ -1004,7 +1000,8 @@ class ResourceRecordSet {
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (kind != null) {
_json["kind"] = kind;
}
@@ -1025,22 +1022,22 @@ class ResourceRecordSet {
}
class ResourceRecordSetsListResponse {
- /** Type of resource. */
+ /// Type of resource.
core.String kind;
- /**
- * The presence of this field indicates that there exist more results
- * following your last page of results in pagination order. To fetch them,
- * make another list request using this value as your pagination token.
- *
- * In this way you can retrieve the complete contents of even very large
- * collections one page at a time. However, if the contents of the collection
- * change between the first and last paginated list request, the set of all
- * elements returned will be an inconsistent view of the collection. There is
- * no way to retrieve a consistent snapshot of a collection larger than the
- * maximum page size.
- */
+
+ /// The presence of this field indicates that there exist more results
+ /// following your last page of results in pagination order. To fetch them,
+ /// make another list request using this value as your pagination token.
+ ///
+ /// In this way you can retrieve the complete contents of even very large
+ /// collections one page at a time. However, if the contents of the
+ /// collection change between the first and last paginated list request, the
+ /// set of all elements returned will be an inconsistent view of the
+ /// collection. There is no way to retrieve a consistent snapshot of a
+ /// collection larger than the maximum page size.
core.String nextPageToken;
- /** The resource record set resources. */
+
+ /// The resource record set resources.
core.List<ResourceRecordSet> rrsets;
ResourceRecordSetsListResponse();
@@ -1053,12 +1050,15 @@ class ResourceRecordSetsListResponse {
nextPageToken = _json["nextPageToken"];
}
if (_json.containsKey("rrsets")) {
- rrsets = _json["rrsets"].map((value) => new ResourceRecordSet.fromJson(value)).toList();
+ rrsets = _json["rrsets"]
+ .map((value) => new ResourceRecordSet.fromJson(value))
+ .toList();
}
}
core.Map<core.String, core.Object> toJson() {
- final core.Map<core.String, core.Object> _json = new core.Map<core.String, core.Object>();
+ final core.Map<core.String, core.Object> _json =
+ new core.Map<core.String, core.Object>();
if (kind != null) {
_json["kind"] = kind;
}
« no previous file with comments | « generated/googleapis/lib/discovery/v1.dart ('k') | generated/googleapis/lib/doubleclickbidmanager/v1.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698