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.dns.v1; | 3 library googleapis.dns.v1; |
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/v1'; | 15 const core.String USER_AGENT = 'dart-api-client dns/v1'; |
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 ManagedZonesResourceApi get managedZones => new ManagedZonesResourceApi(_reque
ster); | 38 ManagedZonesResourceApi get managedZones => |
| 39 new ManagedZonesResourceApi(_requester); |
36 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); | 40 ProjectsResourceApi get projects => new ProjectsResourceApi(_requester); |
37 ResourceRecordSetsResourceApi get resourceRecordSets => new ResourceRecordSets
ResourceApi(_requester); | 41 ResourceRecordSetsResourceApi get resourceRecordSets => |
| 42 new ResourceRecordSetsResourceApi(_requester); |
38 | 43 |
39 DnsApi(http.Client client, {core.String rootUrl: "https://www.googleapis.com/"
, core.String servicePath: "dns/v1/projects/"}) : | 44 DnsApi(http.Client client, |
40 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A
GENT); | 45 {core.String rootUrl: "https://www.googleapis.com/", |
| 46 core.String servicePath: "dns/v1/projects/"}) |
| 47 : _requester = |
| 48 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT); |
41 } | 49 } |
42 | 50 |
43 | |
44 class ChangesResourceApi { | 51 class ChangesResourceApi { |
45 final commons.ApiRequester _requester; | 52 final commons.ApiRequester _requester; |
46 | 53 |
47 ChangesResourceApi(commons.ApiRequester client) : | 54 ChangesResourceApi(commons.ApiRequester client) : _requester = client; |
48 _requester = client; | |
49 | 55 |
50 /** | 56 /// Atomically update the ResourceRecordSet collection. |
51 * Atomically update the ResourceRecordSet collection. | 57 /// |
52 * | 58 /// [request] - The metadata request object. |
53 * [request] - The metadata request object. | 59 /// |
54 * | 60 /// Request parameters: |
55 * Request parameters: | 61 /// |
56 * | 62 /// [project] - Identifies the project addressed by this request. |
57 * [project] - Identifies the project addressed by this request. | 63 /// |
58 * | 64 /// [managedZone] - Identifies the managed zone addressed by this request. |
59 * [managedZone] - Identifies the managed zone addressed by this request. Can | 65 /// Can be the managed zone name or id. |
60 * be the managed zone name or id. | 66 /// |
61 * | 67 /// Completes with a [Change]. |
62 * Completes with a [Change]. | 68 /// |
63 * | 69 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
64 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 70 /// an error. |
65 * error. | 71 /// |
66 * | 72 /// If the used [http.Client] completes with an error when making a REST |
67 * If the used [http.Client] completes with an error when making a REST call, | 73 /// call, this method will complete with the same error. |
68 * this method will complete with the same error. | 74 async.Future<Change> create( |
69 */ | 75 Change request, core.String project, core.String managedZone) { |
70 async.Future<Change> create(Change request, core.String project, core.String m
anagedZone) { | |
71 var _url = null; | 76 var _url = null; |
72 var _queryParams = new core.Map(); | 77 var _queryParams = new core.Map(); |
73 var _uploadMedia = null; | 78 var _uploadMedia = null; |
74 var _uploadOptions = null; | 79 var _uploadOptions = null; |
75 var _downloadOptions = commons.DownloadOptions.Metadata; | 80 var _downloadOptions = commons.DownloadOptions.Metadata; |
76 var _body = null; | 81 var _body = null; |
77 | 82 |
78 if (request != null) { | 83 if (request != null) { |
79 _body = convert.JSON.encode((request).toJson()); | 84 _body = convert.JSON.encode((request).toJson()); |
80 } | 85 } |
81 if (project == null) { | 86 if (project == null) { |
82 throw new core.ArgumentError("Parameter project is required."); | 87 throw new core.ArgumentError("Parameter project is required."); |
83 } | 88 } |
84 if (managedZone == null) { | 89 if (managedZone == null) { |
85 throw new core.ArgumentError("Parameter managedZone is required."); | 90 throw new core.ArgumentError("Parameter managedZone is required."); |
86 } | 91 } |
87 | 92 |
88 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/changes'; | 93 _url = commons.Escaper.ecapeVariable('$project') + |
| 94 '/managedZones/' + |
| 95 commons.Escaper.ecapeVariable('$managedZone') + |
| 96 '/changes'; |
89 | 97 |
90 var _response = _requester.request(_url, | 98 var _response = _requester.request(_url, "POST", |
91 "POST", | 99 body: _body, |
92 body: _body, | 100 queryParams: _queryParams, |
93 queryParams: _queryParams, | 101 uploadOptions: _uploadOptions, |
94 uploadOptions: _uploadOptions, | 102 uploadMedia: _uploadMedia, |
95 uploadMedia: _uploadMedia, | 103 downloadOptions: _downloadOptions); |
96 downloadOptions: _downloadOptions); | |
97 return _response.then((data) => new Change.fromJson(data)); | 104 return _response.then((data) => new Change.fromJson(data)); |
98 } | 105 } |
99 | 106 |
100 /** | 107 /// Fetch the representation of an existing Change. |
101 * Fetch the representation of an existing Change. | 108 /// |
102 * | 109 /// Request parameters: |
103 * Request parameters: | 110 /// |
104 * | 111 /// [project] - Identifies the project addressed by this request. |
105 * [project] - Identifies the project addressed by this request. | 112 /// |
106 * | 113 /// [managedZone] - Identifies the managed zone addressed by this request. |
107 * [managedZone] - Identifies the managed zone addressed by this request. Can | 114 /// Can be the managed zone name or id. |
108 * be the managed zone name or id. | 115 /// |
109 * | 116 /// [changeId] - The identifier of the requested change, from a previous |
110 * [changeId] - The identifier of the requested change, from a previous | 117 /// ResourceRecordSetsChangeResponse. |
111 * ResourceRecordSetsChangeResponse. | 118 /// |
112 * | 119 /// Completes with a [Change]. |
113 * Completes with a [Change]. | 120 /// |
114 * | 121 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
115 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 122 /// an error. |
116 * error. | 123 /// |
117 * | 124 /// If the used [http.Client] completes with an error when making a REST |
118 * If the used [http.Client] completes with an error when making a REST call, | 125 /// call, this method will complete with the same error. |
119 * this method will complete with the same error. | 126 async.Future<Change> get( |
120 */ | 127 core.String project, core.String managedZone, core.String changeId) { |
121 async.Future<Change> get(core.String project, core.String managedZone, core.St
ring changeId) { | |
122 var _url = null; | 128 var _url = null; |
123 var _queryParams = new core.Map(); | 129 var _queryParams = new core.Map(); |
124 var _uploadMedia = null; | 130 var _uploadMedia = null; |
125 var _uploadOptions = null; | 131 var _uploadOptions = null; |
126 var _downloadOptions = commons.DownloadOptions.Metadata; | 132 var _downloadOptions = commons.DownloadOptions.Metadata; |
127 var _body = null; | 133 var _body = null; |
128 | 134 |
129 if (project == null) { | 135 if (project == null) { |
130 throw new core.ArgumentError("Parameter project is required."); | 136 throw new core.ArgumentError("Parameter project is required."); |
131 } | 137 } |
132 if (managedZone == null) { | 138 if (managedZone == null) { |
133 throw new core.ArgumentError("Parameter managedZone is required."); | 139 throw new core.ArgumentError("Parameter managedZone is required."); |
134 } | 140 } |
135 if (changeId == null) { | 141 if (changeId == null) { |
136 throw new core.ArgumentError("Parameter changeId is required."); | 142 throw new core.ArgumentError("Parameter changeId is required."); |
137 } | 143 } |
138 | 144 |
139 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/changes/' + commons.Escaper.ecapeVar
iable('$changeId'); | 145 _url = commons.Escaper.ecapeVariable('$project') + |
| 146 '/managedZones/' + |
| 147 commons.Escaper.ecapeVariable('$managedZone') + |
| 148 '/changes/' + |
| 149 commons.Escaper.ecapeVariable('$changeId'); |
140 | 150 |
141 var _response = _requester.request(_url, | 151 var _response = _requester.request(_url, "GET", |
142 "GET", | 152 body: _body, |
143 body: _body, | 153 queryParams: _queryParams, |
144 queryParams: _queryParams, | 154 uploadOptions: _uploadOptions, |
145 uploadOptions: _uploadOptions, | 155 uploadMedia: _uploadMedia, |
146 uploadMedia: _uploadMedia, | 156 downloadOptions: _downloadOptions); |
147 downloadOptions: _downloadOptions); | |
148 return _response.then((data) => new Change.fromJson(data)); | 157 return _response.then((data) => new Change.fromJson(data)); |
149 } | 158 } |
150 | 159 |
151 /** | 160 /// Enumerate Changes to a ResourceRecordSet collection. |
152 * Enumerate Changes to a ResourceRecordSet collection. | 161 /// |
153 * | 162 /// Request parameters: |
154 * Request parameters: | 163 /// |
155 * | 164 /// [project] - Identifies the project addressed by this request. |
156 * [project] - Identifies the project addressed by this request. | 165 /// |
157 * | 166 /// [managedZone] - Identifies the managed zone addressed by this request. |
158 * [managedZone] - Identifies the managed zone addressed by this request. Can | 167 /// Can be the managed zone name or id. |
159 * be the managed zone name or id. | 168 /// |
160 * | 169 /// [maxResults] - Optional. Maximum number of results to be returned. If |
161 * [maxResults] - Optional. Maximum number of results to be returned. If | 170 /// unspecified, the server will decide how many results to return. |
162 * unspecified, the server will decide how many results to return. | 171 /// |
163 * | 172 /// [pageToken] - Optional. A tag returned by a previous list request that |
164 * [pageToken] - Optional. A tag returned by a previous list request that was | 173 /// was truncated. Use this parameter to continue a previous list request. |
165 * truncated. Use this parameter to continue a previous list request. | 174 /// |
166 * | 175 /// [sortBy] - Sorting criterion. The only supported value is change |
167 * [sortBy] - Sorting criterion. The only supported value is change sequence. | 176 /// sequence. |
168 * Possible string values are: | 177 /// Possible string values are: |
169 * - "changeSequence" | 178 /// - "changeSequence" |
170 * | 179 /// |
171 * [sortOrder] - Sorting order direction: 'ascending' or 'descending'. | 180 /// [sortOrder] - Sorting order direction: 'ascending' or 'descending'. |
172 * | 181 /// |
173 * Completes with a [ChangesListResponse]. | 182 /// Completes with a [ChangesListResponse]. |
174 * | 183 /// |
175 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 184 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
176 * error. | 185 /// an error. |
177 * | 186 /// |
178 * If the used [http.Client] completes with an error when making a REST call, | 187 /// If the used [http.Client] completes with an error when making a REST |
179 * this method will complete with the same error. | 188 /// call, this method will complete with the same error. |
180 */ | 189 async.Future<ChangesListResponse> list( |
181 async.Future<ChangesListResponse> list(core.String project, core.String manage
dZone, {core.int maxResults, core.String pageToken, core.String sortBy, core.Str
ing sortOrder}) { | 190 core.String project, core.String managedZone, |
| 191 {core.int maxResults, |
| 192 core.String pageToken, |
| 193 core.String sortBy, |
| 194 core.String sortOrder}) { |
182 var _url = null; | 195 var _url = null; |
183 var _queryParams = new core.Map(); | 196 var _queryParams = new core.Map(); |
184 var _uploadMedia = null; | 197 var _uploadMedia = null; |
185 var _uploadOptions = null; | 198 var _uploadOptions = null; |
186 var _downloadOptions = commons.DownloadOptions.Metadata; | 199 var _downloadOptions = commons.DownloadOptions.Metadata; |
187 var _body = null; | 200 var _body = null; |
188 | 201 |
189 if (project == null) { | 202 if (project == null) { |
190 throw new core.ArgumentError("Parameter project is required."); | 203 throw new core.ArgumentError("Parameter project is required."); |
191 } | 204 } |
192 if (managedZone == null) { | 205 if (managedZone == null) { |
193 throw new core.ArgumentError("Parameter managedZone is required."); | 206 throw new core.ArgumentError("Parameter managedZone is required."); |
194 } | 207 } |
195 if (maxResults != null) { | 208 if (maxResults != null) { |
196 _queryParams["maxResults"] = ["${maxResults}"]; | 209 _queryParams["maxResults"] = ["${maxResults}"]; |
197 } | 210 } |
198 if (pageToken != null) { | 211 if (pageToken != null) { |
199 _queryParams["pageToken"] = [pageToken]; | 212 _queryParams["pageToken"] = [pageToken]; |
200 } | 213 } |
201 if (sortBy != null) { | 214 if (sortBy != null) { |
202 _queryParams["sortBy"] = [sortBy]; | 215 _queryParams["sortBy"] = [sortBy]; |
203 } | 216 } |
204 if (sortOrder != null) { | 217 if (sortOrder != null) { |
205 _queryParams["sortOrder"] = [sortOrder]; | 218 _queryParams["sortOrder"] = [sortOrder]; |
206 } | 219 } |
207 | 220 |
208 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/changes'; | 221 _url = commons.Escaper.ecapeVariable('$project') + |
| 222 '/managedZones/' + |
| 223 commons.Escaper.ecapeVariable('$managedZone') + |
| 224 '/changes'; |
209 | 225 |
210 var _response = _requester.request(_url, | 226 var _response = _requester.request(_url, "GET", |
211 "GET", | 227 body: _body, |
212 body: _body, | 228 queryParams: _queryParams, |
213 queryParams: _queryParams, | 229 uploadOptions: _uploadOptions, |
214 uploadOptions: _uploadOptions, | 230 uploadMedia: _uploadMedia, |
215 uploadMedia: _uploadMedia, | 231 downloadOptions: _downloadOptions); |
216 downloadOptions: _downloadOptions); | |
217 return _response.then((data) => new ChangesListResponse.fromJson(data)); | 232 return _response.then((data) => new ChangesListResponse.fromJson(data)); |
218 } | 233 } |
219 | |
220 } | 234 } |
221 | 235 |
222 | |
223 class ManagedZonesResourceApi { | 236 class ManagedZonesResourceApi { |
224 final commons.ApiRequester _requester; | 237 final commons.ApiRequester _requester; |
225 | 238 |
226 ManagedZonesResourceApi(commons.ApiRequester client) : | 239 ManagedZonesResourceApi(commons.ApiRequester client) : _requester = client; |
227 _requester = client; | |
228 | 240 |
229 /** | 241 /// Create a new ManagedZone. |
230 * Create a new ManagedZone. | 242 /// |
231 * | 243 /// [request] - The metadata request object. |
232 * [request] - The metadata request object. | 244 /// |
233 * | 245 /// Request parameters: |
234 * Request parameters: | 246 /// |
235 * | 247 /// [project] - Identifies the project addressed by this request. |
236 * [project] - Identifies the project addressed by this request. | 248 /// |
237 * | 249 /// Completes with a [ManagedZone]. |
238 * Completes with a [ManagedZone]. | 250 /// |
239 * | 251 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
240 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 252 /// an error. |
241 * error. | 253 /// |
242 * | 254 /// If the used [http.Client] completes with an error when making a REST |
243 * If the used [http.Client] completes with an error when making a REST call, | 255 /// call, this method will complete with the same error. |
244 * this method will complete with the same error. | |
245 */ | |
246 async.Future<ManagedZone> create(ManagedZone request, core.String project) { | 256 async.Future<ManagedZone> create(ManagedZone request, core.String project) { |
247 var _url = null; | 257 var _url = null; |
248 var _queryParams = new core.Map(); | 258 var _queryParams = new core.Map(); |
249 var _uploadMedia = null; | 259 var _uploadMedia = null; |
250 var _uploadOptions = null; | 260 var _uploadOptions = null; |
251 var _downloadOptions = commons.DownloadOptions.Metadata; | 261 var _downloadOptions = commons.DownloadOptions.Metadata; |
252 var _body = null; | 262 var _body = null; |
253 | 263 |
254 if (request != null) { | 264 if (request != null) { |
255 _body = convert.JSON.encode((request).toJson()); | 265 _body = convert.JSON.encode((request).toJson()); |
256 } | 266 } |
257 if (project == null) { | 267 if (project == null) { |
258 throw new core.ArgumentError("Parameter project is required."); | 268 throw new core.ArgumentError("Parameter project is required."); |
259 } | 269 } |
260 | 270 |
261 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones'; | 271 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones'; |
262 | 272 |
263 var _response = _requester.request(_url, | 273 var _response = _requester.request(_url, "POST", |
264 "POST", | 274 body: _body, |
265 body: _body, | 275 queryParams: _queryParams, |
266 queryParams: _queryParams, | 276 uploadOptions: _uploadOptions, |
267 uploadOptions: _uploadOptions, | 277 uploadMedia: _uploadMedia, |
268 uploadMedia: _uploadMedia, | 278 downloadOptions: _downloadOptions); |
269 downloadOptions: _downloadOptions); | |
270 return _response.then((data) => new ManagedZone.fromJson(data)); | 279 return _response.then((data) => new ManagedZone.fromJson(data)); |
271 } | 280 } |
272 | 281 |
273 /** | 282 /// Delete a previously created ManagedZone. |
274 * Delete a previously created ManagedZone. | 283 /// |
275 * | 284 /// Request parameters: |
276 * Request parameters: | 285 /// |
277 * | 286 /// [project] - Identifies the project addressed by this request. |
278 * [project] - Identifies the project addressed by this request. | 287 /// |
279 * | 288 /// [managedZone] - Identifies the managed zone addressed by this request. |
280 * [managedZone] - Identifies the managed zone addressed by this request. Can | 289 /// Can be the managed zone name or id. |
281 * be the managed zone name or id. | 290 /// |
282 * | 291 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
283 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 292 /// an error. |
284 * error. | 293 /// |
285 * | 294 /// If the used [http.Client] completes with an error when making a REST |
286 * If the used [http.Client] completes with an error when making a REST call, | 295 /// call, this method will complete with the same error. |
287 * this method will complete with the same error. | |
288 */ | |
289 async.Future delete(core.String project, core.String managedZone) { | 296 async.Future delete(core.String project, core.String managedZone) { |
290 var _url = null; | 297 var _url = null; |
291 var _queryParams = new core.Map(); | 298 var _queryParams = new core.Map(); |
292 var _uploadMedia = null; | 299 var _uploadMedia = null; |
293 var _uploadOptions = null; | 300 var _uploadOptions = null; |
294 var _downloadOptions = commons.DownloadOptions.Metadata; | 301 var _downloadOptions = commons.DownloadOptions.Metadata; |
295 var _body = null; | 302 var _body = null; |
296 | 303 |
297 if (project == null) { | 304 if (project == null) { |
298 throw new core.ArgumentError("Parameter project is required."); | 305 throw new core.ArgumentError("Parameter project is required."); |
299 } | 306 } |
300 if (managedZone == null) { | 307 if (managedZone == null) { |
301 throw new core.ArgumentError("Parameter managedZone is required."); | 308 throw new core.ArgumentError("Parameter managedZone is required."); |
302 } | 309 } |
303 | 310 |
304 _downloadOptions = null; | 311 _downloadOptions = null; |
305 | 312 |
306 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone'); | 313 _url = commons.Escaper.ecapeVariable('$project') + |
| 314 '/managedZones/' + |
| 315 commons.Escaper.ecapeVariable('$managedZone'); |
307 | 316 |
308 var _response = _requester.request(_url, | 317 var _response = _requester.request(_url, "DELETE", |
309 "DELETE", | 318 body: _body, |
310 body: _body, | 319 queryParams: _queryParams, |
311 queryParams: _queryParams, | 320 uploadOptions: _uploadOptions, |
312 uploadOptions: _uploadOptions, | 321 uploadMedia: _uploadMedia, |
313 uploadMedia: _uploadMedia, | 322 downloadOptions: _downloadOptions); |
314 downloadOptions: _downloadOptions); | |
315 return _response.then((data) => null); | 323 return _response.then((data) => null); |
316 } | 324 } |
317 | 325 |
318 /** | 326 /// Fetch the representation of an existing ManagedZone. |
319 * Fetch the representation of an existing ManagedZone. | 327 /// |
320 * | 328 /// Request parameters: |
321 * Request parameters: | 329 /// |
322 * | 330 /// [project] - Identifies the project addressed by this request. |
323 * [project] - Identifies the project addressed by this request. | 331 /// |
324 * | 332 /// [managedZone] - Identifies the managed zone addressed by this request. |
325 * [managedZone] - Identifies the managed zone addressed by this request. Can | 333 /// Can be the managed zone name or id. |
326 * be the managed zone name or id. | 334 /// |
327 * | 335 /// Completes with a [ManagedZone]. |
328 * Completes with a [ManagedZone]. | 336 /// |
329 * | 337 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
330 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 338 /// an error. |
331 * error. | 339 /// |
332 * | 340 /// If the used [http.Client] completes with an error when making a REST |
333 * If the used [http.Client] completes with an error when making a REST call, | 341 /// call, this method will complete with the same error. |
334 * this method will complete with the same error. | |
335 */ | |
336 async.Future<ManagedZone> get(core.String project, core.String managedZone) { | 342 async.Future<ManagedZone> get(core.String project, core.String managedZone) { |
337 var _url = null; | 343 var _url = null; |
338 var _queryParams = new core.Map(); | 344 var _queryParams = new core.Map(); |
339 var _uploadMedia = null; | 345 var _uploadMedia = null; |
340 var _uploadOptions = null; | 346 var _uploadOptions = null; |
341 var _downloadOptions = commons.DownloadOptions.Metadata; | 347 var _downloadOptions = commons.DownloadOptions.Metadata; |
342 var _body = null; | 348 var _body = null; |
343 | 349 |
344 if (project == null) { | 350 if (project == null) { |
345 throw new core.ArgumentError("Parameter project is required."); | 351 throw new core.ArgumentError("Parameter project is required."); |
346 } | 352 } |
347 if (managedZone == null) { | 353 if (managedZone == null) { |
348 throw new core.ArgumentError("Parameter managedZone is required."); | 354 throw new core.ArgumentError("Parameter managedZone is required."); |
349 } | 355 } |
350 | 356 |
351 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone'); | 357 _url = commons.Escaper.ecapeVariable('$project') + |
| 358 '/managedZones/' + |
| 359 commons.Escaper.ecapeVariable('$managedZone'); |
352 | 360 |
353 var _response = _requester.request(_url, | 361 var _response = _requester.request(_url, "GET", |
354 "GET", | 362 body: _body, |
355 body: _body, | 363 queryParams: _queryParams, |
356 queryParams: _queryParams, | 364 uploadOptions: _uploadOptions, |
357 uploadOptions: _uploadOptions, | 365 uploadMedia: _uploadMedia, |
358 uploadMedia: _uploadMedia, | 366 downloadOptions: _downloadOptions); |
359 downloadOptions: _downloadOptions); | |
360 return _response.then((data) => new ManagedZone.fromJson(data)); | 367 return _response.then((data) => new ManagedZone.fromJson(data)); |
361 } | 368 } |
362 | 369 |
363 /** | 370 /// Enumerate ManagedZones that have been created but not yet deleted. |
364 * Enumerate ManagedZones that have been created but not yet deleted. | 371 /// |
365 * | 372 /// Request parameters: |
366 * Request parameters: | 373 /// |
367 * | 374 /// [project] - Identifies the project addressed by this request. |
368 * [project] - Identifies the project addressed by this request. | 375 /// |
369 * | 376 /// [dnsName] - Restricts the list to return only zones with this domain |
370 * [dnsName] - Restricts the list to return only zones with this domain name. | 377 /// name. |
371 * | 378 /// |
372 * [maxResults] - Optional. Maximum number of results to be returned. If | 379 /// [maxResults] - Optional. Maximum number of results to be returned. If |
373 * unspecified, the server will decide how many results to return. | 380 /// unspecified, the server will decide how many results to return. |
374 * | 381 /// |
375 * [pageToken] - Optional. A tag returned by a previous list request that was | 382 /// [pageToken] - Optional. A tag returned by a previous list request that |
376 * truncated. Use this parameter to continue a previous list request. | 383 /// was truncated. Use this parameter to continue a previous list request. |
377 * | 384 /// |
378 * Completes with a [ManagedZonesListResponse]. | 385 /// Completes with a [ManagedZonesListResponse]. |
379 * | 386 /// |
380 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 387 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
381 * error. | 388 /// an error. |
382 * | 389 /// |
383 * If the used [http.Client] completes with an error when making a REST call, | 390 /// If the used [http.Client] completes with an error when making a REST |
384 * this method will complete with the same error. | 391 /// call, this method will complete with the same error. |
385 */ | 392 async.Future<ManagedZonesListResponse> list(core.String project, |
386 async.Future<ManagedZonesListResponse> list(core.String project, {core.String
dnsName, core.int maxResults, core.String pageToken}) { | 393 {core.String dnsName, core.int maxResults, core.String pageToken}) { |
387 var _url = null; | 394 var _url = null; |
388 var _queryParams = new core.Map(); | 395 var _queryParams = new core.Map(); |
389 var _uploadMedia = null; | 396 var _uploadMedia = null; |
390 var _uploadOptions = null; | 397 var _uploadOptions = null; |
391 var _downloadOptions = commons.DownloadOptions.Metadata; | 398 var _downloadOptions = commons.DownloadOptions.Metadata; |
392 var _body = null; | 399 var _body = null; |
393 | 400 |
394 if (project == null) { | 401 if (project == null) { |
395 throw new core.ArgumentError("Parameter project is required."); | 402 throw new core.ArgumentError("Parameter project is required."); |
396 } | 403 } |
397 if (dnsName != null) { | 404 if (dnsName != null) { |
398 _queryParams["dnsName"] = [dnsName]; | 405 _queryParams["dnsName"] = [dnsName]; |
399 } | 406 } |
400 if (maxResults != null) { | 407 if (maxResults != null) { |
401 _queryParams["maxResults"] = ["${maxResults}"]; | 408 _queryParams["maxResults"] = ["${maxResults}"]; |
402 } | 409 } |
403 if (pageToken != null) { | 410 if (pageToken != null) { |
404 _queryParams["pageToken"] = [pageToken]; | 411 _queryParams["pageToken"] = [pageToken]; |
405 } | 412 } |
406 | 413 |
407 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones'; | 414 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones'; |
408 | 415 |
409 var _response = _requester.request(_url, | 416 var _response = _requester.request(_url, "GET", |
410 "GET", | 417 body: _body, |
411 body: _body, | 418 queryParams: _queryParams, |
412 queryParams: _queryParams, | 419 uploadOptions: _uploadOptions, |
413 uploadOptions: _uploadOptions, | 420 uploadMedia: _uploadMedia, |
414 uploadMedia: _uploadMedia, | 421 downloadOptions: _downloadOptions); |
415 downloadOptions: _downloadOptions); | 422 return _response |
416 return _response.then((data) => new ManagedZonesListResponse.fromJson(data))
; | 423 .then((data) => new ManagedZonesListResponse.fromJson(data)); |
417 } | 424 } |
418 | |
419 } | 425 } |
420 | 426 |
421 | |
422 class ProjectsResourceApi { | 427 class ProjectsResourceApi { |
423 final commons.ApiRequester _requester; | 428 final commons.ApiRequester _requester; |
424 | 429 |
425 ProjectsResourceApi(commons.ApiRequester client) : | 430 ProjectsResourceApi(commons.ApiRequester client) : _requester = client; |
426 _requester = client; | |
427 | 431 |
428 /** | 432 /// Fetch the representation of an existing Project. |
429 * Fetch the representation of an existing Project. | 433 /// |
430 * | 434 /// Request parameters: |
431 * Request parameters: | 435 /// |
432 * | 436 /// [project] - Identifies the project addressed by this request. |
433 * [project] - Identifies the project addressed by this request. | 437 /// |
434 * | 438 /// Completes with a [Project]. |
435 * Completes with a [Project]. | 439 /// |
436 * | 440 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
437 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 441 /// an error. |
438 * error. | 442 /// |
439 * | 443 /// If the used [http.Client] completes with an error when making a REST |
440 * If the used [http.Client] completes with an error when making a REST call, | 444 /// call, this method will complete with the same error. |
441 * this method will complete with the same error. | |
442 */ | |
443 async.Future<Project> get(core.String project) { | 445 async.Future<Project> get(core.String project) { |
444 var _url = null; | 446 var _url = null; |
445 var _queryParams = new core.Map(); | 447 var _queryParams = new core.Map(); |
446 var _uploadMedia = null; | 448 var _uploadMedia = null; |
447 var _uploadOptions = null; | 449 var _uploadOptions = null; |
448 var _downloadOptions = commons.DownloadOptions.Metadata; | 450 var _downloadOptions = commons.DownloadOptions.Metadata; |
449 var _body = null; | 451 var _body = null; |
450 | 452 |
451 if (project == null) { | 453 if (project == null) { |
452 throw new core.ArgumentError("Parameter project is required."); | 454 throw new core.ArgumentError("Parameter project is required."); |
453 } | 455 } |
454 | 456 |
455 _url = commons.Escaper.ecapeVariable('$project'); | 457 _url = commons.Escaper.ecapeVariable('$project'); |
456 | 458 |
457 var _response = _requester.request(_url, | 459 var _response = _requester.request(_url, "GET", |
458 "GET", | 460 body: _body, |
459 body: _body, | 461 queryParams: _queryParams, |
460 queryParams: _queryParams, | 462 uploadOptions: _uploadOptions, |
461 uploadOptions: _uploadOptions, | 463 uploadMedia: _uploadMedia, |
462 uploadMedia: _uploadMedia, | 464 downloadOptions: _downloadOptions); |
463 downloadOptions: _downloadOptions); | |
464 return _response.then((data) => new Project.fromJson(data)); | 465 return _response.then((data) => new Project.fromJson(data)); |
465 } | 466 } |
466 | |
467 } | 467 } |
468 | 468 |
469 | |
470 class ResourceRecordSetsResourceApi { | 469 class ResourceRecordSetsResourceApi { |
471 final commons.ApiRequester _requester; | 470 final commons.ApiRequester _requester; |
472 | 471 |
473 ResourceRecordSetsResourceApi(commons.ApiRequester client) : | 472 ResourceRecordSetsResourceApi(commons.ApiRequester client) |
474 _requester = client; | 473 : _requester = client; |
475 | 474 |
476 /** | 475 /// Enumerate ResourceRecordSets that have been created but not yet deleted. |
477 * Enumerate ResourceRecordSets that have been created but not yet deleted. | 476 /// |
478 * | 477 /// Request parameters: |
479 * Request parameters: | 478 /// |
480 * | 479 /// [project] - Identifies the project addressed by this request. |
481 * [project] - Identifies the project addressed by this request. | 480 /// |
482 * | 481 /// [managedZone] - Identifies the managed zone addressed by this request. |
483 * [managedZone] - Identifies the managed zone addressed by this request. Can | 482 /// Can be the managed zone name or id. |
484 * be the managed zone name or id. | 483 /// |
485 * | 484 /// [maxResults] - Optional. Maximum number of results to be returned. If |
486 * [maxResults] - Optional. Maximum number of results to be returned. If | 485 /// unspecified, the server will decide how many results to return. |
487 * unspecified, the server will decide how many results to return. | 486 /// |
488 * | 487 /// [name] - Restricts the list to return only records with this fully |
489 * [name] - Restricts the list to return only records with this fully | 488 /// qualified domain name. |
490 * qualified domain name. | 489 /// |
491 * | 490 /// [pageToken] - Optional. A tag returned by a previous list request that |
492 * [pageToken] - Optional. A tag returned by a previous list request that was | 491 /// was truncated. Use this parameter to continue a previous list request. |
493 * truncated. Use this parameter to continue a previous list request. | 492 /// |
494 * | 493 /// [type] - Restricts the list to return only records of this type. If |
495 * [type] - Restricts the list to return only records of this type. If | 494 /// present, the "name" parameter must also be present. |
496 * present, the "name" parameter must also be present. | 495 /// |
497 * | 496 /// Completes with a [ResourceRecordSetsListResponse]. |
498 * Completes with a [ResourceRecordSetsListResponse]. | 497 /// |
499 * | 498 /// Completes with a [commons.ApiRequestError] if the API endpoint returned |
500 * Completes with a [commons.ApiRequestError] if the API endpoint returned an | 499 /// an error. |
501 * error. | 500 /// |
502 * | 501 /// If the used [http.Client] completes with an error when making a REST |
503 * If the used [http.Client] completes with an error when making a REST call, | 502 /// call, this method will complete with the same error. |
504 * this method will complete with the same error. | 503 async.Future<ResourceRecordSetsListResponse> list( |
505 */ | 504 core.String project, core.String managedZone, |
506 async.Future<ResourceRecordSetsListResponse> list(core.String project, core.St
ring managedZone, {core.int maxResults, core.String name, core.String pageToken,
core.String type}) { | 505 {core.int maxResults, |
| 506 core.String name, |
| 507 core.String pageToken, |
| 508 core.String type}) { |
507 var _url = null; | 509 var _url = null; |
508 var _queryParams = new core.Map(); | 510 var _queryParams = new core.Map(); |
509 var _uploadMedia = null; | 511 var _uploadMedia = null; |
510 var _uploadOptions = null; | 512 var _uploadOptions = null; |
511 var _downloadOptions = commons.DownloadOptions.Metadata; | 513 var _downloadOptions = commons.DownloadOptions.Metadata; |
512 var _body = null; | 514 var _body = null; |
513 | 515 |
514 if (project == null) { | 516 if (project == null) { |
515 throw new core.ArgumentError("Parameter project is required."); | 517 throw new core.ArgumentError("Parameter project is required."); |
516 } | 518 } |
517 if (managedZone == null) { | 519 if (managedZone == null) { |
518 throw new core.ArgumentError("Parameter managedZone is required."); | 520 throw new core.ArgumentError("Parameter managedZone is required."); |
519 } | 521 } |
520 if (maxResults != null) { | 522 if (maxResults != null) { |
521 _queryParams["maxResults"] = ["${maxResults}"]; | 523 _queryParams["maxResults"] = ["${maxResults}"]; |
522 } | 524 } |
523 if (name != null) { | 525 if (name != null) { |
524 _queryParams["name"] = [name]; | 526 _queryParams["name"] = [name]; |
525 } | 527 } |
526 if (pageToken != null) { | 528 if (pageToken != null) { |
527 _queryParams["pageToken"] = [pageToken]; | 529 _queryParams["pageToken"] = [pageToken]; |
528 } | 530 } |
529 if (type != null) { | 531 if (type != null) { |
530 _queryParams["type"] = [type]; | 532 _queryParams["type"] = [type]; |
531 } | 533 } |
532 | 534 |
533 _url = commons.Escaper.ecapeVariable('$project') + '/managedZones/' + common
s.Escaper.ecapeVariable('$managedZone') + '/rrsets'; | 535 _url = commons.Escaper.ecapeVariable('$project') + |
| 536 '/managedZones/' + |
| 537 commons.Escaper.ecapeVariable('$managedZone') + |
| 538 '/rrsets'; |
534 | 539 |
535 var _response = _requester.request(_url, | 540 var _response = _requester.request(_url, "GET", |
536 "GET", | 541 body: _body, |
537 body: _body, | 542 queryParams: _queryParams, |
538 queryParams: _queryParams, | 543 uploadOptions: _uploadOptions, |
539 uploadOptions: _uploadOptions, | 544 uploadMedia: _uploadMedia, |
540 uploadMedia: _uploadMedia, | 545 downloadOptions: _downloadOptions); |
541 downloadOptions: _downloadOptions); | 546 return _response |
542 return _response.then((data) => new ResourceRecordSetsListResponse.fromJson(
data)); | 547 .then((data) => new ResourceRecordSetsListResponse.fromJson(data)); |
543 } | 548 } |
544 | |
545 } | 549 } |
546 | 550 |
| 551 /// An atomic update to a collection of ResourceRecordSets. |
| 552 class Change { |
| 553 /// Which ResourceRecordSets to add? |
| 554 core.List<ResourceRecordSet> additions; |
547 | 555 |
| 556 /// Which ResourceRecordSets to remove? Must match existing data exactly. |
| 557 core.List<ResourceRecordSet> deletions; |
548 | 558 |
549 /** An atomic update to a collection of ResourceRecordSets. */ | 559 /// Unique identifier for the resource; defined by the server (output only). |
550 class Change { | |
551 /** Which ResourceRecordSets to add? */ | |
552 core.List<ResourceRecordSet> additions; | |
553 /** Which ResourceRecordSets to remove? Must match existing data exactly. */ | |
554 core.List<ResourceRecordSet> deletions; | |
555 /** | |
556 * Unique identifier for the resource; defined by the server (output only). | |
557 */ | |
558 core.String id; | 560 core.String id; |
559 /** | 561 |
560 * Identifies what kind of resource this is. Value: the fixed string | 562 /// Identifies what kind of resource this is. Value: the fixed string |
561 * "dns#change". | 563 /// "dns#change". |
562 */ | |
563 core.String kind; | 564 core.String kind; |
564 /** | 565 |
565 * The time that this operation was started by the server (output only). This | 566 /// The time that this operation was started by the server (output only). |
566 * is in RFC3339 text format. | 567 /// This is in RFC3339 text format. |
567 */ | |
568 core.String startTime; | 568 core.String startTime; |
569 /** | 569 |
570 * Status of the operation (output only). | 570 /// Status of the operation (output only). |
571 * Possible string values are: | 571 /// Possible string values are: |
572 * - "done" | 572 /// - "done" |
573 * - "pending" | 573 /// - "pending" |
574 */ | |
575 core.String status; | 574 core.String status; |
576 | 575 |
577 Change(); | 576 Change(); |
578 | 577 |
579 Change.fromJson(core.Map _json) { | 578 Change.fromJson(core.Map _json) { |
580 if (_json.containsKey("additions")) { | 579 if (_json.containsKey("additions")) { |
581 additions = _json["additions"].map((value) => new ResourceRecordSet.fromJs
on(value)).toList(); | 580 additions = _json["additions"] |
| 581 .map((value) => new ResourceRecordSet.fromJson(value)) |
| 582 .toList(); |
582 } | 583 } |
583 if (_json.containsKey("deletions")) { | 584 if (_json.containsKey("deletions")) { |
584 deletions = _json["deletions"].map((value) => new ResourceRecordSet.fromJs
on(value)).toList(); | 585 deletions = _json["deletions"] |
| 586 .map((value) => new ResourceRecordSet.fromJson(value)) |
| 587 .toList(); |
585 } | 588 } |
586 if (_json.containsKey("id")) { | 589 if (_json.containsKey("id")) { |
587 id = _json["id"]; | 590 id = _json["id"]; |
588 } | 591 } |
589 if (_json.containsKey("kind")) { | 592 if (_json.containsKey("kind")) { |
590 kind = _json["kind"]; | 593 kind = _json["kind"]; |
591 } | 594 } |
592 if (_json.containsKey("startTime")) { | 595 if (_json.containsKey("startTime")) { |
593 startTime = _json["startTime"]; | 596 startTime = _json["startTime"]; |
594 } | 597 } |
595 if (_json.containsKey("status")) { | 598 if (_json.containsKey("status")) { |
596 status = _json["status"]; | 599 status = _json["status"]; |
597 } | 600 } |
598 } | 601 } |
599 | 602 |
600 core.Map<core.String, core.Object> toJson() { | 603 core.Map<core.String, core.Object> toJson() { |
601 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 604 final core.Map<core.String, core.Object> _json = |
| 605 new core.Map<core.String, core.Object>(); |
602 if (additions != null) { | 606 if (additions != null) { |
603 _json["additions"] = additions.map((value) => (value).toJson()).toList(); | 607 _json["additions"] = additions.map((value) => (value).toJson()).toList(); |
604 } | 608 } |
605 if (deletions != null) { | 609 if (deletions != null) { |
606 _json["deletions"] = deletions.map((value) => (value).toJson()).toList(); | 610 _json["deletions"] = deletions.map((value) => (value).toJson()).toList(); |
607 } | 611 } |
608 if (id != null) { | 612 if (id != null) { |
609 _json["id"] = id; | 613 _json["id"] = id; |
610 } | 614 } |
611 if (kind != null) { | 615 if (kind != null) { |
612 _json["kind"] = kind; | 616 _json["kind"] = kind; |
613 } | 617 } |
614 if (startTime != null) { | 618 if (startTime != null) { |
615 _json["startTime"] = startTime; | 619 _json["startTime"] = startTime; |
616 } | 620 } |
617 if (status != null) { | 621 if (status != null) { |
618 _json["status"] = status; | 622 _json["status"] = status; |
619 } | 623 } |
620 return _json; | 624 return _json; |
621 } | 625 } |
622 } | 626 } |
623 | 627 |
624 /** | 628 /// The response to a request to enumerate Changes to a ResourceRecordSets |
625 * The response to a request to enumerate Changes to a ResourceRecordSets | 629 /// collection. |
626 * collection. | |
627 */ | |
628 class ChangesListResponse { | 630 class ChangesListResponse { |
629 /** The requested changes. */ | 631 /// The requested changes. |
630 core.List<Change> changes; | 632 core.List<Change> changes; |
631 /** Type of resource. */ | 633 |
| 634 /// Type of resource. |
632 core.String kind; | 635 core.String kind; |
633 /** | 636 |
634 * The presence of this field indicates that there exist more results | 637 /// The presence of this field indicates that there exist more results |
635 * following your last page of results in pagination order. To fetch them, | 638 /// following your last page of results in pagination order. To fetch them, |
636 * make another list request using this value as your pagination token. | 639 /// make another list request using this value as your pagination token. |
637 * | 640 /// |
638 * In this way you can retrieve the complete contents of even very large | 641 /// In this way you can retrieve the complete contents of even very large |
639 * collections one page at a time. However, if the contents of the collection | 642 /// collections one page at a time. However, if the contents of the |
640 * change between the first and last paginated list request, the set of all | 643 /// collection change between the first and last paginated list request, the |
641 * elements returned will be an inconsistent view of the collection. There is | 644 /// set of all elements returned will be an inconsistent view of the |
642 * no way to retrieve a "snapshot" of collections larger than the maximum page | 645 /// collection. There is no way to retrieve a "snapshot" of collections |
643 * size. | 646 /// larger than the maximum page size. |
644 */ | |
645 core.String nextPageToken; | 647 core.String nextPageToken; |
646 | 648 |
647 ChangesListResponse(); | 649 ChangesListResponse(); |
648 | 650 |
649 ChangesListResponse.fromJson(core.Map _json) { | 651 ChangesListResponse.fromJson(core.Map _json) { |
650 if (_json.containsKey("changes")) { | 652 if (_json.containsKey("changes")) { |
651 changes = _json["changes"].map((value) => new Change.fromJson(value)).toLi
st(); | 653 changes = |
| 654 _json["changes"].map((value) => new Change.fromJson(value)).toList(); |
652 } | 655 } |
653 if (_json.containsKey("kind")) { | 656 if (_json.containsKey("kind")) { |
654 kind = _json["kind"]; | 657 kind = _json["kind"]; |
655 } | 658 } |
656 if (_json.containsKey("nextPageToken")) { | 659 if (_json.containsKey("nextPageToken")) { |
657 nextPageToken = _json["nextPageToken"]; | 660 nextPageToken = _json["nextPageToken"]; |
658 } | 661 } |
659 } | 662 } |
660 | 663 |
661 core.Map<core.String, core.Object> toJson() { | 664 core.Map<core.String, core.Object> toJson() { |
662 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 665 final core.Map<core.String, core.Object> _json = |
| 666 new core.Map<core.String, core.Object>(); |
663 if (changes != null) { | 667 if (changes != null) { |
664 _json["changes"] = changes.map((value) => (value).toJson()).toList(); | 668 _json["changes"] = changes.map((value) => (value).toJson()).toList(); |
665 } | 669 } |
666 if (kind != null) { | 670 if (kind != null) { |
667 _json["kind"] = kind; | 671 _json["kind"] = kind; |
668 } | 672 } |
669 if (nextPageToken != null) { | 673 if (nextPageToken != null) { |
670 _json["nextPageToken"] = nextPageToken; | 674 _json["nextPageToken"] = nextPageToken; |
671 } | 675 } |
672 return _json; | 676 return _json; |
673 } | 677 } |
674 } | 678 } |
675 | 679 |
676 /** | 680 /// A zone is a subtree of the DNS namespace under one administrative |
677 * A zone is a subtree of the DNS namespace under one administrative | 681 /// responsibility. A ManagedZone is a resource that represents a DNS zone |
678 * responsibility. A ManagedZone is a resource that represents a DNS zone hosted | 682 /// hosted by the Cloud DNS service. |
679 * by the Cloud DNS service. | |
680 */ | |
681 class ManagedZone { | 683 class ManagedZone { |
682 /** | 684 /// The time that this resource was created on the server. This is in RFC3339 |
683 * The time that this resource was created on the server. This is in RFC3339 | 685 /// text format. Output only. |
684 * text format. Output only. | |
685 */ | |
686 core.String creationTime; | 686 core.String creationTime; |
687 /** | 687 |
688 * A mutable string of at most 1024 characters associated with this resource | 688 /// A mutable string of at most 1024 characters associated with this resource |
689 * for the user's convenience. Has no effect on the managed zone's function. | 689 /// for the user's convenience. Has no effect on the managed zone's function. |
690 */ | |
691 core.String description; | 690 core.String description; |
692 /** The DNS name of this managed zone, for instance "example.com.". */ | 691 |
| 692 /// The DNS name of this managed zone, for instance "example.com.". |
693 core.String dnsName; | 693 core.String dnsName; |
694 /** | 694 |
695 * Unique identifier for the resource; defined by the server (output only) | 695 /// Unique identifier for the resource; defined by the server (output only) |
696 */ | |
697 core.String id; | 696 core.String id; |
698 /** | 697 |
699 * Identifies what kind of resource this is. Value: the fixed string | 698 /// Identifies what kind of resource this is. Value: the fixed string |
700 * "dns#managedZone". | 699 /// "dns#managedZone". |
701 */ | |
702 core.String kind; | 700 core.String kind; |
703 /** | 701 |
704 * User assigned name for this resource. Must be unique within the project. | 702 /// User assigned name for this resource. Must be unique within the project. |
705 * The name must be 1-63 characters long, must begin with a letter, end with a | 703 /// The name must be 1-63 characters long, must begin with a letter, end with |
706 * letter or digit, and only contain lowercase letters, digits or dashes. | 704 /// a letter or digit, and only contain lowercase letters, digits or dashes. |
707 */ | |
708 core.String name; | 705 core.String name; |
709 /** | 706 |
710 * Optionally specifies the NameServerSet for this ManagedZone. A | 707 /// Optionally specifies the NameServerSet for this ManagedZone. A |
711 * NameServerSet is a set of DNS name servers that all host the same | 708 /// NameServerSet is a set of DNS name servers that all host the same |
712 * ManagedZones. Most users will leave this field unset. | 709 /// ManagedZones. Most users will leave this field unset. |
713 */ | |
714 core.String nameServerSet; | 710 core.String nameServerSet; |
715 /** | 711 |
716 * Delegate your managed_zone to these virtual name servers; defined by the | 712 /// Delegate your managed_zone to these virtual name servers; defined by the |
717 * server (output only) | 713 /// server (output only) |
718 */ | |
719 core.List<core.String> nameServers; | 714 core.List<core.String> nameServers; |
720 | 715 |
721 ManagedZone(); | 716 ManagedZone(); |
722 | 717 |
723 ManagedZone.fromJson(core.Map _json) { | 718 ManagedZone.fromJson(core.Map _json) { |
724 if (_json.containsKey("creationTime")) { | 719 if (_json.containsKey("creationTime")) { |
725 creationTime = _json["creationTime"]; | 720 creationTime = _json["creationTime"]; |
726 } | 721 } |
727 if (_json.containsKey("description")) { | 722 if (_json.containsKey("description")) { |
728 description = _json["description"]; | 723 description = _json["description"]; |
(...skipping 12 matching lines...) Expand all Loading... |
741 } | 736 } |
742 if (_json.containsKey("nameServerSet")) { | 737 if (_json.containsKey("nameServerSet")) { |
743 nameServerSet = _json["nameServerSet"]; | 738 nameServerSet = _json["nameServerSet"]; |
744 } | 739 } |
745 if (_json.containsKey("nameServers")) { | 740 if (_json.containsKey("nameServers")) { |
746 nameServers = _json["nameServers"]; | 741 nameServers = _json["nameServers"]; |
747 } | 742 } |
748 } | 743 } |
749 | 744 |
750 core.Map<core.String, core.Object> toJson() { | 745 core.Map<core.String, core.Object> toJson() { |
751 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 746 final core.Map<core.String, core.Object> _json = |
| 747 new core.Map<core.String, core.Object>(); |
752 if (creationTime != null) { | 748 if (creationTime != null) { |
753 _json["creationTime"] = creationTime; | 749 _json["creationTime"] = creationTime; |
754 } | 750 } |
755 if (description != null) { | 751 if (description != null) { |
756 _json["description"] = description; | 752 _json["description"] = description; |
757 } | 753 } |
758 if (dnsName != null) { | 754 if (dnsName != null) { |
759 _json["dnsName"] = dnsName; | 755 _json["dnsName"] = dnsName; |
760 } | 756 } |
761 if (id != null) { | 757 if (id != null) { |
762 _json["id"] = id; | 758 _json["id"] = id; |
763 } | 759 } |
764 if (kind != null) { | 760 if (kind != null) { |
765 _json["kind"] = kind; | 761 _json["kind"] = kind; |
766 } | 762 } |
767 if (name != null) { | 763 if (name != null) { |
768 _json["name"] = name; | 764 _json["name"] = name; |
769 } | 765 } |
770 if (nameServerSet != null) { | 766 if (nameServerSet != null) { |
771 _json["nameServerSet"] = nameServerSet; | 767 _json["nameServerSet"] = nameServerSet; |
772 } | 768 } |
773 if (nameServers != null) { | 769 if (nameServers != null) { |
774 _json["nameServers"] = nameServers; | 770 _json["nameServers"] = nameServers; |
775 } | 771 } |
776 return _json; | 772 return _json; |
777 } | 773 } |
778 } | 774 } |
779 | 775 |
780 class ManagedZonesListResponse { | 776 class ManagedZonesListResponse { |
781 /** Type of resource. */ | 777 /// Type of resource. |
782 core.String kind; | 778 core.String kind; |
783 /** The managed zone resources. */ | 779 |
| 780 /// The managed zone resources. |
784 core.List<ManagedZone> managedZones; | 781 core.List<ManagedZone> managedZones; |
785 /** | 782 |
786 * The presence of this field indicates that there exist more results | 783 /// The presence of this field indicates that there exist more results |
787 * following your last page of results in pagination order. To fetch them, | 784 /// following your last page of results in pagination order. To fetch them, |
788 * make another list request using this value as your page token. | 785 /// make another list request using this value as your page token. |
789 * | 786 /// |
790 * In this way you can retrieve the complete contents of even very large | 787 /// In this way you can retrieve the complete contents of even very large |
791 * collections one page at a time. However, if the contents of the collection | 788 /// collections one page at a time. However, if the contents of the |
792 * change between the first and last paginated list request, the set of all | 789 /// collection change between the first and last paginated list request, the |
793 * elements returned will be an inconsistent view of the collection. There is | 790 /// set of all elements returned will be an inconsistent view of the |
794 * no way to retrieve a consistent snapshot of a collection larger than the | 791 /// collection. There is no way to retrieve a consistent snapshot of a |
795 * maximum page size. | 792 /// collection larger than the maximum page size. |
796 */ | |
797 core.String nextPageToken; | 793 core.String nextPageToken; |
798 | 794 |
799 ManagedZonesListResponse(); | 795 ManagedZonesListResponse(); |
800 | 796 |
801 ManagedZonesListResponse.fromJson(core.Map _json) { | 797 ManagedZonesListResponse.fromJson(core.Map _json) { |
802 if (_json.containsKey("kind")) { | 798 if (_json.containsKey("kind")) { |
803 kind = _json["kind"]; | 799 kind = _json["kind"]; |
804 } | 800 } |
805 if (_json.containsKey("managedZones")) { | 801 if (_json.containsKey("managedZones")) { |
806 managedZones = _json["managedZones"].map((value) => new ManagedZone.fromJs
on(value)).toList(); | 802 managedZones = _json["managedZones"] |
| 803 .map((value) => new ManagedZone.fromJson(value)) |
| 804 .toList(); |
807 } | 805 } |
808 if (_json.containsKey("nextPageToken")) { | 806 if (_json.containsKey("nextPageToken")) { |
809 nextPageToken = _json["nextPageToken"]; | 807 nextPageToken = _json["nextPageToken"]; |
810 } | 808 } |
811 } | 809 } |
812 | 810 |
813 core.Map<core.String, core.Object> toJson() { | 811 core.Map<core.String, core.Object> toJson() { |
814 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 812 final core.Map<core.String, core.Object> _json = |
| 813 new core.Map<core.String, core.Object>(); |
815 if (kind != null) { | 814 if (kind != null) { |
816 _json["kind"] = kind; | 815 _json["kind"] = kind; |
817 } | 816 } |
818 if (managedZones != null) { | 817 if (managedZones != null) { |
819 _json["managedZones"] = managedZones.map((value) => (value).toJson()).toLi
st(); | 818 _json["managedZones"] = |
| 819 managedZones.map((value) => (value).toJson()).toList(); |
820 } | 820 } |
821 if (nextPageToken != null) { | 821 if (nextPageToken != null) { |
822 _json["nextPageToken"] = nextPageToken; | 822 _json["nextPageToken"] = nextPageToken; |
823 } | 823 } |
824 return _json; | 824 return _json; |
825 } | 825 } |
826 } | 826 } |
827 | 827 |
828 /** | 828 /// A project resource. The project is a top level container for resources |
829 * A project resource. The project is a top level container for resources | 829 /// including Cloud DNS ManagedZones. Projects can be created only in the APIs |
830 * including Cloud DNS ManagedZones. Projects can be created only in the APIs | 830 /// console. |
831 * console. | |
832 */ | |
833 class Project { | 831 class Project { |
834 /** User assigned unique identifier for the resource (output only). */ | 832 /// User assigned unique identifier for the resource (output only). |
835 core.String id; | 833 core.String id; |
836 /** | 834 |
837 * Identifies what kind of resource this is. Value: the fixed string | 835 /// Identifies what kind of resource this is. Value: the fixed string |
838 * "dns#project". | 836 /// "dns#project". |
839 */ | |
840 core.String kind; | 837 core.String kind; |
841 /** | 838 |
842 * Unique numeric identifier for the resource; defined by the server (output | 839 /// Unique numeric identifier for the resource; defined by the server (output |
843 * only). | 840 /// only). |
844 */ | |
845 core.String number; | 841 core.String number; |
846 /** Quotas assigned to this project (output only). */ | 842 |
| 843 /// Quotas assigned to this project (output only). |
847 Quota quota; | 844 Quota quota; |
848 | 845 |
849 Project(); | 846 Project(); |
850 | 847 |
851 Project.fromJson(core.Map _json) { | 848 Project.fromJson(core.Map _json) { |
852 if (_json.containsKey("id")) { | 849 if (_json.containsKey("id")) { |
853 id = _json["id"]; | 850 id = _json["id"]; |
854 } | 851 } |
855 if (_json.containsKey("kind")) { | 852 if (_json.containsKey("kind")) { |
856 kind = _json["kind"]; | 853 kind = _json["kind"]; |
857 } | 854 } |
858 if (_json.containsKey("number")) { | 855 if (_json.containsKey("number")) { |
859 number = _json["number"]; | 856 number = _json["number"]; |
860 } | 857 } |
861 if (_json.containsKey("quota")) { | 858 if (_json.containsKey("quota")) { |
862 quota = new Quota.fromJson(_json["quota"]); | 859 quota = new Quota.fromJson(_json["quota"]); |
863 } | 860 } |
864 } | 861 } |
865 | 862 |
866 core.Map<core.String, core.Object> toJson() { | 863 core.Map<core.String, core.Object> toJson() { |
867 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 864 final core.Map<core.String, core.Object> _json = |
| 865 new core.Map<core.String, core.Object>(); |
868 if (id != null) { | 866 if (id != null) { |
869 _json["id"] = id; | 867 _json["id"] = id; |
870 } | 868 } |
871 if (kind != null) { | 869 if (kind != null) { |
872 _json["kind"] = kind; | 870 _json["kind"] = kind; |
873 } | 871 } |
874 if (number != null) { | 872 if (number != null) { |
875 _json["number"] = number; | 873 _json["number"] = number; |
876 } | 874 } |
877 if (quota != null) { | 875 if (quota != null) { |
878 _json["quota"] = (quota).toJson(); | 876 _json["quota"] = (quota).toJson(); |
879 } | 877 } |
880 return _json; | 878 return _json; |
881 } | 879 } |
882 } | 880 } |
883 | 881 |
884 /** Limits associated with a Project. */ | 882 /// Limits associated with a Project. |
885 class Quota { | 883 class Quota { |
886 /** | 884 /// Identifies what kind of resource this is. Value: the fixed string |
887 * Identifies what kind of resource this is. Value: the fixed string | 885 /// "dns#quota". |
888 * "dns#quota". | |
889 */ | |
890 core.String kind; | 886 core.String kind; |
891 /** Maximum allowed number of managed zones in the project. */ | 887 |
| 888 /// Maximum allowed number of managed zones in the project. |
892 core.int managedZones; | 889 core.int managedZones; |
893 /** Maximum allowed number of ResourceRecords per ResourceRecordSet. */ | 890 |
| 891 /// Maximum allowed number of ResourceRecords per ResourceRecordSet. |
894 core.int resourceRecordsPerRrset; | 892 core.int resourceRecordsPerRrset; |
895 /** | 893 |
896 * Maximum allowed number of ResourceRecordSets to add per | 894 /// Maximum allowed number of ResourceRecordSets to add per |
897 * ChangesCreateRequest. | 895 /// ChangesCreateRequest. |
898 */ | |
899 core.int rrsetAdditionsPerChange; | 896 core.int rrsetAdditionsPerChange; |
900 /** | 897 |
901 * Maximum allowed number of ResourceRecordSets to delete per | 898 /// Maximum allowed number of ResourceRecordSets to delete per |
902 * ChangesCreateRequest. | 899 /// ChangesCreateRequest. |
903 */ | |
904 core.int rrsetDeletionsPerChange; | 900 core.int rrsetDeletionsPerChange; |
905 /** Maximum allowed number of ResourceRecordSets per zone in the project. */ | 901 |
| 902 /// Maximum allowed number of ResourceRecordSets per zone in the project. |
906 core.int rrsetsPerManagedZone; | 903 core.int rrsetsPerManagedZone; |
907 /** | 904 |
908 * Maximum allowed size for total rrdata in one ChangesCreateRequest in bytes. | 905 /// Maximum allowed size for total rrdata in one ChangesCreateRequest in |
909 */ | 906 /// bytes. |
910 core.int totalRrdataSizePerChange; | 907 core.int totalRrdataSizePerChange; |
911 | 908 |
912 Quota(); | 909 Quota(); |
913 | 910 |
914 Quota.fromJson(core.Map _json) { | 911 Quota.fromJson(core.Map _json) { |
915 if (_json.containsKey("kind")) { | 912 if (_json.containsKey("kind")) { |
916 kind = _json["kind"]; | 913 kind = _json["kind"]; |
917 } | 914 } |
918 if (_json.containsKey("managedZones")) { | 915 if (_json.containsKey("managedZones")) { |
919 managedZones = _json["managedZones"]; | 916 managedZones = _json["managedZones"]; |
920 } | 917 } |
921 if (_json.containsKey("resourceRecordsPerRrset")) { | 918 if (_json.containsKey("resourceRecordsPerRrset")) { |
922 resourceRecordsPerRrset = _json["resourceRecordsPerRrset"]; | 919 resourceRecordsPerRrset = _json["resourceRecordsPerRrset"]; |
923 } | 920 } |
924 if (_json.containsKey("rrsetAdditionsPerChange")) { | 921 if (_json.containsKey("rrsetAdditionsPerChange")) { |
925 rrsetAdditionsPerChange = _json["rrsetAdditionsPerChange"]; | 922 rrsetAdditionsPerChange = _json["rrsetAdditionsPerChange"]; |
926 } | 923 } |
927 if (_json.containsKey("rrsetDeletionsPerChange")) { | 924 if (_json.containsKey("rrsetDeletionsPerChange")) { |
928 rrsetDeletionsPerChange = _json["rrsetDeletionsPerChange"]; | 925 rrsetDeletionsPerChange = _json["rrsetDeletionsPerChange"]; |
929 } | 926 } |
930 if (_json.containsKey("rrsetsPerManagedZone")) { | 927 if (_json.containsKey("rrsetsPerManagedZone")) { |
931 rrsetsPerManagedZone = _json["rrsetsPerManagedZone"]; | 928 rrsetsPerManagedZone = _json["rrsetsPerManagedZone"]; |
932 } | 929 } |
933 if (_json.containsKey("totalRrdataSizePerChange")) { | 930 if (_json.containsKey("totalRrdataSizePerChange")) { |
934 totalRrdataSizePerChange = _json["totalRrdataSizePerChange"]; | 931 totalRrdataSizePerChange = _json["totalRrdataSizePerChange"]; |
935 } | 932 } |
936 } | 933 } |
937 | 934 |
938 core.Map<core.String, core.Object> toJson() { | 935 core.Map<core.String, core.Object> toJson() { |
939 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 936 final core.Map<core.String, core.Object> _json = |
| 937 new core.Map<core.String, core.Object>(); |
940 if (kind != null) { | 938 if (kind != null) { |
941 _json["kind"] = kind; | 939 _json["kind"] = kind; |
942 } | 940 } |
943 if (managedZones != null) { | 941 if (managedZones != null) { |
944 _json["managedZones"] = managedZones; | 942 _json["managedZones"] = managedZones; |
945 } | 943 } |
946 if (resourceRecordsPerRrset != null) { | 944 if (resourceRecordsPerRrset != null) { |
947 _json["resourceRecordsPerRrset"] = resourceRecordsPerRrset; | 945 _json["resourceRecordsPerRrset"] = resourceRecordsPerRrset; |
948 } | 946 } |
949 if (rrsetAdditionsPerChange != null) { | 947 if (rrsetAdditionsPerChange != null) { |
950 _json["rrsetAdditionsPerChange"] = rrsetAdditionsPerChange; | 948 _json["rrsetAdditionsPerChange"] = rrsetAdditionsPerChange; |
951 } | 949 } |
952 if (rrsetDeletionsPerChange != null) { | 950 if (rrsetDeletionsPerChange != null) { |
953 _json["rrsetDeletionsPerChange"] = rrsetDeletionsPerChange; | 951 _json["rrsetDeletionsPerChange"] = rrsetDeletionsPerChange; |
954 } | 952 } |
955 if (rrsetsPerManagedZone != null) { | 953 if (rrsetsPerManagedZone != null) { |
956 _json["rrsetsPerManagedZone"] = rrsetsPerManagedZone; | 954 _json["rrsetsPerManagedZone"] = rrsetsPerManagedZone; |
957 } | 955 } |
958 if (totalRrdataSizePerChange != null) { | 956 if (totalRrdataSizePerChange != null) { |
959 _json["totalRrdataSizePerChange"] = totalRrdataSizePerChange; | 957 _json["totalRrdataSizePerChange"] = totalRrdataSizePerChange; |
960 } | 958 } |
961 return _json; | 959 return _json; |
962 } | 960 } |
963 } | 961 } |
964 | 962 |
965 /** A unit of data that will be returned by the DNS servers. */ | 963 /// A unit of data that will be returned by the DNS servers. |
966 class ResourceRecordSet { | 964 class ResourceRecordSet { |
967 /** | 965 /// Identifies what kind of resource this is. Value: the fixed string |
968 * Identifies what kind of resource this is. Value: the fixed string | 966 /// "dns#resourceRecordSet". |
969 * "dns#resourceRecordSet". | |
970 */ | |
971 core.String kind; | 967 core.String kind; |
972 /** For example, www.example.com. */ | 968 |
| 969 /// For example, www.example.com. |
973 core.String name; | 970 core.String name; |
974 /** As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1). */ | 971 |
| 972 /// As defined in RFC 1035 (section 5) and RFC 1034 (section 3.6.1). |
975 core.List<core.String> rrdatas; | 973 core.List<core.String> rrdatas; |
976 /** | 974 |
977 * Number of seconds that this ResourceRecordSet can be cached by resolvers. | 975 /// Number of seconds that this ResourceRecordSet can be cached by resolvers. |
978 */ | |
979 core.int ttl; | 976 core.int ttl; |
980 /** | 977 |
981 * The identifier of a supported record type, for example, A, AAAA, MX, TXT, | 978 /// The identifier of a supported record type, for example, A, AAAA, MX, TXT, |
982 * and so on. | 979 /// and so on. |
983 */ | |
984 core.String type; | 980 core.String type; |
985 | 981 |
986 ResourceRecordSet(); | 982 ResourceRecordSet(); |
987 | 983 |
988 ResourceRecordSet.fromJson(core.Map _json) { | 984 ResourceRecordSet.fromJson(core.Map _json) { |
989 if (_json.containsKey("kind")) { | 985 if (_json.containsKey("kind")) { |
990 kind = _json["kind"]; | 986 kind = _json["kind"]; |
991 } | 987 } |
992 if (_json.containsKey("name")) { | 988 if (_json.containsKey("name")) { |
993 name = _json["name"]; | 989 name = _json["name"]; |
994 } | 990 } |
995 if (_json.containsKey("rrdatas")) { | 991 if (_json.containsKey("rrdatas")) { |
996 rrdatas = _json["rrdatas"]; | 992 rrdatas = _json["rrdatas"]; |
997 } | 993 } |
998 if (_json.containsKey("ttl")) { | 994 if (_json.containsKey("ttl")) { |
999 ttl = _json["ttl"]; | 995 ttl = _json["ttl"]; |
1000 } | 996 } |
1001 if (_json.containsKey("type")) { | 997 if (_json.containsKey("type")) { |
1002 type = _json["type"]; | 998 type = _json["type"]; |
1003 } | 999 } |
1004 } | 1000 } |
1005 | 1001 |
1006 core.Map<core.String, core.Object> toJson() { | 1002 core.Map<core.String, core.Object> toJson() { |
1007 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1003 final core.Map<core.String, core.Object> _json = |
| 1004 new core.Map<core.String, core.Object>(); |
1008 if (kind != null) { | 1005 if (kind != null) { |
1009 _json["kind"] = kind; | 1006 _json["kind"] = kind; |
1010 } | 1007 } |
1011 if (name != null) { | 1008 if (name != null) { |
1012 _json["name"] = name; | 1009 _json["name"] = name; |
1013 } | 1010 } |
1014 if (rrdatas != null) { | 1011 if (rrdatas != null) { |
1015 _json["rrdatas"] = rrdatas; | 1012 _json["rrdatas"] = rrdatas; |
1016 } | 1013 } |
1017 if (ttl != null) { | 1014 if (ttl != null) { |
1018 _json["ttl"] = ttl; | 1015 _json["ttl"] = ttl; |
1019 } | 1016 } |
1020 if (type != null) { | 1017 if (type != null) { |
1021 _json["type"] = type; | 1018 _json["type"] = type; |
1022 } | 1019 } |
1023 return _json; | 1020 return _json; |
1024 } | 1021 } |
1025 } | 1022 } |
1026 | 1023 |
1027 class ResourceRecordSetsListResponse { | 1024 class ResourceRecordSetsListResponse { |
1028 /** Type of resource. */ | 1025 /// Type of resource. |
1029 core.String kind; | 1026 core.String kind; |
1030 /** | 1027 |
1031 * The presence of this field indicates that there exist more results | 1028 /// The presence of this field indicates that there exist more results |
1032 * following your last page of results in pagination order. To fetch them, | 1029 /// following your last page of results in pagination order. To fetch them, |
1033 * make another list request using this value as your pagination token. | 1030 /// make another list request using this value as your pagination token. |
1034 * | 1031 /// |
1035 * In this way you can retrieve the complete contents of even very large | 1032 /// In this way you can retrieve the complete contents of even very large |
1036 * collections one page at a time. However, if the contents of the collection | 1033 /// collections one page at a time. However, if the contents of the |
1037 * change between the first and last paginated list request, the set of all | 1034 /// collection change between the first and last paginated list request, the |
1038 * elements returned will be an inconsistent view of the collection. There is | 1035 /// set of all elements returned will be an inconsistent view of the |
1039 * no way to retrieve a consistent snapshot of a collection larger than the | 1036 /// collection. There is no way to retrieve a consistent snapshot of a |
1040 * maximum page size. | 1037 /// collection larger than the maximum page size. |
1041 */ | |
1042 core.String nextPageToken; | 1038 core.String nextPageToken; |
1043 /** The resource record set resources. */ | 1039 |
| 1040 /// The resource record set resources. |
1044 core.List<ResourceRecordSet> rrsets; | 1041 core.List<ResourceRecordSet> rrsets; |
1045 | 1042 |
1046 ResourceRecordSetsListResponse(); | 1043 ResourceRecordSetsListResponse(); |
1047 | 1044 |
1048 ResourceRecordSetsListResponse.fromJson(core.Map _json) { | 1045 ResourceRecordSetsListResponse.fromJson(core.Map _json) { |
1049 if (_json.containsKey("kind")) { | 1046 if (_json.containsKey("kind")) { |
1050 kind = _json["kind"]; | 1047 kind = _json["kind"]; |
1051 } | 1048 } |
1052 if (_json.containsKey("nextPageToken")) { | 1049 if (_json.containsKey("nextPageToken")) { |
1053 nextPageToken = _json["nextPageToken"]; | 1050 nextPageToken = _json["nextPageToken"]; |
1054 } | 1051 } |
1055 if (_json.containsKey("rrsets")) { | 1052 if (_json.containsKey("rrsets")) { |
1056 rrsets = _json["rrsets"].map((value) => new ResourceRecordSet.fromJson(val
ue)).toList(); | 1053 rrsets = _json["rrsets"] |
| 1054 .map((value) => new ResourceRecordSet.fromJson(value)) |
| 1055 .toList(); |
1057 } | 1056 } |
1058 } | 1057 } |
1059 | 1058 |
1060 core.Map<core.String, core.Object> toJson() { | 1059 core.Map<core.String, core.Object> toJson() { |
1061 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c
ore.Object>(); | 1060 final core.Map<core.String, core.Object> _json = |
| 1061 new core.Map<core.String, core.Object>(); |
1062 if (kind != null) { | 1062 if (kind != null) { |
1063 _json["kind"] = kind; | 1063 _json["kind"] = kind; |
1064 } | 1064 } |
1065 if (nextPageToken != null) { | 1065 if (nextPageToken != null) { |
1066 _json["nextPageToken"] = nextPageToken; | 1066 _json["nextPageToken"] = nextPageToken; |
1067 } | 1067 } |
1068 if (rrsets != null) { | 1068 if (rrsets != null) { |
1069 _json["rrsets"] = rrsets.map((value) => (value).toJson()).toList(); | 1069 _json["rrsets"] = rrsets.map((value) => (value).toJson()).toList(); |
1070 } | 1070 } |
1071 return _json; | 1071 return _json; |
1072 } | 1072 } |
1073 } | 1073 } |
OLD | NEW |