| Index: generated/googleapis_beta/lib/dns/v2beta1.dart
|
| diff --git a/generated/googleapis_beta/lib/dns/v2beta1.dart b/generated/googleapis_beta/lib/dns/v2beta1.dart
|
| new file mode 100644
|
| index 0000000000000000000000000000000000000000..bcf1aa09556e8a5feeff823171c3e71e291fd744
|
| --- /dev/null
|
| +++ b/generated/googleapis_beta/lib/dns/v2beta1.dart
|
| @@ -0,0 +1,2197 @@
|
| +// This is a generated file (see the discoveryapis_generator project).
|
| +
|
| +library googleapis_beta.dns.v2beta1;
|
| +
|
| +import 'dart:core' as core;
|
| +import 'dart:async' as async;
|
| +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;
|
| +
|
| +const core.String USER_AGENT = 'dart-api-client dns/v2beta1';
|
| +
|
| +/** 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 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";
|
| +
|
| +
|
| + final commons.ApiRequester _requester;
|
| +
|
| + ChangesResourceApi get changes => new ChangesResourceApi(_requester);
|
| + DnskeysResourceApi get dnskeys => new DnskeysResourceApi(_requester);
|
| + ManagedZoneOperationsResourceApi get managedZoneOperations => new ManagedZoneOperationsResourceApi(_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/v2beta1/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.
|
| + *
|
| + * [clientOperationId] - For mutating operation requests only. An optional
|
| + * identifier specified by the client. Must be unique for operation resources
|
| + * in the Operations collection.
|
| + *
|
| + * 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, {core.String clientOperationId}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (managedZone == null) {
|
| + throw new core.ArgumentError("Parameter managedZone is required.");
|
| + }
|
| + if (clientOperationId != null) {
|
| + _queryParams["clientOperationId"] = [clientOperationId];
|
| + }
|
| +
|
| + _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);
|
| + 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.
|
| + *
|
| + * [clientOperationId] - For mutating operation requests only. An optional
|
| + * identifier specified by the client. Must be unique for operation resources
|
| + * in the Operations collection.
|
| + *
|
| + * 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, {core.String clientOperationId}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (managedZone == null) {
|
| + throw new core.ArgumentError("Parameter managedZone is required.");
|
| + }
|
| + if (changeId == null) {
|
| + throw new core.ArgumentError("Parameter changeId is required.");
|
| + }
|
| + if (clientOperationId != null) {
|
| + _queryParams["clientOperationId"] = [clientOperationId];
|
| + }
|
| +
|
| + _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);
|
| + 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:
|
| + * - "CHANGE_SEQUENCE"
|
| + *
|
| + * [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;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (managedZone == null) {
|
| + throw new core.ArgumentError("Parameter managedZone is required.");
|
| + }
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| + }
|
| + if (sortBy != null) {
|
| + _queryParams["sortBy"] = [sortBy];
|
| + }
|
| + if (sortOrder != null) {
|
| + _queryParams["sortOrder"] = [sortOrder];
|
| + }
|
| +
|
| + _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);
|
| + return _response.then((data) => new ChangesListResponse.fromJson(data));
|
| + }
|
| +
|
| +}
|
| +
|
| +
|
| +class DnskeysResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + DnskeysResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| + /**
|
| + * Fetch the representation of an existing DnsKey.
|
| + *
|
| + * 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.
|
| + *
|
| + * [dnsKeyId] - The identifier of the requested DnsKey.
|
| + *
|
| + * [clientOperationId] - For mutating operation requests only. An optional
|
| + * identifier specified by the client. Must be unique for operation resources
|
| + * in the Operations collection.
|
| + *
|
| + * [digestType] - An optional comma-separated list of digest types to compute
|
| + * and display for key signing keys. If omitted, the recommended digest type
|
| + * will be computed and displayed.
|
| + *
|
| + * Completes with a [DnsKey].
|
| + *
|
| + * 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<DnsKey> get(core.String project, core.String managedZone, core.String dnsKeyId, {core.String clientOperationId, core.String digestType}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (managedZone == null) {
|
| + throw new core.ArgumentError("Parameter managedZone is required.");
|
| + }
|
| + if (dnsKeyId == null) {
|
| + throw new core.ArgumentError("Parameter dnsKeyId is required.");
|
| + }
|
| + if (clientOperationId != null) {
|
| + _queryParams["clientOperationId"] = [clientOperationId];
|
| + }
|
| + if (digestType != null) {
|
| + _queryParams["digestType"] = [digestType];
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + commons.Escaper.ecapeVariable('$managedZone') + '/dnsKeys/' + commons.Escaper.ecapeVariable('$dnsKeyId');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new DnsKey.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Enumerate DnsKeys 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.
|
| + *
|
| + * [digestType] - An optional comma-separated list of digest types to compute
|
| + * and display for key signing keys. If omitted, the recommended digest type
|
| + * will be computed and displayed.
|
| + *
|
| + * [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 [DnsKeysListResponse].
|
| + *
|
| + * 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<DnsKeysListResponse> list(core.String project, core.String managedZone, {core.String digestType, core.int maxResults, core.String pageToken}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (managedZone == null) {
|
| + throw new core.ArgumentError("Parameter managedZone is required.");
|
| + }
|
| + if (digestType != null) {
|
| + _queryParams["digestType"] = [digestType];
|
| + }
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + commons.Escaper.ecapeVariable('$managedZone') + '/dnsKeys';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new DnsKeysListResponse.fromJson(data));
|
| + }
|
| +
|
| +}
|
| +
|
| +
|
| +class ManagedZoneOperationsResourceApi {
|
| + final commons.ApiRequester _requester;
|
| +
|
| + ManagedZoneOperationsResourceApi(commons.ApiRequester client) :
|
| + _requester = client;
|
| +
|
| + /**
|
| + * Fetch the representation of an existing Operation.
|
| + *
|
| + * Request parameters:
|
| + *
|
| + * [project] - Identifies the project addressed by this request.
|
| + *
|
| + * [managedZone] - Identifies the managed zone addressed by this request.
|
| + *
|
| + * [operation] - Identifies the operation addressed by this request.
|
| + *
|
| + * [clientOperationId] - For mutating operation requests only. An optional
|
| + * identifier specified by the client. Must be unique for operation resources
|
| + * in the Operations collection.
|
| + *
|
| + * Completes with a [Operation].
|
| + *
|
| + * 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<Operation> get(core.String project, core.String managedZone, core.String operation, {core.String clientOperationId}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (managedZone == null) {
|
| + throw new core.ArgumentError("Parameter managedZone is required.");
|
| + }
|
| + if (operation == null) {
|
| + throw new core.ArgumentError("Parameter operation is required.");
|
| + }
|
| + if (clientOperationId != null) {
|
| + _queryParams["clientOperationId"] = [clientOperationId];
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + commons.Escaper.ecapeVariable('$managedZone') + '/operations/' + commons.Escaper.ecapeVariable('$operation');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Enumerate Operations for the given ManagedZone.
|
| + *
|
| + * Request parameters:
|
| + *
|
| + * [project] - Identifies the project addressed by this request.
|
| + *
|
| + * [managedZone] - Identifies the managed zone addressed by this request.
|
| + *
|
| + * [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 values are START_TIME and
|
| + * ID.
|
| + * Possible string values are:
|
| + * - "ID"
|
| + * - "START_TIME"
|
| + *
|
| + * Completes with a [ManagedZoneOperationsListResponse].
|
| + *
|
| + * 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<ManagedZoneOperationsListResponse> list(core.String project, core.String managedZone, {core.int maxResults, core.String pageToken, core.String sortBy}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (managedZone == null) {
|
| + throw new core.ArgumentError("Parameter managedZone is required.");
|
| + }
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| + }
|
| + if (sortBy != null) {
|
| + _queryParams["sortBy"] = [sortBy];
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + commons.Escaper.ecapeVariable('$managedZone') + '/operations';
|
| +
|
| + var _response = _requester.request(_url,
|
| + "GET",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new ManagedZoneOperationsListResponse.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.
|
| + *
|
| + * [clientOperationId] - For mutating operation requests only. An optional
|
| + * identifier specified by the client. Must be unique for operation resources
|
| + * in the Operations collection.
|
| + *
|
| + * 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, {core.String clientOperationId}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (clientOperationId != null) {
|
| + _queryParams["clientOperationId"] = [clientOperationId];
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/managedZones';
|
| +
|
| + 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.
|
| + *
|
| + * [clientOperationId] - For mutating operation requests only. An optional
|
| + * identifier specified by the client. Must be unique for operation resources
|
| + * in the Operations collection.
|
| + *
|
| + * Completes with a [ManagedZonesDeleteResponse].
|
| + *
|
| + * 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<ManagedZonesDeleteResponse> delete(core.String project, core.String managedZone, {core.String clientOperationId}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (managedZone == null) {
|
| + throw new core.ArgumentError("Parameter managedZone is required.");
|
| + }
|
| + if (clientOperationId != null) {
|
| + _queryParams["clientOperationId"] = [clientOperationId];
|
| + }
|
| +
|
| + _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);
|
| + return _response.then((data) => new ManagedZonesDeleteResponse.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * 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.
|
| + *
|
| + * [clientOperationId] - For mutating operation requests only. An optional
|
| + * identifier specified by the client. Must be unique for operation resources
|
| + * in the Operations collection.
|
| + *
|
| + * 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, {core.String clientOperationId}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (managedZone == null) {
|
| + throw new core.ArgumentError("Parameter managedZone is required.");
|
| + }
|
| + if (clientOperationId != null) {
|
| + _queryParams["clientOperationId"] = [clientOperationId];
|
| + }
|
| +
|
| + _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);
|
| + 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}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (dnsName != null) {
|
| + _queryParams["dnsName"] = [dnsName];
|
| + }
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| + }
|
| +
|
| + _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));
|
| + }
|
| +
|
| + /**
|
| + * Update an existing ManagedZone. This method supports patch semantics.
|
| + *
|
| + * [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.
|
| + *
|
| + * [clientOperationId] - For mutating operation requests only. An optional
|
| + * identifier specified by the client. Must be unique for operation resources
|
| + * in the Operations collection.
|
| + *
|
| + * Completes with a [Operation].
|
| + *
|
| + * 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<Operation> patch(ManagedZone request, core.String project, core.String managedZone, {core.String clientOperationId}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (managedZone == null) {
|
| + throw new core.ArgumentError("Parameter managedZone is required.");
|
| + }
|
| + if (clientOperationId != null) {
|
| + _queryParams["clientOperationId"] = [clientOperationId];
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + commons.Escaper.ecapeVariable('$managedZone');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "PATCH",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.fromJson(data));
|
| + }
|
| +
|
| + /**
|
| + * Update an existing ManagedZone.
|
| + *
|
| + * [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.
|
| + *
|
| + * [clientOperationId] - For mutating operation requests only. An optional
|
| + * identifier specified by the client. Must be unique for operation resources
|
| + * in the Operations collection.
|
| + *
|
| + * Completes with a [Operation].
|
| + *
|
| + * 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<Operation> update(ManagedZone request, core.String project, core.String managedZone, {core.String clientOperationId}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (request != null) {
|
| + _body = convert.JSON.encode((request).toJson());
|
| + }
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (managedZone == null) {
|
| + throw new core.ArgumentError("Parameter managedZone is required.");
|
| + }
|
| + if (clientOperationId != null) {
|
| + _queryParams["clientOperationId"] = [clientOperationId];
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + commons.Escaper.ecapeVariable('$managedZone');
|
| +
|
| + var _response = _requester.request(_url,
|
| + "PUT",
|
| + body: _body,
|
| + queryParams: _queryParams,
|
| + uploadOptions: _uploadOptions,
|
| + uploadMedia: _uploadMedia,
|
| + downloadOptions: _downloadOptions);
|
| + return _response.then((data) => new Operation.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.
|
| + *
|
| + * [clientOperationId] - For mutating operation requests only. An optional
|
| + * identifier specified by the client. Must be unique for operation resources
|
| + * in the Operations collection.
|
| + *
|
| + * 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, {core.String clientOperationId}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (clientOperationId != null) {
|
| + _queryParams["clientOperationId"] = [clientOperationId];
|
| + }
|
| +
|
| + _url = commons.Escaper.ecapeVariable('$project');
|
| +
|
| + 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}) {
|
| + var _url = null;
|
| + var _queryParams = new core.Map();
|
| + var _uploadMedia = null;
|
| + var _uploadOptions = null;
|
| + var _downloadOptions = commons.DownloadOptions.Metadata;
|
| + var _body = null;
|
| +
|
| + if (project == null) {
|
| + throw new core.ArgumentError("Parameter project is required.");
|
| + }
|
| + if (managedZone == null) {
|
| + throw new core.ArgumentError("Parameter managedZone is required.");
|
| + }
|
| + if (maxResults != null) {
|
| + _queryParams["maxResults"] = ["${maxResults}"];
|
| + }
|
| + if (name != null) {
|
| + _queryParams["name"] = [name];
|
| + }
|
| + if (pageToken != null) {
|
| + _queryParams["pageToken"] = [pageToken];
|
| + }
|
| + if (type != null) {
|
| + _queryParams["type"] = [type];
|
| + }
|
| +
|
| + _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));
|
| + }
|
| +
|
| +}
|
| +
|
| +
|
| +
|
| +/** An atomic update to a collection of ResourceRecordSets. */
|
| +class Change {
|
| + /** Which ResourceRecordSets to add? */
|
| + core.List<ResourceRecordSet> additions;
|
| + /** Which ResourceRecordSets to remove? Must match existing data exactly. */
|
| + core.List<ResourceRecordSet> deletions;
|
| + /**
|
| + * Unique identifier for the resource; defined by the server (output only).
|
| + */
|
| + core.String id;
|
| + /** If the DNS queries for the zone will be served. */
|
| + core.bool isServing;
|
| + /**
|
| + * 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.
|
| + */
|
| + core.String startTime;
|
| + /**
|
| + * 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();
|
| + }
|
| + if (_json.containsKey("deletions")) {
|
| + deletions = _json["deletions"].map((value) => new ResourceRecordSet.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| + }
|
| + if (_json.containsKey("isServing")) {
|
| + isServing = _json["isServing"];
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("startTime")) {
|
| + startTime = _json["startTime"];
|
| + }
|
| + if (_json.containsKey("status")) {
|
| + status = _json["status"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (additions != null) {
|
| + _json["additions"] = additions.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (deletions != null) {
|
| + _json["deletions"] = deletions.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| + }
|
| + if (isServing != null) {
|
| + _json["isServing"] = isServing;
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (startTime != null) {
|
| + _json["startTime"] = startTime;
|
| + }
|
| + if (status != null) {
|
| + _json["status"] = status;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/**
|
| + * The response to a request to enumerate Changes to a ResourceRecordSets
|
| + * collection.
|
| + */
|
| +class ChangesListResponse {
|
| + /** The requested changes. */
|
| + core.List<Change> changes;
|
| + ResponseHeader header;
|
| + /** 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.
|
| + */
|
| + core.String nextPageToken;
|
| +
|
| + ChangesListResponse();
|
| +
|
| + ChangesListResponse.fromJson(core.Map _json) {
|
| + if (_json.containsKey("changes")) {
|
| + changes = _json["changes"].map((value) => new Change.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("header")) {
|
| + header = new ResponseHeader.fromJson(_json["header"]);
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("nextPageToken")) {
|
| + nextPageToken = _json["nextPageToken"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (changes != null) {
|
| + _json["changes"] = changes.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (header != null) {
|
| + _json["header"] = (header).toJson();
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (nextPageToken != null) {
|
| + _json["nextPageToken"] = nextPageToken;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/** A DNSSEC key pair. */
|
| +class DnsKey {
|
| + /**
|
| + * String mnemonic specifying the DNSSEC algorithm of this key. Immutable
|
| + * after creation time.
|
| + * Possible string values are:
|
| + * - "ECDSAP256SHA256"
|
| + * - "ECDSAP384SHA384"
|
| + * - "RSASHA1"
|
| + * - "RSASHA256"
|
| + * - "RSASHA512"
|
| + */
|
| + core.String algorithm;
|
| + /**
|
| + * The time that this resource was created in the control plane. 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 resource's function.
|
| + */
|
| + core.String description;
|
| + /**
|
| + * Cryptographic hashes of the DNSKEY resource record associated with this
|
| + * DnsKey. These digests are needed to construct a DS record that points at
|
| + * this DNS key. Output only.
|
| + */
|
| + core.List<DnsKeyDigest> digests;
|
| + /**
|
| + * Unique identifier for the resource; defined by the server (output only).
|
| + */
|
| + core.String id;
|
| + /**
|
| + * Active keys will be used to sign subsequent changes to the ManagedZone.
|
| + * Inactive keys will still be present as DNSKEY Resource Records for the use
|
| + * of resolvers validating existing signatures.
|
| + */
|
| + core.bool isActive;
|
| + /** Length of the key in bits. Specified at creation time then immutable. */
|
| + core.int keyLength;
|
| + /**
|
| + * The key tag is a non-cryptographic hash of the a DNSKEY resource record
|
| + * associated with this DnsKey. The key tag can be used to identify a DNSKEY
|
| + * more quickly (but it is not a unique identifier). In particular, the key
|
| + * tag is used in a parent zone's DS record to point at the DNSKEY in this
|
| + * child ManagedZone. The key tag is a number in the range [0, 65535] and the
|
| + * algorithm to calculate it is specified in RFC4034 Appendix B. Output only.
|
| + */
|
| + core.int keyTag;
|
| + /**
|
| + * Identifies what kind of resource this is. Value: the fixed string
|
| + * "dns#dnsKey".
|
| + */
|
| + core.String kind;
|
| + /** Base64 encoded public half of this key. Output only. */
|
| + core.String publicKey;
|
| + /**
|
| + * One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the
|
| + * Secure Entry Point flag set and, when active, will be used to sign only
|
| + * resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag
|
| + * will be cleared and this key will be used to sign only resource record sets
|
| + * of other types. Immutable after creation time.
|
| + * Possible string values are:
|
| + * - "KEY_SIGNING"
|
| + * - "ZONE_SIGNING"
|
| + */
|
| + core.String type;
|
| +
|
| + DnsKey();
|
| +
|
| + DnsKey.fromJson(core.Map _json) {
|
| + if (_json.containsKey("algorithm")) {
|
| + algorithm = _json["algorithm"];
|
| + }
|
| + if (_json.containsKey("creationTime")) {
|
| + creationTime = _json["creationTime"];
|
| + }
|
| + if (_json.containsKey("description")) {
|
| + description = _json["description"];
|
| + }
|
| + if (_json.containsKey("digests")) {
|
| + digests = _json["digests"].map((value) => new DnsKeyDigest.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| + }
|
| + if (_json.containsKey("isActive")) {
|
| + isActive = _json["isActive"];
|
| + }
|
| + if (_json.containsKey("keyLength")) {
|
| + keyLength = _json["keyLength"];
|
| + }
|
| + if (_json.containsKey("keyTag")) {
|
| + keyTag = _json["keyTag"];
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("publicKey")) {
|
| + publicKey = _json["publicKey"];
|
| + }
|
| + if (_json.containsKey("type")) {
|
| + type = _json["type"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (algorithm != null) {
|
| + _json["algorithm"] = algorithm;
|
| + }
|
| + if (creationTime != null) {
|
| + _json["creationTime"] = creationTime;
|
| + }
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| + }
|
| + if (digests != null) {
|
| + _json["digests"] = digests.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| + }
|
| + if (isActive != null) {
|
| + _json["isActive"] = isActive;
|
| + }
|
| + if (keyLength != null) {
|
| + _json["keyLength"] = keyLength;
|
| + }
|
| + if (keyTag != null) {
|
| + _json["keyTag"] = keyTag;
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (publicKey != null) {
|
| + _json["publicKey"] = publicKey;
|
| + }
|
| + if (type != null) {
|
| + _json["type"] = type;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class DnsKeyDigest {
|
| + /**
|
| + * The base-16 encoded bytes of this digest. Suitable for use in a DS resource
|
| + * record.
|
| + */
|
| + core.String digest;
|
| + /**
|
| + * Specifies the algorithm used to calculate this digest.
|
| + * Possible string values are:
|
| + * - "SHA1"
|
| + * - "SHA256"
|
| + * - "SHA384"
|
| + */
|
| + core.String type;
|
| +
|
| + DnsKeyDigest();
|
| +
|
| + DnsKeyDigest.fromJson(core.Map _json) {
|
| + if (_json.containsKey("digest")) {
|
| + digest = _json["digest"];
|
| + }
|
| + if (_json.containsKey("type")) {
|
| + type = _json["type"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (digest != null) {
|
| + _json["digest"] = digest;
|
| + }
|
| + if (type != null) {
|
| + _json["type"] = type;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/**
|
| + * Parameters for DnsKey key generation. Used for generating initial keys for a
|
| + * new ManagedZone and as default when adding a new DnsKey.
|
| + */
|
| +class DnsKeySpec {
|
| + /**
|
| + * String mnemonic specifying the DNSSEC algorithm of this key.
|
| + * Possible string values are:
|
| + * - "ECDSAP256SHA256"
|
| + * - "ECDSAP384SHA384"
|
| + * - "RSASHA1"
|
| + * - "RSASHA256"
|
| + * - "RSASHA512"
|
| + */
|
| + core.String algorithm;
|
| + /** Length of the keys in bits. */
|
| + core.int keyLength;
|
| + /**
|
| + * One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the
|
| + * Secure Entry Point flag set and, when active, will be used to sign only
|
| + * resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag
|
| + * will be cleared and this key will be used to sign only resource record sets
|
| + * of other types.
|
| + * Possible string values are:
|
| + * - "KEY_SIGNING"
|
| + * - "ZONE_SIGNING"
|
| + */
|
| + core.String keyType;
|
| + /**
|
| + * Identifies what kind of resource this is. Value: the fixed string
|
| + * "dns#dnsKeySpec".
|
| + */
|
| + core.String kind;
|
| +
|
| + DnsKeySpec();
|
| +
|
| + DnsKeySpec.fromJson(core.Map _json) {
|
| + if (_json.containsKey("algorithm")) {
|
| + algorithm = _json["algorithm"];
|
| + }
|
| + if (_json.containsKey("keyLength")) {
|
| + keyLength = _json["keyLength"];
|
| + }
|
| + if (_json.containsKey("keyType")) {
|
| + keyType = _json["keyType"];
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (algorithm != null) {
|
| + _json["algorithm"] = algorithm;
|
| + }
|
| + if (keyLength != null) {
|
| + _json["keyLength"] = keyLength;
|
| + }
|
| + if (keyType != null) {
|
| + _json["keyType"] = keyType;
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/** The response to a request to enumerate DnsKeys in a ManagedZone. */
|
| +class DnsKeysListResponse {
|
| + /** The requested resources. */
|
| + core.List<DnsKey> dnsKeys;
|
| + ResponseHeader header;
|
| + /** 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.
|
| + */
|
| + core.String nextPageToken;
|
| +
|
| + DnsKeysListResponse();
|
| +
|
| + DnsKeysListResponse.fromJson(core.Map _json) {
|
| + if (_json.containsKey("dnsKeys")) {
|
| + dnsKeys = _json["dnsKeys"].map((value) => new DnsKey.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("header")) {
|
| + header = new ResponseHeader.fromJson(_json["header"]);
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("nextPageToken")) {
|
| + nextPageToken = _json["nextPageToken"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (dnsKeys != null) {
|
| + _json["dnsKeys"] = dnsKeys.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (header != null) {
|
| + _json["header"] = (header).toJson();
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (nextPageToken != null) {
|
| + _json["nextPageToken"] = nextPageToken;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/**
|
| + * 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.
|
| + */
|
| + 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.
|
| + */
|
| + core.String description;
|
| + /** The DNS name of this managed zone, for instance "example.com.". */
|
| + core.String dnsName;
|
| + /** DNSSEC configuration. */
|
| + ManagedZoneDnsSecConfig dnssecConfig;
|
| + /**
|
| + * 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".
|
| + */
|
| + core.String kind;
|
| + /**
|
| + * User assigned name for this resource. Must be unique within the project.
|
| + * The name must be 1-32 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.
|
| + */
|
| + core.String nameServerSet;
|
| + /**
|
| + * Delegate your managed_zone to these virtual name servers; defined by the
|
| + * server (output only)
|
| + */
|
| + core.List<core.String> nameServers;
|
| +
|
| + ManagedZone();
|
| +
|
| + ManagedZone.fromJson(core.Map _json) {
|
| + if (_json.containsKey("creationTime")) {
|
| + creationTime = _json["creationTime"];
|
| + }
|
| + if (_json.containsKey("description")) {
|
| + description = _json["description"];
|
| + }
|
| + if (_json.containsKey("dnsName")) {
|
| + dnsName = _json["dnsName"];
|
| + }
|
| + if (_json.containsKey("dnssecConfig")) {
|
| + dnssecConfig = new ManagedZoneDnsSecConfig.fromJson(_json["dnssecConfig"]);
|
| + }
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("name")) {
|
| + name = _json["name"];
|
| + }
|
| + if (_json.containsKey("nameServerSet")) {
|
| + nameServerSet = _json["nameServerSet"];
|
| + }
|
| + if (_json.containsKey("nameServers")) {
|
| + nameServers = _json["nameServers"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (creationTime != null) {
|
| + _json["creationTime"] = creationTime;
|
| + }
|
| + if (description != null) {
|
| + _json["description"] = description;
|
| + }
|
| + if (dnsName != null) {
|
| + _json["dnsName"] = dnsName;
|
| + }
|
| + if (dnssecConfig != null) {
|
| + _json["dnssecConfig"] = (dnssecConfig).toJson();
|
| + }
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (name != null) {
|
| + _json["name"] = name;
|
| + }
|
| + if (nameServerSet != null) {
|
| + _json["nameServerSet"] = nameServerSet;
|
| + }
|
| + if (nameServers != null) {
|
| + _json["nameServers"] = nameServers;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class ManagedZoneDnsSecConfig {
|
| + /**
|
| + * Specifies parameters that will be used for generating initial DnsKeys for
|
| + * this ManagedZone. Output only while state is not OFF.
|
| + */
|
| + core.List<DnsKeySpec> defaultKeySpecs;
|
| + /**
|
| + * Identifies what kind of resource this is. Value: the fixed string
|
| + * "dns#managedZoneDnsSecConfig".
|
| + */
|
| + core.String kind;
|
| + /**
|
| + * Specifies the mechanism used to provide authenticated denial-of-existence
|
| + * responses. Output only while state is not OFF.
|
| + * Possible string values are:
|
| + * - "NSEC"
|
| + * - "NSEC3"
|
| + */
|
| + core.String nonExistence;
|
| + /**
|
| + * Specifies whether DNSSEC is enabled, and what mode it is in.
|
| + * Possible string values are:
|
| + * - "OFF"
|
| + * - "ON"
|
| + * - "TRANSFER"
|
| + */
|
| + core.String state;
|
| +
|
| + ManagedZoneDnsSecConfig();
|
| +
|
| + ManagedZoneDnsSecConfig.fromJson(core.Map _json) {
|
| + if (_json.containsKey("defaultKeySpecs")) {
|
| + defaultKeySpecs = _json["defaultKeySpecs"].map((value) => new DnsKeySpec.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("nonExistence")) {
|
| + nonExistence = _json["nonExistence"];
|
| + }
|
| + if (_json.containsKey("state")) {
|
| + state = _json["state"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (defaultKeySpecs != null) {
|
| + _json["defaultKeySpecs"] = defaultKeySpecs.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (nonExistence != null) {
|
| + _json["nonExistence"] = nonExistence;
|
| + }
|
| + if (state != null) {
|
| + _json["state"] = state;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class ManagedZoneOperationsListResponse {
|
| + ResponseHeader header;
|
| + /** 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 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;
|
| + /** The operation resources. */
|
| + core.List<Operation> operations;
|
| +
|
| + ManagedZoneOperationsListResponse();
|
| +
|
| + ManagedZoneOperationsListResponse.fromJson(core.Map _json) {
|
| + if (_json.containsKey("header")) {
|
| + header = new ResponseHeader.fromJson(_json["header"]);
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("nextPageToken")) {
|
| + nextPageToken = _json["nextPageToken"];
|
| + }
|
| + if (_json.containsKey("operations")) {
|
| + operations = _json["operations"].map((value) => new Operation.fromJson(value)).toList();
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (header != null) {
|
| + _json["header"] = (header).toJson();
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (nextPageToken != null) {
|
| + _json["nextPageToken"] = nextPageToken;
|
| + }
|
| + if (operations != null) {
|
| + _json["operations"] = operations.map((value) => (value).toJson()).toList();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class ManagedZonesDeleteResponse {
|
| + ResponseHeader header;
|
| +
|
| + ManagedZonesDeleteResponse();
|
| +
|
| + ManagedZonesDeleteResponse.fromJson(core.Map _json) {
|
| + if (_json.containsKey("header")) {
|
| + header = new ResponseHeader.fromJson(_json["header"]);
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (header != null) {
|
| + _json["header"] = (header).toJson();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class ManagedZonesListResponse {
|
| + ResponseHeader header;
|
| + /** Type of resource. */
|
| + core.String kind;
|
| + /** 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.
|
| + */
|
| + core.String nextPageToken;
|
| +
|
| + ManagedZonesListResponse();
|
| +
|
| + ManagedZonesListResponse.fromJson(core.Map _json) {
|
| + if (_json.containsKey("header")) {
|
| + header = new ResponseHeader.fromJson(_json["header"]);
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("managedZones")) {
|
| + managedZones = _json["managedZones"].map((value) => new ManagedZone.fromJson(value)).toList();
|
| + }
|
| + if (_json.containsKey("nextPageToken")) {
|
| + nextPageToken = _json["nextPageToken"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (header != null) {
|
| + _json["header"] = (header).toJson();
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (managedZones != null) {
|
| + _json["managedZones"] = managedZones.map((value) => (value).toJson()).toList();
|
| + }
|
| + if (nextPageToken != null) {
|
| + _json["nextPageToken"] = nextPageToken;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/**
|
| + * An operation represents a successful mutation performed on a Cloud DNS
|
| + * resource. Operations provide: - An audit log of server resource mutations. -
|
| + * A way to recover/retry API calls in the case where the response is never
|
| + * received by the caller. Use the caller specified client_operation_id.
|
| + */
|
| +class Operation {
|
| + /** Only populated if the operation targeted a DnsKey (output only). */
|
| + OperationDnsKeyContext dnsKeyContext;
|
| + /**
|
| + * Unique identifier for the resource. This is the client_operation_id if the
|
| + * client specified it when the mutation was initiated, otherwise, it is
|
| + * generated by the server. The name must be 1-63 characters long and match
|
| + * the regular expression [-a-z0-9]? (output only)
|
| + */
|
| + core.String id;
|
| + /**
|
| + * Identifies what kind of resource this is. Value: the fixed string
|
| + * "dns#operation".
|
| + */
|
| + core.String kind;
|
| + /**
|
| + * The time that this operation was started by the server. This is in RFC3339
|
| + * text format (output only).
|
| + */
|
| + core.String startTime;
|
| + /**
|
| + * Status of the operation. Can be one of the following: "PENDING" or "DONE"
|
| + * (output only).
|
| + * Possible string values are:
|
| + * - "DONE"
|
| + * - "PENDING"
|
| + */
|
| + core.String status;
|
| + /**
|
| + * Type of the operation. Operations include insert, update, and delete
|
| + * (output only).
|
| + */
|
| + core.String type;
|
| + /**
|
| + * User who requested the operation, for example: user@example.com.
|
| + * cloud-dns-system for operations automatically done by the system. (output
|
| + * only)
|
| + */
|
| + core.String user;
|
| + /** Only populated if the operation targeted a ManagedZone (output only). */
|
| + OperationManagedZoneContext zoneContext;
|
| +
|
| + Operation();
|
| +
|
| + Operation.fromJson(core.Map _json) {
|
| + if (_json.containsKey("dnsKeyContext")) {
|
| + dnsKeyContext = new OperationDnsKeyContext.fromJson(_json["dnsKeyContext"]);
|
| + }
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("startTime")) {
|
| + startTime = _json["startTime"];
|
| + }
|
| + if (_json.containsKey("status")) {
|
| + status = _json["status"];
|
| + }
|
| + if (_json.containsKey("type")) {
|
| + type = _json["type"];
|
| + }
|
| + if (_json.containsKey("user")) {
|
| + user = _json["user"];
|
| + }
|
| + if (_json.containsKey("zoneContext")) {
|
| + zoneContext = new OperationManagedZoneContext.fromJson(_json["zoneContext"]);
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (dnsKeyContext != null) {
|
| + _json["dnsKeyContext"] = (dnsKeyContext).toJson();
|
| + }
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (startTime != null) {
|
| + _json["startTime"] = startTime;
|
| + }
|
| + if (status != null) {
|
| + _json["status"] = status;
|
| + }
|
| + if (type != null) {
|
| + _json["type"] = type;
|
| + }
|
| + if (user != null) {
|
| + _json["user"] = user;
|
| + }
|
| + if (zoneContext != null) {
|
| + _json["zoneContext"] = (zoneContext).toJson();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class OperationDnsKeyContext {
|
| + /** The post-operation DnsKey resource. */
|
| + DnsKey newValue;
|
| + /** The pre-operation DnsKey resource. */
|
| + DnsKey oldValue;
|
| +
|
| + OperationDnsKeyContext();
|
| +
|
| + OperationDnsKeyContext.fromJson(core.Map _json) {
|
| + if (_json.containsKey("newValue")) {
|
| + newValue = new DnsKey.fromJson(_json["newValue"]);
|
| + }
|
| + if (_json.containsKey("oldValue")) {
|
| + oldValue = new DnsKey.fromJson(_json["oldValue"]);
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (newValue != null) {
|
| + _json["newValue"] = (newValue).toJson();
|
| + }
|
| + if (oldValue != null) {
|
| + _json["oldValue"] = (oldValue).toJson();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class OperationManagedZoneContext {
|
| + /** The post-operation ManagedZone resource. */
|
| + ManagedZone newValue;
|
| + /** The pre-operation ManagedZone resource. */
|
| + ManagedZone oldValue;
|
| +
|
| + OperationManagedZoneContext();
|
| +
|
| + OperationManagedZoneContext.fromJson(core.Map _json) {
|
| + if (_json.containsKey("newValue")) {
|
| + newValue = new ManagedZone.fromJson(_json["newValue"]);
|
| + }
|
| + if (_json.containsKey("oldValue")) {
|
| + oldValue = new ManagedZone.fromJson(_json["oldValue"]);
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (newValue != null) {
|
| + _json["newValue"] = (newValue).toJson();
|
| + }
|
| + if (oldValue != null) {
|
| + _json["oldValue"] = (oldValue).toJson();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/**
|
| + * 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). */
|
| + core.String id;
|
| + /**
|
| + * 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).
|
| + */
|
| + core.String number;
|
| + /** Quotas assigned to this project (output only). */
|
| + Quota quota;
|
| +
|
| + Project();
|
| +
|
| + Project.fromJson(core.Map _json) {
|
| + if (_json.containsKey("id")) {
|
| + id = _json["id"];
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("number")) {
|
| + number = _json["number"];
|
| + }
|
| + if (_json.containsKey("quota")) {
|
| + quota = new Quota.fromJson(_json["quota"]);
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (id != null) {
|
| + _json["id"] = id;
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (number != null) {
|
| + _json["number"] = number;
|
| + }
|
| + if (quota != null) {
|
| + _json["quota"] = (quota).toJson();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/** Limits associated with a Project. */
|
| +class Quota {
|
| + /** Maximum allowed number of DnsKeys per ManagedZone. */
|
| + core.int dnsKeysPerManagedZone;
|
| + /**
|
| + * 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. */
|
| + core.int managedZones;
|
| + /** Maximum allowed number of ResourceRecords per ResourceRecordSet. */
|
| + core.int resourceRecordsPerRrset;
|
| + /**
|
| + * Maximum allowed number of ResourceRecordSets to add per
|
| + * ChangesCreateRequest.
|
| + */
|
| + core.int rrsetAdditionsPerChange;
|
| + /**
|
| + * Maximum allowed number of ResourceRecordSets to delete per
|
| + * ChangesCreateRequest.
|
| + */
|
| + core.int rrsetDeletionsPerChange;
|
| + /** Maximum allowed number of ResourceRecordSets per zone in the project. */
|
| + core.int rrsetsPerManagedZone;
|
| + /**
|
| + * Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes.
|
| + */
|
| + core.int totalRrdataSizePerChange;
|
| + /** DNSSEC algorithm and key length types that can be used for DnsKeys. */
|
| + core.List<DnsKeySpec> whitelistedKeySpecs;
|
| +
|
| + Quota();
|
| +
|
| + Quota.fromJson(core.Map _json) {
|
| + if (_json.containsKey("dnsKeysPerManagedZone")) {
|
| + dnsKeysPerManagedZone = _json["dnsKeysPerManagedZone"];
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("managedZones")) {
|
| + managedZones = _json["managedZones"];
|
| + }
|
| + if (_json.containsKey("resourceRecordsPerRrset")) {
|
| + resourceRecordsPerRrset = _json["resourceRecordsPerRrset"];
|
| + }
|
| + if (_json.containsKey("rrsetAdditionsPerChange")) {
|
| + rrsetAdditionsPerChange = _json["rrsetAdditionsPerChange"];
|
| + }
|
| + if (_json.containsKey("rrsetDeletionsPerChange")) {
|
| + rrsetDeletionsPerChange = _json["rrsetDeletionsPerChange"];
|
| + }
|
| + if (_json.containsKey("rrsetsPerManagedZone")) {
|
| + rrsetsPerManagedZone = _json["rrsetsPerManagedZone"];
|
| + }
|
| + if (_json.containsKey("totalRrdataSizePerChange")) {
|
| + totalRrdataSizePerChange = _json["totalRrdataSizePerChange"];
|
| + }
|
| + if (_json.containsKey("whitelistedKeySpecs")) {
|
| + whitelistedKeySpecs = _json["whitelistedKeySpecs"].map((value) => new DnsKeySpec.fromJson(value)).toList();
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (dnsKeysPerManagedZone != null) {
|
| + _json["dnsKeysPerManagedZone"] = dnsKeysPerManagedZone;
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (managedZones != null) {
|
| + _json["managedZones"] = managedZones;
|
| + }
|
| + if (resourceRecordsPerRrset != null) {
|
| + _json["resourceRecordsPerRrset"] = resourceRecordsPerRrset;
|
| + }
|
| + if (rrsetAdditionsPerChange != null) {
|
| + _json["rrsetAdditionsPerChange"] = rrsetAdditionsPerChange;
|
| + }
|
| + if (rrsetDeletionsPerChange != null) {
|
| + _json["rrsetDeletionsPerChange"] = rrsetDeletionsPerChange;
|
| + }
|
| + if (rrsetsPerManagedZone != null) {
|
| + _json["rrsetsPerManagedZone"] = rrsetsPerManagedZone;
|
| + }
|
| + if (totalRrdataSizePerChange != null) {
|
| + _json["totalRrdataSizePerChange"] = totalRrdataSizePerChange;
|
| + }
|
| + if (whitelistedKeySpecs != null) {
|
| + _json["whitelistedKeySpecs"] = whitelistedKeySpecs.map((value) => (value).toJson()).toList();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/** 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".
|
| + */
|
| + core.String kind;
|
| + /** For example, www.example.com. */
|
| + core.String name;
|
| + /** As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1). */
|
| + core.List<core.String> rrdatas;
|
| + /** As defined in RFC 4034 (section 3.2). */
|
| + core.List<core.String> signatureRrdatas;
|
| + /**
|
| + * 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.
|
| + */
|
| + core.String type;
|
| +
|
| + ResourceRecordSet();
|
| +
|
| + ResourceRecordSet.fromJson(core.Map _json) {
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("name")) {
|
| + name = _json["name"];
|
| + }
|
| + if (_json.containsKey("rrdatas")) {
|
| + rrdatas = _json["rrdatas"];
|
| + }
|
| + if (_json.containsKey("signatureRrdatas")) {
|
| + signatureRrdatas = _json["signatureRrdatas"];
|
| + }
|
| + if (_json.containsKey("ttl")) {
|
| + ttl = _json["ttl"];
|
| + }
|
| + if (_json.containsKey("type")) {
|
| + type = _json["type"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (name != null) {
|
| + _json["name"] = name;
|
| + }
|
| + if (rrdatas != null) {
|
| + _json["rrdatas"] = rrdatas;
|
| + }
|
| + if (signatureRrdatas != null) {
|
| + _json["signatureRrdatas"] = signatureRrdatas;
|
| + }
|
| + if (ttl != null) {
|
| + _json["ttl"] = ttl;
|
| + }
|
| + if (type != null) {
|
| + _json["type"] = type;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +class ResourceRecordSetsListResponse {
|
| + ResponseHeader header;
|
| + /** 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.
|
| + */
|
| + core.String nextPageToken;
|
| + /** The resource record set resources. */
|
| + core.List<ResourceRecordSet> rrsets;
|
| +
|
| + ResourceRecordSetsListResponse();
|
| +
|
| + ResourceRecordSetsListResponse.fromJson(core.Map _json) {
|
| + if (_json.containsKey("header")) {
|
| + header = new ResponseHeader.fromJson(_json["header"]);
|
| + }
|
| + if (_json.containsKey("kind")) {
|
| + kind = _json["kind"];
|
| + }
|
| + if (_json.containsKey("nextPageToken")) {
|
| + nextPageToken = _json["nextPageToken"];
|
| + }
|
| + if (_json.containsKey("rrsets")) {
|
| + rrsets = _json["rrsets"].map((value) => new ResourceRecordSet.fromJson(value)).toList();
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (header != null) {
|
| + _json["header"] = (header).toJson();
|
| + }
|
| + if (kind != null) {
|
| + _json["kind"] = kind;
|
| + }
|
| + if (nextPageToken != null) {
|
| + _json["nextPageToken"] = nextPageToken;
|
| + }
|
| + if (rrsets != null) {
|
| + _json["rrsets"] = rrsets.map((value) => (value).toJson()).toList();
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
| +
|
| +/** Elements common to every response. */
|
| +class ResponseHeader {
|
| + /**
|
| + * For mutating operation requests that completed successfully. This is the
|
| + * client_operation_id if the client specified it, otherwise it is generated
|
| + * by the server (output only).
|
| + */
|
| + core.String operationId;
|
| +
|
| + ResponseHeader();
|
| +
|
| + ResponseHeader.fromJson(core.Map _json) {
|
| + if (_json.containsKey("operationId")) {
|
| + operationId = _json["operationId"];
|
| + }
|
| + }
|
| +
|
| + core.Map toJson() {
|
| + var _json = new core.Map();
|
| + if (operationId != null) {
|
| + _json["operationId"] = operationId;
|
| + }
|
| + return _json;
|
| + }
|
| +}
|
|
|