| OLD | NEW |
| 1 // This is a generated file (see the discoveryapis_generator project). | 1 // This is a generated file (see the discoveryapis_generator project). |
| 2 | 2 |
| 3 library googleapis_beta.dns.v2beta1; | 3 library googleapis_beta.dns.v2beta1; |
| 4 | 4 |
| 5 import 'dart:core' as core; | 5 import 'dart:core' as core; |
| 6 import 'dart:async' as async; | 6 import 'dart:async' as async; |
| 7 import 'dart:convert' as convert; | 7 import 'dart:convert' as convert; |
| 8 | 8 |
| 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; | 9 import 'package:_discoveryapis_commons/_discoveryapis_commons.dart' as commons; |
| 10 import 'package:http/http.dart' as http; | 10 import 'package:http/http.dart' as http; |
| 11 | 11 |
| 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' show | 12 export 'package:_discoveryapis_commons/_discoveryapis_commons.dart' |
| 13 ApiRequestError, DetailedApiRequestError; | 13 show ApiRequestError, DetailedApiRequestError; |
| 14 | 14 |
| 15 const core.String USER_AGENT = 'dart-api-client dns/v2beta1'; | 15 const core.String USER_AGENT = 'dart-api-client dns/v2beta1'; |
| 16 | 16 |
| 17 /** Configures and serves authoritative DNS records. */ | 17 /// Configures and serves authoritative DNS records. |
| 18 class DnsApi { | 18 class DnsApi { |
| 19 /** View and manage your data across Google Cloud Platform services */ | 19 /// View and manage your data across Google Cloud Platform services |
| 20 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf
orm"; | 20 static const CloudPlatformScope = |
| 21 "https://www.googleapis.com/auth/cloud-platform"; |
| 21 | 22 |
| 22 /** View your data across Google Cloud Platform services */ | 23 /// View your data across Google Cloud Platform services |
| 23 static const CloudPlatformReadOnlyScope = "https://www.googleapis.com/auth/clo
ud-platform.read-only"; | 24 static const CloudPlatformReadOnlyScope = |
| 25 "https://www.googleapis.com/auth/cloud-platform.read-only"; |
| 24 | 26 |
| 25 /** View your DNS records hosted by Google Cloud DNS */ | 27 /// View your DNS records hosted by Google Cloud DNS |
| 26 static const NdevClouddnsReadonlyScope = "https://www.googleapis.com/auth/ndev
.clouddns.readonly"; | 28 static const NdevClouddnsReadonlyScope = |
| 29 "https://www.googleapis.com/auth/ndev.clouddns.readonly"; |
| 27 | 30 |
| 28 /** View and manage your DNS records hosted by Google Cloud DNS */ | 31 /// View and manage your DNS records hosted by Google Cloud DNS |
| 29 static const NdevClouddnsReadwriteScope = "https://www.googleapis.com/auth/nde
v.clouddns.readwrite"; | 32 static const NdevClouddnsReadwriteScope = |
| 30 | 33 "https://www.googleapis.com/auth/ndev.clouddns.readwrite"; |
| 31 | 34 |
| 32 final commons.ApiRequester _requester; | 35 final commons.ApiRequester _requester; |
| 33 | 36 |
| 34 ChangesResourceApi get changes => new ChangesResourceApi(_requester); | 37 ChangesResourceApi get changes => new ChangesResourceApi(_requester); |
| 35 DnsKeysResourceApi get dnsKeys => new DnsKeysResourceApi(_requester); | 38 DnsKeysResourceApi get dnsKeys => new DnsKeysResourceApi(_requester); |
| 36 ManagedZoneOperationsResourceApi get managedZoneOperations => new ManagedZoneO
perationsResourceApi(_requester); | 39 ManagedZoneOperationsResourceApi get managedZoneOperations => |
| 37 ManagedZonesResourceApi get managedZones => new ManagedZonesResourceApi(_reque
ster); | 40 new ManagedZoneOperationsResourceApi(_requester); |
| 41 ManagedZonesResourceApi get managedZones => |
| 42 new ManagedZonesResourceApi(_requester); |
| 38 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); | 43 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
| 39 ResourceRecordSetsResourceApi get resourceRecordSets => new ResourceRecordSets
ResourceApi(_requester); | 44 ResourceRecordSetsResourceApi get resourceRecordSets => |
| 45 new ResourceRecordSetsResourceApi(_requester); |
| 40 | 46 |
| 41 DnsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/"
, core.String servicePath: "dns/v2beta1/projects/"}) : | 47 DnsApi(http.Client client, |
| 42 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 48 {core.String rootUrl: "https://www.googleapis.com/", |
| 49 core.String servicePath: "dns/v2beta1/projects/"}) |
| 50 : _requester = |
| 51 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
| 43 } | 52 } |
| 44 | 53 |
| 45 | |
| 46 class ChangesResourceApi { | 54 class ChangesResourceApi { |
| 47 final commons.ApiRequester _requester; | 55 final commons.ApiRequester _requester; |
| 48 | 56 |
| 49 ChangesResourceApi(commons.ApiRequester client) : | 57 ChangesResourceApi(commons.ApiRequester client) : _requester = client; |
| 50 _requester = client; | |
| 51 | 58 |
| 52 /** | 59 /// Atomically update the ResourceRecordSet collection. |
| 53 * Atomically update the ResourceRecordSet collection. | 60 /// |
| 54 * | 61 /// [request] - The metadata request object. |
| 55 * [request] - The metadata request object. | 62 /// |
| 56 * | 63 /// Request parameters: |
| 57 * Request parameters: | 64 /// |
| 58 * | 65 /// [project] - Identifies the project addressed by this request. |
| 59 * [project] - Identifies the project addressed by this request. | 66 /// |
| 60 * | 67 /// [managedZone] - Identifies the managed zone addressed by this request. |
| 61 * [managedZone] - Identifies the managed zone addressed by this request. Can | 68 /// Can be the managed zone name or id. |
| 62 * be the managed zone name or id. | 69 /// |
| 63 * | 70 /// [clientOperationId] - For mutating operation requests only. An optional |
| 64 * [clientOperationId] - For mutating operation requests only. An optional | 71 /// identifier specified by the client. Must be unique for operation |
| 65 * identifier specified by the client. Must be unique for operation resources | 72 /// resources in the Operations collection. |
| 66 * in the Operations collection. | 73 /// |
| 67 * | 74 /// Completes with a [Change]. |
| 68 * Completes with a [Change]. | 75 /// |
| 69 * | 76 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 70 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 77 /// an error. |
| 71 * error. | 78 /// |
| 72 * | 79 /// If the used [http.Client] completes with an error when making a REST |
| 73 * If the used [http.Client] completes with an error when making a REST call, | 80 /// call, this method will complete with the same error. |
| 74 * this method will complete with the same error. | 81 async.Future<Change> create( |
| 75 */ | 82 Change request, core.String project, core.String managedZone, |
| 76 async.Future<Change> create(Change request, core.String project, core.String m
anagedZone, {core.String clientOperationId}) { | 83 {core.String clientOperationId}) { |
| 77 var _url = null; | 84 var _url = null; |
| 78 var _queryParams = new core.Map(); | 85 var _queryParams = new core.Map(); |
| 79 var _uploadMedia = null; | 86 var _uploadMedia = null; |
| 80 var _uploadOptions = null; | 87 var _uploadOptions = null; |
| 81 var _downloadOptions = commons.DownloadOptions.Metadata; | 88 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 82 var _body = null; | 89 var _body = null; |
| 83 | 90 |
| 84 if (request != null) { | 91 if (request != null) { |
| 85 _body = convert.JSON.encode((request).toJson()); | 92 _body = convert.JSON.encode((request).toJson()); |
| 86 } | 93 } |
| 87 if (project == null) { | 94 if (project == null) { |
| 88 throw new core.ArgumentError("Parameter project is required."); | 95 throw new core.ArgumentError("Parameter project is required."); |
| 89 } | 96 } |
| 90 if (managedZone == null) { | 97 if (managedZone == null) { |
| 91 throw new core.ArgumentError("Parameter managedZone is required."); | 98 throw new core.ArgumentError("Parameter managedZone is required."); |
| 92 } | 99 } |
| 93 if (clientOperationId != null) { | 100 if (clientOperationId != null) { |
| 94 _queryParams["clientOperationId"] = [clientOperationId]; | 101 _queryParams["clientOperationId"] = [clientOperationId]; |
| 95 } | 102 } |
| 96 | 103 |
| 97 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/changes'; | 104 _url = commons.Escaper.ecapeVariable('$project') + |
| 105 '/managedZones/' + |
| 106 commons.Escaper.ecapeVariable('$managedZone') + |
| 107 '/changes'; |
| 98 | 108 |
| 99 var _response = _requester.request(_url, | 109 var _response = _requester.request(_url, "POST", |
| 100 "POST", | 110 body: _body, |
| 101 body: _body, | 111 queryParams: _queryParams, |
| 102 queryParams: _queryParams, | 112 uploadOptions: _uploadOptions, |
| 103 uploadOptions: _uploadOptions, | 113 uploadMedia: _uploadMedia, |
| 104 uploadMedia: _uploadMedia, | 114 downloadOptions: _downloadOptions); |
| 105 downloadOptions: _downloadOptions); | |
| 106 return _response.then((data) => new Change.fromJson(data)); | 115 return _response.then((data) => new Change.fromJson(data)); |
| 107 } | 116 } |
| 108 | 117 |
| 109 /** | 118 /// Fetch the representation of an existing Change. |
| 110 * Fetch the representation of an existing Change. | 119 /// |
| 111 * | 120 /// Request parameters: |
| 112 * Request parameters: | 121 /// |
| 113 * | 122 /// [project] - Identifies the project addressed by this request. |
| 114 * [project] - Identifies the project addressed by this request. | 123 /// |
| 115 * | 124 /// [managedZone] - Identifies the managed zone addressed by this request. |
| 116 * [managedZone] - Identifies the managed zone addressed by this request. Can | 125 /// Can be the managed zone name or id. |
| 117 * be the managed zone name or id. | 126 /// |
| 118 * | 127 /// [changeId] - The identifier of the requested change, from a previous |
| 119 * [changeId] - The identifier of the requested change, from a previous | 128 /// ResourceRecordSetsChangeResponse. |
| 120 * ResourceRecordSetsChangeResponse. | 129 /// |
| 121 * | 130 /// [clientOperationId] - For mutating operation requests only. An optional |
| 122 * [clientOperationId] - For mutating operation requests only. An optional | 131 /// identifier specified by the client. Must be unique for operation |
| 123 * identifier specified by the client. Must be unique for operation resources | 132 /// resources in the Operations collection. |
| 124 * in the Operations collection. | 133 /// |
| 125 * | 134 /// Completes with a [Change]. |
| 126 * Completes with a [Change]. | 135 /// |
| 127 * | 136 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 128 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 137 /// an error. |
| 129 * error. | 138 /// |
| 130 * | 139 /// If the used [http.Client] completes with an error when making a REST |
| 131 * If the used [http.Client] completes with an error when making a REST call, | 140 /// call, this method will complete with the same error. |
| 132 * this method will complete with the same error. | 141 async.Future<Change> get( |
| 133 */ | 142 core.String project, core.String managedZone, core.String changeId, |
| 134 async.Future<Change> get(core.String project, core.String managedZone, core.St
ring changeId, {core.String clientOperationId}) { | 143 {core.String clientOperationId}) { |
| 135 var _url = null; | 144 var _url = null; |
| 136 var _queryParams = new core.Map(); | 145 var _queryParams = new core.Map(); |
| 137 var _uploadMedia = null; | 146 var _uploadMedia = null; |
| 138 var _uploadOptions = null; | 147 var _uploadOptions = null; |
| 139 var _downloadOptions = commons.DownloadOptions.Metadata; | 148 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 140 var _body = null; | 149 var _body = null; |
| 141 | 150 |
| 142 if (project == null) { | 151 if (project == null) { |
| 143 throw new core.ArgumentError("Parameter project is required."); | 152 throw new core.ArgumentError("Parameter project is required."); |
| 144 } | 153 } |
| 145 if (managedZone == null) { | 154 if (managedZone == null) { |
| 146 throw new core.ArgumentError("Parameter managedZone is required."); | 155 throw new core.ArgumentError("Parameter managedZone is required."); |
| 147 } | 156 } |
| 148 if (changeId == null) { | 157 if (changeId == null) { |
| 149 throw new core.ArgumentError("Parameter changeId is required."); | 158 throw new core.ArgumentError("Parameter changeId is required."); |
| 150 } | 159 } |
| 151 if (clientOperationId != null) { | 160 if (clientOperationId != null) { |
| 152 _queryParams["clientOperationId"] = [clientOperationId]; | 161 _queryParams["clientOperationId"] = [clientOperationId]; |
| 153 } | 162 } |
| 154 | 163 |
| 155 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/changes/' + commons.Escaper.ecapeVar
iable('$changeId'); | 164 _url = commons.Escaper.ecapeVariable('$project') + |
| 165 '/managedZones/' + |
| 166 commons.Escaper.ecapeVariable('$managedZone') + |
| 167 '/changes/' + |
| 168 commons.Escaper.ecapeVariable('$changeId'); |
| 156 | 169 |
| 157 var _response = _requester.request(_url, | 170 var _response = _requester.request(_url, "GET", |
| 158 "GET", | 171 body: _body, |
| 159 body: _body, | 172 queryParams: _queryParams, |
| 160 queryParams: _queryParams, | 173 uploadOptions: _uploadOptions, |
| 161 uploadOptions: _uploadOptions, | 174 uploadMedia: _uploadMedia, |
| 162 uploadMedia: _uploadMedia, | 175 downloadOptions: _downloadOptions); |
| 163 downloadOptions: _downloadOptions); | |
| 164 return _response.then((data) => new Change.fromJson(data)); | 176 return _response.then((data) => new Change.fromJson(data)); |
| 165 } | 177 } |
| 166 | 178 |
| 167 /** | 179 /// Enumerate Changes to a ResourceRecordSet collection. |
| 168 * Enumerate Changes to a ResourceRecordSet collection. | 180 /// |
| 169 * | 181 /// Request parameters: |
| 170 * Request parameters: | 182 /// |
| 171 * | 183 /// [project] - Identifies the project addressed by this request. |
| 172 * [project] - Identifies the project addressed by this request. | 184 /// |
| 173 * | 185 /// [managedZone] - Identifies the managed zone addressed by this request. |
| 174 * [managedZone] - Identifies the managed zone addressed by this request. Can | 186 /// Can be the managed zone name or id. |
| 175 * be the managed zone name or id. | 187 /// |
| 176 * | 188 /// [maxResults] - Optional. Maximum number of results to be returned. If |
| 177 * [maxResults] - Optional. Maximum number of results to be returned. If | 189 /// unspecified, the server will decide how many results to return. |
| 178 * unspecified, the server will decide how many results to return. | 190 /// |
| 179 * | 191 /// [pageToken] - Optional. A tag returned by a previous list request that |
| 180 * [pageToken] - Optional. A tag returned by a previous list request that was | 192 /// was truncated. Use this parameter to continue a previous list request. |
| 181 * truncated. Use this parameter to continue a previous list request. | 193 /// |
| 182 * | 194 /// [sortBy] - Sorting criterion. The only supported value is change |
| 183 * [sortBy] - Sorting criterion. The only supported value is change sequence. | 195 /// sequence. |
| 184 * Possible string values are: | 196 /// Possible string values are: |
| 185 * - "CHANGE_SEQUENCE" | 197 /// - "CHANGE_SEQUENCE" |
| 186 * | 198 /// |
| 187 * [sortOrder] - Sorting order direction: 'ascending' or 'descending'. | 199 /// [sortOrder] - Sorting order direction: 'ascending' or 'descending'. |
| 188 * | 200 /// |
| 189 * Completes with a [ChangesListResponse]. | 201 /// Completes with a [ChangesListResponse]. |
| 190 * | 202 /// |
| 191 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 203 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 192 * error. | 204 /// an error. |
| 193 * | 205 /// |
| 194 * If the used [http.Client] completes with an error when making a REST call, | 206 /// If the used [http.Client] completes with an error when making a REST |
| 195 * this method will complete with the same error. | 207 /// call, this method will complete with the same error. |
| 196 */ | 208 async.Future<ChangesListResponse> list( |
| 197 async.Future<ChangesListResponse> list(core.String project, core.String manage
dZone, {core.int maxResults, core.String pageToken, core.String sortBy, core.Str
ing sortOrder}) { | 209 core.String project, core.String managedZone, |
| 210 {core.int maxResults, |
| 211 core.String pageToken, |
| 212 core.String sortBy, |
| 213 core.String sortOrder}) { |
| 198 var _url = null; | 214 var _url = null; |
| 199 var _queryParams = new core.Map(); | 215 var _queryParams = new core.Map(); |
| 200 var _uploadMedia = null; | 216 var _uploadMedia = null; |
| 201 var _uploadOptions = null; | 217 var _uploadOptions = null; |
| 202 var _downloadOptions = commons.DownloadOptions.Metadata; | 218 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 203 var _body = null; | 219 var _body = null; |
| 204 | 220 |
| 205 if (project == null) { | 221 if (project == null) { |
| 206 throw new core.ArgumentError("Parameter project is required."); | 222 throw new core.ArgumentError("Parameter project is required."); |
| 207 } | 223 } |
| 208 if (managedZone == null) { | 224 if (managedZone == null) { |
| 209 throw new core.ArgumentError("Parameter managedZone is required."); | 225 throw new core.ArgumentError("Parameter managedZone is required."); |
| 210 } | 226 } |
| 211 if (maxResults != null) { | 227 if (maxResults != null) { |
| 212 _queryParams["maxResults"] = ["${maxResults}"]; | 228 _queryParams["maxResults"] = ["${maxResults}"]; |
| 213 } | 229 } |
| 214 if (pageToken != null) { | 230 if (pageToken != null) { |
| 215 _queryParams["pageToken"] = [pageToken]; | 231 _queryParams["pageToken"] = [pageToken]; |
| 216 } | 232 } |
| 217 if (sortBy != null) { | 233 if (sortBy != null) { |
| 218 _queryParams["sortBy"] = [sortBy]; | 234 _queryParams["sortBy"] = [sortBy]; |
| 219 } | 235 } |
| 220 if (sortOrder != null) { | 236 if (sortOrder != null) { |
| 221 _queryParams["sortOrder"] = [sortOrder]; | 237 _queryParams["sortOrder"] = [sortOrder]; |
| 222 } | 238 } |
| 223 | 239 |
| 224 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/changes'; | 240 _url = commons.Escaper.ecapeVariable('$project') + |
| 241 '/managedZones/' + |
| 242 commons.Escaper.ecapeVariable('$managedZone') + |
| 243 '/changes'; |
| 225 | 244 |
| 226 var _response = _requester.request(_url, | 245 var _response = _requester.request(_url, "GET", |
| 227 "GET", | 246 body: _body, |
| 228 body: _body, | 247 queryParams: _queryParams, |
| 229 queryParams: _queryParams, | 248 uploadOptions: _uploadOptions, |
| 230 uploadOptions: _uploadOptions, | 249 uploadMedia: _uploadMedia, |
| 231 uploadMedia: _uploadMedia, | 250 downloadOptions: _downloadOptions); |
| 232 downloadOptions: _downloadOptions); | |
| 233 return _response.then((data) => new ChangesListResponse.fromJson(data)); | 251 return _response.then((data) => new ChangesListResponse.fromJson(data)); |
| 234 } | 252 } |
| 235 | |
| 236 } | 253 } |
| 237 | 254 |
| 238 | |
| 239 class DnsKeysResourceApi { | 255 class DnsKeysResourceApi { |
| 240 final commons.ApiRequester _requester; | 256 final commons.ApiRequester _requester; |
| 241 | 257 |
| 242 DnsKeysResourceApi(commons.ApiRequester client) : | 258 DnsKeysResourceApi(commons.ApiRequester client) : _requester = client; |
| 243 _requester = client; | |
| 244 | 259 |
| 245 /** | 260 /// Fetch the representation of an existing DnsKey. |
| 246 * Fetch the representation of an existing DnsKey. | 261 /// |
| 247 * | 262 /// Request parameters: |
| 248 * Request parameters: | 263 /// |
| 249 * | 264 /// [project] - Identifies the project addressed by this request. |
| 250 * [project] - Identifies the project addressed by this request. | 265 /// |
| 251 * | 266 /// [managedZone] - Identifies the managed zone addressed by this request. |
| 252 * [managedZone] - Identifies the managed zone addressed by this request. Can | 267 /// Can be the managed zone name or id. |
| 253 * be the managed zone name or id. | 268 /// |
| 254 * | 269 /// [dnsKeyId] - The identifier of the requested DnsKey. |
| 255 * [dnsKeyId] - The identifier of the requested DnsKey. | 270 /// |
| 256 * | 271 /// [clientOperationId] - For mutating operation requests only. An optional |
| 257 * [clientOperationId] - For mutating operation requests only. An optional | 272 /// identifier specified by the client. Must be unique for operation |
| 258 * identifier specified by the client. Must be unique for operation resources | 273 /// resources in the Operations collection. |
| 259 * in the Operations collection. | 274 /// |
| 260 * | 275 /// [digestType] - An optional comma-separated list of digest types to |
| 261 * [digestType] - An optional comma-separated list of digest types to compute | 276 /// compute and display for key signing keys. If omitted, the recommended |
| 262 * and display for key signing keys. If omitted, the recommended digest type | 277 /// digest type will be computed and displayed. |
| 263 * will be computed and displayed. | 278 /// |
| 264 * | 279 /// Completes with a [DnsKey]. |
| 265 * Completes with a [DnsKey]. | 280 /// |
| 266 * | 281 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 267 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 282 /// an error. |
| 268 * error. | 283 /// |
| 269 * | 284 /// If the used [http.Client] completes with an error when making a REST |
| 270 * If the used [http.Client] completes with an error when making a REST call, | 285 /// call, this method will complete with the same error. |
| 271 * this method will complete with the same error. | 286 async.Future<DnsKey> get( |
| 272 */ | 287 core.String project, core.String managedZone, core.String dnsKeyId, |
| 273 async.Future<DnsKey> get(core.String project, core.String managedZone, core.St
ring dnsKeyId, {core.String clientOperationId, core.String digestType}) { | 288 {core.String clientOperationId, core.String digestType}) { |
| 274 var _url = null; | 289 var _url = null; |
| 275 var _queryParams = new core.Map(); | 290 var _queryParams = new core.Map(); |
| 276 var _uploadMedia = null; | 291 var _uploadMedia = null; |
| 277 var _uploadOptions = null; | 292 var _uploadOptions = null; |
| 278 var _downloadOptions = commons.DownloadOptions.Metadata; | 293 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 279 var _body = null; | 294 var _body = null; |
| 280 | 295 |
| 281 if (project == null) { | 296 if (project == null) { |
| 282 throw new core.ArgumentError("Parameter project is required."); | 297 throw new core.ArgumentError("Parameter project is required."); |
| 283 } | 298 } |
| 284 if (managedZone == null) { | 299 if (managedZone == null) { |
| 285 throw new core.ArgumentError("Parameter managedZone is required."); | 300 throw new core.ArgumentError("Parameter managedZone is required."); |
| 286 } | 301 } |
| 287 if (dnsKeyId == null) { | 302 if (dnsKeyId == null) { |
| 288 throw new core.ArgumentError("Parameter dnsKeyId is required."); | 303 throw new core.ArgumentError("Parameter dnsKeyId is required."); |
| 289 } | 304 } |
| 290 if (clientOperationId != null) { | 305 if (clientOperationId != null) { |
| 291 _queryParams["clientOperationId"] = [clientOperationId]; | 306 _queryParams["clientOperationId"] = [clientOperationId]; |
| 292 } | 307 } |
| 293 if (digestType != null) { | 308 if (digestType != null) { |
| 294 _queryParams["digestType"] = [digestType]; | 309 _queryParams["digestType"] = [digestType]; |
| 295 } | 310 } |
| 296 | 311 |
| 297 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/dnsKeys/' + commons.Escaper.ecapeVar
iable('$dnsKeyId'); | 312 _url = commons.Escaper.ecapeVariable('$project') + |
| 313 '/managedZones/' + |
| 314 commons.Escaper.ecapeVariable('$managedZone') + |
| 315 '/dnsKeys/' + |
| 316 commons.Escaper.ecapeVariable('$dnsKeyId'); |
| 298 | 317 |
| 299 var _response = _requester.request(_url, | 318 var _response = _requester.request(_url, "GET", |
| 300 "GET", | 319 body: _body, |
| 301 body: _body, | 320 queryParams: _queryParams, |
| 302 queryParams: _queryParams, | 321 uploadOptions: _uploadOptions, |
| 303 uploadOptions: _uploadOptions, | 322 uploadMedia: _uploadMedia, |
| 304 uploadMedia: _uploadMedia, | 323 downloadOptions: _downloadOptions); |
| 305 downloadOptions: _downloadOptions); | |
| 306 return _response.then((data) => new DnsKey.fromJson(data)); | 324 return _response.then((data) => new DnsKey.fromJson(data)); |
| 307 } | 325 } |
| 308 | 326 |
| 309 /** | 327 /// Enumerate DnsKeys to a ResourceRecordSet collection. |
| 310 * Enumerate DnsKeys to a ResourceRecordSet collection. | 328 /// |
| 311 * | 329 /// Request parameters: |
| 312 * Request parameters: | 330 /// |
| 313 * | 331 /// [project] - Identifies the project addressed by this request. |
| 314 * [project] - Identifies the project addressed by this request. | 332 /// |
| 315 * | 333 /// [managedZone] - Identifies the managed zone addressed by this request. |
| 316 * [managedZone] - Identifies the managed zone addressed by this request. Can | 334 /// Can be the managed zone name or id. |
| 317 * be the managed zone name or id. | 335 /// |
| 318 * | 336 /// [digestType] - An optional comma-separated list of digest types to |
| 319 * [digestType] - An optional comma-separated list of digest types to compute | 337 /// compute and display for key signing keys. If omitted, the recommended |
| 320 * and display for key signing keys. If omitted, the recommended digest type | 338 /// digest type will be computed and displayed. |
| 321 * will be computed and displayed. | 339 /// |
| 322 * | 340 /// [maxResults] - Optional. Maximum number of results to be returned. If |
| 323 * [maxResults] - Optional. Maximum number of results to be returned. If | 341 /// unspecified, the server will decide how many results to return. |
| 324 * unspecified, the server will decide how many results to return. | 342 /// |
| 325 * | 343 /// [pageToken] - Optional. A tag returned by a previous list request that |
| 326 * [pageToken] - Optional. A tag returned by a previous list request that was | 344 /// was truncated. Use this parameter to continue a previous list request. |
| 327 * truncated. Use this parameter to continue a previous list request. | 345 /// |
| 328 * | 346 /// Completes with a [DnsKeysListResponse]. |
| 329 * Completes with a [DnsKeysListResponse]. | 347 /// |
| 330 * | 348 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 331 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 349 /// an error. |
| 332 * error. | 350 /// |
| 333 * | 351 /// If the used [http.Client] completes with an error when making a REST |
| 334 * If the used [http.Client] completes with an error when making a REST call, | 352 /// call, this method will complete with the same error. |
| 335 * this method will complete with the same error. | 353 async.Future<DnsKeysListResponse> list( |
| 336 */ | 354 core.String project, core.String managedZone, |
| 337 async.Future<DnsKeysListResponse> list(core.String project, core.String manage
dZone, {core.String digestType, core.int maxResults, core.String pageToken}) { | 355 {core.String digestType, core.int maxResults, core.String pageToken}) { |
| 338 var _url = null; | 356 var _url = null; |
| 339 var _queryParams = new core.Map(); | 357 var _queryParams = new core.Map(); |
| 340 var _uploadMedia = null; | 358 var _uploadMedia = null; |
| 341 var _uploadOptions = null; | 359 var _uploadOptions = null; |
| 342 var _downloadOptions = commons.DownloadOptions.Metadata; | 360 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 343 var _body = null; | 361 var _body = null; |
| 344 | 362 |
| 345 if (project == null) { | 363 if (project == null) { |
| 346 throw new core.ArgumentError("Parameter project is required."); | 364 throw new core.ArgumentError("Parameter project is required."); |
| 347 } | 365 } |
| 348 if (managedZone == null) { | 366 if (managedZone == null) { |
| 349 throw new core.ArgumentError("Parameter managedZone is required."); | 367 throw new core.ArgumentError("Parameter managedZone is required."); |
| 350 } | 368 } |
| 351 if (digestType != null) { | 369 if (digestType != null) { |
| 352 _queryParams["digestType"] = [digestType]; | 370 _queryParams["digestType"] = [digestType]; |
| 353 } | 371 } |
| 354 if (maxResults != null) { | 372 if (maxResults != null) { |
| 355 _queryParams["maxResults"] = ["${maxResults}"]; | 373 _queryParams["maxResults"] = ["${maxResults}"]; |
| 356 } | 374 } |
| 357 if (pageToken != null) { | 375 if (pageToken != null) { |
| 358 _queryParams["pageToken"] = [pageToken]; | 376 _queryParams["pageToken"] = [pageToken]; |
| 359 } | 377 } |
| 360 | 378 |
| 361 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/dnsKeys'; | 379 _url = commons.Escaper.ecapeVariable('$project') + |
| 380 '/managedZones/' + |
| 381 commons.Escaper.ecapeVariable('$managedZone') + |
| 382 '/dnsKeys'; |
| 362 | 383 |
| 363 var _response = _requester.request(_url, | 384 var _response = _requester.request(_url, "GET", |
| 364 "GET", | 385 body: _body, |
| 365 body: _body, | 386 queryParams: _queryParams, |
| 366 queryParams: _queryParams, | 387 uploadOptions: _uploadOptions, |
| 367 uploadOptions: _uploadOptions, | 388 uploadMedia: _uploadMedia, |
| 368 uploadMedia: _uploadMedia, | 389 downloadOptions: _downloadOptions); |
| 369 downloadOptions: _downloadOptions); | |
| 370 return _response.then((data) => new DnsKeysListResponse.fromJson(data)); | 390 return _response.then((data) => new DnsKeysListResponse.fromJson(data)); |
| 371 } | 391 } |
| 372 | |
| 373 } | 392 } |
| 374 | 393 |
| 375 | |
| 376 class ManagedZoneOperationsResourceApi { | 394 class ManagedZoneOperationsResourceApi { |
| 377 final commons.ApiRequester _requester; | 395 final commons.ApiRequester _requester; |
| 378 | 396 |
| 379 ManagedZoneOperationsResourceApi(commons.ApiRequester client) : | 397 ManagedZoneOperationsResourceApi(commons.ApiRequester client) |
| 380 _requester = client; | 398 : _requester = client; |
| 381 | 399 |
| 382 /** | 400 /// Fetch the representation of an existing Operation. |
| 383 * Fetch the representation of an existing Operation. | 401 /// |
| 384 * | 402 /// Request parameters: |
| 385 * Request parameters: | 403 /// |
| 386 * | 404 /// [project] - Identifies the project addressed by this request. |
| 387 * [project] - Identifies the project addressed by this request. | 405 /// |
| 388 * | 406 /// [managedZone] - Identifies the managed zone addressed by this request. |
| 389 * [managedZone] - Identifies the managed zone addressed by this request. | 407 /// |
| 390 * | 408 /// [operation] - Identifies the operation addressed by this request. |
| 391 * [operation] - Identifies the operation addressed by this request. | 409 /// |
| 392 * | 410 /// [clientOperationId] - For mutating operation requests only. An optional |
| 393 * [clientOperationId] - For mutating operation requests only. An optional | 411 /// identifier specified by the client. Must be unique for operation |
| 394 * identifier specified by the client. Must be unique for operation resources | 412 /// resources in the Operations collection. |
| 395 * in the Operations collection. | 413 /// |
| 396 * | 414 /// Completes with a [Operation]. |
| 397 * Completes with a [Operation]. | 415 /// |
| 398 * | 416 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 399 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 417 /// an error. |
| 400 * error. | 418 /// |
| 401 * | 419 /// If the used [http.Client] completes with an error when making a REST |
| 402 * If the used [http.Client] completes with an error when making a REST call, | 420 /// call, this method will complete with the same error. |
| 403 * this method will complete with the same error. | 421 async.Future<Operation> get( |
| 404 */ | 422 core.String project, core.String managedZone, core.String operation, |
| 405 async.Future<Operation> get(core.String project, core.String managedZone, core
.String operation, {core.String clientOperationId}) { | 423 {core.String clientOperationId}) { |
| 406 var _url = null; | 424 var _url = null; |
| 407 var _queryParams = new core.Map(); | 425 var _queryParams = new core.Map(); |
| 408 var _uploadMedia = null; | 426 var _uploadMedia = null; |
| 409 var _uploadOptions = null; | 427 var _uploadOptions = null; |
| 410 var _downloadOptions = commons.DownloadOptions.Metadata; | 428 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 411 var _body = null; | 429 var _body = null; |
| 412 | 430 |
| 413 if (project == null) { | 431 if (project == null) { |
| 414 throw new core.ArgumentError("Parameter project is required."); | 432 throw new core.ArgumentError("Parameter project is required."); |
| 415 } | 433 } |
| 416 if (managedZone == null) { | 434 if (managedZone == null) { |
| 417 throw new core.ArgumentError("Parameter managedZone is required."); | 435 throw new core.ArgumentError("Parameter managedZone is required."); |
| 418 } | 436 } |
| 419 if (operation == null) { | 437 if (operation == null) { |
| 420 throw new core.ArgumentError("Parameter operation is required."); | 438 throw new core.ArgumentError("Parameter operation is required."); |
| 421 } | 439 } |
| 422 if (clientOperationId != null) { | 440 if (clientOperationId != null) { |
| 423 _queryParams["clientOperationId"] = [clientOperationId]; | 441 _queryParams["clientOperationId"] = [clientOperationId]; |
| 424 } | 442 } |
| 425 | 443 |
| 426 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/operations/' + commons.Escaper.ecape
Variable('$operation'); | 444 _url = commons.Escaper.ecapeVariable('$project') + |
| 445 '/managedZones/' + |
| 446 commons.Escaper.ecapeVariable('$managedZone') + |
| 447 '/operations/' + |
| 448 commons.Escaper.ecapeVariable('$operation'); |
| 427 | 449 |
| 428 var _response = _requester.request(_url, | 450 var _response = _requester.request(_url, "GET", |
| 429 "GET", | 451 body: _body, |
| 430 body: _body, | 452 queryParams: _queryParams, |
| 431 queryParams: _queryParams, | 453 uploadOptions: _uploadOptions, |
| 432 uploadOptions: _uploadOptions, | 454 uploadMedia: _uploadMedia, |
| 433 uploadMedia: _uploadMedia, | 455 downloadOptions: _downloadOptions); |
| 434 downloadOptions: _downloadOptions); | |
| 435 return _response.then((data) => new Operation.fromJson(data)); | 456 return _response.then((data) => new Operation.fromJson(data)); |
| 436 } | 457 } |
| 437 | 458 |
| 438 /** | 459 /// Enumerate Operations for the given ManagedZone. |
| 439 * Enumerate Operations for the given ManagedZone. | 460 /// |
| 440 * | 461 /// Request parameters: |
| 441 * Request parameters: | 462 /// |
| 442 * | 463 /// [project] - Identifies the project addressed by this request. |
| 443 * [project] - Identifies the project addressed by this request. | 464 /// |
| 444 * | 465 /// [managedZone] - Identifies the managed zone addressed by this request. |
| 445 * [managedZone] - Identifies the managed zone addressed by this request. | 466 /// |
| 446 * | 467 /// [maxResults] - Optional. Maximum number of results to be returned. If |
| 447 * [maxResults] - Optional. Maximum number of results to be returned. If | 468 /// unspecified, the server will decide how many results to return. |
| 448 * unspecified, the server will decide how many results to return. | 469 /// |
| 449 * | 470 /// [pageToken] - Optional. A tag returned by a previous list request that |
| 450 * [pageToken] - Optional. A tag returned by a previous list request that was | 471 /// was truncated. Use this parameter to continue a previous list request. |
| 451 * truncated. Use this parameter to continue a previous list request. | 472 /// |
| 452 * | 473 /// [sortBy] - Sorting criterion. The only supported values are START_TIME |
| 453 * [sortBy] - Sorting criterion. The only supported values are START_TIME and | 474 /// and ID. |
| 454 * ID. | 475 /// Possible string values are: |
| 455 * Possible string values are: | 476 /// - "ID" |
| 456 * - "ID" | 477 /// - "START_TIME" |
| 457 * - "START_TIME" | 478 /// |
| 458 * | 479 /// Completes with a [ManagedZoneOperationsListResponse]. |
| 459 * Completes with a [ManagedZoneOperationsListResponse]. | 480 /// |
| 460 * | 481 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 461 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 482 /// an error. |
| 462 * error. | 483 /// |
| 463 * | 484 /// If the used [http.Client] completes with an error when making a REST |
| 464 * If the used [http.Client] completes with an error when making a REST call, | 485 /// call, this method will complete with the same error. |
| 465 * this method will complete with the same error. | 486 async.Future<ManagedZoneOperationsListResponse> list( |
| 466 */ | 487 core.String project, core.String managedZone, |
| 467 async.Future<ManagedZoneOperationsListResponse> list(core.String project, core
.String managedZone, {core.int maxResults, core.String pageToken, core.String so
rtBy}) { | 488 {core.int maxResults, core.String pageToken, core.String sortBy}) { |
| 468 var _url = null; | 489 var _url = null; |
| 469 var _queryParams = new core.Map(); | 490 var _queryParams = new core.Map(); |
| 470 var _uploadMedia = null; | 491 var _uploadMedia = null; |
| 471 var _uploadOptions = null; | 492 var _uploadOptions = null; |
| 472 var _downloadOptions = commons.DownloadOptions.Metadata; | 493 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 473 var _body = null; | 494 var _body = null; |
| 474 | 495 |
| 475 if (project == null) { | 496 if (project == null) { |
| 476 throw new core.ArgumentError("Parameter project is required."); | 497 throw new core.ArgumentError("Parameter project is required."); |
| 477 } | 498 } |
| 478 if (managedZone == null) { | 499 if (managedZone == null) { |
| 479 throw new core.ArgumentError("Parameter managedZone is required."); | 500 throw new core.ArgumentError("Parameter managedZone is required."); |
| 480 } | 501 } |
| 481 if (maxResults != null) { | 502 if (maxResults != null) { |
| 482 _queryParams["maxResults"] = ["${maxResults}"]; | 503 _queryParams["maxResults"] = ["${maxResults}"]; |
| 483 } | 504 } |
| 484 if (pageToken != null) { | 505 if (pageToken != null) { |
| 485 _queryParams["pageToken"] = [pageToken]; | 506 _queryParams["pageToken"] = [pageToken]; |
| 486 } | 507 } |
| 487 if (sortBy != null) { | 508 if (sortBy != null) { |
| 488 _queryParams["sortBy"] = [sortBy]; | 509 _queryParams["sortBy"] = [sortBy]; |
| 489 } | 510 } |
| 490 | 511 |
| 491 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/operations'; | 512 _url = commons.Escaper.ecapeVariable('$project') + |
| 513 '/managedZones/' + |
| 514 commons.Escaper.ecapeVariable('$managedZone') + |
| 515 '/operations'; |
| 492 | 516 |
| 493 var _response = _requester.request(_url, | 517 var _response = _requester.request(_url, "GET", |
| 494 "GET", | 518 body: _body, |
| 495 body: _body, | 519 queryParams: _queryParams, |
| 496 queryParams: _queryParams, | 520 uploadOptions: _uploadOptions, |
| 497 uploadOptions: _uploadOptions, | 521 uploadMedia: _uploadMedia, |
| 498 uploadMedia: _uploadMedia, | 522 downloadOptions: _downloadOptions); |
| 499 downloadOptions: _downloadOptions); | 523 return _response |
| 500 return _response.then((data) => new ManagedZoneOperationsListResponse.fromJs
on(data)); | 524 .then((data) => new ManagedZoneOperationsListResponse.fromJson(data)); |
| 501 } | 525 } |
| 502 | |
| 503 } | 526 } |
| 504 | 527 |
| 505 | |
| 506 class ManagedZonesResourceApi { | 528 class ManagedZonesResourceApi { |
| 507 final commons.ApiRequester _requester; | 529 final commons.ApiRequester _requester; |
| 508 | 530 |
| 509 ManagedZonesResourceApi(commons.ApiRequester client) : | 531 ManagedZonesResourceApi(commons.ApiRequester client) : _requester = client; |
| 510 _requester = client; | |
| 511 | 532 |
| 512 /** | 533 /// Create a new ManagedZone. |
| 513 * Create a new ManagedZone. | 534 /// |
| 514 * | 535 /// [request] - The metadata request object. |
| 515 * [request] - The metadata request object. | 536 /// |
| 516 * | 537 /// Request parameters: |
| 517 * Request parameters: | 538 /// |
| 518 * | 539 /// [project] - Identifies the project addressed by this request. |
| 519 * [project] - Identifies the project addressed by this request. | 540 /// |
| 520 * | 541 /// [clientOperationId] - For mutating operation requests only. An optional |
| 521 * [clientOperationId] - For mutating operation requests only. An optional | 542 /// identifier specified by the client. Must be unique for operation |
| 522 * identifier specified by the client. Must be unique for operation resources | 543 /// resources in the Operations collection. |
| 523 * in the Operations collection. | 544 /// |
| 524 * | 545 /// Completes with a [ManagedZone]. |
| 525 * Completes with a [ManagedZone]. | 546 /// |
| 526 * | 547 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 527 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 548 /// an error. |
| 528 * error. | 549 /// |
| 529 * | 550 /// If the used [http.Client] completes with an error when making a REST |
| 530 * If the used [http.Client] completes with an error when making a REST call, | 551 /// call, this method will complete with the same error. |
| 531 * this method will complete with the same error. | 552 async.Future<ManagedZone> create(ManagedZone request, core.String project, |
| 532 */ | 553 {core.String clientOperationId}) { |
| 533 async.Future<ManagedZone> create(ManagedZone request, core.String project, {co
re.String clientOperationId}) { | |
| 534 var _url = null; | 554 var _url = null; |
| 535 var _queryParams = new core.Map(); | 555 var _queryParams = new core.Map(); |
| 536 var _uploadMedia = null; | 556 var _uploadMedia = null; |
| 537 var _uploadOptions = null; | 557 var _uploadOptions = null; |
| 538 var _downloadOptions = commons.DownloadOptions.Metadata; | 558 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 539 var _body = null; | 559 var _body = null; |
| 540 | 560 |
| 541 if (request != null) { | 561 if (request != null) { |
| 542 _body = convert.JSON.encode((request).toJson()); | 562 _body = convert.JSON.encode((request).toJson()); |
| 543 } | 563 } |
| 544 if (project == null) { | 564 if (project == null) { |
| 545 throw new core.ArgumentError("Parameter project is required."); | 565 throw new core.ArgumentError("Parameter project is required."); |
| 546 } | 566 } |
| 547 if (clientOperationId != null) { | 567 if (clientOperationId != null) { |
| 548 _queryParams["clientOperationId"] = [clientOperationId]; | 568 _queryParams["clientOperationId"] = [clientOperationId]; |
| 549 } | 569 } |
| 550 | 570 |
| 551 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones'; | 571 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones'; |
| 552 | 572 |
| 553 var _response = _requester.request(_url, | 573 var _response = _requester.request(_url, "POST", |
| 554 "POST", | 574 body: _body, |
| 555 body: _body, | 575 queryParams: _queryParams, |
| 556 queryParams: _queryParams, | 576 uploadOptions: _uploadOptions, |
| 557 uploadOptions: _uploadOptions, | 577 uploadMedia: _uploadMedia, |
| 558 uploadMedia: _uploadMedia, | 578 downloadOptions: _downloadOptions); |
| 559 downloadOptions: _downloadOptions); | |
| 560 return _response.then((data) => new ManagedZone.fromJson(data)); | 579 return _response.then((data) => new ManagedZone.fromJson(data)); |
| 561 } | 580 } |
| 562 | 581 |
| 563 /** | 582 /// Delete a previously created ManagedZone. |
| 564 * Delete a previously created ManagedZone. | 583 /// |
| 565 * | 584 /// Request parameters: |
| 566 * Request parameters: | 585 /// |
| 567 * | 586 /// [project] - Identifies the project addressed by this request. |
| 568 * [project] - Identifies the project addressed by this request. | 587 /// |
| 569 * | 588 /// [managedZone] - Identifies the managed zone addressed by this request. |
| 570 * [managedZone] - Identifies the managed zone addressed by this request. Can | 589 /// Can be the managed zone name or id. |
| 571 * be the managed zone name or id. | 590 /// |
| 572 * | 591 /// [clientOperationId] - For mutating operation requests only. An optional |
| 573 * [clientOperationId] - For mutating operation requests only. An optional | 592 /// identifier specified by the client. Must be unique for operation |
| 574 * identifier specified by the client. Must be unique for operation resources | 593 /// resources in the Operations collection. |
| 575 * in the Operations collection. | 594 /// |
| 576 * | 595 /// Completes with a [ManagedZonesDeleteResponse]. |
| 577 * Completes with a [ManagedZonesDeleteResponse]. | 596 /// |
| 578 * | 597 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 579 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 598 /// an error. |
| 580 * error. | 599 /// |
| 581 * | 600 /// If the used [http.Client] completes with an error when making a REST |
| 582 * If the used [http.Client] completes with an error when making a REST call, | 601 /// call, this method will complete with the same error. |
| 583 * this method will complete with the same error. | 602 async.Future<ManagedZonesDeleteResponse> delete( |
| 584 */ | 603 core.String project, core.String managedZone, |
| 585 async.Future<ManagedZonesDeleteResponse> delete(core.String project, core.Stri
ng managedZone, {core.String clientOperationId}) { | 604 {core.String clientOperationId}) { |
| 586 var _url = null; | 605 var _url = null; |
| 587 var _queryParams = new core.Map(); | 606 var _queryParams = new core.Map(); |
| 588 var _uploadMedia = null; | 607 var _uploadMedia = null; |
| 589 var _uploadOptions = null; | 608 var _uploadOptions = null; |
| 590 var _downloadOptions = commons.DownloadOptions.Metadata; | 609 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 591 var _body = null; | 610 var _body = null; |
| 592 | 611 |
| 593 if (project == null) { | 612 if (project == null) { |
| 594 throw new core.ArgumentError("Parameter project is required."); | 613 throw new core.ArgumentError("Parameter project is required."); |
| 595 } | 614 } |
| 596 if (managedZone == null) { | 615 if (managedZone == null) { |
| 597 throw new core.ArgumentError("Parameter managedZone is required."); | 616 throw new core.ArgumentError("Parameter managedZone is required."); |
| 598 } | 617 } |
| 599 if (clientOperationId != null) { | 618 if (clientOperationId != null) { |
| 600 _queryParams["clientOperationId"] = [clientOperationId]; | 619 _queryParams["clientOperationId"] = [clientOperationId]; |
| 601 } | 620 } |
| 602 | 621 |
| 603 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone'); | 622 _url = commons.Escaper.ecapeVariable('$project') + |
| 623 '/managedZones/' + |
| 624 commons.Escaper.ecapeVariable('$managedZone'); |
| 604 | 625 |
| 605 var _response = _requester.request(_url, | 626 var _response = _requester.request(_url, "DELETE", |
| 606 "DELETE", | 627 body: _body, |
| 607 body: _body, | 628 queryParams: _queryParams, |
| 608 queryParams: _queryParams, | 629 uploadOptions: _uploadOptions, |
| 609 uploadOptions: _uploadOptions, | 630 uploadMedia: _uploadMedia, |
| 610 uploadMedia: _uploadMedia, | 631 downloadOptions: _downloadOptions); |
| 611 downloadOptions: _downloadOptions); | 632 return _response |
| 612 return _response.then((data) => new ManagedZonesDeleteResponse.fromJson(data
)); | 633 .then((data) => new ManagedZonesDeleteResponse.fromJson(data)); |
| 613 } | 634 } |
| 614 | 635 |
| 615 /** | 636 /// Fetch the representation of an existing ManagedZone. |
| 616 * Fetch the representation of an existing ManagedZone. | 637 /// |
| 617 * | 638 /// Request parameters: |
| 618 * Request parameters: | 639 /// |
| 619 * | 640 /// [project] - Identifies the project addressed by this request. |
| 620 * [project] - Identifies the project addressed by this request. | 641 /// |
| 621 * | 642 /// [managedZone] - Identifies the managed zone addressed by this request. |
| 622 * [managedZone] - Identifies the managed zone addressed by this request. Can | 643 /// Can be the managed zone name or id. |
| 623 * be the managed zone name or id. | 644 /// |
| 624 * | 645 /// [clientOperationId] - For mutating operation requests only. An optional |
| 625 * [clientOperationId] - For mutating operation requests only. An optional | 646 /// identifier specified by the client. Must be unique for operation |
| 626 * identifier specified by the client. Must be unique for operation resources | 647 /// resources in the Operations collection. |
| 627 * in the Operations collection. | 648 /// |
| 628 * | 649 /// Completes with a [ManagedZone]. |
| 629 * Completes with a [ManagedZone]. | 650 /// |
| 630 * | 651 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 631 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 652 /// an error. |
| 632 * error. | 653 /// |
| 633 * | 654 /// If the used [http.Client] completes with an error when making a REST |
| 634 * If the used [http.Client] completes with an error when making a REST call, | 655 /// call, this method will complete with the same error. |
| 635 * this method will complete with the same error. | 656 async.Future<ManagedZone> get(core.String project, core.String managedZone, |
| 636 */ | 657 {core.String clientOperationId}) { |
| 637 async.Future<ManagedZone> get(core.String project, core.String managedZone, {c
ore.String clientOperationId}) { | |
| 638 var _url = null; | 658 var _url = null; |
| 639 var _queryParams = new core.Map(); | 659 var _queryParams = new core.Map(); |
| 640 var _uploadMedia = null; | 660 var _uploadMedia = null; |
| 641 var _uploadOptions = null; | 661 var _uploadOptions = null; |
| 642 var _downloadOptions = commons.DownloadOptions.Metadata; | 662 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 643 var _body = null; | 663 var _body = null; |
| 644 | 664 |
| 645 if (project == null) { | 665 if (project == null) { |
| 646 throw new core.ArgumentError("Parameter project is required."); | 666 throw new core.ArgumentError("Parameter project is required."); |
| 647 } | 667 } |
| 648 if (managedZone == null) { | 668 if (managedZone == null) { |
| 649 throw new core.ArgumentError("Parameter managedZone is required."); | 669 throw new core.ArgumentError("Parameter managedZone is required."); |
| 650 } | 670 } |
| 651 if (clientOperationId != null) { | 671 if (clientOperationId != null) { |
| 652 _queryParams["clientOperationId"] = [clientOperationId]; | 672 _queryParams["clientOperationId"] = [clientOperationId]; |
| 653 } | 673 } |
| 654 | 674 |
| 655 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone'); | 675 _url = commons.Escaper.ecapeVariable('$project') + |
| 676 '/managedZones/' + |
| 677 commons.Escaper.ecapeVariable('$managedZone'); |
| 656 | 678 |
| 657 var _response = _requester.request(_url, | 679 var _response = _requester.request(_url, "GET", |
| 658 "GET", | 680 body: _body, |
| 659 body: _body, | 681 queryParams: _queryParams, |
| 660 queryParams: _queryParams, | 682 uploadOptions: _uploadOptions, |
| 661 uploadOptions: _uploadOptions, | 683 uploadMedia: _uploadMedia, |
| 662 uploadMedia: _uploadMedia, | 684 downloadOptions: _downloadOptions); |
| 663 downloadOptions: _downloadOptions); | |
| 664 return _response.then((data) => new ManagedZone.fromJson(data)); | 685 return _response.then((data) => new ManagedZone.fromJson(data)); |
| 665 } | 686 } |
| 666 | 687 |
| 667 /** | 688 /// Enumerate ManagedZones that have been created but not yet deleted. |
| 668 * Enumerate ManagedZones that have been created but not yet deleted. | 689 /// |
| 669 * | 690 /// Request parameters: |
| 670 * Request parameters: | 691 /// |
| 671 * | 692 /// [project] - Identifies the project addressed by this request. |
| 672 * [project] - Identifies the project addressed by this request. | 693 /// |
| 673 * | 694 /// [dnsName] - Restricts the list to return only zones with this domain |
| 674 * [dnsName] - Restricts the list to return only zones with this domain name. | 695 /// name. |
| 675 * | 696 /// |
| 676 * [maxResults] - Optional. Maximum number of results to be returned. If | 697 /// [maxResults] - Optional. Maximum number of results to be returned. If |
| 677 * unspecified, the server will decide how many results to return. | 698 /// unspecified, the server will decide how many results to return. |
| 678 * | 699 /// |
| 679 * [pageToken] - Optional. A tag returned by a previous list request that was | 700 /// [pageToken] - Optional. A tag returned by a previous list request that |
| 680 * truncated. Use this parameter to continue a previous list request. | 701 /// was truncated. Use this parameter to continue a previous list request. |
| 681 * | 702 /// |
| 682 * Completes with a [ManagedZonesListResponse]. | 703 /// Completes with a [ManagedZonesListResponse]. |
| 683 * | 704 /// |
| 684 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 705 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 685 * error. | 706 /// an error. |
| 686 * | 707 /// |
| 687 * If the used [http.Client] completes with an error when making a REST call, | 708 /// If the used [http.Client] completes with an error when making a REST |
| 688 * this method will complete with the same error. | 709 /// call, this method will complete with the same error. |
| 689 */ | 710 async.Future<ManagedZonesListResponse> list(core.String project, |
| 690 async.Future<ManagedZonesListResponse> list(core.String project, {core.String
dnsName, core.int maxResults, core.String pageToken}) { | 711 {core.String dnsName, core.int maxResults, core.String pageToken}) { |
| 691 var _url = null; | 712 var _url = null; |
| 692 var _queryParams = new core.Map(); | 713 var _queryParams = new core.Map(); |
| 693 var _uploadMedia = null; | 714 var _uploadMedia = null; |
| 694 var _uploadOptions = null; | 715 var _uploadOptions = null; |
| 695 var _downloadOptions = commons.DownloadOptions.Metadata; | 716 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 696 var _body = null; | 717 var _body = null; |
| 697 | 718 |
| 698 if (project == null) { | 719 if (project == null) { |
| 699 throw new core.ArgumentError("Parameter project is required."); | 720 throw new core.ArgumentError("Parameter project is required."); |
| 700 } | 721 } |
| 701 if (dnsName != null) { | 722 if (dnsName != null) { |
| 702 _queryParams["dnsName"] = [dnsName]; | 723 _queryParams["dnsName"] = [dnsName]; |
| 703 } | 724 } |
| 704 if (maxResults != null) { | 725 if (maxResults != null) { |
| 705 _queryParams["maxResults"] = ["${maxResults}"]; | 726 _queryParams["maxResults"] = ["${maxResults}"]; |
| 706 } | 727 } |
| 707 if (pageToken != null) { | 728 if (pageToken != null) { |
| 708 _queryParams["pageToken"] = [pageToken]; | 729 _queryParams["pageToken"] = [pageToken]; |
| 709 } | 730 } |
| 710 | 731 |
| 711 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones'; | 732 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones'; |
| 712 | 733 |
| 713 var _response = _requester.request(_url, | 734 var _response = _requester.request(_url, "GET", |
| 714 "GET", | 735 body: _body, |
| 715 body: _body, | 736 queryParams: _queryParams, |
| 716 queryParams: _queryParams, | 737 uploadOptions: _uploadOptions, |
| 717 uploadOptions: _uploadOptions, | 738 uploadMedia: _uploadMedia, |
| 718 uploadMedia: _uploadMedia, | 739 downloadOptions: _downloadOptions); |
| 719 downloadOptions: _downloadOptions); | 740 return _response |
| 720 return _response.then((data) => new ManagedZonesListResponse.fromJson(data))
; | 741 .then((data) => new ManagedZonesListResponse.fromJson(data)); |
| 721 } | 742 } |
| 722 | 743 |
| 723 /** | 744 /// Update an existing ManagedZone. This method supports patch semantics. |
| 724 * Update an existing ManagedZone. This method supports patch semantics. | 745 /// |
| 725 * | 746 /// [request] - The metadata request object. |
| 726 * [request] - The metadata request object. | 747 /// |
| 727 * | 748 /// Request parameters: |
| 728 * Request parameters: | 749 /// |
| 729 * | 750 /// [project] - Identifies the project addressed by this request. |
| 730 * [project] - Identifies the project addressed by this request. | 751 /// |
| 731 * | 752 /// [managedZone] - Identifies the managed zone addressed by this request. |
| 732 * [managedZone] - Identifies the managed zone addressed by this request. Can | 753 /// Can be the managed zone name or id. |
| 733 * be the managed zone name or id. | 754 /// |
| 734 * | 755 /// [clientOperationId] - For mutating operation requests only. An optional |
| 735 * [clientOperationId] - For mutating operation requests only. An optional | 756 /// identifier specified by the client. Must be unique for operation |
| 736 * identifier specified by the client. Must be unique for operation resources | 757 /// resources in the Operations collection. |
| 737 * in the Operations collection. | 758 /// |
| 738 * | 759 /// Completes with a [Operation]. |
| 739 * Completes with a [Operation]. | 760 /// |
| 740 * | 761 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 741 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 762 /// an error. |
| 742 * error. | 763 /// |
| 743 * | 764 /// If the used [http.Client] completes with an error when making a REST |
| 744 * If the used [http.Client] completes with an error when making a REST call, | 765 /// call, this method will complete with the same error. |
| 745 * this method will complete with the same error. | 766 async.Future<Operation> patch( |
| 746 */ | 767 ManagedZone request, core.String project, core.String managedZone, |
| 747 async.Future<Operation> patch(ManagedZone request, core.String project, core.S
tring managedZone, {core.String clientOperationId}) { | 768 {core.String clientOperationId}) { |
| 748 var _url = null; | 769 var _url = null; |
| 749 var _queryParams = new core.Map(); | 770 var _queryParams = new core.Map(); |
| 750 var _uploadMedia = null; | 771 var _uploadMedia = null; |
| 751 var _uploadOptions = null; | 772 var _uploadOptions = null; |
| 752 var _downloadOptions = commons.DownloadOptions.Metadata; | 773 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 753 var _body = null; | 774 var _body = null; |
| 754 | 775 |
| 755 if (request != null) { | 776 if (request != null) { |
| 756 _body = convert.JSON.encode((request).toJson()); | 777 _body = convert.JSON.encode((request).toJson()); |
| 757 } | 778 } |
| 758 if (project == null) { | 779 if (project == null) { |
| 759 throw new core.ArgumentError("Parameter project is required."); | 780 throw new core.ArgumentError("Parameter project is required."); |
| 760 } | 781 } |
| 761 if (managedZone == null) { | 782 if (managedZone == null) { |
| 762 throw new core.ArgumentError("Parameter managedZone is required."); | 783 throw new core.ArgumentError("Parameter managedZone is required."); |
| 763 } | 784 } |
| 764 if (clientOperationId != null) { | 785 if (clientOperationId != null) { |
| 765 _queryParams["clientOperationId"] = [clientOperationId]; | 786 _queryParams["clientOperationId"] = [clientOperationId]; |
| 766 } | 787 } |
| 767 | 788 |
| 768 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone'); | 789 _url = commons.Escaper.ecapeVariable('$project') + |
| 790 '/managedZones/' + |
| 791 commons.Escaper.ecapeVariable('$managedZone'); |
| 769 | 792 |
| 770 var _response = _requester.request(_url, | 793 var _response = _requester.request(_url, "PATCH", |
| 771 "PATCH", | 794 body: _body, |
| 772 body: _body, | 795 queryParams: _queryParams, |
| 773 queryParams: _queryParams, | 796 uploadOptions: _uploadOptions, |
| 774 uploadOptions: _uploadOptions, | 797 uploadMedia: _uploadMedia, |
| 775 uploadMedia: _uploadMedia, | 798 downloadOptions: _downloadOptions); |
| 776 downloadOptions: _downloadOptions); | |
| 777 return _response.then((data) => new Operation.fromJson(data)); | 799 return _response.then((data) => new Operation.fromJson(data)); |
| 778 } | 800 } |
| 779 | 801 |
| 780 /** | 802 /// Update an existing ManagedZone. |
| 781 * Update an existing ManagedZone. | 803 /// |
| 782 * | 804 /// [request] - The metadata request object. |
| 783 * [request] - The metadata request object. | 805 /// |
| 784 * | 806 /// Request parameters: |
| 785 * Request parameters: | 807 /// |
| 786 * | 808 /// [project] - Identifies the project addressed by this request. |
| 787 * [project] - Identifies the project addressed by this request. | 809 /// |
| 788 * | 810 /// [managedZone] - Identifies the managed zone addressed by this request. |
| 789 * [managedZone] - Identifies the managed zone addressed by this request. Can | 811 /// Can be the managed zone name or id. |
| 790 * be the managed zone name or id. | 812 /// |
| 791 * | 813 /// [clientOperationId] - For mutating operation requests only. An optional |
| 792 * [clientOperationId] - For mutating operation requests only. An optional | 814 /// identifier specified by the client. Must be unique for operation |
| 793 * identifier specified by the client. Must be unique for operation resources | 815 /// resources in the Operations collection. |
| 794 * in the Operations collection. | 816 /// |
| 795 * | 817 /// Completes with a [Operation]. |
| 796 * Completes with a [Operation]. | 818 /// |
| 797 * | 819 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 798 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 820 /// an error. |
| 799 * error. | 821 /// |
| 800 * | 822 /// If the used [http.Client] completes with an error when making a REST |
| 801 * If the used [http.Client] completes with an error when making a REST call, | 823 /// call, this method will complete with the same error. |
| 802 * this method will complete with the same error. | 824 async.Future<Operation> update( |
| 803 */ | 825 ManagedZone request, core.String project, core.String managedZone, |
| 804 async.Future<Operation> update(ManagedZone request, core.String project, core.
String managedZone, {core.String clientOperationId}) { | 826 {core.String clientOperationId}) { |
| 805 var _url = null; | 827 var _url = null; |
| 806 var _queryParams = new core.Map(); | 828 var _queryParams = new core.Map(); |
| 807 var _uploadMedia = null; | 829 var _uploadMedia = null; |
| 808 var _uploadOptions = null; | 830 var _uploadOptions = null; |
| 809 var _downloadOptions = commons.DownloadOptions.Metadata; | 831 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 810 var _body = null; | 832 var _body = null; |
| 811 | 833 |
| 812 if (request != null) { | 834 if (request != null) { |
| 813 _body = convert.JSON.encode((request).toJson()); | 835 _body = convert.JSON.encode((request).toJson()); |
| 814 } | 836 } |
| 815 if (project == null) { | 837 if (project == null) { |
| 816 throw new core.ArgumentError("Parameter project is required."); | 838 throw new core.ArgumentError("Parameter project is required."); |
| 817 } | 839 } |
| 818 if (managedZone == null) { | 840 if (managedZone == null) { |
| 819 throw new core.ArgumentError("Parameter managedZone is required."); | 841 throw new core.ArgumentError("Parameter managedZone is required."); |
| 820 } | 842 } |
| 821 if (clientOperationId != null) { | 843 if (clientOperationId != null) { |
| 822 _queryParams["clientOperationId"] = [clientOperationId]; | 844 _queryParams["clientOperationId"] = [clientOperationId]; |
| 823 } | 845 } |
| 824 | 846 |
| 825 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone'); | 847 _url = commons.Escaper.ecapeVariable('$project') + |
| 848 '/managedZones/' + |
| 849 commons.Escaper.ecapeVariable('$managedZone'); |
| 826 | 850 |
| 827 var _response = _requester.request(_url, | 851 var _response = _requester.request(_url, "PUT", |
| 828 "PUT", | 852 body: _body, |
| 829 body: _body, | 853 queryParams: _queryParams, |
| 830 queryParams: _queryParams, | 854 uploadOptions: _uploadOptions, |
| 831 uploadOptions: _uploadOptions, | 855 uploadMedia: _uploadMedia, |
| 832 uploadMedia: _uploadMedia, | 856 downloadOptions: _downloadOptions); |
| 833 downloadOptions: _downloadOptions); | |
| 834 return _response.then((data) => new Operation.fromJson(data)); | 857 return _response.then((data) => new Operation.fromJson(data)); |
| 835 } | 858 } |
| 836 | |
| 837 } | 859 } |
| 838 | 860 |
| 839 | |
| 840 class ProjectsResourceApi { | 861 class ProjectsResourceApi { |
| 841 final commons.ApiRequester _requester; | 862 final commons.ApiRequester _requester; |
| 842 | 863 |
| 843 ProjectsResourceApi(commons.ApiRequester client) : | 864 ProjectsResourceApi(commons.ApiRequester client) : _requester = client; |
| 844 _requester = client; | |
| 845 | 865 |
| 846 /** | 866 /// Fetch the representation of an existing Project. |
| 847 * Fetch the representation of an existing Project. | 867 /// |
| 848 * | 868 /// Request parameters: |
| 849 * Request parameters: | 869 /// |
| 850 * | 870 /// [project] - Identifies the project addressed by this request. |
| 851 * [project] - Identifies the project addressed by this request. | 871 /// |
| 852 * | 872 /// [clientOperationId] - For mutating operation requests only. An optional |
| 853 * [clientOperationId] - For mutating operation requests only. An optional | 873 /// identifier specified by the client. Must be unique for operation |
| 854 * identifier specified by the client. Must be unique for operation resources | 874 /// resources in the Operations collection. |
| 855 * in the Operations collection. | 875 /// |
| 856 * | 876 /// Completes with a [Project]. |
| 857 * Completes with a [Project]. | 877 /// |
| 858 * | 878 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 859 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 879 /// an error. |
| 860 * error. | 880 /// |
| 861 * | 881 /// If the used [http.Client] completes with an error when making a REST |
| 862 * If the used [http.Client] completes with an error when making a REST call, | 882 /// call, this method will complete with the same error. |
| 863 * this method will complete with the same error. | 883 async.Future<Project> get(core.String project, |
| 864 */ | 884 {core.String clientOperationId}) { |
| 865 async.Future<Project> get(core.String project, {core.String clientOperationId}
) { | |
| 866 var _url = null; | 885 var _url = null; |
| 867 var _queryParams = new core.Map(); | 886 var _queryParams = new core.Map(); |
| 868 var _uploadMedia = null; | 887 var _uploadMedia = null; |
| 869 var _uploadOptions = null; | 888 var _uploadOptions = null; |
| 870 var _downloadOptions = commons.DownloadOptions.Metadata; | 889 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 871 var _body = null; | 890 var _body = null; |
| 872 | 891 |
| 873 if (project == null) { | 892 if (project == null) { |
| 874 throw new core.ArgumentError("Parameter project is required."); | 893 throw new core.ArgumentError("Parameter project is required."); |
| 875 } | 894 } |
| 876 if (clientOperationId != null) { | 895 if (clientOperationId != null) { |
| 877 _queryParams["clientOperationId"] = [clientOperationId]; | 896 _queryParams["clientOperationId"] = [clientOperationId]; |
| 878 } | 897 } |
| 879 | 898 |
| 880 _url = commons.Escaper.ecapeVariable('$project'); | 899 _url = commons.Escaper.ecapeVariable('$project'); |
| 881 | 900 |
| 882 var _response = _requester.request(_url, | 901 var _response = _requester.request(_url, "GET", |
| 883 "GET", | 902 body: _body, |
| 884 body: _body, | 903 queryParams: _queryParams, |
| 885 queryParams: _queryParams, | 904 uploadOptions: _uploadOptions, |
| 886 uploadOptions: _uploadOptions, | 905 uploadMedia: _uploadMedia, |
| 887 uploadMedia: _uploadMedia, | 906 downloadOptions: _downloadOptions); |
| 888 downloadOptions: _downloadOptions); | |
| 889 return _response.then((data) => new Project.fromJson(data)); | 907 return _response.then((data) => new Project.fromJson(data)); |
| 890 } | 908 } |
| 891 | |
| 892 } | 909 } |
| 893 | 910 |
| 894 | |
| 895 class ResourceRecordSetsResourceApi { | 911 class ResourceRecordSetsResourceApi { |
| 896 final commons.ApiRequester _requester; | 912 final commons.ApiRequester _requester; |
| 897 | 913 |
| 898 ResourceRecordSetsResourceApi(commons.ApiRequester client) : | 914 ResourceRecordSetsResourceApi(commons.ApiRequester client) |
| 899 _requester = client; | 915 : _requester = client; |
| 900 | 916 |
| 901 /** | 917 /// Enumerate ResourceRecordSets that have been created but not yet deleted. |
| 902 * Enumerate ResourceRecordSets that have been created but not yet deleted. | 918 /// |
| 903 * | 919 /// Request parameters: |
| 904 * Request parameters: | 920 /// |
| 905 * | 921 /// [project] - Identifies the project addressed by this request. |
| 906 * [project] - Identifies the project addressed by this request. | 922 /// |
| 907 * | 923 /// [managedZone] - Identifies the managed zone addressed by this request. |
| 908 * [managedZone] - Identifies the managed zone addressed by this request. Can | 924 /// Can be the managed zone name or id. |
| 909 * be the managed zone name or id. | 925 /// |
| 910 * | 926 /// [maxResults] - Optional. Maximum number of results to be returned. If |
| 911 * [maxResults] - Optional. Maximum number of results to be returned. If | 927 /// unspecified, the server will decide how many results to return. |
| 912 * unspecified, the server will decide how many results to return. | 928 /// |
| 913 * | 929 /// [name] - Restricts the list to return only records with this fully |
| 914 * [name] - Restricts the list to return only records with this fully | 930 /// qualified domain name. |
| 915 * qualified domain name. | 931 /// |
| 916 * | 932 /// [pageToken] - Optional. A tag returned by a previous list request that |
| 917 * [pageToken] - Optional. A tag returned by a previous list request that was | 933 /// was truncated. Use this parameter to continue a previous list request. |
| 918 * truncated. Use this parameter to continue a previous list request. | 934 /// |
| 919 * | 935 /// [type] - Restricts the list to return only records of this type. If |
| 920 * [type] - Restricts the list to return only records of this type. If | 936 /// present, the "name" parameter must also be present. |
| 921 * present, the "name" parameter must also be present. | 937 /// |
| 922 * | 938 /// Completes with a [ResourceRecordSetsListResponse]. |
| 923 * Completes with a [ResourceRecordSetsListResponse]. | 939 /// |
| 924 * | 940 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
| 925 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 941 /// an error. |
| 926 * error. | 942 /// |
| 927 * | 943 /// If the used [http.Client] completes with an error when making a REST |
| 928 * If the used [http.Client] completes with an error when making a REST call, | 944 /// call, this method will complete with the same error. |
| 929 * this method will complete with the same error. | 945 async.Future<ResourceRecordSetsListResponse> list( |
| 930 */ | 946 core.String project, core.String managedZone, |
| 931 async.Future<ResourceRecordSetsListResponse> list(core.String project, core.St
ring managedZone, {core.int maxResults, core.String name, core.String pageToken,
core.String type}) { | 947 {core.int maxResults, |
| 948 core.String name, |
| 949 core.String pageToken, |
| 950 core.String type}) { |
| 932 var _url = null; | 951 var _url = null; |
| 933 var _queryParams = new core.Map(); | 952 var _queryParams = new core.Map(); |
| 934 var _uploadMedia = null; | 953 var _uploadMedia = null; |
| 935 var _uploadOptions = null; | 954 var _uploadOptions = null; |
| 936 var _downloadOptions = commons.DownloadOptions.Metadata; | 955 var _downloadOptions = commons.DownloadOptions.Metadata; |
| 937 var _body = null; | 956 var _body = null; |
| 938 | 957 |
| 939 if (project == null) { | 958 if (project == null) { |
| 940 throw new core.ArgumentError("Parameter project is required."); | 959 throw new core.ArgumentError("Parameter project is required."); |
| 941 } | 960 } |
| 942 if (managedZone == null) { | 961 if (managedZone == null) { |
| 943 throw new core.ArgumentError("Parameter managedZone is required."); | 962 throw new core.ArgumentError("Parameter managedZone is required."); |
| 944 } | 963 } |
| 945 if (maxResults != null) { | 964 if (maxResults != null) { |
| 946 _queryParams["maxResults"] = ["${maxResults}"]; | 965 _queryParams["maxResults"] = ["${maxResults}"]; |
| 947 } | 966 } |
| 948 if (name != null) { | 967 if (name != null) { |
| 949 _queryParams["name"] = [name]; | 968 _queryParams["name"] = [name]; |
| 950 } | 969 } |
| 951 if (pageToken != null) { | 970 if (pageToken != null) { |
| 952 _queryParams["pageToken"] = [pageToken]; | 971 _queryParams["pageToken"] = [pageToken]; |
| 953 } | 972 } |
| 954 if (type != null) { | 973 if (type != null) { |
| 955 _queryParams["type"] = [type]; | 974 _queryParams["type"] = [type]; |
| 956 } | 975 } |
| 957 | 976 |
| 958 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/rrsets'; | 977 _url = commons.Escaper.ecapeVariable('$project') + |
| 978 '/managedZones/' + |
| 979 commons.Escaper.ecapeVariable('$managedZone') + |
| 980 '/rrsets'; |
| 959 | 981 |
| 960 var _response = _requester.request(_url, | 982 var _response = _requester.request(_url, "GET", |
| 961 "GET", | 983 body: _body, |
| 962 body: _body, | 984 queryParams: _queryParams, |
| 963 queryParams: _queryParams, | 985 uploadOptions: _uploadOptions, |
| 964 uploadOptions: _uploadOptions, | 986 uploadMedia: _uploadMedia, |
| 965 uploadMedia: _uploadMedia, | 987 downloadOptions: _downloadOptions); |
| 966 downloadOptions: _downloadOptions); | 988 return _response |
| 967 return _response.then((data) => new ResourceRecordSetsListResponse.fromJson(
data)); | 989 .then((data) => new ResourceRecordSetsListResponse.fromJson(data)); |
| 968 } | 990 } |
| 969 | |
| 970 } | 991 } |
| 971 | 992 |
| 993 /// An atomic update to a collection of ResourceRecordSets. |
| 994 class Change { |
| 995 /// Which ResourceRecordSets to add? |
| 996 core.List<ResourceRecordSet> additions; |
| 972 | 997 |
| 998 /// Which ResourceRecordSets to remove? Must match existing data exactly. |
| 999 core.List<ResourceRecordSet> deletions; |
| 973 | 1000 |
| 974 /** An atomic update to a collection of ResourceRecordSets. */ | 1001 /// Unique identifier for the resource; defined by the server (output only). |
| 975 class Change { | |
| 976 /** Which ResourceRecordSets to add? */ | |
| 977 core.List<ResourceRecordSet> additions; | |
| 978 /** Which ResourceRecordSets to remove? Must match existing data exactly. */ | |
| 979 core.List<ResourceRecordSet> deletions; | |
| 980 /** | |
| 981 * Unique identifier for the resource; defined by the server (output only). | |
| 982 */ | |
| 983 core.String id; | 1002 core.String id; |
| 984 /** If the DNS queries for the zone will be served. */ | 1003 |
| 1004 /// If the DNS queries for the zone will be served. |
| 985 core.bool isServing; | 1005 core.bool isServing; |
| 986 /** | 1006 |
| 987 * Identifies what kind of resource this is. Value: the fixed string | 1007 /// Identifies what kind of resource this is. Value: the fixed string |
| 988 * "dns#change". | 1008 /// "dns#change". |
| 989 */ | |
| 990 core.String kind; | 1009 core.String kind; |
| 991 /** | 1010 |
| 992 * The time that this operation was started by the server (output only). This | 1011 /// The time that this operation was started by the server (output only). |
| 993 * is in RFC3339 text format. | 1012 /// This is in RFC3339 text format. |
| 994 */ | |
| 995 core.String startTime; | 1013 core.String startTime; |
| 996 /** | 1014 |
| 997 * Status of the operation (output only). | 1015 /// Status of the operation (output only). |
| 998 * Possible string values are: | 1016 /// Possible string values are: |
| 999 * - "DONE" | 1017 /// - "DONE" |
| 1000 * - "PENDING" | 1018 /// - "PENDING" |
| 1001 */ | |
| 1002 core.String status; | 1019 core.String status; |
| 1003 | 1020 |
| 1004 Change(); | 1021 Change(); |
| 1005 | 1022 |
| 1006 Change.fromJson(core.Map _json) { | 1023 Change.fromJson(core.Map _json) { |
| 1007 if (_json.containsKey("additions")) { | 1024 if (_json.containsKey("additions")) { |
| 1008 additions = _json["additions"].map((value) => new ResourceRecordSet.fromJs
on(value)).toList(); | 1025 additions = _json["additions"] |
| 1026 .map((value) => new ResourceRecordSet.fromJson(value)) |
| 1027 .toList(); |
| 1009 } | 1028 } |
| 1010 if (_json.containsKey("deletions")) { | 1029 if (_json.containsKey("deletions")) { |
| 1011 deletions = _json["deletions"].map((value) => new ResourceRecordSet.fromJs
on(value)).toList(); | 1030 deletions = _json["deletions"] |
| 1031 .map((value) => new ResourceRecordSet.fromJson(value)) |
| 1032 .toList(); |
| 1012 } | 1033 } |
| 1013 if (_json.containsKey("id")) { | 1034 if (_json.containsKey("id")) { |
| 1014 id = _json["id"]; | 1035 id = _json["id"]; |
| 1015 } | 1036 } |
| 1016 if (_json.containsKey("isServing")) { | 1037 if (_json.containsKey("isServing")) { |
| 1017 isServing = _json["isServing"]; | 1038 isServing = _json["isServing"]; |
| 1018 } | 1039 } |
| 1019 if (_json.containsKey("kind")) { | 1040 if (_json.containsKey("kind")) { |
| 1020 kind = _json["kind"]; | 1041 kind = _json["kind"]; |
| 1021 } | 1042 } |
| 1022 if (_json.containsKey("startTime")) { | 1043 if (_json.containsKey("startTime")) { |
| 1023 startTime = _json["startTime"]; | 1044 startTime = _json["startTime"]; |
| 1024 } | 1045 } |
| 1025 if (_json.containsKey("status")) { | 1046 if (_json.containsKey("status")) { |
| 1026 status = _json["status"]; | 1047 status = _json["status"]; |
| 1027 } | 1048 } |
| 1028 } | 1049 } |
| 1029 | 1050 |
| 1030 core.Map<core.String, core.Object> toJson() { | 1051 core.Map<core.String, core.Object> toJson() { |
| 1031 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1052 final core.Map<core.String, core.Object> _json = |
| 1053 new core.Map<core.String, core.Object>(); |
| 1032 if (additions != null) { | 1054 if (additions != null) { |
| 1033 _json["additions"] = additions.map((value) => (value).toJson()).toList(); | 1055 _json["additions"] = additions.map((value) => (value).toJson()).toList(); |
| 1034 } | 1056 } |
| 1035 if (deletions != null) { | 1057 if (deletions != null) { |
| 1036 _json["deletions"] = deletions.map((value) => (value).toJson()).toList(); | 1058 _json["deletions"] = deletions.map((value) => (value).toJson()).toList(); |
| 1037 } | 1059 } |
| 1038 if (id != null) { | 1060 if (id != null) { |
| 1039 _json["id"] = id; | 1061 _json["id"] = id; |
| 1040 } | 1062 } |
| 1041 if (isServing != null) { | 1063 if (isServing != null) { |
| 1042 _json["isServing"] = isServing; | 1064 _json["isServing"] = isServing; |
| 1043 } | 1065 } |
| 1044 if (kind != null) { | 1066 if (kind != null) { |
| 1045 _json["kind"] = kind; | 1067 _json["kind"] = kind; |
| 1046 } | 1068 } |
| 1047 if (startTime != null) { | 1069 if (startTime != null) { |
| 1048 _json["startTime"] = startTime; | 1070 _json["startTime"] = startTime; |
| 1049 } | 1071 } |
| 1050 if (status != null) { | 1072 if (status != null) { |
| 1051 _json["status"] = status; | 1073 _json["status"] = status; |
| 1052 } | 1074 } |
| 1053 return _json; | 1075 return _json; |
| 1054 } | 1076 } |
| 1055 } | 1077 } |
| 1056 | 1078 |
| 1057 /** | 1079 /// The response to a request to enumerate Changes to a ResourceRecordSets |
| 1058 * The response to a request to enumerate Changes to a ResourceRecordSets | 1080 /// collection. |
| 1059 * collection. | |
| 1060 */ | |
| 1061 class ChangesListResponse { | 1081 class ChangesListResponse { |
| 1062 /** The requested changes. */ | 1082 /// The requested changes. |
| 1063 core.List<Change> changes; | 1083 core.List<Change> changes; |
| 1064 ResponseHeader header; | 1084 ResponseHeader header; |
| 1065 /** Type of resource. */ | 1085 |
| 1086 /// Type of resource. |
| 1066 core.String kind; | 1087 core.String kind; |
| 1067 /** | 1088 |
| 1068 * The presence of this field indicates that there exist more results | 1089 /// The presence of this field indicates that there exist more results |
| 1069 * following your last page of results in pagination order. To fetch them, | 1090 /// following your last page of results in pagination order. To fetch them, |
| 1070 * make another list request using this value as your pagination token. | 1091 /// make another list request using this value as your pagination token. |
| 1071 * | 1092 /// |
| 1072 * In this way you can retrieve the complete contents of even very large | 1093 /// In this way you can retrieve the complete contents of even very large |
| 1073 * collections one page at a time. However, if the contents of the collection | 1094 /// collections one page at a time. However, if the contents of the |
| 1074 * change between the first and last paginated list request, the set of all | 1095 /// collection change between the first and last paginated list request, the |
| 1075 * elements returned will be an inconsistent view of the collection. There is | 1096 /// set of all elements returned will be an inconsistent view of the |
| 1076 * no way to retrieve a "snapshot" of collections larger than the maximum page | 1097 /// collection. There is no way to retrieve a "snapshot" of collections |
| 1077 * size. | 1098 /// larger than the maximum page size. |
| 1078 */ | |
| 1079 core.String nextPageToken; | 1099 core.String nextPageToken; |
| 1080 | 1100 |
| 1081 ChangesListResponse(); | 1101 ChangesListResponse(); |
| 1082 | 1102 |
| 1083 ChangesListResponse.fromJson(core.Map _json) { | 1103 ChangesListResponse.fromJson(core.Map _json) { |
| 1084 if (_json.containsKey("changes")) { | 1104 if (_json.containsKey("changes")) { |
| 1085 changes = _json["changes"].map((value) => new Change.fromJson(value)).toLi
st(); | 1105 changes = |
| 1106 _json["changes"].map((value) => new Change.fromJson(value)).toList(); |
| 1086 } | 1107 } |
| 1087 if (_json.containsKey("header")) { | 1108 if (_json.containsKey("header")) { |
| 1088 header = new ResponseHeader.fromJson(_json["header"]); | 1109 header = new ResponseHeader.fromJson(_json["header"]); |
| 1089 } | 1110 } |
| 1090 if (_json.containsKey("kind")) { | 1111 if (_json.containsKey("kind")) { |
| 1091 kind = _json["kind"]; | 1112 kind = _json["kind"]; |
| 1092 } | 1113 } |
| 1093 if (_json.containsKey("nextPageToken")) { | 1114 if (_json.containsKey("nextPageToken")) { |
| 1094 nextPageToken = _json["nextPageToken"]; | 1115 nextPageToken = _json["nextPageToken"]; |
| 1095 } | 1116 } |
| 1096 } | 1117 } |
| 1097 | 1118 |
| 1098 core.Map<core.String, core.Object> toJson() { | 1119 core.Map<core.String, core.Object> toJson() { |
| 1099 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1120 final core.Map<core.String, core.Object> _json = |
| 1121 new core.Map<core.String, core.Object>(); |
| 1100 if (changes != null) { | 1122 if (changes != null) { |
| 1101 _json["changes"] = changes.map((value) => (value).toJson()).toList(); | 1123 _json["changes"] = changes.map((value) => (value).toJson()).toList(); |
| 1102 } | 1124 } |
| 1103 if (header != null) { | 1125 if (header != null) { |
| 1104 _json["header"] = (header).toJson(); | 1126 _json["header"] = (header).toJson(); |
| 1105 } | 1127 } |
| 1106 if (kind != null) { | 1128 if (kind != null) { |
| 1107 _json["kind"] = kind; | 1129 _json["kind"] = kind; |
| 1108 } | 1130 } |
| 1109 if (nextPageToken != null) { | 1131 if (nextPageToken != null) { |
| 1110 _json["nextPageToken"] = nextPageToken; | 1132 _json["nextPageToken"] = nextPageToken; |
| 1111 } | 1133 } |
| 1112 return _json; | 1134 return _json; |
| 1113 } | 1135 } |
| 1114 } | 1136 } |
| 1115 | 1137 |
| 1116 /** A DNSSEC key pair. */ | 1138 /// A DNSSEC key pair. |
| 1117 class DnsKey { | 1139 class DnsKey { |
| 1118 /** | 1140 /// String mnemonic specifying the DNSSEC algorithm of this key. Immutable |
| 1119 * String mnemonic specifying the DNSSEC algorithm of this key. Immutable | 1141 /// after creation time. |
| 1120 * after creation time. | 1142 /// Possible string values are: |
| 1121 * Possible string values are: | 1143 /// - "ECDSAP256SHA256" |
| 1122 * - "ECDSAP256SHA256" | 1144 /// - "ECDSAP384SHA384" |
| 1123 * - "ECDSAP384SHA384" | 1145 /// - "RSASHA1" |
| 1124 * - "RSASHA1" | 1146 /// - "RSASHA256" |
| 1125 * - "RSASHA256" | 1147 /// - "RSASHA512" |
| 1126 * - "RSASHA512" | |
| 1127 */ | |
| 1128 core.String algorithm; | 1148 core.String algorithm; |
| 1129 /** | 1149 |
| 1130 * The time that this resource was created in the control plane. This is in | 1150 /// The time that this resource was created in the control plane. This is in |
| 1131 * RFC3339 text format. Output only. | 1151 /// RFC3339 text format. Output only. |
| 1132 */ | |
| 1133 core.String creationTime; | 1152 core.String creationTime; |
| 1134 /** | 1153 |
| 1135 * A mutable string of at most 1024 characters associated with this resource | 1154 /// A mutable string of at most 1024 characters associated with this resource |
| 1136 * for the user's convenience. Has no effect on the resource's function. | 1155 /// for the user's convenience. Has no effect on the resource's function. |
| 1137 */ | |
| 1138 core.String description; | 1156 core.String description; |
| 1139 /** | 1157 |
| 1140 * Cryptographic hashes of the DNSKEY resource record associated with this | 1158 /// Cryptographic hashes of the DNSKEY resource record associated with this |
| 1141 * DnsKey. These digests are needed to construct a DS record that points at | 1159 /// DnsKey. These digests are needed to construct a DS record that points at |
| 1142 * this DNS key. Output only. | 1160 /// this DNS key. Output only. |
| 1143 */ | |
| 1144 core.List<DnsKeyDigest> digests; | 1161 core.List<DnsKeyDigest> digests; |
| 1145 /** | 1162 |
| 1146 * Unique identifier for the resource; defined by the server (output only). | 1163 /// Unique identifier for the resource; defined by the server (output only). |
| 1147 */ | |
| 1148 core.String id; | 1164 core.String id; |
| 1149 /** | 1165 |
| 1150 * Active keys will be used to sign subsequent changes to the ManagedZone. | 1166 /// Active keys will be used to sign subsequent changes to the ManagedZone. |
| 1151 * Inactive keys will still be present as DNSKEY Resource Records for the use | 1167 /// Inactive keys will still be present as DNSKEY Resource Records for the |
| 1152 * of resolvers validating existing signatures. | 1168 /// use of resolvers validating existing signatures. |
| 1153 */ | |
| 1154 core.bool isActive; | 1169 core.bool isActive; |
| 1155 /** Length of the key in bits. Specified at creation time then immutable. */ | 1170 |
| 1171 /// Length of the key in bits. Specified at creation time then immutable. |
| 1156 core.int keyLength; | 1172 core.int keyLength; |
| 1157 /** | 1173 |
| 1158 * The key tag is a non-cryptographic hash of the a DNSKEY resource record | 1174 /// The key tag is a non-cryptographic hash of the a DNSKEY resource record |
| 1159 * associated with this DnsKey. The key tag can be used to identify a DNSKEY | 1175 /// associated with this DnsKey. The key tag can be used to identify a DNSKEY |
| 1160 * more quickly (but it is not a unique identifier). In particular, the key | 1176 /// more quickly (but it is not a unique identifier). In particular, the key |
| 1161 * tag is used in a parent zone's DS record to point at the DNSKEY in this | 1177 /// tag is used in a parent zone's DS record to point at the DNSKEY in this |
| 1162 * child ManagedZone. The key tag is a number in the range [0, 65535] and the | 1178 /// child ManagedZone. The key tag is a number in the range [0, 65535] and |
| 1163 * algorithm to calculate it is specified in RFC4034 Appendix B. Output only. | 1179 /// the algorithm to calculate it is specified in RFC4034 Appendix B. Output |
| 1164 */ | 1180 /// only. |
| 1165 core.int keyTag; | 1181 core.int keyTag; |
| 1166 /** | 1182 |
| 1167 * Identifies what kind of resource this is. Value: the fixed string | 1183 /// Identifies what kind of resource this is. Value: the fixed string |
| 1168 * "dns#dnsKey". | 1184 /// "dns#dnsKey". |
| 1169 */ | |
| 1170 core.String kind; | 1185 core.String kind; |
| 1171 /** Base64 encoded public half of this key. Output only. */ | 1186 |
| 1187 /// Base64 encoded public half of this key. Output only. |
| 1172 core.String publicKey; | 1188 core.String publicKey; |
| 1173 /** | 1189 |
| 1174 * One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the | 1190 /// One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the |
| 1175 * Secure Entry Point flag set and, when active, will be used to sign only | 1191 /// Secure Entry Point flag set and, when active, will be used to sign only |
| 1176 * resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag | 1192 /// resource record sets of type DNSKEY. Otherwise, the Secure Entry Point |
| 1177 * will be cleared and this key will be used to sign only resource record sets | 1193 /// flag will be cleared and this key will be used to sign only resource |
| 1178 * of other types. Immutable after creation time. | 1194 /// record sets of other types. Immutable after creation time. |
| 1179 * Possible string values are: | 1195 /// Possible string values are: |
| 1180 * - "KEY_SIGNING" | 1196 /// - "KEY_SIGNING" |
| 1181 * - "ZONE_SIGNING" | 1197 /// - "ZONE_SIGNING" |
| 1182 */ | |
| 1183 core.String type; | 1198 core.String type; |
| 1184 | 1199 |
| 1185 DnsKey(); | 1200 DnsKey(); |
| 1186 | 1201 |
| 1187 DnsKey.fromJson(core.Map _json) { | 1202 DnsKey.fromJson(core.Map _json) { |
| 1188 if (_json.containsKey("algorithm")) { | 1203 if (_json.containsKey("algorithm")) { |
| 1189 algorithm = _json["algorithm"]; | 1204 algorithm = _json["algorithm"]; |
| 1190 } | 1205 } |
| 1191 if (_json.containsKey("creationTime")) { | 1206 if (_json.containsKey("creationTime")) { |
| 1192 creationTime = _json["creationTime"]; | 1207 creationTime = _json["creationTime"]; |
| 1193 } | 1208 } |
| 1194 if (_json.containsKey("description")) { | 1209 if (_json.containsKey("description")) { |
| 1195 description = _json["description"]; | 1210 description = _json["description"]; |
| 1196 } | 1211 } |
| 1197 if (_json.containsKey("digests")) { | 1212 if (_json.containsKey("digests")) { |
| 1198 digests = _json["digests"].map((value) => new DnsKeyDigest.fromJson(value)
).toList(); | 1213 digests = _json["digests"] |
| 1214 .map((value) => new DnsKeyDigest.fromJson(value)) |
| 1215 .toList(); |
| 1199 } | 1216 } |
| 1200 if (_json.containsKey("id")) { | 1217 if (_json.containsKey("id")) { |
| 1201 id = _json["id"]; | 1218 id = _json["id"]; |
| 1202 } | 1219 } |
| 1203 if (_json.containsKey("isActive")) { | 1220 if (_json.containsKey("isActive")) { |
| 1204 isActive = _json["isActive"]; | 1221 isActive = _json["isActive"]; |
| 1205 } | 1222 } |
| 1206 if (_json.containsKey("keyLength")) { | 1223 if (_json.containsKey("keyLength")) { |
| 1207 keyLength = _json["keyLength"]; | 1224 keyLength = _json["keyLength"]; |
| 1208 } | 1225 } |
| 1209 if (_json.containsKey("keyTag")) { | 1226 if (_json.containsKey("keyTag")) { |
| 1210 keyTag = _json["keyTag"]; | 1227 keyTag = _json["keyTag"]; |
| 1211 } | 1228 } |
| 1212 if (_json.containsKey("kind")) { | 1229 if (_json.containsKey("kind")) { |
| 1213 kind = _json["kind"]; | 1230 kind = _json["kind"]; |
| 1214 } | 1231 } |
| 1215 if (_json.containsKey("publicKey")) { | 1232 if (_json.containsKey("publicKey")) { |
| 1216 publicKey = _json["publicKey"]; | 1233 publicKey = _json["publicKey"]; |
| 1217 } | 1234 } |
| 1218 if (_json.containsKey("type")) { | 1235 if (_json.containsKey("type")) { |
| 1219 type = _json["type"]; | 1236 type = _json["type"]; |
| 1220 } | 1237 } |
| 1221 } | 1238 } |
| 1222 | 1239 |
| 1223 core.Map<core.String, core.Object> toJson() { | 1240 core.Map<core.String, core.Object> toJson() { |
| 1224 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1241 final core.Map<core.String, core.Object> _json = |
| 1242 new core.Map<core.String, core.Object>(); |
| 1225 if (algorithm != null) { | 1243 if (algorithm != null) { |
| 1226 _json["algorithm"] = algorithm; | 1244 _json["algorithm"] = algorithm; |
| 1227 } | 1245 } |
| 1228 if (creationTime != null) { | 1246 if (creationTime != null) { |
| 1229 _json["creationTime"] = creationTime; | 1247 _json["creationTime"] = creationTime; |
| 1230 } | 1248 } |
| 1231 if (description != null) { | 1249 if (description != null) { |
| 1232 _json["description"] = description; | 1250 _json["description"] = description; |
| 1233 } | 1251 } |
| 1234 if (digests != null) { | 1252 if (digests != null) { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 1253 _json["publicKey"] = publicKey; | 1271 _json["publicKey"] = publicKey; |
| 1254 } | 1272 } |
| 1255 if (type != null) { | 1273 if (type != null) { |
| 1256 _json["type"] = type; | 1274 _json["type"] = type; |
| 1257 } | 1275 } |
| 1258 return _json; | 1276 return _json; |
| 1259 } | 1277 } |
| 1260 } | 1278 } |
| 1261 | 1279 |
| 1262 class DnsKeyDigest { | 1280 class DnsKeyDigest { |
| 1263 /** | 1281 /// The base-16 encoded bytes of this digest. Suitable for use in a DS |
| 1264 * The base-16 encoded bytes of this digest. Suitable for use in a DS resource | 1282 /// resource record. |
| 1265 * record. | |
| 1266 */ | |
| 1267 core.String digest; | 1283 core.String digest; |
| 1268 /** | 1284 |
| 1269 * Specifies the algorithm used to calculate this digest. | 1285 /// Specifies the algorithm used to calculate this digest. |
| 1270 * Possible string values are: | 1286 /// Possible string values are: |
| 1271 * - "SHA1" | 1287 /// - "SHA1" |
| 1272 * - "SHA256" | 1288 /// - "SHA256" |
| 1273 * - "SHA384" | 1289 /// - "SHA384" |
| 1274 */ | |
| 1275 core.String type; | 1290 core.String type; |
| 1276 | 1291 |
| 1277 DnsKeyDigest(); | 1292 DnsKeyDigest(); |
| 1278 | 1293 |
| 1279 DnsKeyDigest.fromJson(core.Map _json) { | 1294 DnsKeyDigest.fromJson(core.Map _json) { |
| 1280 if (_json.containsKey("digest")) { | 1295 if (_json.containsKey("digest")) { |
| 1281 digest = _json["digest"]; | 1296 digest = _json["digest"]; |
| 1282 } | 1297 } |
| 1283 if (_json.containsKey("type")) { | 1298 if (_json.containsKey("type")) { |
| 1284 type = _json["type"]; | 1299 type = _json["type"]; |
| 1285 } | 1300 } |
| 1286 } | 1301 } |
| 1287 | 1302 |
| 1288 core.Map<core.String, core.Object> toJson() { | 1303 core.Map<core.String, core.Object> toJson() { |
| 1289 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1304 final core.Map<core.String, core.Object> _json = |
| 1305 new core.Map<core.String, core.Object>(); |
| 1290 if (digest != null) { | 1306 if (digest != null) { |
| 1291 _json["digest"] = digest; | 1307 _json["digest"] = digest; |
| 1292 } | 1308 } |
| 1293 if (type != null) { | 1309 if (type != null) { |
| 1294 _json["type"] = type; | 1310 _json["type"] = type; |
| 1295 } | 1311 } |
| 1296 return _json; | 1312 return _json; |
| 1297 } | 1313 } |
| 1298 } | 1314 } |
| 1299 | 1315 |
| 1300 /** | 1316 /// Parameters for DnsKey key generation. Used for generating initial keys for |
| 1301 * Parameters for DnsKey key generation. Used for generating initial keys for a | 1317 /// a new ManagedZone and as default when adding a new DnsKey. |
| 1302 * new ManagedZone and as default when adding a new DnsKey. | |
| 1303 */ | |
| 1304 class DnsKeySpec { | 1318 class DnsKeySpec { |
| 1305 /** | 1319 /// String mnemonic specifying the DNSSEC algorithm of this key. |
| 1306 * String mnemonic specifying the DNSSEC algorithm of this key. | 1320 /// Possible string values are: |
| 1307 * Possible string values are: | 1321 /// - "ECDSAP256SHA256" |
| 1308 * - "ECDSAP256SHA256" | 1322 /// - "ECDSAP384SHA384" |
| 1309 * - "ECDSAP384SHA384" | 1323 /// - "RSASHA1" |
| 1310 * - "RSASHA1" | 1324 /// - "RSASHA256" |
| 1311 * - "RSASHA256" | 1325 /// - "RSASHA512" |
| 1312 * - "RSASHA512" | |
| 1313 */ | |
| 1314 core.String algorithm; | 1326 core.String algorithm; |
| 1315 /** Length of the keys in bits. */ | 1327 |
| 1328 /// Length of the keys in bits. |
| 1316 core.int keyLength; | 1329 core.int keyLength; |
| 1317 /** | 1330 |
| 1318 * One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the | 1331 /// One of "KEY_SIGNING" or "ZONE_SIGNING". Keys of type KEY_SIGNING have the |
| 1319 * Secure Entry Point flag set and, when active, will be used to sign only | 1332 /// Secure Entry Point flag set and, when active, will be used to sign only |
| 1320 * resource record sets of type DNSKEY. Otherwise, the Secure Entry Point flag | 1333 /// resource record sets of type DNSKEY. Otherwise, the Secure Entry Point |
| 1321 * will be cleared and this key will be used to sign only resource record sets | 1334 /// flag will be cleared and this key will be used to sign only resource |
| 1322 * of other types. | 1335 /// record sets of other types. |
| 1323 * Possible string values are: | 1336 /// Possible string values are: |
| 1324 * - "KEY_SIGNING" | 1337 /// - "KEY_SIGNING" |
| 1325 * - "ZONE_SIGNING" | 1338 /// - "ZONE_SIGNING" |
| 1326 */ | |
| 1327 core.String keyType; | 1339 core.String keyType; |
| 1328 /** | 1340 |
| 1329 * Identifies what kind of resource this is. Value: the fixed string | 1341 /// Identifies what kind of resource this is. Value: the fixed string |
| 1330 * "dns#dnsKeySpec". | 1342 /// "dns#dnsKeySpec". |
| 1331 */ | |
| 1332 core.String kind; | 1343 core.String kind; |
| 1333 | 1344 |
| 1334 DnsKeySpec(); | 1345 DnsKeySpec(); |
| 1335 | 1346 |
| 1336 DnsKeySpec.fromJson(core.Map _json) { | 1347 DnsKeySpec.fromJson(core.Map _json) { |
| 1337 if (_json.containsKey("algorithm")) { | 1348 if (_json.containsKey("algorithm")) { |
| 1338 algorithm = _json["algorithm"]; | 1349 algorithm = _json["algorithm"]; |
| 1339 } | 1350 } |
| 1340 if (_json.containsKey("keyLength")) { | 1351 if (_json.containsKey("keyLength")) { |
| 1341 keyLength = _json["keyLength"]; | 1352 keyLength = _json["keyLength"]; |
| 1342 } | 1353 } |
| 1343 if (_json.containsKey("keyType")) { | 1354 if (_json.containsKey("keyType")) { |
| 1344 keyType = _json["keyType"]; | 1355 keyType = _json["keyType"]; |
| 1345 } | 1356 } |
| 1346 if (_json.containsKey("kind")) { | 1357 if (_json.containsKey("kind")) { |
| 1347 kind = _json["kind"]; | 1358 kind = _json["kind"]; |
| 1348 } | 1359 } |
| 1349 } | 1360 } |
| 1350 | 1361 |
| 1351 core.Map<core.String, core.Object> toJson() { | 1362 core.Map<core.String, core.Object> toJson() { |
| 1352 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1363 final core.Map<core.String, core.Object> _json = |
| 1364 new core.Map<core.String, core.Object>(); |
| 1353 if (algorithm != null) { | 1365 if (algorithm != null) { |
| 1354 _json["algorithm"] = algorithm; | 1366 _json["algorithm"] = algorithm; |
| 1355 } | 1367 } |
| 1356 if (keyLength != null) { | 1368 if (keyLength != null) { |
| 1357 _json["keyLength"] = keyLength; | 1369 _json["keyLength"] = keyLength; |
| 1358 } | 1370 } |
| 1359 if (keyType != null) { | 1371 if (keyType != null) { |
| 1360 _json["keyType"] = keyType; | 1372 _json["keyType"] = keyType; |
| 1361 } | 1373 } |
| 1362 if (kind != null) { | 1374 if (kind != null) { |
| 1363 _json["kind"] = kind; | 1375 _json["kind"] = kind; |
| 1364 } | 1376 } |
| 1365 return _json; | 1377 return _json; |
| 1366 } | 1378 } |
| 1367 } | 1379 } |
| 1368 | 1380 |
| 1369 /** The response to a request to enumerate DnsKeys in a ManagedZone. */ | 1381 /// The response to a request to enumerate DnsKeys in a ManagedZone. |
| 1370 class DnsKeysListResponse { | 1382 class DnsKeysListResponse { |
| 1371 /** The requested resources. */ | 1383 /// The requested resources. |
| 1372 core.List<DnsKey> dnsKeys; | 1384 core.List<DnsKey> dnsKeys; |
| 1373 ResponseHeader header; | 1385 ResponseHeader header; |
| 1374 /** Type of resource. */ | 1386 |
| 1387 /// Type of resource. |
| 1375 core.String kind; | 1388 core.String kind; |
| 1376 /** | 1389 |
| 1377 * The presence of this field indicates that there exist more results | 1390 /// The presence of this field indicates that there exist more results |
| 1378 * following your last page of results in pagination order. To fetch them, | 1391 /// following your last page of results in pagination order. To fetch them, |
| 1379 * make another list request using this value as your pagination token. | 1392 /// make another list request using this value as your pagination token. |
| 1380 * | 1393 /// |
| 1381 * In this way you can retrieve the complete contents of even very large | 1394 /// In this way you can retrieve the complete contents of even very large |
| 1382 * collections one page at a time. However, if the contents of the collection | 1395 /// collections one page at a time. However, if the contents of the |
| 1383 * change between the first and last paginated list request, the set of all | 1396 /// collection change between the first and last paginated list request, the |
| 1384 * elements returned will be an inconsistent view of the collection. There is | 1397 /// set of all elements returned will be an inconsistent view of the |
| 1385 * no way to retrieve a "snapshot" of collections larger than the maximum page | 1398 /// collection. There is no way to retrieve a "snapshot" of collections |
| 1386 * size. | 1399 /// larger than the maximum page size. |
| 1387 */ | |
| 1388 core.String nextPageToken; | 1400 core.String nextPageToken; |
| 1389 | 1401 |
| 1390 DnsKeysListResponse(); | 1402 DnsKeysListResponse(); |
| 1391 | 1403 |
| 1392 DnsKeysListResponse.fromJson(core.Map _json) { | 1404 DnsKeysListResponse.fromJson(core.Map _json) { |
| 1393 if (_json.containsKey("dnsKeys")) { | 1405 if (_json.containsKey("dnsKeys")) { |
| 1394 dnsKeys = _json["dnsKeys"].map((value) => new DnsKey.fromJson(value)).toLi
st(); | 1406 dnsKeys = |
| 1407 _json["dnsKeys"].map((value) => new DnsKey.fromJson(value)).toList(); |
| 1395 } | 1408 } |
| 1396 if (_json.containsKey("header")) { | 1409 if (_json.containsKey("header")) { |
| 1397 header = new ResponseHeader.fromJson(_json["header"]); | 1410 header = new ResponseHeader.fromJson(_json["header"]); |
| 1398 } | 1411 } |
| 1399 if (_json.containsKey("kind")) { | 1412 if (_json.containsKey("kind")) { |
| 1400 kind = _json["kind"]; | 1413 kind = _json["kind"]; |
| 1401 } | 1414 } |
| 1402 if (_json.containsKey("nextPageToken")) { | 1415 if (_json.containsKey("nextPageToken")) { |
| 1403 nextPageToken = _json["nextPageToken"]; | 1416 nextPageToken = _json["nextPageToken"]; |
| 1404 } | 1417 } |
| 1405 } | 1418 } |
| 1406 | 1419 |
| 1407 core.Map<core.String, core.Object> toJson() { | 1420 core.Map<core.String, core.Object> toJson() { |
| 1408 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1421 final core.Map<core.String, core.Object> _json = |
| 1422 new core.Map<core.String, core.Object>(); |
| 1409 if (dnsKeys != null) { | 1423 if (dnsKeys != null) { |
| 1410 _json["dnsKeys"] = dnsKeys.map((value) => (value).toJson()).toList(); | 1424 _json["dnsKeys"] = dnsKeys.map((value) => (value).toJson()).toList(); |
| 1411 } | 1425 } |
| 1412 if (header != null) { | 1426 if (header != null) { |
| 1413 _json["header"] = (header).toJson(); | 1427 _json["header"] = (header).toJson(); |
| 1414 } | 1428 } |
| 1415 if (kind != null) { | 1429 if (kind != null) { |
| 1416 _json["kind"] = kind; | 1430 _json["kind"] = kind; |
| 1417 } | 1431 } |
| 1418 if (nextPageToken != null) { | 1432 if (nextPageToken != null) { |
| 1419 _json["nextPageToken"] = nextPageToken; | 1433 _json["nextPageToken"] = nextPageToken; |
| 1420 } | 1434 } |
| 1421 return _json; | 1435 return _json; |
| 1422 } | 1436 } |
| 1423 } | 1437 } |
| 1424 | 1438 |
| 1425 /** | 1439 /// A zone is a subtree of the DNS namespace under one administrative |
| 1426 * A zone is a subtree of the DNS namespace under one administrative | 1440 /// responsibility. A ManagedZone is a resource that represents a DNS zone |
| 1427 * responsibility. A ManagedZone is a resource that represents a DNS zone hosted | 1441 /// hosted by the Cloud DNS service. |
| 1428 * by the Cloud DNS service. | |
| 1429 */ | |
| 1430 class ManagedZone { | 1442 class ManagedZone { |
| 1431 /** | 1443 /// The time that this resource was created on the server. This is in RFC3339 |
| 1432 * The time that this resource was created on the server. This is in RFC3339 | 1444 /// text format. Output only. |
| 1433 * text format. Output only. | |
| 1434 */ | |
| 1435 core.String creationTime; | 1445 core.String creationTime; |
| 1436 /** | 1446 |
| 1437 * A mutable string of at most 1024 characters associated with this resource | 1447 /// A mutable string of at most 1024 characters associated with this resource |
| 1438 * for the user's convenience. Has no effect on the managed zone's function. | 1448 /// for the user's convenience. Has no effect on the managed zone's function. |
| 1439 */ | |
| 1440 core.String description; | 1449 core.String description; |
| 1441 /** The DNS name of this managed zone, for instance "example.com.". */ | 1450 |
| 1451 /// The DNS name of this managed zone, for instance "example.com.". |
| 1442 core.String dnsName; | 1452 core.String dnsName; |
| 1443 /** DNSSEC configuration. */ | 1453 |
| 1454 /// DNSSEC configuration. |
| 1444 ManagedZoneDnsSecConfig dnssecConfig; | 1455 ManagedZoneDnsSecConfig dnssecConfig; |
| 1445 /** | 1456 |
| 1446 * Unique identifier for the resource; defined by the server (output only) | 1457 /// Unique identifier for the resource; defined by the server (output only) |
| 1447 */ | |
| 1448 core.String id; | 1458 core.String id; |
| 1449 /** | 1459 |
| 1450 * Identifies what kind of resource this is. Value: the fixed string | 1460 /// Identifies what kind of resource this is. Value: the fixed string |
| 1451 * "dns#managedZone". | 1461 /// "dns#managedZone". |
| 1452 */ | |
| 1453 core.String kind; | 1462 core.String kind; |
| 1454 /** | 1463 |
| 1455 * User assigned name for this resource. Must be unique within the project. | 1464 /// User assigned name for this resource. Must be unique within the project. |
| 1456 * The name must be 1-63 characters long, must begin with a letter, end with a | 1465 /// The name must be 1-63 characters long, must begin with a letter, end with |
| 1457 * letter or digit, and only contain lowercase letters, digits or dashes. | 1466 /// a letter or digit, and only contain lowercase letters, digits or dashes. |
| 1458 */ | |
| 1459 core.String name; | 1467 core.String name; |
| 1460 /** | 1468 |
| 1461 * Optionally specifies the NameServerSet for this ManagedZone. A | 1469 /// Optionally specifies the NameServerSet for this ManagedZone. A |
| 1462 * NameServerSet is a set of DNS name servers that all host the same | 1470 /// NameServerSet is a set of DNS name servers that all host the same |
| 1463 * ManagedZones. Most users will leave this field unset. | 1471 /// ManagedZones. Most users will leave this field unset. |
| 1464 */ | |
| 1465 core.String nameServerSet; | 1472 core.String nameServerSet; |
| 1466 /** | 1473 |
| 1467 * Delegate your managed_zone to these virtual name servers; defined by the | 1474 /// Delegate your managed_zone to these virtual name servers; defined by the |
| 1468 * server (output only) | 1475 /// server (output only) |
| 1469 */ | |
| 1470 core.List<core.String> nameServers; | 1476 core.List<core.String> nameServers; |
| 1471 | 1477 |
| 1472 ManagedZone(); | 1478 ManagedZone(); |
| 1473 | 1479 |
| 1474 ManagedZone.fromJson(core.Map _json) { | 1480 ManagedZone.fromJson(core.Map _json) { |
| 1475 if (_json.containsKey("creationTime")) { | 1481 if (_json.containsKey("creationTime")) { |
| 1476 creationTime = _json["creationTime"]; | 1482 creationTime = _json["creationTime"]; |
| 1477 } | 1483 } |
| 1478 if (_json.containsKey("description")) { | 1484 if (_json.containsKey("description")) { |
| 1479 description = _json["description"]; | 1485 description = _json["description"]; |
| 1480 } | 1486 } |
| 1481 if (_json.containsKey("dnsName")) { | 1487 if (_json.containsKey("dnsName")) { |
| 1482 dnsName = _json["dnsName"]; | 1488 dnsName = _json["dnsName"]; |
| 1483 } | 1489 } |
| 1484 if (_json.containsKey("dnssecConfig")) { | 1490 if (_json.containsKey("dnssecConfig")) { |
| 1485 dnssecConfig = new ManagedZoneDnsSecConfig.fromJson(_json["dnssecConfig"])
; | 1491 dnssecConfig = |
| 1492 new ManagedZoneDnsSecConfig.fromJson(_json["dnssecConfig"]); |
| 1486 } | 1493 } |
| 1487 if (_json.containsKey("id")) { | 1494 if (_json.containsKey("id")) { |
| 1488 id = _json["id"]; | 1495 id = _json["id"]; |
| 1489 } | 1496 } |
| 1490 if (_json.containsKey("kind")) { | 1497 if (_json.containsKey("kind")) { |
| 1491 kind = _json["kind"]; | 1498 kind = _json["kind"]; |
| 1492 } | 1499 } |
| 1493 if (_json.containsKey("name")) { | 1500 if (_json.containsKey("name")) { |
| 1494 name = _json["name"]; | 1501 name = _json["name"]; |
| 1495 } | 1502 } |
| 1496 if (_json.containsKey("nameServerSet")) { | 1503 if (_json.containsKey("nameServerSet")) { |
| 1497 nameServerSet = _json["nameServerSet"]; | 1504 nameServerSet = _json["nameServerSet"]; |
| 1498 } | 1505 } |
| 1499 if (_json.containsKey("nameServers")) { | 1506 if (_json.containsKey("nameServers")) { |
| 1500 nameServers = _json["nameServers"]; | 1507 nameServers = _json["nameServers"]; |
| 1501 } | 1508 } |
| 1502 } | 1509 } |
| 1503 | 1510 |
| 1504 core.Map<core.String, core.Object> toJson() { | 1511 core.Map<core.String, core.Object> toJson() { |
| 1505 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1512 final core.Map<core.String, core.Object> _json = |
| 1513 new core.Map<core.String, core.Object>(); |
| 1506 if (creationTime != null) { | 1514 if (creationTime != null) { |
| 1507 _json["creationTime"] = creationTime; | 1515 _json["creationTime"] = creationTime; |
| 1508 } | 1516 } |
| 1509 if (description != null) { | 1517 if (description != null) { |
| 1510 _json["description"] = description; | 1518 _json["description"] = description; |
| 1511 } | 1519 } |
| 1512 if (dnsName != null) { | 1520 if (dnsName != null) { |
| 1513 _json["dnsName"] = dnsName; | 1521 _json["dnsName"] = dnsName; |
| 1514 } | 1522 } |
| 1515 if (dnssecConfig != null) { | 1523 if (dnssecConfig != null) { |
| (...skipping 12 matching lines...) Expand all Loading... |
| 1528 _json["nameServerSet"] = nameServerSet; | 1536 _json["nameServerSet"] = nameServerSet; |
| 1529 } | 1537 } |
| 1530 if (nameServers != null) { | 1538 if (nameServers != null) { |
| 1531 _json["nameServers"] = nameServers; | 1539 _json["nameServers"] = nameServers; |
| 1532 } | 1540 } |
| 1533 return _json; | 1541 return _json; |
| 1534 } | 1542 } |
| 1535 } | 1543 } |
| 1536 | 1544 |
| 1537 class ManagedZoneDnsSecConfig { | 1545 class ManagedZoneDnsSecConfig { |
| 1538 /** | 1546 /// Specifies parameters that will be used for generating initial DnsKeys for |
| 1539 * Specifies parameters that will be used for generating initial DnsKeys for | 1547 /// this ManagedZone. Output only while state is not OFF. |
| 1540 * this ManagedZone. Output only while state is not OFF. | |
| 1541 */ | |
| 1542 core.List<DnsKeySpec> defaultKeySpecs; | 1548 core.List<DnsKeySpec> defaultKeySpecs; |
| 1543 /** | 1549 |
| 1544 * Identifies what kind of resource this is. Value: the fixed string | 1550 /// Identifies what kind of resource this is. Value: the fixed string |
| 1545 * "dns#managedZoneDnsSecConfig". | 1551 /// "dns#managedZoneDnsSecConfig". |
| 1546 */ | |
| 1547 core.String kind; | 1552 core.String kind; |
| 1548 /** | 1553 |
| 1549 * Specifies the mechanism used to provide authenticated denial-of-existence | 1554 /// Specifies the mechanism used to provide authenticated denial-of-existence |
| 1550 * responses. Output only while state is not OFF. | 1555 /// responses. Output only while state is not OFF. |
| 1551 * Possible string values are: | 1556 /// Possible string values are: |
| 1552 * - "NSEC" | 1557 /// - "NSEC" |
| 1553 * - "NSEC3" | 1558 /// - "NSEC3" |
| 1554 */ | |
| 1555 core.String nonExistence; | 1559 core.String nonExistence; |
| 1556 /** | 1560 |
| 1557 * Specifies whether DNSSEC is enabled, and what mode it is in. | 1561 /// Specifies whether DNSSEC is enabled, and what mode it is in. |
| 1558 * Possible string values are: | 1562 /// Possible string values are: |
| 1559 * - "OFF" | 1563 /// - "OFF" |
| 1560 * - "ON" | 1564 /// - "ON" |
| 1561 * - "TRANSFER" | 1565 /// - "TRANSFER" |
| 1562 */ | |
| 1563 core.String state; | 1566 core.String state; |
| 1564 | 1567 |
| 1565 ManagedZoneDnsSecConfig(); | 1568 ManagedZoneDnsSecConfig(); |
| 1566 | 1569 |
| 1567 ManagedZoneDnsSecConfig.fromJson(core.Map _json) { | 1570 ManagedZoneDnsSecConfig.fromJson(core.Map _json) { |
| 1568 if (_json.containsKey("defaultKeySpecs")) { | 1571 if (_json.containsKey("defaultKeySpecs")) { |
| 1569 defaultKeySpecs = _json["defaultKeySpecs"].map((value) => new DnsKeySpec.f
romJson(value)).toList(); | 1572 defaultKeySpecs = _json["defaultKeySpecs"] |
| 1573 .map((value) => new DnsKeySpec.fromJson(value)) |
| 1574 .toList(); |
| 1570 } | 1575 } |
| 1571 if (_json.containsKey("kind")) { | 1576 if (_json.containsKey("kind")) { |
| 1572 kind = _json["kind"]; | 1577 kind = _json["kind"]; |
| 1573 } | 1578 } |
| 1574 if (_json.containsKey("nonExistence")) { | 1579 if (_json.containsKey("nonExistence")) { |
| 1575 nonExistence = _json["nonExistence"]; | 1580 nonExistence = _json["nonExistence"]; |
| 1576 } | 1581 } |
| 1577 if (_json.containsKey("state")) { | 1582 if (_json.containsKey("state")) { |
| 1578 state = _json["state"]; | 1583 state = _json["state"]; |
| 1579 } | 1584 } |
| 1580 } | 1585 } |
| 1581 | 1586 |
| 1582 core.Map<core.String, core.Object> toJson() { | 1587 core.Map<core.String, core.Object> toJson() { |
| 1583 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1588 final core.Map<core.String, core.Object> _json = |
| 1589 new core.Map<core.String, core.Object>(); |
| 1584 if (defaultKeySpecs != null) { | 1590 if (defaultKeySpecs != null) { |
| 1585 _json["defaultKeySpecs"] = defaultKeySpecs.map((value) => (value).toJson()
).toList(); | 1591 _json["defaultKeySpecs"] = |
| 1592 defaultKeySpecs.map((value) => (value).toJson()).toList(); |
| 1586 } | 1593 } |
| 1587 if (kind != null) { | 1594 if (kind != null) { |
| 1588 _json["kind"] = kind; | 1595 _json["kind"] = kind; |
| 1589 } | 1596 } |
| 1590 if (nonExistence != null) { | 1597 if (nonExistence != null) { |
| 1591 _json["nonExistence"] = nonExistence; | 1598 _json["nonExistence"] = nonExistence; |
| 1592 } | 1599 } |
| 1593 if (state != null) { | 1600 if (state != null) { |
| 1594 _json["state"] = state; | 1601 _json["state"] = state; |
| 1595 } | 1602 } |
| 1596 return _json; | 1603 return _json; |
| 1597 } | 1604 } |
| 1598 } | 1605 } |
| 1599 | 1606 |
| 1600 class ManagedZoneOperationsListResponse { | 1607 class ManagedZoneOperationsListResponse { |
| 1601 ResponseHeader header; | 1608 ResponseHeader header; |
| 1602 /** Type of resource. */ | 1609 |
| 1610 /// Type of resource. |
| 1603 core.String kind; | 1611 core.String kind; |
| 1604 /** | 1612 |
| 1605 * The presence of this field indicates that there exist more results | 1613 /// The presence of this field indicates that there exist more results |
| 1606 * following your last page of results in pagination order. To fetch them, | 1614 /// following your last page of results in pagination order. To fetch them, |
| 1607 * make another list request using this value as your page token. | 1615 /// make another list request using this value as your page token. |
| 1608 * | 1616 /// |
| 1609 * In this way you can retrieve the complete contents of even very large | 1617 /// In this way you can retrieve the complete contents of even very large |
| 1610 * collections one page at a time. However, if the contents of the collection | 1618 /// collections one page at a time. However, if the contents of the |
| 1611 * change between the first and last paginated list request, the set of all | 1619 /// collection change between the first and last paginated list request, the |
| 1612 * elements returned will be an inconsistent view of the collection. There is | 1620 /// set of all elements returned will be an inconsistent view of the |
| 1613 * no way to retrieve a consistent snapshot of a collection larger than the | 1621 /// collection. There is no way to retrieve a consistent snapshot of a |
| 1614 * maximum page size. | 1622 /// collection larger than the maximum page size. |
| 1615 */ | |
| 1616 core.String nextPageToken; | 1623 core.String nextPageToken; |
| 1617 /** The operation resources. */ | 1624 |
| 1625 /// The operation resources. |
| 1618 core.List<Operation> operations; | 1626 core.List<Operation> operations; |
| 1619 | 1627 |
| 1620 ManagedZoneOperationsListResponse(); | 1628 ManagedZoneOperationsListResponse(); |
| 1621 | 1629 |
| 1622 ManagedZoneOperationsListResponse.fromJson(core.Map _json) { | 1630 ManagedZoneOperationsListResponse.fromJson(core.Map _json) { |
| 1623 if (_json.containsKey("header")) { | 1631 if (_json.containsKey("header")) { |
| 1624 header = new ResponseHeader.fromJson(_json["header"]); | 1632 header = new ResponseHeader.fromJson(_json["header"]); |
| 1625 } | 1633 } |
| 1626 if (_json.containsKey("kind")) { | 1634 if (_json.containsKey("kind")) { |
| 1627 kind = _json["kind"]; | 1635 kind = _json["kind"]; |
| 1628 } | 1636 } |
| 1629 if (_json.containsKey("nextPageToken")) { | 1637 if (_json.containsKey("nextPageToken")) { |
| 1630 nextPageToken = _json["nextPageToken"]; | 1638 nextPageToken = _json["nextPageToken"]; |
| 1631 } | 1639 } |
| 1632 if (_json.containsKey("operations")) { | 1640 if (_json.containsKey("operations")) { |
| 1633 operations = _json["operations"].map((value) => new Operation.fromJson(val
ue)).toList(); | 1641 operations = _json["operations"] |
| 1642 .map((value) => new Operation.fromJson(value)) |
| 1643 .toList(); |
| 1634 } | 1644 } |
| 1635 } | 1645 } |
| 1636 | 1646 |
| 1637 core.Map<core.String, core.Object> toJson() { | 1647 core.Map<core.String, core.Object> toJson() { |
| 1638 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1648 final core.Map<core.String, core.Object> _json = |
| 1649 new core.Map<core.String, core.Object>(); |
| 1639 if (header != null) { | 1650 if (header != null) { |
| 1640 _json["header"] = (header).toJson(); | 1651 _json["header"] = (header).toJson(); |
| 1641 } | 1652 } |
| 1642 if (kind != null) { | 1653 if (kind != null) { |
| 1643 _json["kind"] = kind; | 1654 _json["kind"] = kind; |
| 1644 } | 1655 } |
| 1645 if (nextPageToken != null) { | 1656 if (nextPageToken != null) { |
| 1646 _json["nextPageToken"] = nextPageToken; | 1657 _json["nextPageToken"] = nextPageToken; |
| 1647 } | 1658 } |
| 1648 if (operations != null) { | 1659 if (operations != null) { |
| 1649 _json["operations"] = operations.map((value) => (value).toJson()).toList()
; | 1660 _json["operations"] = |
| 1661 operations.map((value) => (value).toJson()).toList(); |
| 1650 } | 1662 } |
| 1651 return _json; | 1663 return _json; |
| 1652 } | 1664 } |
| 1653 } | 1665 } |
| 1654 | 1666 |
| 1655 class ManagedZonesDeleteResponse { | 1667 class ManagedZonesDeleteResponse { |
| 1656 ResponseHeader header; | 1668 ResponseHeader header; |
| 1657 | 1669 |
| 1658 ManagedZonesDeleteResponse(); | 1670 ManagedZonesDeleteResponse(); |
| 1659 | 1671 |
| 1660 ManagedZonesDeleteResponse.fromJson(core.Map _json) { | 1672 ManagedZonesDeleteResponse.fromJson(core.Map _json) { |
| 1661 if (_json.containsKey("header")) { | 1673 if (_json.containsKey("header")) { |
| 1662 header = new ResponseHeader.fromJson(_json["header"]); | 1674 header = new ResponseHeader.fromJson(_json["header"]); |
| 1663 } | 1675 } |
| 1664 } | 1676 } |
| 1665 | 1677 |
| 1666 core.Map<core.String, core.Object> toJson() { | 1678 core.Map<core.String, core.Object> toJson() { |
| 1667 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1679 final core.Map<core.String, core.Object> _json = |
| 1680 new core.Map<core.String, core.Object>(); |
| 1668 if (header != null) { | 1681 if (header != null) { |
| 1669 _json["header"] = (header).toJson(); | 1682 _json["header"] = (header).toJson(); |
| 1670 } | 1683 } |
| 1671 return _json; | 1684 return _json; |
| 1672 } | 1685 } |
| 1673 } | 1686 } |
| 1674 | 1687 |
| 1675 class ManagedZonesListResponse { | 1688 class ManagedZonesListResponse { |
| 1676 ResponseHeader header; | 1689 ResponseHeader header; |
| 1677 /** Type of resource. */ | 1690 |
| 1691 /// Type of resource. |
| 1678 core.String kind; | 1692 core.String kind; |
| 1679 /** The managed zone resources. */ | 1693 |
| 1694 /// The managed zone resources. |
| 1680 core.List<ManagedZone> managedZones; | 1695 core.List<ManagedZone> managedZones; |
| 1681 /** | 1696 |
| 1682 * The presence of this field indicates that there exist more results | 1697 /// The presence of this field indicates that there exist more results |
| 1683 * following your last page of results in pagination order. To fetch them, | 1698 /// following your last page of results in pagination order. To fetch them, |
| 1684 * make another list request using this value as your page token. | 1699 /// make another list request using this value as your page token. |
| 1685 * | 1700 /// |
| 1686 * In this way you can retrieve the complete contents of even very large | 1701 /// In this way you can retrieve the complete contents of even very large |
| 1687 * collections one page at a time. However, if the contents of the collection | 1702 /// collections one page at a time. However, if the contents of the |
| 1688 * change between the first and last paginated list request, the set of all | 1703 /// collection change between the first and last paginated list request, the |
| 1689 * elements returned will be an inconsistent view of the collection. There is | 1704 /// set of all elements returned will be an inconsistent view of the |
| 1690 * no way to retrieve a consistent snapshot of a collection larger than the | 1705 /// collection. There is no way to retrieve a consistent snapshot of a |
| 1691 * maximum page size. | 1706 /// collection larger than the maximum page size. |
| 1692 */ | |
| 1693 core.String nextPageToken; | 1707 core.String nextPageToken; |
| 1694 | 1708 |
| 1695 ManagedZonesListResponse(); | 1709 ManagedZonesListResponse(); |
| 1696 | 1710 |
| 1697 ManagedZonesListResponse.fromJson(core.Map _json) { | 1711 ManagedZonesListResponse.fromJson(core.Map _json) { |
| 1698 if (_json.containsKey("header")) { | 1712 if (_json.containsKey("header")) { |
| 1699 header = new ResponseHeader.fromJson(_json["header"]); | 1713 header = new ResponseHeader.fromJson(_json["header"]); |
| 1700 } | 1714 } |
| 1701 if (_json.containsKey("kind")) { | 1715 if (_json.containsKey("kind")) { |
| 1702 kind = _json["kind"]; | 1716 kind = _json["kind"]; |
| 1703 } | 1717 } |
| 1704 if (_json.containsKey("managedZones")) { | 1718 if (_json.containsKey("managedZones")) { |
| 1705 managedZones = _json["managedZones"].map((value) => new ManagedZone.fromJs
on(value)).toList(); | 1719 managedZones = _json["managedZones"] |
| 1720 .map((value) => new ManagedZone.fromJson(value)) |
| 1721 .toList(); |
| 1706 } | 1722 } |
| 1707 if (_json.containsKey("nextPageToken")) { | 1723 if (_json.containsKey("nextPageToken")) { |
| 1708 nextPageToken = _json["nextPageToken"]; | 1724 nextPageToken = _json["nextPageToken"]; |
| 1709 } | 1725 } |
| 1710 } | 1726 } |
| 1711 | 1727 |
| 1712 core.Map<core.String, core.Object> toJson() { | 1728 core.Map<core.String, core.Object> toJson() { |
| 1713 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1729 final core.Map<core.String, core.Object> _json = |
| 1730 new core.Map<core.String, core.Object>(); |
| 1714 if (header != null) { | 1731 if (header != null) { |
| 1715 _json["header"] = (header).toJson(); | 1732 _json["header"] = (header).toJson(); |
| 1716 } | 1733 } |
| 1717 if (kind != null) { | 1734 if (kind != null) { |
| 1718 _json["kind"] = kind; | 1735 _json["kind"] = kind; |
| 1719 } | 1736 } |
| 1720 if (managedZones != null) { | 1737 if (managedZones != null) { |
| 1721 _json["managedZones"] = managedZones.map((value) => (value).toJson()).toLi
st(); | 1738 _json["managedZones"] = |
| 1739 managedZones.map((value) => (value).toJson()).toList(); |
| 1722 } | 1740 } |
| 1723 if (nextPageToken != null) { | 1741 if (nextPageToken != null) { |
| 1724 _json["nextPageToken"] = nextPageToken; | 1742 _json["nextPageToken"] = nextPageToken; |
| 1725 } | 1743 } |
| 1726 return _json; | 1744 return _json; |
| 1727 } | 1745 } |
| 1728 } | 1746 } |
| 1729 | 1747 |
| 1730 /** | 1748 /// An operation represents a successful mutation performed on a Cloud DNS |
| 1731 * An operation represents a successful mutation performed on a Cloud DNS | 1749 /// resource. Operations provide: - An audit log of server resource mutations. |
| 1732 * resource. Operations provide: - An audit log of server resource mutations. - | 1750 /// - A way to recover/retry API calls in the case where the response is never |
| 1733 * A way to recover/retry API calls in the case where the response is never | 1751 /// received by the caller. Use the caller specified client_operation_id. |
| 1734 * received by the caller. Use the caller specified client_operation_id. | |
| 1735 */ | |
| 1736 class Operation { | 1752 class Operation { |
| 1737 /** Only populated if the operation targeted a DnsKey (output only). */ | 1753 /// Only populated if the operation targeted a DnsKey (output only). |
| 1738 OperationDnsKeyContext dnsKeyContext; | 1754 OperationDnsKeyContext dnsKeyContext; |
| 1739 /** | 1755 |
| 1740 * Unique identifier for the resource. This is the client_operation_id if the | 1756 /// Unique identifier for the resource. This is the client_operation_id if |
| 1741 * client specified it when the mutation was initiated, otherwise, it is | 1757 /// the client specified it when the mutation was initiated, otherwise, it is |
| 1742 * generated by the server. The name must be 1-63 characters long and match | 1758 /// generated by the server. The name must be 1-63 characters long and match |
| 1743 * the regular expression [-a-z0-9]? (output only) | 1759 /// the regular expression [-a-z0-9]? (output only) |
| 1744 */ | |
| 1745 core.String id; | 1760 core.String id; |
| 1746 /** | 1761 |
| 1747 * Identifies what kind of resource this is. Value: the fixed string | 1762 /// Identifies what kind of resource this is. Value: the fixed string |
| 1748 * "dns#operation". | 1763 /// "dns#operation". |
| 1749 */ | |
| 1750 core.String kind; | 1764 core.String kind; |
| 1751 /** | 1765 |
| 1752 * The time that this operation was started by the server. This is in RFC3339 | 1766 /// The time that this operation was started by the server. This is in |
| 1753 * text format (output only). | 1767 /// RFC3339 text format (output only). |
| 1754 */ | |
| 1755 core.String startTime; | 1768 core.String startTime; |
| 1756 /** | 1769 |
| 1757 * Status of the operation. Can be one of the following: "PENDING" or "DONE" | 1770 /// Status of the operation. Can be one of the following: "PENDING" or "DONE" |
| 1758 * (output only). | 1771 /// (output only). |
| 1759 * Possible string values are: | 1772 /// Possible string values are: |
| 1760 * - "DONE" | 1773 /// - "DONE" |
| 1761 * - "PENDING" | 1774 /// - "PENDING" |
| 1762 */ | |
| 1763 core.String status; | 1775 core.String status; |
| 1764 /** | 1776 |
| 1765 * Type of the operation. Operations include insert, update, and delete | 1777 /// Type of the operation. Operations include insert, update, and delete |
| 1766 * (output only). | 1778 /// (output only). |
| 1767 */ | |
| 1768 core.String type; | 1779 core.String type; |
| 1769 /** | 1780 |
| 1770 * User who requested the operation, for example: user@example.com. | 1781 /// User who requested the operation, for example: user@example.com. |
| 1771 * cloud-dns-system for operations automatically done by the system. (output | 1782 /// cloud-dns-system for operations automatically done by the system. (output |
| 1772 * only) | 1783 /// only) |
| 1773 */ | |
| 1774 core.String user; | 1784 core.String user; |
| 1775 /** Only populated if the operation targeted a ManagedZone (output only). */ | 1785 |
| 1786 /// Only populated if the operation targeted a ManagedZone (output only). |
| 1776 OperationManagedZoneContext zoneContext; | 1787 OperationManagedZoneContext zoneContext; |
| 1777 | 1788 |
| 1778 Operation(); | 1789 Operation(); |
| 1779 | 1790 |
| 1780 Operation.fromJson(core.Map _json) { | 1791 Operation.fromJson(core.Map _json) { |
| 1781 if (_json.containsKey("dnsKeyContext")) { | 1792 if (_json.containsKey("dnsKeyContext")) { |
| 1782 dnsKeyContext = new OperationDnsKeyContext.fromJson(_json["dnsKeyContext"]
); | 1793 dnsKeyContext = |
| 1794 new OperationDnsKeyContext.fromJson(_json["dnsKeyContext"]); |
| 1783 } | 1795 } |
| 1784 if (_json.containsKey("id")) { | 1796 if (_json.containsKey("id")) { |
| 1785 id = _json["id"]; | 1797 id = _json["id"]; |
| 1786 } | 1798 } |
| 1787 if (_json.containsKey("kind")) { | 1799 if (_json.containsKey("kind")) { |
| 1788 kind = _json["kind"]; | 1800 kind = _json["kind"]; |
| 1789 } | 1801 } |
| 1790 if (_json.containsKey("startTime")) { | 1802 if (_json.containsKey("startTime")) { |
| 1791 startTime = _json["startTime"]; | 1803 startTime = _json["startTime"]; |
| 1792 } | 1804 } |
| 1793 if (_json.containsKey("status")) { | 1805 if (_json.containsKey("status")) { |
| 1794 status = _json["status"]; | 1806 status = _json["status"]; |
| 1795 } | 1807 } |
| 1796 if (_json.containsKey("type")) { | 1808 if (_json.containsKey("type")) { |
| 1797 type = _json["type"]; | 1809 type = _json["type"]; |
| 1798 } | 1810 } |
| 1799 if (_json.containsKey("user")) { | 1811 if (_json.containsKey("user")) { |
| 1800 user = _json["user"]; | 1812 user = _json["user"]; |
| 1801 } | 1813 } |
| 1802 if (_json.containsKey("zoneContext")) { | 1814 if (_json.containsKey("zoneContext")) { |
| 1803 zoneContext = new OperationManagedZoneContext.fromJson(_json["zoneContext"
]); | 1815 zoneContext = |
| 1816 new OperationManagedZoneContext.fromJson(_json["zoneContext"]); |
| 1804 } | 1817 } |
| 1805 } | 1818 } |
| 1806 | 1819 |
| 1807 core.Map<core.String, core.Object> toJson() { | 1820 core.Map<core.String, core.Object> toJson() { |
| 1808 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1821 final core.Map<core.String, core.Object> _json = |
| 1822 new core.Map<core.String, core.Object>(); |
| 1809 if (dnsKeyContext != null) { | 1823 if (dnsKeyContext != null) { |
| 1810 _json["dnsKeyContext"] = (dnsKeyContext).toJson(); | 1824 _json["dnsKeyContext"] = (dnsKeyContext).toJson(); |
| 1811 } | 1825 } |
| 1812 if (id != null) { | 1826 if (id != null) { |
| 1813 _json["id"] = id; | 1827 _json["id"] = id; |
| 1814 } | 1828 } |
| 1815 if (kind != null) { | 1829 if (kind != null) { |
| 1816 _json["kind"] = kind; | 1830 _json["kind"] = kind; |
| 1817 } | 1831 } |
| 1818 if (startTime != null) { | 1832 if (startTime != null) { |
| 1819 _json["startTime"] = startTime; | 1833 _json["startTime"] = startTime; |
| 1820 } | 1834 } |
| 1821 if (status != null) { | 1835 if (status != null) { |
| 1822 _json["status"] = status; | 1836 _json["status"] = status; |
| 1823 } | 1837 } |
| 1824 if (type != null) { | 1838 if (type != null) { |
| 1825 _json["type"] = type; | 1839 _json["type"] = type; |
| 1826 } | 1840 } |
| 1827 if (user != null) { | 1841 if (user != null) { |
| 1828 _json["user"] = user; | 1842 _json["user"] = user; |
| 1829 } | 1843 } |
| 1830 if (zoneContext != null) { | 1844 if (zoneContext != null) { |
| 1831 _json["zoneContext"] = (zoneContext).toJson(); | 1845 _json["zoneContext"] = (zoneContext).toJson(); |
| 1832 } | 1846 } |
| 1833 return _json; | 1847 return _json; |
| 1834 } | 1848 } |
| 1835 } | 1849 } |
| 1836 | 1850 |
| 1837 class OperationDnsKeyContext { | 1851 class OperationDnsKeyContext { |
| 1838 /** The post-operation DnsKey resource. */ | 1852 /// The post-operation DnsKey resource. |
| 1839 DnsKey newValue; | 1853 DnsKey newValue; |
| 1840 /** The pre-operation DnsKey resource. */ | 1854 |
| 1855 /// The pre-operation DnsKey resource. |
| 1841 DnsKey oldValue; | 1856 DnsKey oldValue; |
| 1842 | 1857 |
| 1843 OperationDnsKeyContext(); | 1858 OperationDnsKeyContext(); |
| 1844 | 1859 |
| 1845 OperationDnsKeyContext.fromJson(core.Map _json) { | 1860 OperationDnsKeyContext.fromJson(core.Map _json) { |
| 1846 if (_json.containsKey("newValue")) { | 1861 if (_json.containsKey("newValue")) { |
| 1847 newValue = new DnsKey.fromJson(_json["newValue"]); | 1862 newValue = new DnsKey.fromJson(_json["newValue"]); |
| 1848 } | 1863 } |
| 1849 if (_json.containsKey("oldValue")) { | 1864 if (_json.containsKey("oldValue")) { |
| 1850 oldValue = new DnsKey.fromJson(_json["oldValue"]); | 1865 oldValue = new DnsKey.fromJson(_json["oldValue"]); |
| 1851 } | 1866 } |
| 1852 } | 1867 } |
| 1853 | 1868 |
| 1854 core.Map<core.String, core.Object> toJson() { | 1869 core.Map<core.String, core.Object> toJson() { |
| 1855 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1870 final core.Map<core.String, core.Object> _json = |
| 1871 new core.Map<core.String, core.Object>(); |
| 1856 if (newValue != null) { | 1872 if (newValue != null) { |
| 1857 _json["newValue"] = (newValue).toJson(); | 1873 _json["newValue"] = (newValue).toJson(); |
| 1858 } | 1874 } |
| 1859 if (oldValue != null) { | 1875 if (oldValue != null) { |
| 1860 _json["oldValue"] = (oldValue).toJson(); | 1876 _json["oldValue"] = (oldValue).toJson(); |
| 1861 } | 1877 } |
| 1862 return _json; | 1878 return _json; |
| 1863 } | 1879 } |
| 1864 } | 1880 } |
| 1865 | 1881 |
| 1866 class OperationManagedZoneContext { | 1882 class OperationManagedZoneContext { |
| 1867 /** The post-operation ManagedZone resource. */ | 1883 /// The post-operation ManagedZone resource. |
| 1868 ManagedZone newValue; | 1884 ManagedZone newValue; |
| 1869 /** The pre-operation ManagedZone resource. */ | 1885 |
| 1886 /// The pre-operation ManagedZone resource. |
| 1870 ManagedZone oldValue; | 1887 ManagedZone oldValue; |
| 1871 | 1888 |
| 1872 OperationManagedZoneContext(); | 1889 OperationManagedZoneContext(); |
| 1873 | 1890 |
| 1874 OperationManagedZoneContext.fromJson(core.Map _json) { | 1891 OperationManagedZoneContext.fromJson(core.Map _json) { |
| 1875 if (_json.containsKey("newValue")) { | 1892 if (_json.containsKey("newValue")) { |
| 1876 newValue = new ManagedZone.fromJson(_json["newValue"]); | 1893 newValue = new ManagedZone.fromJson(_json["newValue"]); |
| 1877 } | 1894 } |
| 1878 if (_json.containsKey("oldValue")) { | 1895 if (_json.containsKey("oldValue")) { |
| 1879 oldValue = new ManagedZone.fromJson(_json["oldValue"]); | 1896 oldValue = new ManagedZone.fromJson(_json["oldValue"]); |
| 1880 } | 1897 } |
| 1881 } | 1898 } |
| 1882 | 1899 |
| 1883 core.Map<core.String, core.Object> toJson() { | 1900 core.Map<core.String, core.Object> toJson() { |
| 1884 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1901 final core.Map<core.String, core.Object> _json = |
| 1902 new core.Map<core.String, core.Object>(); |
| 1885 if (newValue != null) { | 1903 if (newValue != null) { |
| 1886 _json["newValue"] = (newValue).toJson(); | 1904 _json["newValue"] = (newValue).toJson(); |
| 1887 } | 1905 } |
| 1888 if (oldValue != null) { | 1906 if (oldValue != null) { |
| 1889 _json["oldValue"] = (oldValue).toJson(); | 1907 _json["oldValue"] = (oldValue).toJson(); |
| 1890 } | 1908 } |
| 1891 return _json; | 1909 return _json; |
| 1892 } | 1910 } |
| 1893 } | 1911 } |
| 1894 | 1912 |
| 1895 /** | 1913 /// A project resource. The project is a top level container for resources |
| 1896 * A project resource. The project is a top level container for resources | 1914 /// including Cloud DNS ManagedZones. Projects can be created only in the APIs |
| 1897 * including Cloud DNS ManagedZones. Projects can be created only in the APIs | 1915 /// console. |
| 1898 * console. | |
| 1899 */ | |
| 1900 class Project { | 1916 class Project { |
| 1901 /** User assigned unique identifier for the resource (output only). */ | 1917 /// User assigned unique identifier for the resource (output only). |
| 1902 core.String id; | 1918 core.String id; |
| 1903 /** | 1919 |
| 1904 * Identifies what kind of resource this is. Value: the fixed string | 1920 /// Identifies what kind of resource this is. Value: the fixed string |
| 1905 * "dns#project". | 1921 /// "dns#project". |
| 1906 */ | |
| 1907 core.String kind; | 1922 core.String kind; |
| 1908 /** | 1923 |
| 1909 * Unique numeric identifier for the resource; defined by the server (output | 1924 /// Unique numeric identifier for the resource; defined by the server (output |
| 1910 * only). | 1925 /// only). |
| 1911 */ | |
| 1912 core.String number; | 1926 core.String number; |
| 1913 /** Quotas assigned to this project (output only). */ | 1927 |
| 1928 /// Quotas assigned to this project (output only). |
| 1914 Quota quota; | 1929 Quota quota; |
| 1915 | 1930 |
| 1916 Project(); | 1931 Project(); |
| 1917 | 1932 |
| 1918 Project.fromJson(core.Map _json) { | 1933 Project.fromJson(core.Map _json) { |
| 1919 if (_json.containsKey("id")) { | 1934 if (_json.containsKey("id")) { |
| 1920 id = _json["id"]; | 1935 id = _json["id"]; |
| 1921 } | 1936 } |
| 1922 if (_json.containsKey("kind")) { | 1937 if (_json.containsKey("kind")) { |
| 1923 kind = _json["kind"]; | 1938 kind = _json["kind"]; |
| 1924 } | 1939 } |
| 1925 if (_json.containsKey("number")) { | 1940 if (_json.containsKey("number")) { |
| 1926 number = _json["number"]; | 1941 number = _json["number"]; |
| 1927 } | 1942 } |
| 1928 if (_json.containsKey("quota")) { | 1943 if (_json.containsKey("quota")) { |
| 1929 quota = new Quota.fromJson(_json["quota"]); | 1944 quota = new Quota.fromJson(_json["quota"]); |
| 1930 } | 1945 } |
| 1931 } | 1946 } |
| 1932 | 1947 |
| 1933 core.Map<core.String, core.Object> toJson() { | 1948 core.Map<core.String, core.Object> toJson() { |
| 1934 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1949 final core.Map<core.String, core.Object> _json = |
| 1950 new core.Map<core.String, core.Object>(); |
| 1935 if (id != null) { | 1951 if (id != null) { |
| 1936 _json["id"] = id; | 1952 _json["id"] = id; |
| 1937 } | 1953 } |
| 1938 if (kind != null) { | 1954 if (kind != null) { |
| 1939 _json["kind"] = kind; | 1955 _json["kind"] = kind; |
| 1940 } | 1956 } |
| 1941 if (number != null) { | 1957 if (number != null) { |
| 1942 _json["number"] = number; | 1958 _json["number"] = number; |
| 1943 } | 1959 } |
| 1944 if (quota != null) { | 1960 if (quota != null) { |
| 1945 _json["quota"] = (quota).toJson(); | 1961 _json["quota"] = (quota).toJson(); |
| 1946 } | 1962 } |
| 1947 return _json; | 1963 return _json; |
| 1948 } | 1964 } |
| 1949 } | 1965 } |
| 1950 | 1966 |
| 1951 /** Limits associated with a Project. */ | 1967 /// Limits associated with a Project. |
| 1952 class Quota { | 1968 class Quota { |
| 1953 /** Maximum allowed number of DnsKeys per ManagedZone. */ | 1969 /// Maximum allowed number of DnsKeys per ManagedZone. |
| 1954 core.int dnsKeysPerManagedZone; | 1970 core.int dnsKeysPerManagedZone; |
| 1955 /** | 1971 |
| 1956 * Identifies what kind of resource this is. Value: the fixed string | 1972 /// Identifies what kind of resource this is. Value: the fixed string |
| 1957 * "dns#quota". | 1973 /// "dns#quota". |
| 1958 */ | |
| 1959 core.String kind; | 1974 core.String kind; |
| 1960 /** Maximum allowed number of managed zones in the project. */ | 1975 |
| 1976 /// Maximum allowed number of managed zones in the project. |
| 1961 core.int managedZones; | 1977 core.int managedZones; |
| 1962 /** Maximum allowed number of ResourceRecords per ResourceRecordSet. */ | 1978 |
| 1979 /// Maximum allowed number of ResourceRecords per ResourceRecordSet. |
| 1963 core.int resourceRecordsPerRrset; | 1980 core.int resourceRecordsPerRrset; |
| 1964 /** | 1981 |
| 1965 * Maximum allowed number of ResourceRecordSets to add per | 1982 /// Maximum allowed number of ResourceRecordSets to add per |
| 1966 * ChangesCreateRequest. | 1983 /// ChangesCreateRequest. |
| 1967 */ | |
| 1968 core.int rrsetAdditionsPerChange; | 1984 core.int rrsetAdditionsPerChange; |
| 1969 /** | 1985 |
| 1970 * Maximum allowed number of ResourceRecordSets to delete per | 1986 /// Maximum allowed number of ResourceRecordSets to delete per |
| 1971 * ChangesCreateRequest. | 1987 /// ChangesCreateRequest. |
| 1972 */ | |
| 1973 core.int rrsetDeletionsPerChange; | 1988 core.int rrsetDeletionsPerChange; |
| 1974 /** Maximum allowed number of ResourceRecordSets per zone in the project. */ | 1989 |
| 1990 /// Maximum allowed number of ResourceRecordSets per zone in the project. |
| 1975 core.int rrsetsPerManagedZone; | 1991 core.int rrsetsPerManagedZone; |
| 1976 /** | 1992 |
| 1977 * Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes. | 1993 /// Maximum allowed size for total rrdata in one ChangesCreateRequest in |
| 1978 */ | 1994 /// bytes. |
| 1979 core.int totalRrdataSizePerChange; | 1995 core.int totalRrdataSizePerChange; |
| 1980 /** DNSSEC algorithm and key length types that can be used for DnsKeys. */ | 1996 |
| 1997 /// DNSSEC algorithm and key length types that can be used for DnsKeys. |
| 1981 core.List<DnsKeySpec> whitelistedKeySpecs; | 1998 core.List<DnsKeySpec> whitelistedKeySpecs; |
| 1982 | 1999 |
| 1983 Quota(); | 2000 Quota(); |
| 1984 | 2001 |
| 1985 Quota.fromJson(core.Map _json) { | 2002 Quota.fromJson(core.Map _json) { |
| 1986 if (_json.containsKey("dnsKeysPerManagedZone")) { | 2003 if (_json.containsKey("dnsKeysPerManagedZone")) { |
| 1987 dnsKeysPerManagedZone = _json["dnsKeysPerManagedZone"]; | 2004 dnsKeysPerManagedZone = _json["dnsKeysPerManagedZone"]; |
| 1988 } | 2005 } |
| 1989 if (_json.containsKey("kind")) { | 2006 if (_json.containsKey("kind")) { |
| 1990 kind = _json["kind"]; | 2007 kind = _json["kind"]; |
| (...skipping 10 matching lines...) Expand all Loading... |
| 2001 if (_json.containsKey("rrsetDeletionsPerChange")) { | 2018 if (_json.containsKey("rrsetDeletionsPerChange")) { |
| 2002 rrsetDeletionsPerChange = _json["rrsetDeletionsPerChange"]; | 2019 rrsetDeletionsPerChange = _json["rrsetDeletionsPerChange"]; |
| 2003 } | 2020 } |
| 2004 if (_json.containsKey("rrsetsPerManagedZone")) { | 2021 if (_json.containsKey("rrsetsPerManagedZone")) { |
| 2005 rrsetsPerManagedZone = _json["rrsetsPerManagedZone"]; | 2022 rrsetsPerManagedZone = _json["rrsetsPerManagedZone"]; |
| 2006 } | 2023 } |
| 2007 if (_json.containsKey("totalRrdataSizePerChange")) { | 2024 if (_json.containsKey("totalRrdataSizePerChange")) { |
| 2008 totalRrdataSizePerChange = _json["totalRrdataSizePerChange"]; | 2025 totalRrdataSizePerChange = _json["totalRrdataSizePerChange"]; |
| 2009 } | 2026 } |
| 2010 if (_json.containsKey("whitelistedKeySpecs")) { | 2027 if (_json.containsKey("whitelistedKeySpecs")) { |
| 2011 whitelistedKeySpecs = _json["whitelistedKeySpecs"].map((value) => new DnsK
eySpec.fromJson(value)).toList(); | 2028 whitelistedKeySpecs = _json["whitelistedKeySpecs"] |
| 2029 .map((value) => new DnsKeySpec.fromJson(value)) |
| 2030 .toList(); |
| 2012 } | 2031 } |
| 2013 } | 2032 } |
| 2014 | 2033 |
| 2015 core.Map<core.String, core.Object> toJson() { | 2034 core.Map<core.String, core.Object> toJson() { |
| 2016 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2035 final core.Map<core.String, core.Object> _json = |
| 2036 new core.Map<core.String, core.Object>(); |
| 2017 if (dnsKeysPerManagedZone != null) { | 2037 if (dnsKeysPerManagedZone != null) { |
| 2018 _json["dnsKeysPerManagedZone"] = dnsKeysPerManagedZone; | 2038 _json["dnsKeysPerManagedZone"] = dnsKeysPerManagedZone; |
| 2019 } | 2039 } |
| 2020 if (kind != null) { | 2040 if (kind != null) { |
| 2021 _json["kind"] = kind; | 2041 _json["kind"] = kind; |
| 2022 } | 2042 } |
| 2023 if (managedZones != null) { | 2043 if (managedZones != null) { |
| 2024 _json["managedZones"] = managedZones; | 2044 _json["managedZones"] = managedZones; |
| 2025 } | 2045 } |
| 2026 if (resourceRecordsPerRrset != null) { | 2046 if (resourceRecordsPerRrset != null) { |
| 2027 _json["resourceRecordsPerRrset"] = resourceRecordsPerRrset; | 2047 _json["resourceRecordsPerRrset"] = resourceRecordsPerRrset; |
| 2028 } | 2048 } |
| 2029 if (rrsetAdditionsPerChange != null) { | 2049 if (rrsetAdditionsPerChange != null) { |
| 2030 _json["rrsetAdditionsPerChange"] = rrsetAdditionsPerChange; | 2050 _json["rrsetAdditionsPerChange"] = rrsetAdditionsPerChange; |
| 2031 } | 2051 } |
| 2032 if (rrsetDeletionsPerChange != null) { | 2052 if (rrsetDeletionsPerChange != null) { |
| 2033 _json["rrsetDeletionsPerChange"] = rrsetDeletionsPerChange; | 2053 _json["rrsetDeletionsPerChange"] = rrsetDeletionsPerChange; |
| 2034 } | 2054 } |
| 2035 if (rrsetsPerManagedZone != null) { | 2055 if (rrsetsPerManagedZone != null) { |
| 2036 _json["rrsetsPerManagedZone"] = rrsetsPerManagedZone; | 2056 _json["rrsetsPerManagedZone"] = rrsetsPerManagedZone; |
| 2037 } | 2057 } |
| 2038 if (totalRrdataSizePerChange != null) { | 2058 if (totalRrdataSizePerChange != null) { |
| 2039 _json["totalRrdataSizePerChange"] = totalRrdataSizePerChange; | 2059 _json["totalRrdataSizePerChange"] = totalRrdataSizePerChange; |
| 2040 } | 2060 } |
| 2041 if (whitelistedKeySpecs != null) { | 2061 if (whitelistedKeySpecs != null) { |
| 2042 _json["whitelistedKeySpecs"] = whitelistedKeySpecs.map((value) => (value).
toJson()).toList(); | 2062 _json["whitelistedKeySpecs"] = |
| 2063 whitelistedKeySpecs.map((value) => (value).toJson()).toList(); |
| 2043 } | 2064 } |
| 2044 return _json; | 2065 return _json; |
| 2045 } | 2066 } |
| 2046 } | 2067 } |
| 2047 | 2068 |
| 2048 /** A unit of data that will be returned by the DNS servers. */ | 2069 /// A unit of data that will be returned by the DNS servers. |
| 2049 class ResourceRecordSet { | 2070 class ResourceRecordSet { |
| 2050 /** | 2071 /// Identifies what kind of resource this is. Value: the fixed string |
| 2051 * Identifies what kind of resource this is. Value: the fixed string | 2072 /// "dns#resourceRecordSet". |
| 2052 * "dns#resourceRecordSet". | |
| 2053 */ | |
| 2054 core.String kind; | 2073 core.String kind; |
| 2055 /** For example, www.example.com. */ | 2074 |
| 2075 /// For example, www.example.com. |
| 2056 core.String name; | 2076 core.String name; |
| 2057 /** As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1). */ | 2077 |
| 2078 /// As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1). |
| 2058 core.List<core.String> rrdatas; | 2079 core.List<core.String> rrdatas; |
| 2059 /** As defined in RFC 4034 (section 3.2). */ | 2080 |
| 2081 /// As defined in RFC 4034 (section 3.2). |
| 2060 core.List<core.String> signatureRrdatas; | 2082 core.List<core.String> signatureRrdatas; |
| 2061 /** | 2083 |
| 2062 * Number of seconds that this ResourceRecordSet can be cached by resolvers. | 2084 /// Number of seconds that this ResourceRecordSet can be cached by resolvers. |
| 2063 */ | |
| 2064 core.int ttl; | 2085 core.int ttl; |
| 2065 /** | 2086 |
| 2066 * The identifier of a supported record type, for example, A, AAAA, MX, TXT, | 2087 /// The identifier of a supported record type, for example, A, AAAA, MX, TXT, |
| 2067 * and so on. | 2088 /// and so on. |
| 2068 */ | |
| 2069 core.String type; | 2089 core.String type; |
| 2070 | 2090 |
| 2071 ResourceRecordSet(); | 2091 ResourceRecordSet(); |
| 2072 | 2092 |
| 2073 ResourceRecordSet.fromJson(core.Map _json) { | 2093 ResourceRecordSet.fromJson(core.Map _json) { |
| 2074 if (_json.containsKey("kind")) { | 2094 if (_json.containsKey("kind")) { |
| 2075 kind = _json["kind"]; | 2095 kind = _json["kind"]; |
| 2076 } | 2096 } |
| 2077 if (_json.containsKey("name")) { | 2097 if (_json.containsKey("name")) { |
| 2078 name = _json["name"]; | 2098 name = _json["name"]; |
| 2079 } | 2099 } |
| 2080 if (_json.containsKey("rrdatas")) { | 2100 if (_json.containsKey("rrdatas")) { |
| 2081 rrdatas = _json["rrdatas"]; | 2101 rrdatas = _json["rrdatas"]; |
| 2082 } | 2102 } |
| 2083 if (_json.containsKey("signatureRrdatas")) { | 2103 if (_json.containsKey("signatureRrdatas")) { |
| 2084 signatureRrdatas = _json["signatureRrdatas"]; | 2104 signatureRrdatas = _json["signatureRrdatas"]; |
| 2085 } | 2105 } |
| 2086 if (_json.containsKey("ttl")) { | 2106 if (_json.containsKey("ttl")) { |
| 2087 ttl = _json["ttl"]; | 2107 ttl = _json["ttl"]; |
| 2088 } | 2108 } |
| 2089 if (_json.containsKey("type")) { | 2109 if (_json.containsKey("type")) { |
| 2090 type = _json["type"]; | 2110 type = _json["type"]; |
| 2091 } | 2111 } |
| 2092 } | 2112 } |
| 2093 | 2113 |
| 2094 core.Map<core.String, core.Object> toJson() { | 2114 core.Map<core.String, core.Object> toJson() { |
| 2095 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2115 final core.Map<core.String, core.Object> _json = |
| 2116 new core.Map<core.String, core.Object>(); |
| 2096 if (kind != null) { | 2117 if (kind != null) { |
| 2097 _json["kind"] = kind; | 2118 _json["kind"] = kind; |
| 2098 } | 2119 } |
| 2099 if (name != null) { | 2120 if (name != null) { |
| 2100 _json["name"] = name; | 2121 _json["name"] = name; |
| 2101 } | 2122 } |
| 2102 if (rrdatas != null) { | 2123 if (rrdatas != null) { |
| 2103 _json["rrdatas"] = rrdatas; | 2124 _json["rrdatas"] = rrdatas; |
| 2104 } | 2125 } |
| 2105 if (signatureRrdatas != null) { | 2126 if (signatureRrdatas != null) { |
| 2106 _json["signatureRrdatas"] = signatureRrdatas; | 2127 _json["signatureRrdatas"] = signatureRrdatas; |
| 2107 } | 2128 } |
| 2108 if (ttl != null) { | 2129 if (ttl != null) { |
| 2109 _json["ttl"] = ttl; | 2130 _json["ttl"] = ttl; |
| 2110 } | 2131 } |
| 2111 if (type != null) { | 2132 if (type != null) { |
| 2112 _json["type"] = type; | 2133 _json["type"] = type; |
| 2113 } | 2134 } |
| 2114 return _json; | 2135 return _json; |
| 2115 } | 2136 } |
| 2116 } | 2137 } |
| 2117 | 2138 |
| 2118 class ResourceRecordSetsListResponse { | 2139 class ResourceRecordSetsListResponse { |
| 2119 ResponseHeader header; | 2140 ResponseHeader header; |
| 2120 /** Type of resource. */ | 2141 |
| 2142 /// Type of resource. |
| 2121 core.String kind; | 2143 core.String kind; |
| 2122 /** | 2144 |
| 2123 * The presence of this field indicates that there exist more results | 2145 /// The presence of this field indicates that there exist more results |
| 2124 * following your last page of results in pagination order. To fetch them, | 2146 /// following your last page of results in pagination order. To fetch them, |
| 2125 * make another list request using this value as your pagination token. | 2147 /// make another list request using this value as your pagination token. |
| 2126 * | 2148 /// |
| 2127 * In this way you can retrieve the complete contents of even very large | 2149 /// In this way you can retrieve the complete contents of even very large |
| 2128 * collections one page at a time. However, if the contents of the collection | 2150 /// collections one page at a time. However, if the contents of the |
| 2129 * change between the first and last paginated list request, the set of all | 2151 /// collection change between the first and last paginated list request, the |
| 2130 * elements returned will be an inconsistent view of the collection. There is | 2152 /// set of all elements returned will be an inconsistent view of the |
| 2131 * no way to retrieve a consistent snapshot of a collection larger than the | 2153 /// collection. There is no way to retrieve a consistent snapshot of a |
| 2132 * maximum page size. | 2154 /// collection larger than the maximum page size. |
| 2133 */ | |
| 2134 core.String nextPageToken; | 2155 core.String nextPageToken; |
| 2135 /** The resource record set resources. */ | 2156 |
| 2157 /// The resource record set resources. |
| 2136 core.List<ResourceRecordSet> rrsets; | 2158 core.List<ResourceRecordSet> rrsets; |
| 2137 | 2159 |
| 2138 ResourceRecordSetsListResponse(); | 2160 ResourceRecordSetsListResponse(); |
| 2139 | 2161 |
| 2140 ResourceRecordSetsListResponse.fromJson(core.Map _json) { | 2162 ResourceRecordSetsListResponse.fromJson(core.Map _json) { |
| 2141 if (_json.containsKey("header")) { | 2163 if (_json.containsKey("header")) { |
| 2142 header = new ResponseHeader.fromJson(_json["header"]); | 2164 header = new ResponseHeader.fromJson(_json["header"]); |
| 2143 } | 2165 } |
| 2144 if (_json.containsKey("kind")) { | 2166 if (_json.containsKey("kind")) { |
| 2145 kind = _json["kind"]; | 2167 kind = _json["kind"]; |
| 2146 } | 2168 } |
| 2147 if (_json.containsKey("nextPageToken")) { | 2169 if (_json.containsKey("nextPageToken")) { |
| 2148 nextPageToken = _json["nextPageToken"]; | 2170 nextPageToken = _json["nextPageToken"]; |
| 2149 } | 2171 } |
| 2150 if (_json.containsKey("rrsets")) { | 2172 if (_json.containsKey("rrsets")) { |
| 2151 rrsets = _json["rrsets"].map((value) => new ResourceRecordSet.fromJson(val
ue)).toList(); | 2173 rrsets = _json["rrsets"] |
| 2174 .map((value) => new ResourceRecordSet.fromJson(value)) |
| 2175 .toList(); |
| 2152 } | 2176 } |
| 2153 } | 2177 } |
| 2154 | 2178 |
| 2155 core.Map<core.String, core.Object> toJson() { | 2179 core.Map<core.String, core.Object> toJson() { |
| 2156 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2180 final core.Map<core.String, core.Object> _json = |
| 2181 new core.Map<core.String, core.Object>(); |
| 2157 if (header != null) { | 2182 if (header != null) { |
| 2158 _json["header"] = (header).toJson(); | 2183 _json["header"] = (header).toJson(); |
| 2159 } | 2184 } |
| 2160 if (kind != null) { | 2185 if (kind != null) { |
| 2161 _json["kind"] = kind; | 2186 _json["kind"] = kind; |
| 2162 } | 2187 } |
| 2163 if (nextPageToken != null) { | 2188 if (nextPageToken != null) { |
| 2164 _json["nextPageToken"] = nextPageToken; | 2189 _json["nextPageToken"] = nextPageToken; |
| 2165 } | 2190 } |
| 2166 if (rrsets != null) { | 2191 if (rrsets != null) { |
| 2167 _json["rrsets"] = rrsets.map((value) => (value).toJson()).toList(); | 2192 _json["rrsets"] = rrsets.map((value) => (value).toJson()).toList(); |
| 2168 } | 2193 } |
| 2169 return _json; | 2194 return _json; |
| 2170 } | 2195 } |
| 2171 } | 2196 } |
| 2172 | 2197 |
| 2173 /** Elements common to every response. */ | 2198 /// Elements common to every response. |
| 2174 class ResponseHeader { | 2199 class ResponseHeader { |
| 2175 /** | 2200 /// For mutating operation requests that completed successfully. This is the |
| 2176 * For mutating operation requests that completed successfully. This is the | 2201 /// client_operation_id if the client specified it, otherwise it is generated |
| 2177 * client_operation_id if the client specified it, otherwise it is generated | 2202 /// by the server (output only). |
| 2178 * by the server (output only). | |
| 2179 */ | |
| 2180 core.String operationId; | 2203 core.String operationId; |
| 2181 | 2204 |
| 2182 ResponseHeader(); | 2205 ResponseHeader(); |
| 2183 | 2206 |
| 2184 ResponseHeader.fromJson(core.Map _json) { | 2207 ResponseHeader.fromJson(core.Map _json) { |
| 2185 if (_json.containsKey("operationId")) { | 2208 if (_json.containsKey("operationId")) { |
| 2186 operationId = _json["operationId"]; | 2209 operationId = _json["operationId"]; |
| 2187 } | 2210 } |
| 2188 } | 2211 } |
| 2189 | 2212 |
| 2190 core.Map<core.String, core.Object> toJson() { | 2213 core.Map<core.String, core.Object> toJson() { |
| 2191 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 2214 final core.Map<core.String, core.Object> _json = |
| 2215 new core.Map<core.String, core.Object>(); |
| 2192 if (operationId != null) { | 2216 if (operationId != null) { |
| 2193 _json["operationId"] = operationId; | 2217 _json["operationId"] = operationId; |
| 2194 } | 2218 } |
| 2195 return _json; | 2219 return _json; |
| 2196 } | 2220 } |
| 2197 } | 2221 } |
| OLD | NEW |