| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 |
| 1 library googleapis_beta.dns.v1beta1; | 3 library googleapis_beta.dns.v1beta1; |
| 2 | 4 |
| 3 import "dart:core" as core; | 5 import 'dart:core' as core; |
| 4 import "dart:collection" as collection; | 6 import 'dart:collection' as collection; |
| 5 import "dart:async" as async; | 7 import 'dart:async' as async; |
| 6 import "dart:convert" as convert; | 8 import 'dart:convert' as convert; |
| 7 | 9 |
| 8 import "package:crypto/crypto.dart" as crypto; | 10 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 11 import 'package:crypto/crypto.dart' as crypto; |
| 9 import 'package:http/http.dart' as http; | 12 import 'package:http/http.dart' as http; |
| 10 import '../src/common_internal.dart' as common_internal; | |
| 11 import '../common/common.dart' as common; | |
| 12 | 13 |
| 13 export '../common/common.dart' show ApiRequestError; | 14 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show |
| 14 export '../common/common.dart' show DetailedApiRequestError; | 15 ApiRequestError, DetailedApiRequestError; |
| 16 |
| 17 const core.String USER_AGENT = 'dart-api-client dns/v1beta1'; |
| 15 | 18 |
| 16 /** | 19 /** |
| 17 * The Google Cloud DNS API provides services for configuring and serving | 20 * The Google Cloud DNS API provides services for configuring and serving |
| 18 * authoritative DNS records. | 21 * authoritative DNS records. |
| 19 */ | 22 */ |
| 20 class DnsApi { | 23 class DnsApi { |
| 21 /** View and manage your data across Google Cloud Platform services */ | 24 /** View and manage your data across Google Cloud Platform services */ |
| 22 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 25 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; |
| 23 | 26 |
| 24 /** View your DNS records hosted by Google Cloud DNS */ | 27 /** View your DNS records hosted by Google Cloud DNS */ |
| 25 static const NdevClouddnsReadonlyScope = "https://www.googleapis.com/auth/ndev
.clouddns.readonly"; | 28 static const NdevClouddnsReadonlyScope = "https://www.googleapis.com/auth/ndev
.clouddns.readonly"; |
| 26 | 29 |
| 27 /** View and manage your DNS records hosted by Google Cloud DNS */ | 30 /** View and manage your DNS records hosted by Google Cloud DNS */ |
| 28 static const NdevClouddnsReadwriteScope = "https://www.googleapis.com/auth/nde
v.clouddns.readwrite"; | 31 static const NdevClouddnsReadwriteScope = "https://www.googleapis.com/auth/nde
v.clouddns.readwrite"; |
| 29 | 32 |
| 30 | 33 |
| 31 final common_internal.ApiRequester _requester; | 34 final commons.ApiRequester _requester; |
| 32 | 35 |
| 33 ChangesResourceApi get changes => new ChangesResourceApi(_requester); | 36 ChangesResourceApi get changes => new ChangesResourceApi(_requester); |
| 34 ManagedZonesResourceApi get managedZones => new ManagedZonesResourceApi(_reque
ster); | 37 ManagedZonesResourceApi get managedZones => new ManagedZonesResourceApi(_reque
ster); |
| 35 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); | 38 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
| 36 ResourceRecordSetsResourceApi get resourceRecordSets => new ResourceRecordSets
ResourceApi(_requester); | 39 ResourceRecordSetsResourceApi get resourceRecordSets => new ResourceRecordSets
ResourceApi(_requester); |
| 37 | 40 |
| 38 DnsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/"
, core.String servicePath: "dns/v1beta1/projects/"}) : | 41 DnsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/"
, core.String servicePath: "dns/v1beta1/projects/"}) : |
| 39 _requester = new common_internal.ApiRequester(client, rootUrl, servicePath
); | 42 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); |
| 40 } | 43 } |
| 41 | 44 |
| 42 | 45 |
| 43 /** Not documented yet. */ | |
| 44 class ChangesResourceApi { | 46 class ChangesResourceApi { |
| 45 final common_internal.ApiRequester _requester; | 47 final commons.ApiRequester _requester; |
| 46 | 48 |
| 47 ChangesResourceApi(common_internal.ApiRequester client) : | 49 ChangesResourceApi(commons.ApiRequester client) : |
| 48 _requester = client; | 50 _requester = client; |
| 49 | 51 |
| 50 /** | 52 /** |
| 51 * Atomically update the ResourceRecordSet collection. | 53 * Atomically update the ResourceRecordSet collection. |
| 52 * | 54 * |
| 53 * [request] - The metadata request object. | 55 * [request] - The metadata request object. |
| 54 * | 56 * |
| 55 * Request parameters: | 57 * Request parameters: |
| 56 * | 58 * |
| 57 * [project] - Identifies the project addressed by this request. | 59 * [project] - Identifies the project addressed by this request. |
| 58 * | 60 * |
| 59 * [managedZone] - Identifies the managed zone addressed by this request. Can | 61 * [managedZone] - Identifies the managed zone addressed by this request. Can |
| 60 * be the managed zone name or id. | 62 * be the managed zone name or id. |
| 61 * | 63 * |
| 62 * Completes with a [Change]. | 64 * Completes with a [Change]. |
| 63 * | 65 * |
| 64 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 66 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 65 * error. | 67 * error. |
| 66 * | 68 * |
| 67 * If the used [http.Client] completes with an error when making a REST call, | 69 * If the used [http.Client] completes with an error when making a REST call, |
| 68 * this method will complete with the same error. | 70 * this method will complete with the same error. |
| 69 */ | 71 */ |
| 70 async.Future<Change> create(Change request, core.String project, core.String m
anagedZone) { | 72 async.Future<Change> create(Change request, core.String project, core.String m
anagedZone) { |
| 71 var _url = null; | 73 var _url = null; |
| 72 var _queryParams = new core.Map(); | 74 var _queryParams = new core.Map(); |
| 73 var _uploadMedia = null; | 75 var _uploadMedia = null; |
| 74 var _uploadOptions = null; | 76 var _uploadOptions = null; |
| 75 var _downloadOptions = common.DownloadOptions.Metadata; | 77 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 76 var _body = null; | 78 var _body = null; |
| 77 | 79 |
| 78 if (request != null) { | 80 if (request != null) { |
| 79 _body = convert.JSON.encode((request).toJson()); | 81 _body = convert.JSON.encode((request).toJson()); |
| 80 } | 82 } |
| 81 if (project == null) { | 83 if (project == null) { |
| 82 throw new core.ArgumentError("Parameter project is required."); | 84 throw new core.ArgumentError("Parameter project is required."); |
| 83 } | 85 } |
| 84 if (managedZone == null) { | 86 if (managedZone == null) { |
| 85 throw new core.ArgumentError("Parameter managedZone is required."); | 87 throw new core.ArgumentError("Parameter managedZone is required."); |
| 86 } | 88 } |
| 87 | 89 |
| 88 | 90 |
| 89 _url = common_internal.Escaper.ecapeVariable('$project') + '/managedZones/'
+ common_internal.Escaper.ecapeVariable('$managedZone') + '/changes'; | 91 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/changes'; |
| 90 | 92 |
| 91 var _response = _requester.request(_url, | 93 var _response = _requester.request(_url, |
| 92 "POST", | 94 "POST", |
| 93 body: _body, | 95 body: _body, |
| 94 queryParams: _queryParams, | 96 queryParams: _queryParams, |
| 95 uploadOptions: _uploadOptions, | 97 uploadOptions: _uploadOptions, |
| 96 uploadMedia: _uploadMedia, | 98 uploadMedia: _uploadMedia, |
| 97 downloadOptions: _downloadOptions); | 99 downloadOptions: _downloadOptions); |
| 98 return _response.then((data) => new Change.fromJson(data)); | 100 return _response.then((data) => new Change.fromJson(data)); |
| 99 } | 101 } |
| 100 | 102 |
| 101 /** | 103 /** |
| 102 * Fetch the representation of an existing Change. | 104 * Fetch the representation of an existing Change. |
| 103 * | 105 * |
| 104 * Request parameters: | 106 * Request parameters: |
| 105 * | 107 * |
| 106 * [project] - Identifies the project addressed by this request. | 108 * [project] - Identifies the project addressed by this request. |
| 107 * | 109 * |
| 108 * [managedZone] - Identifies the managed zone addressed by this request. Can | 110 * [managedZone] - Identifies the managed zone addressed by this request. Can |
| 109 * be the managed zone name or id. | 111 * be the managed zone name or id. |
| 110 * | 112 * |
| 111 * [changeId] - The identifier of the requested change, from a previous | 113 * [changeId] - The identifier of the requested change, from a previous |
| 112 * ResourceRecordSetsChangeResponse. | 114 * ResourceRecordSetsChangeResponse. |
| 113 * | 115 * |
| 114 * Completes with a [Change]. | 116 * Completes with a [Change]. |
| 115 * | 117 * |
| 116 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 118 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 117 * error. | 119 * error. |
| 118 * | 120 * |
| 119 * If the used [http.Client] completes with an error when making a REST call, | 121 * If the used [http.Client] completes with an error when making a REST call, |
| 120 * this method will complete with the same error. | 122 * this method will complete with the same error. |
| 121 */ | 123 */ |
| 122 async.Future<Change> get(core.String project, core.String managedZone, core.St
ring changeId) { | 124 async.Future<Change> get(core.String project, core.String managedZone, core.St
ring changeId) { |
| 123 var _url = null; | 125 var _url = null; |
| 124 var _queryParams = new core.Map(); | 126 var _queryParams = new core.Map(); |
| 125 var _uploadMedia = null; | 127 var _uploadMedia = null; |
| 126 var _uploadOptions = null; | 128 var _uploadOptions = null; |
| 127 var _downloadOptions = common.DownloadOptions.Metadata; | 129 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 128 var _body = null; | 130 var _body = null; |
| 129 | 131 |
| 130 if (project == null) { | 132 if (project == null) { |
| 131 throw new core.ArgumentError("Parameter project is required."); | 133 throw new core.ArgumentError("Parameter project is required."); |
| 132 } | 134 } |
| 133 if (managedZone == null) { | 135 if (managedZone == null) { |
| 134 throw new core.ArgumentError("Parameter managedZone is required."); | 136 throw new core.ArgumentError("Parameter managedZone is required."); |
| 135 } | 137 } |
| 136 if (changeId == null) { | 138 if (changeId == null) { |
| 137 throw new core.ArgumentError("Parameter changeId is required."); | 139 throw new core.ArgumentError("Parameter changeId is required."); |
| 138 } | 140 } |
| 139 | 141 |
| 140 | 142 |
| 141 _url = common_internal.Escaper.ecapeVariable('$project') + '/managedZones/'
+ common_internal.Escaper.ecapeVariable('$managedZone') + '/changes/' + common_i
nternal.Escaper.ecapeVariable('$changeId'); | 143 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/changes/' + commons.Escaper.ecapeVar
iable('$changeId'); |
| 142 | 144 |
| 143 var _response = _requester.request(_url, | 145 var _response = _requester.request(_url, |
| 144 "GET", | 146 "GET", |
| 145 body: _body, | 147 body: _body, |
| 146 queryParams: _queryParams, | 148 queryParams: _queryParams, |
| 147 uploadOptions: _uploadOptions, | 149 uploadOptions: _uploadOptions, |
| 148 uploadMedia: _uploadMedia, | 150 uploadMedia: _uploadMedia, |
| 149 downloadOptions: _downloadOptions); | 151 downloadOptions: _downloadOptions); |
| 150 return _response.then((data) => new Change.fromJson(data)); | 152 return _response.then((data) => new Change.fromJson(data)); |
| 151 } | 153 } |
| (...skipping 15 matching lines...) Expand all Loading... |
| 167 * truncated. Use this parameter to continue a previous list request. | 169 * truncated. Use this parameter to continue a previous list request. |
| 168 * | 170 * |
| 169 * [sortBy] - Sorting criterion. The only supported value is change sequence. | 171 * [sortBy] - Sorting criterion. The only supported value is change sequence. |
| 170 * Possible string values are: | 172 * Possible string values are: |
| 171 * - "changeSequence" | 173 * - "changeSequence" |
| 172 * | 174 * |
| 173 * [sortOrder] - Sorting order direction: 'ascending' or 'descending'. | 175 * [sortOrder] - Sorting order direction: 'ascending' or 'descending'. |
| 174 * | 176 * |
| 175 * Completes with a [ChangesListResponse]. | 177 * Completes with a [ChangesListResponse]. |
| 176 * | 178 * |
| 177 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 179 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 178 * error. | 180 * error. |
| 179 * | 181 * |
| 180 * If the used [http.Client] completes with an error when making a REST call, | 182 * If the used [http.Client] completes with an error when making a REST call, |
| 181 * this method will complete with the same error. | 183 * this method will complete with the same error. |
| 182 */ | 184 */ |
| 183 async.Future<ChangesListResponse> list(core.String project, core.String manage
dZone, {core.int maxResults, core.String pageToken, core.String sortBy, core.Str
ing sortOrder}) { | 185 async.Future<ChangesListResponse> list(core.String project, core.String manage
dZone, {core.int maxResults, core.String pageToken, core.String sortBy, core.Str
ing sortOrder}) { |
| 184 var _url = null; | 186 var _url = null; |
| 185 var _queryParams = new core.Map(); | 187 var _queryParams = new core.Map(); |
| 186 var _uploadMedia = null; | 188 var _uploadMedia = null; |
| 187 var _uploadOptions = null; | 189 var _uploadOptions = null; |
| 188 var _downloadOptions = common.DownloadOptions.Metadata; | 190 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 189 var _body = null; | 191 var _body = null; |
| 190 | 192 |
| 191 if (project == null) { | 193 if (project == null) { |
| 192 throw new core.ArgumentError("Parameter project is required."); | 194 throw new core.ArgumentError("Parameter project is required."); |
| 193 } | 195 } |
| 194 if (managedZone == null) { | 196 if (managedZone == null) { |
| 195 throw new core.ArgumentError("Parameter managedZone is required."); | 197 throw new core.ArgumentError("Parameter managedZone is required."); |
| 196 } | 198 } |
| 197 if (maxResults != null) { | 199 if (maxResults != null) { |
| 198 _queryParams["maxResults"] = ["${maxResults}"]; | 200 _queryParams["maxResults"] = ["${maxResults}"]; |
| 199 } | 201 } |
| 200 if (pageToken != null) { | 202 if (pageToken != null) { |
| 201 _queryParams["pageToken"] = [pageToken]; | 203 _queryParams["pageToken"] = [pageToken]; |
| 202 } | 204 } |
| 203 if (sortBy != null) { | 205 if (sortBy != null) { |
| 204 _queryParams["sortBy"] = [sortBy]; | 206 _queryParams["sortBy"] = [sortBy]; |
| 205 } | 207 } |
| 206 if (sortOrder != null) { | 208 if (sortOrder != null) { |
| 207 _queryParams["sortOrder"] = [sortOrder]; | 209 _queryParams["sortOrder"] = [sortOrder]; |
| 208 } | 210 } |
| 209 | 211 |
| 210 | 212 |
| 211 _url = common_internal.Escaper.ecapeVariable('$project') + '/managedZones/'
+ common_internal.Escaper.ecapeVariable('$managedZone') + '/changes'; | 213 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/changes'; |
| 212 | 214 |
| 213 var _response = _requester.request(_url, | 215 var _response = _requester.request(_url, |
| 214 "GET", | 216 "GET", |
| 215 body: _body, | 217 body: _body, |
| 216 queryParams: _queryParams, | 218 queryParams: _queryParams, |
| 217 uploadOptions: _uploadOptions, | 219 uploadOptions: _uploadOptions, |
| 218 uploadMedia: _uploadMedia, | 220 uploadMedia: _uploadMedia, |
| 219 downloadOptions: _downloadOptions); | 221 downloadOptions: _downloadOptions); |
| 220 return _response.then((data) => new ChangesListResponse.fromJson(data)); | 222 return _response.then((data) => new ChangesListResponse.fromJson(data)); |
| 221 } | 223 } |
| 222 | 224 |
| 223 } | 225 } |
| 224 | 226 |
| 225 | 227 |
| 226 /** Not documented yet. */ | |
| 227 class ManagedZonesResourceApi { | 228 class ManagedZonesResourceApi { |
| 228 final common_internal.ApiRequester _requester; | 229 final commons.ApiRequester _requester; |
| 229 | 230 |
| 230 ManagedZonesResourceApi(common_internal.ApiRequester client) : | 231 ManagedZonesResourceApi(commons.ApiRequester client) : |
| 231 _requester = client; | 232 _requester = client; |
| 232 | 233 |
| 233 /** | 234 /** |
| 234 * Create a new ManagedZone. | 235 * Create a new ManagedZone. |
| 235 * | 236 * |
| 236 * [request] - The metadata request object. | 237 * [request] - The metadata request object. |
| 237 * | 238 * |
| 238 * Request parameters: | 239 * Request parameters: |
| 239 * | 240 * |
| 240 * [project] - Identifies the project addressed by this request. | 241 * [project] - Identifies the project addressed by this request. |
| 241 * | 242 * |
| 242 * Completes with a [ManagedZone]. | 243 * Completes with a [ManagedZone]. |
| 243 * | 244 * |
| 244 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 245 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 245 * error. | 246 * error. |
| 246 * | 247 * |
| 247 * If the used [http.Client] completes with an error when making a REST call, | 248 * If the used [http.Client] completes with an error when making a REST call, |
| 248 * this method will complete with the same error. | 249 * this method will complete with the same error. |
| 249 */ | 250 */ |
| 250 async.Future<ManagedZone> create(ManagedZone request, core.String project) { | 251 async.Future<ManagedZone> create(ManagedZone request, core.String project) { |
| 251 var _url = null; | 252 var _url = null; |
| 252 var _queryParams = new core.Map(); | 253 var _queryParams = new core.Map(); |
| 253 var _uploadMedia = null; | 254 var _uploadMedia = null; |
| 254 var _uploadOptions = null; | 255 var _uploadOptions = null; |
| 255 var _downloadOptions = common.DownloadOptions.Metadata; | 256 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 256 var _body = null; | 257 var _body = null; |
| 257 | 258 |
| 258 if (request != null) { | 259 if (request != null) { |
| 259 _body = convert.JSON.encode((request).toJson()); | 260 _body = convert.JSON.encode((request).toJson()); |
| 260 } | 261 } |
| 261 if (project == null) { | 262 if (project == null) { |
| 262 throw new core.ArgumentError("Parameter project is required."); | 263 throw new core.ArgumentError("Parameter project is required."); |
| 263 } | 264 } |
| 264 | 265 |
| 265 | 266 |
| 266 _url = common_internal.Escaper.ecapeVariable('$project') + '/managedZones'; | 267 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones'; |
| 267 | 268 |
| 268 var _response = _requester.request(_url, | 269 var _response = _requester.request(_url, |
| 269 "POST", | 270 "POST", |
| 270 body: _body, | 271 body: _body, |
| 271 queryParams: _queryParams, | 272 queryParams: _queryParams, |
| 272 uploadOptions: _uploadOptions, | 273 uploadOptions: _uploadOptions, |
| 273 uploadMedia: _uploadMedia, | 274 uploadMedia: _uploadMedia, |
| 274 downloadOptions: _downloadOptions); | 275 downloadOptions: _downloadOptions); |
| 275 return _response.then((data) => new ManagedZone.fromJson(data)); | 276 return _response.then((data) => new ManagedZone.fromJson(data)); |
| 276 } | 277 } |
| 277 | 278 |
| 278 /** | 279 /** |
| 279 * Delete a previously created ManagedZone. | 280 * Delete a previously created ManagedZone. |
| 280 * | 281 * |
| 281 * Request parameters: | 282 * Request parameters: |
| 282 * | 283 * |
| 283 * [project] - Identifies the project addressed by this request. | 284 * [project] - Identifies the project addressed by this request. |
| 284 * | 285 * |
| 285 * [managedZone] - Identifies the managed zone addressed by this request. Can | 286 * [managedZone] - Identifies the managed zone addressed by this request. Can |
| 286 * be the managed zone name or id. | 287 * be the managed zone name or id. |
| 287 * | 288 * |
| 288 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 289 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 289 * error. | 290 * error. |
| 290 * | 291 * |
| 291 * If the used [http.Client] completes with an error when making a REST call, | 292 * If the used [http.Client] completes with an error when making a REST call, |
| 292 * this method will complete with the same error. | 293 * this method will complete with the same error. |
| 293 */ | 294 */ |
| 294 async.Future delete(core.String project, core.String managedZone) { | 295 async.Future delete(core.String project, core.String managedZone) { |
| 295 var _url = null; | 296 var _url = null; |
| 296 var _queryParams = new core.Map(); | 297 var _queryParams = new core.Map(); |
| 297 var _uploadMedia = null; | 298 var _uploadMedia = null; |
| 298 var _uploadOptions = null; | 299 var _uploadOptions = null; |
| 299 var _downloadOptions = common.DownloadOptions.Metadata; | 300 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 300 var _body = null; | 301 var _body = null; |
| 301 | 302 |
| 302 if (project == null) { | 303 if (project == null) { |
| 303 throw new core.ArgumentError("Parameter project is required."); | 304 throw new core.ArgumentError("Parameter project is required."); |
| 304 } | 305 } |
| 305 if (managedZone == null) { | 306 if (managedZone == null) { |
| 306 throw new core.ArgumentError("Parameter managedZone is required."); | 307 throw new core.ArgumentError("Parameter managedZone is required."); |
| 307 } | 308 } |
| 308 | 309 |
| 309 _downloadOptions = null; | 310 _downloadOptions = null; |
| 310 | 311 |
| 311 _url = common_internal.Escaper.ecapeVariable('$project') + '/managedZones/'
+ common_internal.Escaper.ecapeVariable('$managedZone'); | 312 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone'); |
| 312 | 313 |
| 313 var _response = _requester.request(_url, | 314 var _response = _requester.request(_url, |
| 314 "DELETE", | 315 "DELETE", |
| 315 body: _body, | 316 body: _body, |
| 316 queryParams: _queryParams, | 317 queryParams: _queryParams, |
| 317 uploadOptions: _uploadOptions, | 318 uploadOptions: _uploadOptions, |
| 318 uploadMedia: _uploadMedia, | 319 uploadMedia: _uploadMedia, |
| 319 downloadOptions: _downloadOptions); | 320 downloadOptions: _downloadOptions); |
| 320 return _response.then((data) => null); | 321 return _response.then((data) => null); |
| 321 } | 322 } |
| 322 | 323 |
| 323 /** | 324 /** |
| 324 * Fetch the representation of an existing ManagedZone. | 325 * Fetch the representation of an existing ManagedZone. |
| 325 * | 326 * |
| 326 * Request parameters: | 327 * Request parameters: |
| 327 * | 328 * |
| 328 * [project] - Identifies the project addressed by this request. | 329 * [project] - Identifies the project addressed by this request. |
| 329 * | 330 * |
| 330 * [managedZone] - Identifies the managed zone addressed by this request. Can | 331 * [managedZone] - Identifies the managed zone addressed by this request. Can |
| 331 * be the managed zone name or id. | 332 * be the managed zone name or id. |
| 332 * | 333 * |
| 333 * Completes with a [ManagedZone]. | 334 * Completes with a [ManagedZone]. |
| 334 * | 335 * |
| 335 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 336 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 336 * error. | 337 * error. |
| 337 * | 338 * |
| 338 * If the used [http.Client] completes with an error when making a REST call, | 339 * If the used [http.Client] completes with an error when making a REST call, |
| 339 * this method will complete with the same error. | 340 * this method will complete with the same error. |
| 340 */ | 341 */ |
| 341 async.Future<ManagedZone> get(core.String project, core.String managedZone) { | 342 async.Future<ManagedZone> get(core.String project, core.String managedZone) { |
| 342 var _url = null; | 343 var _url = null; |
| 343 var _queryParams = new core.Map(); | 344 var _queryParams = new core.Map(); |
| 344 var _uploadMedia = null; | 345 var _uploadMedia = null; |
| 345 var _uploadOptions = null; | 346 var _uploadOptions = null; |
| 346 var _downloadOptions = common.DownloadOptions.Metadata; | 347 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 347 var _body = null; | 348 var _body = null; |
| 348 | 349 |
| 349 if (project == null) { | 350 if (project == null) { |
| 350 throw new core.ArgumentError("Parameter project is required."); | 351 throw new core.ArgumentError("Parameter project is required."); |
| 351 } | 352 } |
| 352 if (managedZone == null) { | 353 if (managedZone == null) { |
| 353 throw new core.ArgumentError("Parameter managedZone is required."); | 354 throw new core.ArgumentError("Parameter managedZone is required."); |
| 354 } | 355 } |
| 355 | 356 |
| 356 | 357 |
| 357 _url = common_internal.Escaper.ecapeVariable('$project') + '/managedZones/'
+ common_internal.Escaper.ecapeVariable('$managedZone'); | 358 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone'); |
| 358 | 359 |
| 359 var _response = _requester.request(_url, | 360 var _response = _requester.request(_url, |
| 360 "GET", | 361 "GET", |
| 361 body: _body, | 362 body: _body, |
| 362 queryParams: _queryParams, | 363 queryParams: _queryParams, |
| 363 uploadOptions: _uploadOptions, | 364 uploadOptions: _uploadOptions, |
| 364 uploadMedia: _uploadMedia, | 365 uploadMedia: _uploadMedia, |
| 365 downloadOptions: _downloadOptions); | 366 downloadOptions: _downloadOptions); |
| 366 return _response.then((data) => new ManagedZone.fromJson(data)); | 367 return _response.then((data) => new ManagedZone.fromJson(data)); |
| 367 } | 368 } |
| 368 | 369 |
| 369 /** | 370 /** |
| 370 * Enumerate ManagedZones that have been created but not yet deleted. | 371 * Enumerate ManagedZones that have been created but not yet deleted. |
| 371 * | 372 * |
| 372 * Request parameters: | 373 * Request parameters: |
| 373 * | 374 * |
| 374 * [project] - Identifies the project addressed by this request. | 375 * [project] - Identifies the project addressed by this request. |
| 375 * | 376 * |
| 376 * [maxResults] - Optional. Maximum number of results to be returned. If | 377 * [maxResults] - Optional. Maximum number of results to be returned. If |
| 377 * unspecified, the server will decide how many results to return. | 378 * unspecified, the server will decide how many results to return. |
| 378 * | 379 * |
| 379 * [pageToken] - Optional. A tag returned by a previous list request that was | 380 * [pageToken] - Optional. A tag returned by a previous list request that was |
| 380 * truncated. Use this parameter to continue a previous list request. | 381 * truncated. Use this parameter to continue a previous list request. |
| 381 * | 382 * |
| 382 * Completes with a [ManagedZonesListResponse]. | 383 * Completes with a [ManagedZonesListResponse]. |
| 383 * | 384 * |
| 384 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 385 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 385 * error. | 386 * error. |
| 386 * | 387 * |
| 387 * If the used [http.Client] completes with an error when making a REST call, | 388 * If the used [http.Client] completes with an error when making a REST call, |
| 388 * this method will complete with the same error. | 389 * this method will complete with the same error. |
| 389 */ | 390 */ |
| 390 async.Future<ManagedZonesListResponse> list(core.String project, {core.int max
Results, core.String pageToken}) { | 391 async.Future<ManagedZonesListResponse> list(core.String project, {core.int max
Results, core.String pageToken}) { |
| 391 var _url = null; | 392 var _url = null; |
| 392 var _queryParams = new core.Map(); | 393 var _queryParams = new core.Map(); |
| 393 var _uploadMedia = null; | 394 var _uploadMedia = null; |
| 394 var _uploadOptions = null; | 395 var _uploadOptions = null; |
| 395 var _downloadOptions = common.DownloadOptions.Metadata; | 396 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 396 var _body = null; | 397 var _body = null; |
| 397 | 398 |
| 398 if (project == null) { | 399 if (project == null) { |
| 399 throw new core.ArgumentError("Parameter project is required."); | 400 throw new core.ArgumentError("Parameter project is required."); |
| 400 } | 401 } |
| 401 if (maxResults != null) { | 402 if (maxResults != null) { |
| 402 _queryParams["maxResults"] = ["${maxResults}"]; | 403 _queryParams["maxResults"] = ["${maxResults}"]; |
| 403 } | 404 } |
| 404 if (pageToken != null) { | 405 if (pageToken != null) { |
| 405 _queryParams["pageToken"] = [pageToken]; | 406 _queryParams["pageToken"] = [pageToken]; |
| 406 } | 407 } |
| 407 | 408 |
| 408 | 409 |
| 409 _url = common_internal.Escaper.ecapeVariable('$project') + '/managedZones'; | 410 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones'; |
| 410 | 411 |
| 411 var _response = _requester.request(_url, | 412 var _response = _requester.request(_url, |
| 412 "GET", | 413 "GET", |
| 413 body: _body, | 414 body: _body, |
| 414 queryParams: _queryParams, | 415 queryParams: _queryParams, |
| 415 uploadOptions: _uploadOptions, | 416 uploadOptions: _uploadOptions, |
| 416 uploadMedia: _uploadMedia, | 417 uploadMedia: _uploadMedia, |
| 417 downloadOptions: _downloadOptions); | 418 downloadOptions: _downloadOptions); |
| 418 return _response.then((data) => new ManagedZonesListResponse.fromJson(data))
; | 419 return _response.then((data) => new ManagedZonesListResponse.fromJson(data))
; |
| 419 } | 420 } |
| 420 | 421 |
| 421 } | 422 } |
| 422 | 423 |
| 423 | 424 |
| 424 /** Not documented yet. */ | |
| 425 class ProjectsResourceApi { | 425 class ProjectsResourceApi { |
| 426 final common_internal.ApiRequester _requester; | 426 final commons.ApiRequester _requester; |
| 427 | 427 |
| 428 ProjectsResourceApi(common_internal.ApiRequester client) : | 428 ProjectsResourceApi(commons.ApiRequester client) : |
| 429 _requester = client; | 429 _requester = client; |
| 430 | 430 |
| 431 /** | 431 /** |
| 432 * Fetch the representation of an existing Project. | 432 * Fetch the representation of an existing Project. |
| 433 * | 433 * |
| 434 * Request parameters: | 434 * Request parameters: |
| 435 * | 435 * |
| 436 * [project] - Identifies the project addressed by this request. | 436 * [project] - Identifies the project addressed by this request. |
| 437 * | 437 * |
| 438 * Completes with a [Project]. | 438 * Completes with a [Project]. |
| 439 * | 439 * |
| 440 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 440 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 441 * error. | 441 * error. |
| 442 * | 442 * |
| 443 * If the used [http.Client] completes with an error when making a REST call, | 443 * If the used [http.Client] completes with an error when making a REST call, |
| 444 * this method will complete with the same error. | 444 * this method will complete with the same error. |
| 445 */ | 445 */ |
| 446 async.Future<Project> get(core.String project) { | 446 async.Future<Project> get(core.String project) { |
| 447 var _url = null; | 447 var _url = null; |
| 448 var _queryParams = new core.Map(); | 448 var _queryParams = new core.Map(); |
| 449 var _uploadMedia = null; | 449 var _uploadMedia = null; |
| 450 var _uploadOptions = null; | 450 var _uploadOptions = null; |
| 451 var _downloadOptions = common.DownloadOptions.Metadata; | 451 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 452 var _body = null; | 452 var _body = null; |
| 453 | 453 |
| 454 if (project == null) { | 454 if (project == null) { |
| 455 throw new core.ArgumentError("Parameter project is required."); | 455 throw new core.ArgumentError("Parameter project is required."); |
| 456 } | 456 } |
| 457 | 457 |
| 458 | 458 |
| 459 _url = common_internal.Escaper.ecapeVariable('$project'); | 459 _url = commons.Escaper.ecapeVariable('$project'); |
| 460 | 460 |
| 461 var _response = _requester.request(_url, | 461 var _response = _requester.request(_url, |
| 462 "GET", | 462 "GET", |
| 463 body: _body, | 463 body: _body, |
| 464 queryParams: _queryParams, | 464 queryParams: _queryParams, |
| 465 uploadOptions: _uploadOptions, | 465 uploadOptions: _uploadOptions, |
| 466 uploadMedia: _uploadMedia, | 466 uploadMedia: _uploadMedia, |
| 467 downloadOptions: _downloadOptions); | 467 downloadOptions: _downloadOptions); |
| 468 return _response.then((data) => new Project.fromJson(data)); | 468 return _response.then((data) => new Project.fromJson(data)); |
| 469 } | 469 } |
| 470 | 470 |
| 471 } | 471 } |
| 472 | 472 |
| 473 | 473 |
| 474 /** Not documented yet. */ | |
| 475 class ResourceRecordSetsResourceApi { | 474 class ResourceRecordSetsResourceApi { |
| 476 final common_internal.ApiRequester _requester; | 475 final commons.ApiRequester _requester; |
| 477 | 476 |
| 478 ResourceRecordSetsResourceApi(common_internal.ApiRequester client) : | 477 ResourceRecordSetsResourceApi(commons.ApiRequester client) : |
| 479 _requester = client; | 478 _requester = client; |
| 480 | 479 |
| 481 /** | 480 /** |
| 482 * Enumerate ResourceRecordSets that have been created but not yet deleted. | 481 * Enumerate ResourceRecordSets that have been created but not yet deleted. |
| 483 * | 482 * |
| 484 * Request parameters: | 483 * Request parameters: |
| 485 * | 484 * |
| 486 * [project] - Identifies the project addressed by this request. | 485 * [project] - Identifies the project addressed by this request. |
| 487 * | 486 * |
| 488 * [managedZone] - Identifies the managed zone addressed by this request. Can | 487 * [managedZone] - Identifies the managed zone addressed by this request. Can |
| 489 * be the managed zone name or id. | 488 * be the managed zone name or id. |
| 490 * | 489 * |
| 491 * [maxResults] - Optional. Maximum number of results to be returned. If | 490 * [maxResults] - Optional. Maximum number of results to be returned. If |
| 492 * unspecified, the server will decide how many results to return. | 491 * unspecified, the server will decide how many results to return. |
| 493 * | 492 * |
| 494 * [name] - Restricts the list to return only records with this fully | 493 * [name] - Restricts the list to return only records with this fully |
| 495 * qualified domain name. | 494 * qualified domain name. |
| 496 * | 495 * |
| 497 * [pageToken] - Optional. A tag returned by a previous list request that was | 496 * [pageToken] - Optional. A tag returned by a previous list request that was |
| 498 * truncated. Use this parameter to continue a previous list request. | 497 * truncated. Use this parameter to continue a previous list request. |
| 499 * | 498 * |
| 500 * [type] - Restricts the list to return only records of this type. If | 499 * [type] - Restricts the list to return only records of this type. If |
| 501 * present, the "name" parameter must also be present. | 500 * present, the "name" parameter must also be present. |
| 502 * | 501 * |
| 503 * Completes with a [ResourceRecordSetsListResponse]. | 502 * Completes with a [ResourceRecordSetsListResponse]. |
| 504 * | 503 * |
| 505 * Completes with a [common.ApiRequestError] if the API endpoint returned an | 504 * Completes with a [commons.ApiRequestError] if the API endpoint returned an |
| 506 * error. | 505 * error. |
| 507 * | 506 * |
| 508 * If the used [http.Client] completes with an error when making a REST call, | 507 * If the used [http.Client] completes with an error when making a REST call, |
| 509 * this method will complete with the same error. | 508 * this method will complete with the same error. |
| 510 */ | 509 */ |
| 511 async.Future<ResourceRecordSetsListResponse> list(core.String project, core.St
ring managedZone, {core.int maxResults, core.String name, core.String pageToken,
core.String type}) { | 510 async.Future<ResourceRecordSetsListResponse> list(core.String project, core.St
ring managedZone, {core.int maxResults, core.String name, core.String pageToken,
core.String type}) { |
| 512 var _url = null; | 511 var _url = null; |
| 513 var _queryParams = new core.Map(); | 512 var _queryParams = new core.Map(); |
| 514 var _uploadMedia = null; | 513 var _uploadMedia = null; |
| 515 var _uploadOptions = null; | 514 var _uploadOptions = null; |
| 516 var _downloadOptions = common.DownloadOptions.Metadata; | 515 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 517 var _body = null; | 516 var _body = null; |
| 518 | 517 |
| 519 if (project == null) { | 518 if (project == null) { |
| 520 throw new core.ArgumentError("Parameter project is required."); | 519 throw new core.ArgumentError("Parameter project is required."); |
| 521 } | 520 } |
| 522 if (managedZone == null) { | 521 if (managedZone == null) { |
| 523 throw new core.ArgumentError("Parameter managedZone is required."); | 522 throw new core.ArgumentError("Parameter managedZone is required."); |
| 524 } | 523 } |
| 525 if (maxResults != null) { | 524 if (maxResults != null) { |
| 526 _queryParams["maxResults"] = ["${maxResults}"]; | 525 _queryParams["maxResults"] = ["${maxResults}"]; |
| 527 } | 526 } |
| 528 if (name != null) { | 527 if (name != null) { |
| 529 _queryParams["name"] = [name]; | 528 _queryParams["name"] = [name]; |
| 530 } | 529 } |
| 531 if (pageToken != null) { | 530 if (pageToken != null) { |
| 532 _queryParams["pageToken"] = [pageToken]; | 531 _queryParams["pageToken"] = [pageToken]; |
| 533 } | 532 } |
| 534 if (type != null) { | 533 if (type != null) { |
| 535 _queryParams["type"] = [type]; | 534 _queryParams["type"] = [type]; |
| 536 } | 535 } |
| 537 | 536 |
| 538 | 537 |
| 539 _url = common_internal.Escaper.ecapeVariable('$project') + '/managedZones/'
+ common_internal.Escaper.ecapeVariable('$managedZone') + '/rrsets'; | 538 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/rrsets'; |
| 540 | 539 |
| 541 var _response = _requester.request(_url, | 540 var _response = _requester.request(_url, |
| 542 "GET", | 541 "GET", |
| 543 body: _body, | 542 body: _body, |
| 544 queryParams: _queryParams, | 543 queryParams: _queryParams, |
| 545 uploadOptions: _uploadOptions, | 544 uploadOptions: _uploadOptions, |
| 546 uploadMedia: _uploadMedia, | 545 uploadMedia: _uploadMedia, |
| 547 downloadOptions: _downloadOptions); | 546 downloadOptions: _downloadOptions); |
| 548 return _response.then((data) => new ResourceRecordSetsListResponse.fromJson(
data)); | 547 return _response.then((data) => new ResourceRecordSetsListResponse.fromJson(
data)); |
| 549 } | 548 } |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 694 * by the Cloud DNS service. | 693 * by the Cloud DNS service. |
| 695 */ | 694 */ |
| 696 class ManagedZone { | 695 class ManagedZone { |
| 697 /** | 696 /** |
| 698 * The time that this resource was created on the server. This is in RFC3339 | 697 * The time that this resource was created on the server. This is in RFC3339 |
| 699 * text format. Output only. | 698 * text format. Output only. |
| 700 */ | 699 */ |
| 701 core.String creationTime; | 700 core.String creationTime; |
| 702 | 701 |
| 703 /** | 702 /** |
| 704 * A string to associate with this resource for the user's convenience. Has no | 703 * A mutable string of at most 1024 characters associated with this resource |
| 705 * effect on the managed zone's function. | 704 * for the user's convenience. Has no effect on the managed zone's function. |
| 706 */ | 705 */ |
| 707 core.String description; | 706 core.String description; |
| 708 | 707 |
| 709 /** The DNS name of this managed zone, for instance "example.com.". */ | 708 /** The DNS name of this managed zone, for instance "example.com.". */ |
| 710 core.String dnsName; | 709 core.String dnsName; |
| 711 | 710 |
| 712 /** | 711 /** |
| 713 * Unique identifier for the resource; defined by the server (output only) | 712 * Unique identifier for the resource; defined by the server (output only) |
| 714 */ | 713 */ |
| 715 core.String id; | 714 core.String id; |
| (...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 794 _json["nameServerSet"] = nameServerSet; | 793 _json["nameServerSet"] = nameServerSet; |
| 795 } | 794 } |
| 796 if (nameServers != null) { | 795 if (nameServers != null) { |
| 797 _json["nameServers"] = nameServers; | 796 _json["nameServers"] = nameServers; |
| 798 } | 797 } |
| 799 return _json; | 798 return _json; |
| 800 } | 799 } |
| 801 } | 800 } |
| 802 | 801 |
| 803 | 802 |
| 804 /** Not documented yet. */ | |
| 805 class ManagedZonesListResponse { | 803 class ManagedZonesListResponse { |
| 806 /** Type of resource. */ | 804 /** Type of resource. */ |
| 807 core.String kind; | 805 core.String kind; |
| 808 | 806 |
| 809 /** The managed zone resources. */ | 807 /** The managed zone resources. */ |
| 810 core.List<ManagedZone> managedZones; | 808 core.List<ManagedZone> managedZones; |
| 811 | 809 |
| 812 /** | 810 /** |
| 813 * The presence of this field indicates that there exist more results | 811 * The presence of this field indicates that there exist more results |
| 814 * following your last page of results in pagination order. To fetch them, | 812 * following your last page of results in pagination order. To fetch them, |
| (...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1062 _json["ttl"] = ttl; | 1060 _json["ttl"] = ttl; |
| 1063 } | 1061 } |
| 1064 if (type != null) { | 1062 if (type != null) { |
| 1065 _json["type"] = type; | 1063 _json["type"] = type; |
| 1066 } | 1064 } |
| 1067 return _json; | 1065 return _json; |
| 1068 } | 1066 } |
| 1069 } | 1067 } |
| 1070 | 1068 |
| 1071 | 1069 |
| 1072 /** Not documented yet. */ | |
| 1073 class ResourceRecordSetsListResponse { | 1070 class ResourceRecordSetsListResponse { |
| 1074 /** Type of resource. */ | 1071 /** Type of resource. */ |
| 1075 core.String kind; | 1072 core.String kind; |
| 1076 | 1073 |
| 1077 /** | 1074 /** |
| 1078 * The presence of this field indicates that there exist more results | 1075 * The presence of this field indicates that there exist more results |
| 1079 * following your last page of results in pagination order. To fetch them, | 1076 * following your last page of results in pagination order. To fetch them, |
| 1080 * make another list request using this value as your pagination token. | 1077 * make another list request using this value as your pagination token. |
| 1081 * | 1078 * |
| 1082 * In this way you can retrieve the complete contents of even very large | 1079 * In this way you can retrieve the complete contents of even very large |
| (...skipping 30 matching lines...) Expand all Loading... |
| 1113 } | 1110 } |
| 1114 if (nextPageToken != null) { | 1111 if (nextPageToken != null) { |
| 1115 _json["nextPageToken"] = nextPageToken; | 1112 _json["nextPageToken"] = nextPageToken; |
| 1116 } | 1113 } |
| 1117 if (rrsets != null) { | 1114 if (rrsets != null) { |
| 1118 _json["rrsets"] = rrsets.map((value) => (value).toJson()).toList(); | 1115 _json["rrsets"] = rrsets.map((value) => (value).toJson()).toList(); |
| 1119 } | 1116 } |
| 1120 return _json; | 1117 return _json; |
| 1121 } | 1118 } |
| 1122 } | 1119 } |
| 1123 | |
| 1124 | |
| OLD | NEW |