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

Side by Side Diff: generated/googleapis_beta/lib/sqladmin/v1beta3.dart

Issue 3006323002: Api-Roll 54: 2017-09-11 (Closed)
Patch Set: use 2.0.0-dev.infinity sdk constraint in pubspecs Created 3 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.sqladmin.v1beta3; 3 library googleapis_beta.sqladmin.v1beta3;
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 sqladmin/v1beta3'; 15 const core.String USER_AGENT = 'dart-api-client sqladmin/v1beta3';
16 16
17 /** 17 /// Creates and configures Cloud SQL instances, which provide fully-managed
18 * Creates and configures Cloud SQL instances, which provide fully-managed MySQL 18 /// MySQL databases.
19 * databases.
20 */
21 class SqladminApi { 19 class SqladminApi {
22 /** View and manage your data across Google Cloud Platform services */ 20 /// View and manage your data across Google Cloud Platform services
23 static const CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platf orm"; 21 static const CloudPlatformScope =
22 "https://www.googleapis.com/auth/cloud-platform";
24 23
25 /** Manage your Google SQL Service instances */ 24 /// Manage your Google SQL Service instances
26 static const SqlserviceAdminScope = "https://www.googleapis.com/auth/sqlservic e.admin"; 25 static const SqlserviceAdminScope =
27 26 "https://www.googleapis.com/auth/sqlservice.admin";
28 27
29 final commons.ApiRequester _requester; 28 final commons.ApiRequester _requester;
30 29
31 BackupRunsResourceApi get backupRuns => new BackupRunsResourceApi(_requester); 30 BackupRunsResourceApi get backupRuns => new BackupRunsResourceApi(_requester);
32 FlagsResourceApi get flags => new FlagsResourceApi(_requester); 31 FlagsResourceApi get flags => new FlagsResourceApi(_requester);
33 InstancesResourceApi get instances => new InstancesResourceApi(_requester); 32 InstancesResourceApi get instances => new InstancesResourceApi(_requester);
34 OperationsResourceApi get operations => new OperationsResourceApi(_requester); 33 OperationsResourceApi get operations => new OperationsResourceApi(_requester);
35 SslCertsResourceApi get sslCerts => new SslCertsResourceApi(_requester); 34 SslCertsResourceApi get sslCerts => new SslCertsResourceApi(_requester);
36 TiersResourceApi get tiers => new TiersResourceApi(_requester); 35 TiersResourceApi get tiers => new TiersResourceApi(_requester);
37 36
38 SqladminApi(http.Client client, {core.String rootUrl: "https://www.googleapis. com/", core.String servicePath: "sql/v1beta3/"}) : 37 SqladminApi(http.Client client,
39 _requester = new commons.ApiRequester(client, rootUrl, servicePath, USER_A GENT); 38 {core.String rootUrl: "https://www.googleapis.com/",
39 core.String servicePath: "sql/v1beta3/"})
40 : _requester =
41 new commons.ApiRequester(client, rootUrl, servicePath, USER_AGENT);
40 } 42 }
41 43
42
43 class BackupRunsResourceApi { 44 class BackupRunsResourceApi {
44 final commons.ApiRequester _requester; 45 final commons.ApiRequester _requester;
45 46
46 BackupRunsResourceApi(commons.ApiRequester client) : 47 BackupRunsResourceApi(commons.ApiRequester client) : _requester = client;
47 _requester = client;
48 48
49 /** 49 /// Retrieves information about a specified backup run for a Cloud SQL
50 * Retrieves information about a specified backup run for a Cloud SQL 50 /// instance.
51 * instance. 51 ///
52 * 52 /// Request parameters:
53 * Request parameters: 53 ///
54 * 54 /// [project] - Project ID of the project that contains the instance.
55 * [project] - Project ID of the project that contains the instance. 55 ///
56 * 56 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
57 * [instance] - Cloud SQL instance ID. This does not include the project ID. 57 ///
58 * 58 /// [backupConfiguration] - Identifier for the backup configuration. This
59 * [backupConfiguration] - Identifier for the backup configuration. This gets 59 /// gets generated automatically when a backup configuration is created.
60 * generated automatically when a backup configuration is created. 60 ///
61 * 61 /// [dueTime] - The start time of the four-hour backup window. The backup can
62 * [dueTime] - The start time of the four-hour backup window. The backup can 62 /// occur any time in the window. The time is in RFC 3339 format, for example
63 * occur any time in the window. The time is in RFC 3339 format, for example 63 /// 2012-11-15T16:19:00.094Z.
64 * 2012-11-15T16:19:00.094Z. 64 ///
65 * 65 /// Completes with a [BackupRun].
66 * Completes with a [BackupRun]. 66 ///
67 * 67 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
68 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 68 /// an error.
69 * error. 69 ///
70 * 70 /// If the used [http.Client] completes with an error when making a REST
71 * If the used [http.Client] completes with an error when making a REST call, 71 /// call, this method will complete with the same error.
72 * this method will complete with the same error. 72 async.Future<BackupRun> get(core.String project, core.String instance,
73 */ 73 core.String backupConfiguration, core.String dueTime) {
74 async.Future<BackupRun> get(core.String project, core.String instance, core.St ring backupConfiguration, core.String dueTime) {
75 var _url = null; 74 var _url = null;
76 var _queryParams = new core.Map(); 75 var _queryParams = new core.Map();
77 var _uploadMedia = null; 76 var _uploadMedia = null;
78 var _uploadOptions = null; 77 var _uploadOptions = null;
79 var _downloadOptions = commons.DownloadOptions.Metadata; 78 var _downloadOptions = commons.DownloadOptions.Metadata;
80 var _body = null; 79 var _body = null;
81 80
82 if (project == null) { 81 if (project == null) {
83 throw new core.ArgumentError("Parameter project is required."); 82 throw new core.ArgumentError("Parameter project is required.");
84 } 83 }
85 if (instance == null) { 84 if (instance == null) {
86 throw new core.ArgumentError("Parameter instance is required."); 85 throw new core.ArgumentError("Parameter instance is required.");
87 } 86 }
88 if (backupConfiguration == null) { 87 if (backupConfiguration == null) {
89 throw new core.ArgumentError("Parameter backupConfiguration is required.") ; 88 throw new core.ArgumentError(
89 "Parameter backupConfiguration is required.");
90 } 90 }
91 if (dueTime == null) { 91 if (dueTime == null) {
92 throw new core.ArgumentError("Parameter dueTime is required."); 92 throw new core.ArgumentError("Parameter dueTime is required.");
93 } 93 }
94 _queryParams["dueTime"] = [dueTime]; 94 _queryParams["dueTime"] = [dueTime];
95 95
96 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/backupRuns/' + commons.Escap er.ecapeVariable('$backupConfiguration'); 96 _url = 'projects/' +
97 commons.Escaper.ecapeVariable('$project') +
98 '/instances/' +
99 commons.Escaper.ecapeVariable('$instance') +
100 '/backupRuns/' +
101 commons.Escaper.ecapeVariable('$backupConfiguration');
97 102
98 var _response = _requester.request(_url, 103 var _response = _requester.request(_url, "GET",
99 "GET", 104 body: _body,
100 body: _body, 105 queryParams: _queryParams,
101 queryParams: _queryParams, 106 uploadOptions: _uploadOptions,
102 uploadOptions: _uploadOptions, 107 uploadMedia: _uploadMedia,
103 uploadMedia: _uploadMedia, 108 downloadOptions: _downloadOptions);
104 downloadOptions: _downloadOptions);
105 return _response.then((data) => new BackupRun.fromJson(data)); 109 return _response.then((data) => new BackupRun.fromJson(data));
106 } 110 }
107 111
108 /** 112 /// Lists all backup runs associated with a Cloud SQL instance.
109 * Lists all backup runs associated with a Cloud SQL instance. 113 ///
110 * 114 /// Request parameters:
111 * Request parameters: 115 ///
112 * 116 /// [project] - Project ID of the project that contains the instance.
113 * [project] - Project ID of the project that contains the instance. 117 ///
114 * 118 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
115 * [instance] - Cloud SQL instance ID. This does not include the project ID. 119 ///
116 * 120 /// [backupConfiguration] - Identifier for the backup configuration. This
117 * [backupConfiguration] - Identifier for the backup configuration. This gets 121 /// gets generated automatically when a backup configuration is created.
118 * generated automatically when a backup configuration is created. 122 ///
119 * 123 /// [maxResults] - Maximum number of backup runs per response.
120 * [maxResults] - Maximum number of backup runs per response. 124 ///
121 * 125 /// [pageToken] - A previously-returned page token representing part of the
122 * [pageToken] - A previously-returned page token representing part of the 126 /// larger set of results to view.
123 * larger set of results to view. 127 ///
124 * 128 /// Completes with a [BackupRunsListResponse].
125 * Completes with a [BackupRunsListResponse]. 129 ///
126 * 130 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
127 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 131 /// an error.
128 * error. 132 ///
129 * 133 /// If the used [http.Client] completes with an error when making a REST
130 * If the used [http.Client] completes with an error when making a REST call, 134 /// call, this method will complete with the same error.
131 * this method will complete with the same error. 135 async.Future<BackupRunsListResponse> list(core.String project,
132 */ 136 core.String instance, core.String backupConfiguration,
133 async.Future<BackupRunsListResponse> list(core.String project, core.String ins tance, core.String backupConfiguration, {core.int maxResults, core.String pageTo ken}) { 137 {core.int maxResults, core.String pageToken}) {
134 var _url = null; 138 var _url = null;
135 var _queryParams = new core.Map(); 139 var _queryParams = new core.Map();
136 var _uploadMedia = null; 140 var _uploadMedia = null;
137 var _uploadOptions = null; 141 var _uploadOptions = null;
138 var _downloadOptions = commons.DownloadOptions.Metadata; 142 var _downloadOptions = commons.DownloadOptions.Metadata;
139 var _body = null; 143 var _body = null;
140 144
141 if (project == null) { 145 if (project == null) {
142 throw new core.ArgumentError("Parameter project is required."); 146 throw new core.ArgumentError("Parameter project is required.");
143 } 147 }
144 if (instance == null) { 148 if (instance == null) {
145 throw new core.ArgumentError("Parameter instance is required."); 149 throw new core.ArgumentError("Parameter instance is required.");
146 } 150 }
147 if (backupConfiguration == null) { 151 if (backupConfiguration == null) {
148 throw new core.ArgumentError("Parameter backupConfiguration is required.") ; 152 throw new core.ArgumentError(
153 "Parameter backupConfiguration is required.");
149 } 154 }
150 _queryParams["backupConfiguration"] = [backupConfiguration]; 155 _queryParams["backupConfiguration"] = [backupConfiguration];
151 if (maxResults != null) { 156 if (maxResults != null) {
152 _queryParams["maxResults"] = ["${maxResults}"]; 157 _queryParams["maxResults"] = ["${maxResults}"];
153 } 158 }
154 if (pageToken != null) { 159 if (pageToken != null) {
155 _queryParams["pageToken"] = [pageToken]; 160 _queryParams["pageToken"] = [pageToken];
156 } 161 }
157 162
158 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/backupRuns'; 163 _url = 'projects/' +
164 commons.Escaper.ecapeVariable('$project') +
165 '/instances/' +
166 commons.Escaper.ecapeVariable('$instance') +
167 '/backupRuns';
159 168
160 var _response = _requester.request(_url, 169 var _response = _requester.request(_url, "GET",
161 "GET", 170 body: _body,
162 body: _body, 171 queryParams: _queryParams,
163 queryParams: _queryParams, 172 uploadOptions: _uploadOptions,
164 uploadOptions: _uploadOptions, 173 uploadMedia: _uploadMedia,
165 uploadMedia: _uploadMedia, 174 downloadOptions: _downloadOptions);
166 downloadOptions: _downloadOptions);
167 return _response.then((data) => new BackupRunsListResponse.fromJson(data)); 175 return _response.then((data) => new BackupRunsListResponse.fromJson(data));
168 } 176 }
169
170 } 177 }
171 178
172
173 class FlagsResourceApi { 179 class FlagsResourceApi {
174 final commons.ApiRequester _requester; 180 final commons.ApiRequester _requester;
175 181
176 FlagsResourceApi(commons.ApiRequester client) : 182 FlagsResourceApi(commons.ApiRequester client) : _requester = client;
177 _requester = client;
178 183
179 /** 184 /// Lists all database flags that can be set for Google Cloud SQL instances.
180 * Lists all database flags that can be set for Google Cloud SQL instances. 185 ///
181 * 186 /// Request parameters:
182 * Request parameters: 187 ///
183 * 188 /// Completes with a [FlagsListResponse].
184 * Completes with a [FlagsListResponse]. 189 ///
185 * 190 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
186 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 191 /// an error.
187 * error. 192 ///
188 * 193 /// If the used [http.Client] completes with an error when making a REST
189 * If the used [http.Client] completes with an error when making a REST call, 194 /// call, this method will complete with the same error.
190 * this method will complete with the same error.
191 */
192 async.Future<FlagsListResponse> list() { 195 async.Future<FlagsListResponse> list() {
193 var _url = null; 196 var _url = null;
194 var _queryParams = new core.Map(); 197 var _queryParams = new core.Map();
195 var _uploadMedia = null; 198 var _uploadMedia = null;
196 var _uploadOptions = null; 199 var _uploadOptions = null;
197 var _downloadOptions = commons.DownloadOptions.Metadata; 200 var _downloadOptions = commons.DownloadOptions.Metadata;
198 var _body = null; 201 var _body = null;
199 202
200
201 _url = 'flags'; 203 _url = 'flags';
202 204
203 var _response = _requester.request(_url, 205 var _response = _requester.request(_url, "GET",
204 "GET", 206 body: _body,
205 body: _body, 207 queryParams: _queryParams,
206 queryParams: _queryParams, 208 uploadOptions: _uploadOptions,
207 uploadOptions: _uploadOptions, 209 uploadMedia: _uploadMedia,
208 uploadMedia: _uploadMedia, 210 downloadOptions: _downloadOptions);
209 downloadOptions: _downloadOptions);
210 return _response.then((data) => new FlagsListResponse.fromJson(data)); 211 return _response.then((data) => new FlagsListResponse.fromJson(data));
211 } 212 }
212
213 } 213 }
214 214
215
216 class InstancesResourceApi { 215 class InstancesResourceApi {
217 final commons.ApiRequester _requester; 216 final commons.ApiRequester _requester;
218 217
219 InstancesResourceApi(commons.ApiRequester client) : 218 InstancesResourceApi(commons.ApiRequester client) : _requester = client;
220 _requester = client;
221 219
222 /** 220 /// Creates a Cloud SQL instance as a clone of a source instance.
223 * Creates a Cloud SQL instance as a clone of a source instance. 221 ///
224 * 222 /// [request] - The metadata request object.
225 * [request] - The metadata request object. 223 ///
226 * 224 /// Request parameters:
227 * Request parameters: 225 ///
228 * 226 /// [project] - Project ID of the source as well as the clone Cloud SQL
229 * [project] - Project ID of the source as well as the clone Cloud SQL 227 /// instance.
230 * instance. 228 ///
231 * 229 /// Completes with a [InstancesCloneResponse].
232 * Completes with a [InstancesCloneResponse]. 230 ///
233 * 231 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
234 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 232 /// an error.
235 * error. 233 ///
236 * 234 /// If the used [http.Client] completes with an error when making a REST
237 * If the used [http.Client] completes with an error when making a REST call, 235 /// call, this method will complete with the same error.
238 * this method will complete with the same error. 236 async.Future<InstancesCloneResponse> clone(
239 */ 237 InstancesCloneRequest request, core.String project) {
240 async.Future<InstancesCloneResponse> clone(InstancesCloneRequest request, core .String project) {
241 var _url = null; 238 var _url = null;
242 var _queryParams = new core.Map(); 239 var _queryParams = new core.Map();
243 var _uploadMedia = null; 240 var _uploadMedia = null;
244 var _uploadOptions = null; 241 var _uploadOptions = null;
245 var _downloadOptions = commons.DownloadOptions.Metadata; 242 var _downloadOptions = commons.DownloadOptions.Metadata;
246 var _body = null; 243 var _body = null;
247 244
248 if (request != null) { 245 if (request != null) {
249 _body = convert.JSON.encode((request).toJson()); 246 _body = convert.JSON.encode((request).toJson());
250 } 247 }
251 if (project == null) { 248 if (project == null) {
252 throw new core.ArgumentError("Parameter project is required."); 249 throw new core.ArgumentError("Parameter project is required.");
253 } 250 }
254 251
255 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /clone'; 252 _url = 'projects/' +
253 commons.Escaper.ecapeVariable('$project') +
254 '/instances/clone';
256 255
257 var _response = _requester.request(_url, 256 var _response = _requester.request(_url, "POST",
258 "POST", 257 body: _body,
259 body: _body, 258 queryParams: _queryParams,
260 queryParams: _queryParams, 259 uploadOptions: _uploadOptions,
261 uploadOptions: _uploadOptions, 260 uploadMedia: _uploadMedia,
262 uploadMedia: _uploadMedia, 261 downloadOptions: _downloadOptions);
263 downloadOptions: _downloadOptions);
264 return _response.then((data) => new InstancesCloneResponse.fromJson(data)); 262 return _response.then((data) => new InstancesCloneResponse.fromJson(data));
265 } 263 }
266 264
267 /** 265 /// Deletes a Cloud SQL instance.
268 * Deletes a Cloud SQL instance. 266 ///
269 * 267 /// Request parameters:
270 * Request parameters: 268 ///
271 * 269 /// [project] - Project ID of the project that contains the instance to be
272 * [project] - Project ID of the project that contains the instance to be 270 /// deleted.
273 * deleted. 271 ///
274 * 272 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
275 * [instance] - Cloud SQL instance ID. This does not include the project ID. 273 ///
276 * 274 /// Completes with a [InstancesDeleteResponse].
277 * Completes with a [InstancesDeleteResponse]. 275 ///
278 * 276 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
279 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 277 /// an error.
280 * error. 278 ///
281 * 279 /// If the used [http.Client] completes with an error when making a REST
282 * If the used [http.Client] completes with an error when making a REST call, 280 /// call, this method will complete with the same error.
283 * this method will complete with the same error. 281 async.Future<InstancesDeleteResponse> delete(
284 */ 282 core.String project, core.String instance) {
285 async.Future<InstancesDeleteResponse> delete(core.String project, core.String instance) {
286 var _url = null; 283 var _url = null;
287 var _queryParams = new core.Map(); 284 var _queryParams = new core.Map();
288 var _uploadMedia = null; 285 var _uploadMedia = null;
289 var _uploadOptions = null; 286 var _uploadOptions = null;
290 var _downloadOptions = commons.DownloadOptions.Metadata; 287 var _downloadOptions = commons.DownloadOptions.Metadata;
291 var _body = null; 288 var _body = null;
292 289
293 if (project == null) { 290 if (project == null) {
294 throw new core.ArgumentError("Parameter project is required."); 291 throw new core.ArgumentError("Parameter project is required.");
295 } 292 }
296 if (instance == null) { 293 if (instance == null) {
297 throw new core.ArgumentError("Parameter instance is required."); 294 throw new core.ArgumentError("Parameter instance is required.");
298 } 295 }
299 296
300 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance'); 297 _url = 'projects/' +
298 commons.Escaper.ecapeVariable('$project') +
299 '/instances/' +
300 commons.Escaper.ecapeVariable('$instance');
301 301
302 var _response = _requester.request(_url, 302 var _response = _requester.request(_url, "DELETE",
303 "DELETE", 303 body: _body,
304 body: _body, 304 queryParams: _queryParams,
305 queryParams: _queryParams, 305 uploadOptions: _uploadOptions,
306 uploadOptions: _uploadOptions, 306 uploadMedia: _uploadMedia,
307 uploadMedia: _uploadMedia, 307 downloadOptions: _downloadOptions);
308 downloadOptions: _downloadOptions);
309 return _response.then((data) => new InstancesDeleteResponse.fromJson(data)); 308 return _response.then((data) => new InstancesDeleteResponse.fromJson(data));
310 } 309 }
311 310
312 /** 311 /// Exports data from a Cloud SQL instance to a Google Cloud Storage bucket
313 * Exports data from a Cloud SQL instance to a Google Cloud Storage bucket as 312 /// as a MySQL dump file.
314 * a MySQL dump file. 313 ///
315 * 314 /// [request] - The metadata request object.
316 * [request] - The metadata request object. 315 ///
317 * 316 /// Request parameters:
318 * Request parameters: 317 ///
319 * 318 /// [project] - Project ID of the project that contains the instance to be
320 * [project] - Project ID of the project that contains the instance to be 319 /// exported.
321 * exported. 320 ///
322 * 321 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
323 * [instance] - Cloud SQL instance ID. This does not include the project ID. 322 ///
324 * 323 /// Completes with a [InstancesExportResponse].
325 * Completes with a [InstancesExportResponse]. 324 ///
326 * 325 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
327 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 326 /// an error.
328 * error. 327 ///
329 * 328 /// If the used [http.Client] completes with an error when making a REST
330 * If the used [http.Client] completes with an error when making a REST call, 329 /// call, this method will complete with the same error.
331 * this method will complete with the same error. 330 async.Future<InstancesExportResponse> export(InstancesExportRequest request,
332 */ 331 core.String project, core.String instance) {
333 async.Future<InstancesExportResponse> export(InstancesExportRequest request, c ore.String project, core.String instance) {
334 var _url = null; 332 var _url = null;
335 var _queryParams = new core.Map(); 333 var _queryParams = new core.Map();
336 var _uploadMedia = null; 334 var _uploadMedia = null;
337 var _uploadOptions = null; 335 var _uploadOptions = null;
338 var _downloadOptions = commons.DownloadOptions.Metadata; 336 var _downloadOptions = commons.DownloadOptions.Metadata;
339 var _body = null; 337 var _body = null;
340 338
341 if (request != null) { 339 if (request != null) {
342 _body = convert.JSON.encode((request).toJson()); 340 _body = convert.JSON.encode((request).toJson());
343 } 341 }
344 if (project == null) { 342 if (project == null) {
345 throw new core.ArgumentError("Parameter project is required."); 343 throw new core.ArgumentError("Parameter project is required.");
346 } 344 }
347 if (instance == null) { 345 if (instance == null) {
348 throw new core.ArgumentError("Parameter instance is required."); 346 throw new core.ArgumentError("Parameter instance is required.");
349 } 347 }
350 348
351 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/export'; 349 _url = 'projects/' +
350 commons.Escaper.ecapeVariable('$project') +
351 '/instances/' +
352 commons.Escaper.ecapeVariable('$instance') +
353 '/export';
352 354
353 var _response = _requester.request(_url, 355 var _response = _requester.request(_url, "POST",
354 "POST", 356 body: _body,
355 body: _body, 357 queryParams: _queryParams,
356 queryParams: _queryParams, 358 uploadOptions: _uploadOptions,
357 uploadOptions: _uploadOptions, 359 uploadMedia: _uploadMedia,
358 uploadMedia: _uploadMedia, 360 downloadOptions: _downloadOptions);
359 downloadOptions: _downloadOptions);
360 return _response.then((data) => new InstancesExportResponse.fromJson(data)); 361 return _response.then((data) => new InstancesExportResponse.fromJson(data));
361 } 362 }
362 363
363 /** 364 /// Retrieves information about a Cloud SQL instance.
364 * Retrieves information about a Cloud SQL instance. 365 ///
365 * 366 /// Request parameters:
366 * Request parameters: 367 ///
367 * 368 /// [project] - Project ID of the project that contains the instance.
368 * [project] - Project ID of the project that contains the instance. 369 ///
369 * 370 /// [instance] - Database instance ID. This does not include the project ID.
370 * [instance] - Database instance ID. This does not include the project ID. 371 ///
371 * 372 /// Completes with a [DatabaseInstance].
372 * Completes with a [DatabaseInstance]. 373 ///
373 * 374 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
374 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 375 /// an error.
375 * error. 376 ///
376 * 377 /// If the used [http.Client] completes with an error when making a REST
377 * If the used [http.Client] completes with an error when making a REST call, 378 /// call, this method will complete with the same error.
378 * this method will complete with the same error. 379 async.Future<DatabaseInstance> get(
379 */ 380 core.String project, core.String instance) {
380 async.Future<DatabaseInstance> get(core.String project, core.String instance) {
381 var _url = null; 381 var _url = null;
382 var _queryParams = new core.Map(); 382 var _queryParams = new core.Map();
383 var _uploadMedia = null; 383 var _uploadMedia = null;
384 var _uploadOptions = null; 384 var _uploadOptions = null;
385 var _downloadOptions = commons.DownloadOptions.Metadata; 385 var _downloadOptions = commons.DownloadOptions.Metadata;
386 var _body = null; 386 var _body = null;
387 387
388 if (project == null) { 388 if (project == null) {
389 throw new core.ArgumentError("Parameter project is required."); 389 throw new core.ArgumentError("Parameter project is required.");
390 } 390 }
391 if (instance == null) { 391 if (instance == null) {
392 throw new core.ArgumentError("Parameter instance is required."); 392 throw new core.ArgumentError("Parameter instance is required.");
393 } 393 }
394 394
395 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance'); 395 _url = 'projects/' +
396 commons.Escaper.ecapeVariable('$project') +
397 '/instances/' +
398 commons.Escaper.ecapeVariable('$instance');
396 399
397 var _response = _requester.request(_url, 400 var _response = _requester.request(_url, "GET",
398 "GET", 401 body: _body,
399 body: _body, 402 queryParams: _queryParams,
400 queryParams: _queryParams, 403 uploadOptions: _uploadOptions,
401 uploadOptions: _uploadOptions, 404 uploadMedia: _uploadMedia,
402 uploadMedia: _uploadMedia, 405 downloadOptions: _downloadOptions);
403 downloadOptions: _downloadOptions);
404 return _response.then((data) => new DatabaseInstance.fromJson(data)); 406 return _response.then((data) => new DatabaseInstance.fromJson(data));
405 } 407 }
406 408
407 /** 409 /// Imports data into a Cloud SQL instance from a MySQL dump file stored in a
408 * Imports data into a Cloud SQL instance from a MySQL dump file stored in a 410 /// Google Cloud Storage bucket.
409 * Google Cloud Storage bucket. 411 ///
410 * 412 /// [request] - The metadata request object.
411 * [request] - The metadata request object. 413 ///
412 * 414 /// Request parameters:
413 * Request parameters: 415 ///
414 * 416 /// [project] - Project ID of the project that contains the instance.
415 * [project] - Project ID of the project that contains the instance. 417 ///
416 * 418 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
417 * [instance] - Cloud SQL instance ID. This does not include the project ID. 419 ///
418 * 420 /// Completes with a [InstancesImportResponse].
419 * Completes with a [InstancesImportResponse]. 421 ///
420 * 422 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
421 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 423 /// an error.
422 * error. 424 ///
423 * 425 /// If the used [http.Client] completes with an error when making a REST
424 * If the used [http.Client] completes with an error when making a REST call, 426 /// call, this method will complete with the same error.
425 * this method will complete with the same error. 427 async.Future<InstancesImportResponse> import(InstancesImportRequest request,
426 */ 428 core.String project, core.String instance) {
427 async.Future<InstancesImportResponse> import(InstancesImportRequest request, c ore.String project, core.String instance) {
428 var _url = null; 429 var _url = null;
429 var _queryParams = new core.Map(); 430 var _queryParams = new core.Map();
430 var _uploadMedia = null; 431 var _uploadMedia = null;
431 var _uploadOptions = null; 432 var _uploadOptions = null;
432 var _downloadOptions = commons.DownloadOptions.Metadata; 433 var _downloadOptions = commons.DownloadOptions.Metadata;
433 var _body = null; 434 var _body = null;
434 435
435 if (request != null) { 436 if (request != null) {
436 _body = convert.JSON.encode((request).toJson()); 437 _body = convert.JSON.encode((request).toJson());
437 } 438 }
438 if (project == null) { 439 if (project == null) {
439 throw new core.ArgumentError("Parameter project is required."); 440 throw new core.ArgumentError("Parameter project is required.");
440 } 441 }
441 if (instance == null) { 442 if (instance == null) {
442 throw new core.ArgumentError("Parameter instance is required."); 443 throw new core.ArgumentError("Parameter instance is required.");
443 } 444 }
444 445
445 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/import'; 446 _url = 'projects/' +
447 commons.Escaper.ecapeVariable('$project') +
448 '/instances/' +
449 commons.Escaper.ecapeVariable('$instance') +
450 '/import';
446 451
447 var _response = _requester.request(_url, 452 var _response = _requester.request(_url, "POST",
448 "POST", 453 body: _body,
449 body: _body, 454 queryParams: _queryParams,
450 queryParams: _queryParams, 455 uploadOptions: _uploadOptions,
451 uploadOptions: _uploadOptions, 456 uploadMedia: _uploadMedia,
452 uploadMedia: _uploadMedia, 457 downloadOptions: _downloadOptions);
453 downloadOptions: _downloadOptions);
454 return _response.then((data) => new InstancesImportResponse.fromJson(data)); 458 return _response.then((data) => new InstancesImportResponse.fromJson(data));
455 } 459 }
456 460
457 /** 461 /// Creates a new Cloud SQL instance.
458 * Creates a new Cloud SQL instance. 462 ///
459 * 463 /// [request] - The metadata request object.
460 * [request] - The metadata request object. 464 ///
461 * 465 /// Request parameters:
462 * Request parameters: 466 ///
463 * 467 /// [project] - Project ID of the project to which the newly created Cloud
464 * [project] - Project ID of the project to which the newly created Cloud SQL 468 /// SQL instances should belong.
465 * instances should belong. 469 ///
466 * 470 /// Completes with a [InstancesInsertResponse].
467 * Completes with a [InstancesInsertResponse]. 471 ///
468 * 472 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
469 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 473 /// an error.
470 * error. 474 ///
471 * 475 /// If the used [http.Client] completes with an error when making a REST
472 * If the used [http.Client] completes with an error when making a REST call, 476 /// call, this method will complete with the same error.
473 * this method will complete with the same error. 477 async.Future<InstancesInsertResponse> insert(
474 */ 478 DatabaseInstance request, core.String project) {
475 async.Future<InstancesInsertResponse> insert(DatabaseInstance request, core.St ring project) {
476 var _url = null; 479 var _url = null;
477 var _queryParams = new core.Map(); 480 var _queryParams = new core.Map();
478 var _uploadMedia = null; 481 var _uploadMedia = null;
479 var _uploadOptions = null; 482 var _uploadOptions = null;
480 var _downloadOptions = commons.DownloadOptions.Metadata; 483 var _downloadOptions = commons.DownloadOptions.Metadata;
481 var _body = null; 484 var _body = null;
482 485
483 if (request != null) { 486 if (request != null) {
484 _body = convert.JSON.encode((request).toJson()); 487 _body = convert.JSON.encode((request).toJson());
485 } 488 }
486 if (project == null) { 489 if (project == null) {
487 throw new core.ArgumentError("Parameter project is required."); 490 throw new core.ArgumentError("Parameter project is required.");
488 } 491 }
489 492
490 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances '; 493 _url =
494 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances';
491 495
492 var _response = _requester.request(_url, 496 var _response = _requester.request(_url, "POST",
493 "POST", 497 body: _body,
494 body: _body, 498 queryParams: _queryParams,
495 queryParams: _queryParams, 499 uploadOptions: _uploadOptions,
496 uploadOptions: _uploadOptions, 500 uploadMedia: _uploadMedia,
497 uploadMedia: _uploadMedia, 501 downloadOptions: _downloadOptions);
498 downloadOptions: _downloadOptions);
499 return _response.then((data) => new InstancesInsertResponse.fromJson(data)); 502 return _response.then((data) => new InstancesInsertResponse.fromJson(data));
500 } 503 }
501 504
502 /** 505 /// Lists instances for a given project, in alphabetical order by instance
503 * Lists instances for a given project, in alphabetical order by instance 506 /// name.
504 * name. 507 ///
505 * 508 /// Request parameters:
506 * Request parameters: 509 ///
507 * 510 /// [project] - Project ID of the project for which to list Cloud SQL
508 * [project] - Project ID of the project for which to list Cloud SQL 511 /// instances.
509 * instances. 512 ///
510 * 513 /// [maxResults] - The maximum number of results to return per response.
511 * [maxResults] - The maximum number of results to return per response. 514 ///
512 * 515 /// [pageToken] - A previously-returned page token representing part of the
513 * [pageToken] - A previously-returned page token representing part of the 516 /// larger set of results to view.
514 * larger set of results to view. 517 ///
515 * 518 /// Completes with a [InstancesListResponse].
516 * Completes with a [InstancesListResponse]. 519 ///
517 * 520 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
518 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 521 /// an error.
519 * error. 522 ///
520 * 523 /// If the used [http.Client] completes with an error when making a REST
521 * If the used [http.Client] completes with an error when making a REST call, 524 /// call, this method will complete with the same error.
522 * this method will complete with the same error. 525 async.Future<InstancesListResponse> list(core.String project,
523 */ 526 {core.int maxResults, core.String pageToken}) {
524 async.Future<InstancesListResponse> list(core.String project, {core.int maxRes ults, core.String pageToken}) {
525 var _url = null; 527 var _url = null;
526 var _queryParams = new core.Map(); 528 var _queryParams = new core.Map();
527 var _uploadMedia = null; 529 var _uploadMedia = null;
528 var _uploadOptions = null; 530 var _uploadOptions = null;
529 var _downloadOptions = commons.DownloadOptions.Metadata; 531 var _downloadOptions = commons.DownloadOptions.Metadata;
530 var _body = null; 532 var _body = null;
531 533
532 if (project == null) { 534 if (project == null) {
533 throw new core.ArgumentError("Parameter project is required."); 535 throw new core.ArgumentError("Parameter project is required.");
534 } 536 }
535 if (maxResults != null) { 537 if (maxResults != null) {
536 _queryParams["maxResults"] = ["${maxResults}"]; 538 _queryParams["maxResults"] = ["${maxResults}"];
537 } 539 }
538 if (pageToken != null) { 540 if (pageToken != null) {
539 _queryParams["pageToken"] = [pageToken]; 541 _queryParams["pageToken"] = [pageToken];
540 } 542 }
541 543
542 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances '; 544 _url =
545 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances';
543 546
544 var _response = _requester.request(_url, 547 var _response = _requester.request(_url, "GET",
545 "GET", 548 body: _body,
546 body: _body, 549 queryParams: _queryParams,
547 queryParams: _queryParams, 550 uploadOptions: _uploadOptions,
548 uploadOptions: _uploadOptions, 551 uploadMedia: _uploadMedia,
549 uploadMedia: _uploadMedia, 552 downloadOptions: _downloadOptions);
550 downloadOptions: _downloadOptions);
551 return _response.then((data) => new InstancesListResponse.fromJson(data)); 553 return _response.then((data) => new InstancesListResponse.fromJson(data));
552 } 554 }
553 555
554 /** 556 /// Updates the settings of a Cloud SQL instance. This method supports patch
555 * Updates the settings of a Cloud SQL instance. This method supports patch 557 /// semantics.
556 * semantics. 558 ///
557 * 559 /// [request] - The metadata request object.
558 * [request] - The metadata request object. 560 ///
559 * 561 /// Request parameters:
560 * Request parameters: 562 ///
561 * 563 /// [project] - Project ID of the project that contains the instance.
562 * [project] - Project ID of the project that contains the instance. 564 ///
563 * 565 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
564 * [instance] - Cloud SQL instance ID. This does not include the project ID. 566 ///
565 * 567 /// Completes with a [InstancesUpdateResponse].
566 * Completes with a [InstancesUpdateResponse]. 568 ///
567 * 569 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
568 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 570 /// an error.
569 * error. 571 ///
570 * 572 /// If the used [http.Client] completes with an error when making a REST
571 * If the used [http.Client] completes with an error when making a REST call, 573 /// call, this method will complete with the same error.
572 * this method will complete with the same error. 574 async.Future<InstancesUpdateResponse> patch(
573 */ 575 DatabaseInstance request, core.String project, core.String instance) {
574 async.Future<InstancesUpdateResponse> patch(DatabaseInstance request, core.Str ing project, core.String instance) {
575 var _url = null; 576 var _url = null;
576 var _queryParams = new core.Map(); 577 var _queryParams = new core.Map();
577 var _uploadMedia = null; 578 var _uploadMedia = null;
578 var _uploadOptions = null; 579 var _uploadOptions = null;
579 var _downloadOptions = commons.DownloadOptions.Metadata; 580 var _downloadOptions = commons.DownloadOptions.Metadata;
580 var _body = null; 581 var _body = null;
581 582
582 if (request != null) { 583 if (request != null) {
583 _body = convert.JSON.encode((request).toJson()); 584 _body = convert.JSON.encode((request).toJson());
584 } 585 }
585 if (project == null) { 586 if (project == null) {
586 throw new core.ArgumentError("Parameter project is required."); 587 throw new core.ArgumentError("Parameter project is required.");
587 } 588 }
588 if (instance == null) { 589 if (instance == null) {
589 throw new core.ArgumentError("Parameter instance is required."); 590 throw new core.ArgumentError("Parameter instance is required.");
590 } 591 }
591 592
592 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance'); 593 _url = 'projects/' +
594 commons.Escaper.ecapeVariable('$project') +
595 '/instances/' +
596 commons.Escaper.ecapeVariable('$instance');
593 597
594 var _response = _requester.request(_url, 598 var _response = _requester.request(_url, "PATCH",
595 "PATCH", 599 body: _body,
596 body: _body, 600 queryParams: _queryParams,
597 queryParams: _queryParams, 601 uploadOptions: _uploadOptions,
598 uploadOptions: _uploadOptions, 602 uploadMedia: _uploadMedia,
599 uploadMedia: _uploadMedia, 603 downloadOptions: _downloadOptions);
600 downloadOptions: _downloadOptions);
601 return _response.then((data) => new InstancesUpdateResponse.fromJson(data)); 604 return _response.then((data) => new InstancesUpdateResponse.fromJson(data));
602 } 605 }
603 606
604 /** 607 /// Promotes the read replica instance to be a stand-alone Cloud SQL
605 * Promotes the read replica instance to be a stand-alone Cloud SQL instance. 608 /// instance.
606 * 609 ///
607 * Request parameters: 610 /// Request parameters:
608 * 611 ///
609 * [project] - ID of the project that contains the read replica. 612 /// [project] - ID of the project that contains the read replica.
610 * 613 ///
611 * [instance] - Cloud SQL read replica instance name. 614 /// [instance] - Cloud SQL read replica instance name.
612 * 615 ///
613 * Completes with a [InstancesPromoteReplicaResponse]. 616 /// Completes with a [InstancesPromoteReplicaResponse].
614 * 617 ///
615 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 618 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
616 * error. 619 /// an error.
617 * 620 ///
618 * If the used [http.Client] completes with an error when making a REST call, 621 /// If the used [http.Client] completes with an error when making a REST
619 * this method will complete with the same error. 622 /// call, this method will complete with the same error.
620 */ 623 async.Future<InstancesPromoteReplicaResponse> promoteReplica(
621 async.Future<InstancesPromoteReplicaResponse> promoteReplica(core.String proje ct, core.String instance) { 624 core.String project, core.String instance) {
622 var _url = null; 625 var _url = null;
623 var _queryParams = new core.Map(); 626 var _queryParams = new core.Map();
624 var _uploadMedia = null; 627 var _uploadMedia = null;
625 var _uploadOptions = null; 628 var _uploadOptions = null;
626 var _downloadOptions = commons.DownloadOptions.Metadata; 629 var _downloadOptions = commons.DownloadOptions.Metadata;
627 var _body = null; 630 var _body = null;
628 631
629 if (project == null) { 632 if (project == null) {
630 throw new core.ArgumentError("Parameter project is required."); 633 throw new core.ArgumentError("Parameter project is required.");
631 } 634 }
632 if (instance == null) { 635 if (instance == null) {
633 throw new core.ArgumentError("Parameter instance is required."); 636 throw new core.ArgumentError("Parameter instance is required.");
634 } 637 }
635 638
636 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/promoteReplica'; 639 _url = 'projects/' +
640 commons.Escaper.ecapeVariable('$project') +
641 '/instances/' +
642 commons.Escaper.ecapeVariable('$instance') +
643 '/promoteReplica';
637 644
638 var _response = _requester.request(_url, 645 var _response = _requester.request(_url, "POST",
639 "POST", 646 body: _body,
640 body: _body, 647 queryParams: _queryParams,
641 queryParams: _queryParams, 648 uploadOptions: _uploadOptions,
642 uploadOptions: _uploadOptions, 649 uploadMedia: _uploadMedia,
643 uploadMedia: _uploadMedia, 650 downloadOptions: _downloadOptions);
644 downloadOptions: _downloadOptions); 651 return _response
645 return _response.then((data) => new InstancesPromoteReplicaResponse.fromJson (data)); 652 .then((data) => new InstancesPromoteReplicaResponse.fromJson(data));
646 } 653 }
647 654
648 /** 655 /// Deletes all client certificates and generates a new server SSL
649 * Deletes all client certificates and generates a new server SSL certificate 656 /// certificate for a Cloud SQL instance.
650 * for a Cloud SQL instance. 657 ///
651 * 658 /// Request parameters:
652 * Request parameters: 659 ///
653 * 660 /// [project] - Project ID of the project that contains the instance.
654 * [project] - Project ID of the project that contains the instance. 661 ///
655 * 662 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
656 * [instance] - Cloud SQL instance ID. This does not include the project ID. 663 ///
657 * 664 /// Completes with a [InstancesResetSslConfigResponse].
658 * Completes with a [InstancesResetSslConfigResponse]. 665 ///
659 * 666 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
660 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 667 /// an error.
661 * error. 668 ///
662 * 669 /// If the used [http.Client] completes with an error when making a REST
663 * If the used [http.Client] completes with an error when making a REST call, 670 /// call, this method will complete with the same error.
664 * this method will complete with the same error. 671 async.Future<InstancesResetSslConfigResponse> resetSslConfig(
665 */ 672 core.String project, core.String instance) {
666 async.Future<InstancesResetSslConfigResponse> resetSslConfig(core.String proje ct, core.String instance) {
667 var _url = null; 673 var _url = null;
668 var _queryParams = new core.Map(); 674 var _queryParams = new core.Map();
669 var _uploadMedia = null; 675 var _uploadMedia = null;
670 var _uploadOptions = null; 676 var _uploadOptions = null;
671 var _downloadOptions = commons.DownloadOptions.Metadata; 677 var _downloadOptions = commons.DownloadOptions.Metadata;
672 var _body = null; 678 var _body = null;
673 679
674 if (project == null) { 680 if (project == null) {
675 throw new core.ArgumentError("Parameter project is required."); 681 throw new core.ArgumentError("Parameter project is required.");
676 } 682 }
677 if (instance == null) { 683 if (instance == null) {
678 throw new core.ArgumentError("Parameter instance is required."); 684 throw new core.ArgumentError("Parameter instance is required.");
679 } 685 }
680 686
681 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/resetSslConfig'; 687 _url = 'projects/' +
688 commons.Escaper.ecapeVariable('$project') +
689 '/instances/' +
690 commons.Escaper.ecapeVariable('$instance') +
691 '/resetSslConfig';
682 692
683 var _response = _requester.request(_url, 693 var _response = _requester.request(_url, "POST",
684 "POST", 694 body: _body,
685 body: _body, 695 queryParams: _queryParams,
686 queryParams: _queryParams, 696 uploadOptions: _uploadOptions,
687 uploadOptions: _uploadOptions, 697 uploadMedia: _uploadMedia,
688 uploadMedia: _uploadMedia, 698 downloadOptions: _downloadOptions);
689 downloadOptions: _downloadOptions); 699 return _response
690 return _response.then((data) => new InstancesResetSslConfigResponse.fromJson (data)); 700 .then((data) => new InstancesResetSslConfigResponse.fromJson(data));
691 } 701 }
692 702
693 /** 703 /// Restarts a Cloud SQL instance.
694 * Restarts a Cloud SQL instance. 704 ///
695 * 705 /// Request parameters:
696 * Request parameters: 706 ///
697 * 707 /// [project] - Project ID of the project that contains the instance to be
698 * [project] - Project ID of the project that contains the instance to be 708 /// restarted.
699 * restarted. 709 ///
700 * 710 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
701 * [instance] - Cloud SQL instance ID. This does not include the project ID. 711 ///
702 * 712 /// Completes with a [InstancesRestartResponse].
703 * Completes with a [InstancesRestartResponse]. 713 ///
704 * 714 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
705 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 715 /// an error.
706 * error. 716 ///
707 * 717 /// If the used [http.Client] completes with an error when making a REST
708 * If the used [http.Client] completes with an error when making a REST call, 718 /// call, this method will complete with the same error.
709 * this method will complete with the same error. 719 async.Future<InstancesRestartResponse> restart(
710 */ 720 core.String project, core.String instance) {
711 async.Future<InstancesRestartResponse> restart(core.String project, core.Strin g instance) {
712 var _url = null; 721 var _url = null;
713 var _queryParams = new core.Map(); 722 var _queryParams = new core.Map();
714 var _uploadMedia = null; 723 var _uploadMedia = null;
715 var _uploadOptions = null; 724 var _uploadOptions = null;
716 var _downloadOptions = commons.DownloadOptions.Metadata; 725 var _downloadOptions = commons.DownloadOptions.Metadata;
717 var _body = null; 726 var _body = null;
718 727
719 if (project == null) { 728 if (project == null) {
720 throw new core.ArgumentError("Parameter project is required."); 729 throw new core.ArgumentError("Parameter project is required.");
721 } 730 }
722 if (instance == null) { 731 if (instance == null) {
723 throw new core.ArgumentError("Parameter instance is required."); 732 throw new core.ArgumentError("Parameter instance is required.");
724 } 733 }
725 734
726 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/restart'; 735 _url = 'projects/' +
736 commons.Escaper.ecapeVariable('$project') +
737 '/instances/' +
738 commons.Escaper.ecapeVariable('$instance') +
739 '/restart';
727 740
728 var _response = _requester.request(_url, 741 var _response = _requester.request(_url, "POST",
729 "POST", 742 body: _body,
730 body: _body, 743 queryParams: _queryParams,
731 queryParams: _queryParams, 744 uploadOptions: _uploadOptions,
732 uploadOptions: _uploadOptions, 745 uploadMedia: _uploadMedia,
733 uploadMedia: _uploadMedia, 746 downloadOptions: _downloadOptions);
734 downloadOptions: _downloadOptions); 747 return _response
735 return _response.then((data) => new InstancesRestartResponse.fromJson(data)) ; 748 .then((data) => new InstancesRestartResponse.fromJson(data));
736 } 749 }
737 750
738 /** 751 /// Restores a backup of a Cloud SQL instance.
739 * Restores a backup of a Cloud SQL instance. 752 ///
740 * 753 /// Request parameters:
741 * Request parameters: 754 ///
742 * 755 /// [project] - Project ID of the project that contains the instance.
743 * [project] - Project ID of the project that contains the instance. 756 ///
744 * 757 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
745 * [instance] - Cloud SQL instance ID. This does not include the project ID. 758 ///
746 * 759 /// [backupConfiguration] - The identifier of the backup configuration. This
747 * [backupConfiguration] - The identifier of the backup configuration. This 760 /// gets generated automatically when a backup configuration is created.
748 * gets generated automatically when a backup configuration is created. 761 ///
749 * 762 /// [dueTime] - The start time of the four-hour backup window. The backup can
750 * [dueTime] - The start time of the four-hour backup window. The backup can 763 /// occur any time in the window. The time is in RFC 3339 format, for example
751 * occur any time in the window. The time is in RFC 3339 format, for example 764 /// 2012-11-15T16:19:00.094Z.
752 * 2012-11-15T16:19:00.094Z. 765 ///
753 * 766 /// Completes with a [InstancesRestoreBackupResponse].
754 * Completes with a [InstancesRestoreBackupResponse]. 767 ///
755 * 768 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
756 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 769 /// an error.
757 * error. 770 ///
758 * 771 /// If the used [http.Client] completes with an error when making a REST
759 * If the used [http.Client] completes with an error when making a REST call, 772 /// call, this method will complete with the same error.
760 * this method will complete with the same error. 773 async.Future<InstancesRestoreBackupResponse> restoreBackup(
761 */ 774 core.String project,
762 async.Future<InstancesRestoreBackupResponse> restoreBackup(core.String project , core.String instance, core.String backupConfiguration, core.String dueTime) { 775 core.String instance,
776 core.String backupConfiguration,
777 core.String dueTime) {
763 var _url = null; 778 var _url = null;
764 var _queryParams = new core.Map(); 779 var _queryParams = new core.Map();
765 var _uploadMedia = null; 780 var _uploadMedia = null;
766 var _uploadOptions = null; 781 var _uploadOptions = null;
767 var _downloadOptions = commons.DownloadOptions.Metadata; 782 var _downloadOptions = commons.DownloadOptions.Metadata;
768 var _body = null; 783 var _body = null;
769 784
770 if (project == null) { 785 if (project == null) {
771 throw new core.ArgumentError("Parameter project is required."); 786 throw new core.ArgumentError("Parameter project is required.");
772 } 787 }
773 if (instance == null) { 788 if (instance == null) {
774 throw new core.ArgumentError("Parameter instance is required."); 789 throw new core.ArgumentError("Parameter instance is required.");
775 } 790 }
776 if (backupConfiguration == null) { 791 if (backupConfiguration == null) {
777 throw new core.ArgumentError("Parameter backupConfiguration is required.") ; 792 throw new core.ArgumentError(
793 "Parameter backupConfiguration is required.");
778 } 794 }
779 _queryParams["backupConfiguration"] = [backupConfiguration]; 795 _queryParams["backupConfiguration"] = [backupConfiguration];
780 if (dueTime == null) { 796 if (dueTime == null) {
781 throw new core.ArgumentError("Parameter dueTime is required."); 797 throw new core.ArgumentError("Parameter dueTime is required.");
782 } 798 }
783 _queryParams["dueTime"] = [dueTime]; 799 _queryParams["dueTime"] = [dueTime];
784 800
785 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/restoreBackup'; 801 _url = 'projects/' +
802 commons.Escaper.ecapeVariable('$project') +
803 '/instances/' +
804 commons.Escaper.ecapeVariable('$instance') +
805 '/restoreBackup';
786 806
787 var _response = _requester.request(_url, 807 var _response = _requester.request(_url, "POST",
788 "POST", 808 body: _body,
789 body: _body, 809 queryParams: _queryParams,
790 queryParams: _queryParams, 810 uploadOptions: _uploadOptions,
791 uploadOptions: _uploadOptions, 811 uploadMedia: _uploadMedia,
792 uploadMedia: _uploadMedia, 812 downloadOptions: _downloadOptions);
793 downloadOptions: _downloadOptions); 813 return _response
794 return _response.then((data) => new InstancesRestoreBackupResponse.fromJson( data)); 814 .then((data) => new InstancesRestoreBackupResponse.fromJson(data));
795 } 815 }
796 816
797 /** 817 /// Sets the password for the root user of the specified Cloud SQL instance.
798 * Sets the password for the root user of the specified Cloud SQL instance. 818 ///
799 * 819 /// [request] - The metadata request object.
800 * [request] - The metadata request object. 820 ///
801 * 821 /// Request parameters:
802 * Request parameters: 822 ///
803 * 823 /// [project] - Project ID of the project that contains the instance.
804 * [project] - Project ID of the project that contains the instance. 824 ///
805 * 825 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
806 * [instance] - Cloud SQL instance ID. This does not include the project ID. 826 ///
807 * 827 /// Completes with a [InstancesSetRootPasswordResponse].
808 * Completes with a [InstancesSetRootPasswordResponse]. 828 ///
809 * 829 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
810 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 830 /// an error.
811 * error. 831 ///
812 * 832 /// If the used [http.Client] completes with an error when making a REST
813 * If the used [http.Client] completes with an error when making a REST call, 833 /// call, this method will complete with the same error.
814 * this method will complete with the same error. 834 async.Future<InstancesSetRootPasswordResponse> setRootPassword(
815 */ 835 InstanceSetRootPasswordRequest request,
816 async.Future<InstancesSetRootPasswordResponse> setRootPassword(InstanceSetRoot PasswordRequest request, core.String project, core.String instance) { 836 core.String project,
837 core.String instance) {
817 var _url = null; 838 var _url = null;
818 var _queryParams = new core.Map(); 839 var _queryParams = new core.Map();
819 var _uploadMedia = null; 840 var _uploadMedia = null;
820 var _uploadOptions = null; 841 var _uploadOptions = null;
821 var _downloadOptions = commons.DownloadOptions.Metadata; 842 var _downloadOptions = commons.DownloadOptions.Metadata;
822 var _body = null; 843 var _body = null;
823 844
824 if (request != null) { 845 if (request != null) {
825 _body = convert.JSON.encode((request).toJson()); 846 _body = convert.JSON.encode((request).toJson());
826 } 847 }
827 if (project == null) { 848 if (project == null) {
828 throw new core.ArgumentError("Parameter project is required."); 849 throw new core.ArgumentError("Parameter project is required.");
829 } 850 }
830 if (instance == null) { 851 if (instance == null) {
831 throw new core.ArgumentError("Parameter instance is required."); 852 throw new core.ArgumentError("Parameter instance is required.");
832 } 853 }
833 854
834 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/setRootPassword'; 855 _url = 'projects/' +
856 commons.Escaper.ecapeVariable('$project') +
857 '/instances/' +
858 commons.Escaper.ecapeVariable('$instance') +
859 '/setRootPassword';
835 860
836 var _response = _requester.request(_url, 861 var _response = _requester.request(_url, "POST",
837 "POST", 862 body: _body,
838 body: _body, 863 queryParams: _queryParams,
839 queryParams: _queryParams, 864 uploadOptions: _uploadOptions,
840 uploadOptions: _uploadOptions, 865 uploadMedia: _uploadMedia,
841 uploadMedia: _uploadMedia, 866 downloadOptions: _downloadOptions);
842 downloadOptions: _downloadOptions); 867 return _response
843 return _response.then((data) => new InstancesSetRootPasswordResponse.fromJso n(data)); 868 .then((data) => new InstancesSetRootPasswordResponse.fromJson(data));
844 } 869 }
845 870
846 /** 871 /// Updates the settings of a Cloud SQL instance.
847 * Updates the settings of a Cloud SQL instance. 872 ///
848 * 873 /// [request] - The metadata request object.
849 * [request] - The metadata request object. 874 ///
850 * 875 /// Request parameters:
851 * Request parameters: 876 ///
852 * 877 /// [project] - Project ID of the project that contains the instance.
853 * [project] - Project ID of the project that contains the instance. 878 ///
854 * 879 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
855 * [instance] - Cloud SQL instance ID. This does not include the project ID. 880 ///
856 * 881 /// Completes with a [InstancesUpdateResponse].
857 * Completes with a [InstancesUpdateResponse]. 882 ///
858 * 883 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
859 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 884 /// an error.
860 * error. 885 ///
861 * 886 /// 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, 887 /// call, this method will complete with the same error.
863 * this method will complete with the same error. 888 async.Future<InstancesUpdateResponse> update(
864 */ 889 DatabaseInstance request, core.String project, core.String instance) {
865 async.Future<InstancesUpdateResponse> update(DatabaseInstance request, core.St ring project, core.String instance) {
866 var _url = null; 890 var _url = null;
867 var _queryParams = new core.Map(); 891 var _queryParams = new core.Map();
868 var _uploadMedia = null; 892 var _uploadMedia = null;
869 var _uploadOptions = null; 893 var _uploadOptions = null;
870 var _downloadOptions = commons.DownloadOptions.Metadata; 894 var _downloadOptions = commons.DownloadOptions.Metadata;
871 var _body = null; 895 var _body = null;
872 896
873 if (request != null) { 897 if (request != null) {
874 _body = convert.JSON.encode((request).toJson()); 898 _body = convert.JSON.encode((request).toJson());
875 } 899 }
876 if (project == null) { 900 if (project == null) {
877 throw new core.ArgumentError("Parameter project is required."); 901 throw new core.ArgumentError("Parameter project is required.");
878 } 902 }
879 if (instance == null) { 903 if (instance == null) {
880 throw new core.ArgumentError("Parameter instance is required."); 904 throw new core.ArgumentError("Parameter instance is required.");
881 } 905 }
882 906
883 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance'); 907 _url = 'projects/' +
908 commons.Escaper.ecapeVariable('$project') +
909 '/instances/' +
910 commons.Escaper.ecapeVariable('$instance');
884 911
885 var _response = _requester.request(_url, 912 var _response = _requester.request(_url, "PUT",
886 "PUT", 913 body: _body,
887 body: _body, 914 queryParams: _queryParams,
888 queryParams: _queryParams, 915 uploadOptions: _uploadOptions,
889 uploadOptions: _uploadOptions, 916 uploadMedia: _uploadMedia,
890 uploadMedia: _uploadMedia, 917 downloadOptions: _downloadOptions);
891 downloadOptions: _downloadOptions);
892 return _response.then((data) => new InstancesUpdateResponse.fromJson(data)); 918 return _response.then((data) => new InstancesUpdateResponse.fromJson(data));
893 } 919 }
894
895 } 920 }
896 921
897
898 class OperationsResourceApi { 922 class OperationsResourceApi {
899 final commons.ApiRequester _requester; 923 final commons.ApiRequester _requester;
900 924
901 OperationsResourceApi(commons.ApiRequester client) : 925 OperationsResourceApi(commons.ApiRequester client) : _requester = client;
902 _requester = client;
903 926
904 /** 927 /// Retrieves information about a specific operation that was performed on a
905 * Retrieves information about a specific operation that was performed on a 928 /// Cloud SQL instance.
906 * Cloud SQL instance. 929 ///
907 * 930 /// Request parameters:
908 * Request parameters: 931 ///
909 * 932 /// [project] - Project ID of the project that contains the instance.
910 * [project] - Project ID of the project that contains the instance. 933 ///
911 * 934 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
912 * [instance] - Cloud SQL instance ID. This does not include the project ID. 935 ///
913 * 936 /// [operation] - Instance operation ID.
914 * [operation] - Instance operation ID. 937 ///
915 * 938 /// Completes with a [InstanceOperation].
916 * Completes with a [InstanceOperation]. 939 ///
917 * 940 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
918 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 941 /// an error.
919 * error. 942 ///
920 * 943 /// If the used [http.Client] completes with an error when making a REST
921 * If the used [http.Client] completes with an error when making a REST call, 944 /// call, this method will complete with the same error.
922 * this method will complete with the same error. 945 async.Future<InstanceOperation> get(
923 */ 946 core.String project, core.String instance, core.String operation) {
924 async.Future<InstanceOperation> get(core.String project, core.String instance, core.String operation) {
925 var _url = null; 947 var _url = null;
926 var _queryParams = new core.Map(); 948 var _queryParams = new core.Map();
927 var _uploadMedia = null; 949 var _uploadMedia = null;
928 var _uploadOptions = null; 950 var _uploadOptions = null;
929 var _downloadOptions = commons.DownloadOptions.Metadata; 951 var _downloadOptions = commons.DownloadOptions.Metadata;
930 var _body = null; 952 var _body = null;
931 953
932 if (project == null) { 954 if (project == null) {
933 throw new core.ArgumentError("Parameter project is required."); 955 throw new core.ArgumentError("Parameter project is required.");
934 } 956 }
935 if (instance == null) { 957 if (instance == null) {
936 throw new core.ArgumentError("Parameter instance is required."); 958 throw new core.ArgumentError("Parameter instance is required.");
937 } 959 }
938 if (operation == null) { 960 if (operation == null) {
939 throw new core.ArgumentError("Parameter operation is required."); 961 throw new core.ArgumentError("Parameter operation is required.");
940 } 962 }
941 963
942 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/operations/' + commons.Escap er.ecapeVariable('$operation'); 964 _url = 'projects/' +
965 commons.Escaper.ecapeVariable('$project') +
966 '/instances/' +
967 commons.Escaper.ecapeVariable('$instance') +
968 '/operations/' +
969 commons.Escaper.ecapeVariable('$operation');
943 970
944 var _response = _requester.request(_url, 971 var _response = _requester.request(_url, "GET",
945 "GET", 972 body: _body,
946 body: _body, 973 queryParams: _queryParams,
947 queryParams: _queryParams, 974 uploadOptions: _uploadOptions,
948 uploadOptions: _uploadOptions, 975 uploadMedia: _uploadMedia,
949 uploadMedia: _uploadMedia, 976 downloadOptions: _downloadOptions);
950 downloadOptions: _downloadOptions);
951 return _response.then((data) => new InstanceOperation.fromJson(data)); 977 return _response.then((data) => new InstanceOperation.fromJson(data));
952 } 978 }
953 979
954 /** 980 /// Lists all operations that have been performed on a Cloud SQL instance.
955 * Lists all operations that have been performed on a Cloud SQL instance. 981 ///
956 * 982 /// Request parameters:
957 * Request parameters: 983 ///
958 * 984 /// [project] - Project ID of the project that contains the instance.
959 * [project] - Project ID of the project that contains the instance. 985 ///
960 * 986 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
961 * [instance] - Cloud SQL instance ID. This does not include the project ID. 987 ///
962 * 988 /// [maxResults] - Maximum number of operations per response.
963 * [maxResults] - Maximum number of operations per response. 989 ///
964 * 990 /// [pageToken] - A previously-returned page token representing part of the
965 * [pageToken] - A previously-returned page token representing part of the 991 /// larger set of results to view.
966 * larger set of results to view. 992 ///
967 * 993 /// Completes with a [OperationsListResponse].
968 * Completes with a [OperationsListResponse]. 994 ///
969 * 995 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
970 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 996 /// an error.
971 * error. 997 ///
972 * 998 /// If the used [http.Client] completes with an error when making a REST
973 * If the used [http.Client] completes with an error when making a REST call, 999 /// call, this method will complete with the same error.
974 * this method will complete with the same error. 1000 async.Future<OperationsListResponse> list(
975 */ 1001 core.String project, core.String instance,
976 async.Future<OperationsListResponse> list(core.String project, core.String ins tance, {core.int maxResults, core.String pageToken}) { 1002 {core.int maxResults, core.String pageToken}) {
977 var _url = null; 1003 var _url = null;
978 var _queryParams = new core.Map(); 1004 var _queryParams = new core.Map();
979 var _uploadMedia = null; 1005 var _uploadMedia = null;
980 var _uploadOptions = null; 1006 var _uploadOptions = null;
981 var _downloadOptions = commons.DownloadOptions.Metadata; 1007 var _downloadOptions = commons.DownloadOptions.Metadata;
982 var _body = null; 1008 var _body = null;
983 1009
984 if (project == null) { 1010 if (project == null) {
985 throw new core.ArgumentError("Parameter project is required."); 1011 throw new core.ArgumentError("Parameter project is required.");
986 } 1012 }
987 if (instance == null) { 1013 if (instance == null) {
988 throw new core.ArgumentError("Parameter instance is required."); 1014 throw new core.ArgumentError("Parameter instance is required.");
989 } 1015 }
990 if (maxResults != null) { 1016 if (maxResults != null) {
991 _queryParams["maxResults"] = ["${maxResults}"]; 1017 _queryParams["maxResults"] = ["${maxResults}"];
992 } 1018 }
993 if (pageToken != null) { 1019 if (pageToken != null) {
994 _queryParams["pageToken"] = [pageToken]; 1020 _queryParams["pageToken"] = [pageToken];
995 } 1021 }
996 1022
997 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/operations'; 1023 _url = 'projects/' +
1024 commons.Escaper.ecapeVariable('$project') +
1025 '/instances/' +
1026 commons.Escaper.ecapeVariable('$instance') +
1027 '/operations';
998 1028
999 var _response = _requester.request(_url, 1029 var _response = _requester.request(_url, "GET",
1000 "GET", 1030 body: _body,
1001 body: _body, 1031 queryParams: _queryParams,
1002 queryParams: _queryParams, 1032 uploadOptions: _uploadOptions,
1003 uploadOptions: _uploadOptions, 1033 uploadMedia: _uploadMedia,
1004 uploadMedia: _uploadMedia, 1034 downloadOptions: _downloadOptions);
1005 downloadOptions: _downloadOptions);
1006 return _response.then((data) => new OperationsListResponse.fromJson(data)); 1035 return _response.then((data) => new OperationsListResponse.fromJson(data));
1007 } 1036 }
1008
1009 } 1037 }
1010 1038
1011
1012 class SslCertsResourceApi { 1039 class SslCertsResourceApi {
1013 final commons.ApiRequester _requester; 1040 final commons.ApiRequester _requester;
1014 1041
1015 SslCertsResourceApi(commons.ApiRequester client) : 1042 SslCertsResourceApi(commons.ApiRequester client) : _requester = client;
1016 _requester = client;
1017 1043
1018 /** 1044 /// Deletes an SSL certificate from a Cloud SQL instance.
1019 * Deletes an SSL certificate from a Cloud SQL instance. 1045 ///
1020 * 1046 /// Request parameters:
1021 * Request parameters: 1047 ///
1022 * 1048 /// [project] - Project ID of the project that contains the instance to be
1023 * [project] - Project ID of the project that contains the instance to be 1049 /// deleted.
1024 * deleted. 1050 ///
1025 * 1051 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
1026 * [instance] - Cloud SQL instance ID. This does not include the project ID. 1052 ///
1027 * 1053 /// [sha1Fingerprint] - Sha1 FingerPrint.
1028 * [sha1Fingerprint] - Sha1 FingerPrint. 1054 ///
1029 * 1055 /// Completes with a [SslCertsDeleteResponse].
1030 * Completes with a [SslCertsDeleteResponse]. 1056 ///
1031 * 1057 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1032 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1058 /// an error.
1033 * error. 1059 ///
1034 * 1060 /// If the used [http.Client] completes with an error when making a REST
1035 * If the used [http.Client] completes with an error when making a REST call, 1061 /// call, this method will complete with the same error.
1036 * this method will complete with the same error. 1062 async.Future<SslCertsDeleteResponse> delete(
1037 */ 1063 core.String project, core.String instance, core.String sha1Fingerprint) {
1038 async.Future<SslCertsDeleteResponse> delete(core.String project, core.String i nstance, core.String sha1Fingerprint) {
1039 var _url = null; 1064 var _url = null;
1040 var _queryParams = new core.Map(); 1065 var _queryParams = new core.Map();
1041 var _uploadMedia = null; 1066 var _uploadMedia = null;
1042 var _uploadOptions = null; 1067 var _uploadOptions = null;
1043 var _downloadOptions = commons.DownloadOptions.Metadata; 1068 var _downloadOptions = commons.DownloadOptions.Metadata;
1044 var _body = null; 1069 var _body = null;
1045 1070
1046 if (project == null) { 1071 if (project == null) {
1047 throw new core.ArgumentError("Parameter project is required."); 1072 throw new core.ArgumentError("Parameter project is required.");
1048 } 1073 }
1049 if (instance == null) { 1074 if (instance == null) {
1050 throw new core.ArgumentError("Parameter instance is required."); 1075 throw new core.ArgumentError("Parameter instance is required.");
1051 } 1076 }
1052 if (sha1Fingerprint == null) { 1077 if (sha1Fingerprint == null) {
1053 throw new core.ArgumentError("Parameter sha1Fingerprint is required."); 1078 throw new core.ArgumentError("Parameter sha1Fingerprint is required.");
1054 } 1079 }
1055 1080
1056 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/sslCerts/' + commons.Escaper .ecapeVariable('$sha1Fingerprint'); 1081 _url = 'projects/' +
1082 commons.Escaper.ecapeVariable('$project') +
1083 '/instances/' +
1084 commons.Escaper.ecapeVariable('$instance') +
1085 '/sslCerts/' +
1086 commons.Escaper.ecapeVariable('$sha1Fingerprint');
1057 1087
1058 var _response = _requester.request(_url, 1088 var _response = _requester.request(_url, "DELETE",
1059 "DELETE", 1089 body: _body,
1060 body: _body, 1090 queryParams: _queryParams,
1061 queryParams: _queryParams, 1091 uploadOptions: _uploadOptions,
1062 uploadOptions: _uploadOptions, 1092 uploadMedia: _uploadMedia,
1063 uploadMedia: _uploadMedia, 1093 downloadOptions: _downloadOptions);
1064 downloadOptions: _downloadOptions);
1065 return _response.then((data) => new SslCertsDeleteResponse.fromJson(data)); 1094 return _response.then((data) => new SslCertsDeleteResponse.fromJson(data));
1066 } 1095 }
1067 1096
1068 /** 1097 /// Retrieves an SSL certificate as specified by its SHA-1 fingerprint.
1069 * Retrieves an SSL certificate as specified by its SHA-1 fingerprint. 1098 ///
1070 * 1099 /// Request parameters:
1071 * Request parameters: 1100 ///
1072 * 1101 /// [project] - Project ID of the project that contains the instance.
1073 * [project] - Project ID of the project that contains the instance. 1102 ///
1074 * 1103 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
1075 * [instance] - Cloud SQL instance ID. This does not include the project ID. 1104 ///
1076 * 1105 /// [sha1Fingerprint] - Sha1 FingerPrint.
1077 * [sha1Fingerprint] - Sha1 FingerPrint. 1106 ///
1078 * 1107 /// Completes with a [SslCert].
1079 * Completes with a [SslCert]. 1108 ///
1080 * 1109 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1081 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1110 /// an error.
1082 * error. 1111 ///
1083 * 1112 /// If the used [http.Client] completes with an error when making a REST
1084 * If the used [http.Client] completes with an error when making a REST call, 1113 /// call, this method will complete with the same error.
1085 * this method will complete with the same error. 1114 async.Future<SslCert> get(
1086 */ 1115 core.String project, core.String instance, core.String sha1Fingerprint) {
1087 async.Future<SslCert> get(core.String project, core.String instance, core.Stri ng sha1Fingerprint) {
1088 var _url = null; 1116 var _url = null;
1089 var _queryParams = new core.Map(); 1117 var _queryParams = new core.Map();
1090 var _uploadMedia = null; 1118 var _uploadMedia = null;
1091 var _uploadOptions = null; 1119 var _uploadOptions = null;
1092 var _downloadOptions = commons.DownloadOptions.Metadata; 1120 var _downloadOptions = commons.DownloadOptions.Metadata;
1093 var _body = null; 1121 var _body = null;
1094 1122
1095 if (project == null) { 1123 if (project == null) {
1096 throw new core.ArgumentError("Parameter project is required."); 1124 throw new core.ArgumentError("Parameter project is required.");
1097 } 1125 }
1098 if (instance == null) { 1126 if (instance == null) {
1099 throw new core.ArgumentError("Parameter instance is required."); 1127 throw new core.ArgumentError("Parameter instance is required.");
1100 } 1128 }
1101 if (sha1Fingerprint == null) { 1129 if (sha1Fingerprint == null) {
1102 throw new core.ArgumentError("Parameter sha1Fingerprint is required."); 1130 throw new core.ArgumentError("Parameter sha1Fingerprint is required.");
1103 } 1131 }
1104 1132
1105 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/sslCerts/' + commons.Escaper .ecapeVariable('$sha1Fingerprint'); 1133 _url = 'projects/' +
1134 commons.Escaper.ecapeVariable('$project') +
1135 '/instances/' +
1136 commons.Escaper.ecapeVariable('$instance') +
1137 '/sslCerts/' +
1138 commons.Escaper.ecapeVariable('$sha1Fingerprint');
1106 1139
1107 var _response = _requester.request(_url, 1140 var _response = _requester.request(_url, "GET",
1108 "GET", 1141 body: _body,
1109 body: _body, 1142 queryParams: _queryParams,
1110 queryParams: _queryParams, 1143 uploadOptions: _uploadOptions,
1111 uploadOptions: _uploadOptions, 1144 uploadMedia: _uploadMedia,
1112 uploadMedia: _uploadMedia, 1145 downloadOptions: _downloadOptions);
1113 downloadOptions: _downloadOptions);
1114 return _response.then((data) => new SslCert.fromJson(data)); 1146 return _response.then((data) => new SslCert.fromJson(data));
1115 } 1147 }
1116 1148
1117 /** 1149 /// Creates an SSL certificate and returns the certificate, the associated
1118 * Creates an SSL certificate and returns the certificate, the associated 1150 /// private key, and the server certificate authority.
1119 * private key, and the server certificate authority. 1151 ///
1120 * 1152 /// [request] - The metadata request object.
1121 * [request] - The metadata request object. 1153 ///
1122 * 1154 /// Request parameters:
1123 * Request parameters: 1155 ///
1124 * 1156 /// [project] - Project ID of the project to which the newly created Cloud
1125 * [project] - Project ID of the project to which the newly created Cloud SQL 1157 /// SQL instances should belong.
1126 * instances should belong. 1158 ///
1127 * 1159 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
1128 * [instance] - Cloud SQL instance ID. This does not include the project ID. 1160 ///
1129 * 1161 /// Completes with a [SslCertsInsertResponse].
1130 * Completes with a [SslCertsInsertResponse]. 1162 ///
1131 * 1163 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1132 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1164 /// an error.
1133 * error. 1165 ///
1134 * 1166 /// If the used [http.Client] completes with an error when making a REST
1135 * If the used [http.Client] completes with an error when making a REST call, 1167 /// call, this method will complete with the same error.
1136 * this method will complete with the same error. 1168 async.Future<SslCertsInsertResponse> insert(SslCertsInsertRequest request,
1137 */ 1169 core.String project, core.String instance) {
1138 async.Future<SslCertsInsertResponse> insert(SslCertsInsertRequest request, cor e.String project, core.String instance) {
1139 var _url = null; 1170 var _url = null;
1140 var _queryParams = new core.Map(); 1171 var _queryParams = new core.Map();
1141 var _uploadMedia = null; 1172 var _uploadMedia = null;
1142 var _uploadOptions = null; 1173 var _uploadOptions = null;
1143 var _downloadOptions = commons.DownloadOptions.Metadata; 1174 var _downloadOptions = commons.DownloadOptions.Metadata;
1144 var _body = null; 1175 var _body = null;
1145 1176
1146 if (request != null) { 1177 if (request != null) {
1147 _body = convert.JSON.encode((request).toJson()); 1178 _body = convert.JSON.encode((request).toJson());
1148 } 1179 }
1149 if (project == null) { 1180 if (project == null) {
1150 throw new core.ArgumentError("Parameter project is required."); 1181 throw new core.ArgumentError("Parameter project is required.");
1151 } 1182 }
1152 if (instance == null) { 1183 if (instance == null) {
1153 throw new core.ArgumentError("Parameter instance is required."); 1184 throw new core.ArgumentError("Parameter instance is required.");
1154 } 1185 }
1155 1186
1156 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/sslCerts'; 1187 _url = 'projects/' +
1188 commons.Escaper.ecapeVariable('$project') +
1189 '/instances/' +
1190 commons.Escaper.ecapeVariable('$instance') +
1191 '/sslCerts';
1157 1192
1158 var _response = _requester.request(_url, 1193 var _response = _requester.request(_url, "POST",
1159 "POST", 1194 body: _body,
1160 body: _body, 1195 queryParams: _queryParams,
1161 queryParams: _queryParams, 1196 uploadOptions: _uploadOptions,
1162 uploadOptions: _uploadOptions, 1197 uploadMedia: _uploadMedia,
1163 uploadMedia: _uploadMedia, 1198 downloadOptions: _downloadOptions);
1164 downloadOptions: _downloadOptions);
1165 return _response.then((data) => new SslCertsInsertResponse.fromJson(data)); 1199 return _response.then((data) => new SslCertsInsertResponse.fromJson(data));
1166 } 1200 }
1167 1201
1168 /** 1202 /// Lists all of the current SSL certificates defined for a Cloud SQL
1169 * Lists all of the current SSL certificates defined for a Cloud SQL instance. 1203 /// instance.
1170 * 1204 ///
1171 * Request parameters: 1205 /// Request parameters:
1172 * 1206 ///
1173 * [project] - Project ID of the project for which to list Cloud SQL 1207 /// [project] - Project ID of the project for which to list Cloud SQL
1174 * instances. 1208 /// instances.
1175 * 1209 ///
1176 * [instance] - Cloud SQL instance ID. This does not include the project ID. 1210 /// [instance] - Cloud SQL instance ID. This does not include the project ID.
1177 * 1211 ///
1178 * Completes with a [SslCertsListResponse]. 1212 /// Completes with a [SslCertsListResponse].
1179 * 1213 ///
1180 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1214 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1181 * error. 1215 /// an error.
1182 * 1216 ///
1183 * If the used [http.Client] completes with an error when making a REST call, 1217 /// If the used [http.Client] completes with an error when making a REST
1184 * this method will complete with the same error. 1218 /// call, this method will complete with the same error.
1185 */ 1219 async.Future<SslCertsListResponse> list(
1186 async.Future<SslCertsListResponse> list(core.String project, core.String insta nce) { 1220 core.String project, core.String instance) {
1187 var _url = null; 1221 var _url = null;
1188 var _queryParams = new core.Map(); 1222 var _queryParams = new core.Map();
1189 var _uploadMedia = null; 1223 var _uploadMedia = null;
1190 var _uploadOptions = null; 1224 var _uploadOptions = null;
1191 var _downloadOptions = commons.DownloadOptions.Metadata; 1225 var _downloadOptions = commons.DownloadOptions.Metadata;
1192 var _body = null; 1226 var _body = null;
1193 1227
1194 if (project == null) { 1228 if (project == null) {
1195 throw new core.ArgumentError("Parameter project is required."); 1229 throw new core.ArgumentError("Parameter project is required.");
1196 } 1230 }
1197 if (instance == null) { 1231 if (instance == null) {
1198 throw new core.ArgumentError("Parameter instance is required."); 1232 throw new core.ArgumentError("Parameter instance is required.");
1199 } 1233 }
1200 1234
1201 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/instances /' + commons.Escaper.ecapeVariable('$instance') + '/sslCerts'; 1235 _url = 'projects/' +
1236 commons.Escaper.ecapeVariable('$project') +
1237 '/instances/' +
1238 commons.Escaper.ecapeVariable('$instance') +
1239 '/sslCerts';
1202 1240
1203 var _response = _requester.request(_url, 1241 var _response = _requester.request(_url, "GET",
1204 "GET", 1242 body: _body,
1205 body: _body, 1243 queryParams: _queryParams,
1206 queryParams: _queryParams, 1244 uploadOptions: _uploadOptions,
1207 uploadOptions: _uploadOptions, 1245 uploadMedia: _uploadMedia,
1208 uploadMedia: _uploadMedia, 1246 downloadOptions: _downloadOptions);
1209 downloadOptions: _downloadOptions);
1210 return _response.then((data) => new SslCertsListResponse.fromJson(data)); 1247 return _response.then((data) => new SslCertsListResponse.fromJson(data));
1211 } 1248 }
1212
1213 } 1249 }
1214 1250
1215
1216 class TiersResourceApi { 1251 class TiersResourceApi {
1217 final commons.ApiRequester _requester; 1252 final commons.ApiRequester _requester;
1218 1253
1219 TiersResourceApi(commons.ApiRequester client) : 1254 TiersResourceApi(commons.ApiRequester client) : _requester = client;
1220 _requester = client;
1221 1255
1222 /** 1256 /// Lists service tiers that can be used to create Google Cloud SQL
1223 * Lists service tiers that can be used to create Google Cloud SQL instances. 1257 /// instances.
1224 * 1258 ///
1225 * Request parameters: 1259 /// Request parameters:
1226 * 1260 ///
1227 * [project] - Project ID of the project for which to list tiers. 1261 /// [project] - Project ID of the project for which to list tiers.
1228 * 1262 ///
1229 * Completes with a [TiersListResponse]. 1263 /// Completes with a [TiersListResponse].
1230 * 1264 ///
1231 * Completes with a [commons.ApiRequestError] if the API endpoint returned an 1265 /// Completes with a [commons.ApiRequestError] if the API endpoint returned
1232 * error. 1266 /// an error.
1233 * 1267 ///
1234 * If the used [http.Client] completes with an error when making a REST call, 1268 /// If the used [http.Client] completes with an error when making a REST
1235 * this method will complete with the same error. 1269 /// call, this method will complete with the same error.
1236 */
1237 async.Future<TiersListResponse> list(core.String project) { 1270 async.Future<TiersListResponse> list(core.String project) {
1238 var _url = null; 1271 var _url = null;
1239 var _queryParams = new core.Map(); 1272 var _queryParams = new core.Map();
1240 var _uploadMedia = null; 1273 var _uploadMedia = null;
1241 var _uploadOptions = null; 1274 var _uploadOptions = null;
1242 var _downloadOptions = commons.DownloadOptions.Metadata; 1275 var _downloadOptions = commons.DownloadOptions.Metadata;
1243 var _body = null; 1276 var _body = null;
1244 1277
1245 if (project == null) { 1278 if (project == null) {
1246 throw new core.ArgumentError("Parameter project is required."); 1279 throw new core.ArgumentError("Parameter project is required.");
1247 } 1280 }
1248 1281
1249 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/tiers'; 1282 _url = 'projects/' + commons.Escaper.ecapeVariable('$project') + '/tiers';
1250 1283
1251 var _response = _requester.request(_url, 1284 var _response = _requester.request(_url, "GET",
1252 "GET", 1285 body: _body,
1253 body: _body, 1286 queryParams: _queryParams,
1254 queryParams: _queryParams, 1287 uploadOptions: _uploadOptions,
1255 uploadOptions: _uploadOptions, 1288 uploadMedia: _uploadMedia,
1256 uploadMedia: _uploadMedia, 1289 downloadOptions: _downloadOptions);
1257 downloadOptions: _downloadOptions);
1258 return _response.then((data) => new TiersListResponse.fromJson(data)); 1290 return _response.then((data) => new TiersListResponse.fromJson(data));
1259 } 1291 }
1260
1261 } 1292 }
1262 1293
1294 /// Database instance backup configuration.
1295 class BackupConfiguration {
1296 /// Whether binary log is enabled. If backup configuration is disabled,
1297 /// binary log must be disabled as well.
1298 core.bool binaryLogEnabled;
1263 1299
1300 /// Whether this configuration is enabled.
1301 core.bool enabled;
1264 1302
1265 /** Database instance backup configuration. */ 1303 /// Identifier for this configuration. This gets generated automatically when
1266 class BackupConfiguration { 1304 /// a backup configuration is created.
1267 /**
1268 * Whether binary log is enabled. If backup configuration is disabled, binary
1269 * log must be disabled as well.
1270 */
1271 core.bool binaryLogEnabled;
1272 /** Whether this configuration is enabled. */
1273 core.bool enabled;
1274 /**
1275 * Identifier for this configuration. This gets generated automatically when a
1276 * backup configuration is created.
1277 */
1278 core.String id; 1305 core.String id;
1279 /** This is always sql#backupConfiguration. */ 1306
1307 /// This is always sql#backupConfiguration.
1280 core.String kind; 1308 core.String kind;
1281 /** 1309
1282 * Start time for the daily backup configuration in UTC timezone in the 24 1310 /// Start time for the daily backup configuration in UTC timezone in the 24
1283 * hour format - HH:MM. 1311 /// hour format - HH:MM.
1284 */
1285 core.String startTime; 1312 core.String startTime;
1286 1313
1287 BackupConfiguration(); 1314 BackupConfiguration();
1288 1315
1289 BackupConfiguration.fromJson(core.Map _json) { 1316 BackupConfiguration.fromJson(core.Map _json) {
1290 if (_json.containsKey("binaryLogEnabled")) { 1317 if (_json.containsKey("binaryLogEnabled")) {
1291 binaryLogEnabled = _json["binaryLogEnabled"]; 1318 binaryLogEnabled = _json["binaryLogEnabled"];
1292 } 1319 }
1293 if (_json.containsKey("enabled")) { 1320 if (_json.containsKey("enabled")) {
1294 enabled = _json["enabled"]; 1321 enabled = _json["enabled"];
1295 } 1322 }
1296 if (_json.containsKey("id")) { 1323 if (_json.containsKey("id")) {
1297 id = _json["id"]; 1324 id = _json["id"];
1298 } 1325 }
1299 if (_json.containsKey("kind")) { 1326 if (_json.containsKey("kind")) {
1300 kind = _json["kind"]; 1327 kind = _json["kind"];
1301 } 1328 }
1302 if (_json.containsKey("startTime")) { 1329 if (_json.containsKey("startTime")) {
1303 startTime = _json["startTime"]; 1330 startTime = _json["startTime"];
1304 } 1331 }
1305 } 1332 }
1306 1333
1307 core.Map<core.String, core.Object> toJson() { 1334 core.Map<core.String, core.Object> toJson() {
1308 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1335 final core.Map<core.String, core.Object> _json =
1336 new core.Map<core.String, core.Object>();
1309 if (binaryLogEnabled != null) { 1337 if (binaryLogEnabled != null) {
1310 _json["binaryLogEnabled"] = binaryLogEnabled; 1338 _json["binaryLogEnabled"] = binaryLogEnabled;
1311 } 1339 }
1312 if (enabled != null) { 1340 if (enabled != null) {
1313 _json["enabled"] = enabled; 1341 _json["enabled"] = enabled;
1314 } 1342 }
1315 if (id != null) { 1343 if (id != null) {
1316 _json["id"] = id; 1344 _json["id"] = id;
1317 } 1345 }
1318 if (kind != null) { 1346 if (kind != null) {
1319 _json["kind"] = kind; 1347 _json["kind"] = kind;
1320 } 1348 }
1321 if (startTime != null) { 1349 if (startTime != null) {
1322 _json["startTime"] = startTime; 1350 _json["startTime"] = startTime;
1323 } 1351 }
1324 return _json; 1352 return _json;
1325 } 1353 }
1326 } 1354 }
1327 1355
1328 /** A database instance backup run resource. */ 1356 /// A database instance backup run resource.
1329 class BackupRun { 1357 class BackupRun {
1330 /** Backup Configuration identifier. */ 1358 /// Backup Configuration identifier.
1331 core.String backupConfiguration; 1359 core.String backupConfiguration;
1332 /** 1360
1333 * The due time of this run in UTC timezone in RFC 3339 format, for example 1361 /// The due time of this run in UTC timezone in RFC 3339 format, for example
1334 * 2012-11-15T16:19:00.094Z. 1362 /// 2012-11-15T16:19:00.094Z.
1335 */
1336 core.DateTime dueTime; 1363 core.DateTime dueTime;
1337 /** 1364
1338 * The time the backup operation completed in UTC timezone in RFC 3339 format, 1365 /// The time the backup operation completed in UTC timezone in RFC 3339
1339 * for example 2012-11-15T16:19:00.094Z. 1366 /// format, for example 2012-11-15T16:19:00.094Z.
1340 */
1341 core.DateTime endTime; 1367 core.DateTime endTime;
1342 /** 1368
1343 * The time the run was enqueued in UTC timezone in RFC 3339 format, for 1369 /// The time the run was enqueued in UTC timezone in RFC 3339 format, for
1344 * example 2012-11-15T16:19:00.094Z. 1370 /// example 2012-11-15T16:19:00.094Z.
1345 */
1346 core.DateTime enqueuedTime; 1371 core.DateTime enqueuedTime;
1347 /** 1372
1348 * Information about why the backup operation failed. This is only present if 1373 /// Information about why the backup operation failed. This is only present
1349 * the run has the FAILED status. 1374 /// if the run has the FAILED status.
1350 */
1351 OperationError error; 1375 OperationError error;
1352 /** Name of the database instance. */ 1376
1377 /// Name of the database instance.
1353 core.String instance; 1378 core.String instance;
1354 /** This is always sql#backupRun. */ 1379
1380 /// This is always sql#backupRun.
1355 core.String kind; 1381 core.String kind;
1356 /** 1382
1357 * The time the backup operation actually started in UTC timezone in RFC 3339 1383 /// The time the backup operation actually started in UTC timezone in RFC
1358 * format, for example 2012-11-15T16:19:00.094Z. 1384 /// 3339 format, for example 2012-11-15T16:19:00.094Z.
1359 */
1360 core.DateTime startTime; 1385 core.DateTime startTime;
1361 /** The status of this run. */ 1386
1387 /// The status of this run.
1362 core.String status; 1388 core.String status;
1363 1389
1364 BackupRun(); 1390 BackupRun();
1365 1391
1366 BackupRun.fromJson(core.Map _json) { 1392 BackupRun.fromJson(core.Map _json) {
1367 if (_json.containsKey("backupConfiguration")) { 1393 if (_json.containsKey("backupConfiguration")) {
1368 backupConfiguration = _json["backupConfiguration"]; 1394 backupConfiguration = _json["backupConfiguration"];
1369 } 1395 }
1370 if (_json.containsKey("dueTime")) { 1396 if (_json.containsKey("dueTime")) {
1371 dueTime = core.DateTime.parse(_json["dueTime"]); 1397 dueTime = core.DateTime.parse(_json["dueTime"]);
(...skipping 15 matching lines...) Expand all
1387 } 1413 }
1388 if (_json.containsKey("startTime")) { 1414 if (_json.containsKey("startTime")) {
1389 startTime = core.DateTime.parse(_json["startTime"]); 1415 startTime = core.DateTime.parse(_json["startTime"]);
1390 } 1416 }
1391 if (_json.containsKey("status")) { 1417 if (_json.containsKey("status")) {
1392 status = _json["status"]; 1418 status = _json["status"];
1393 } 1419 }
1394 } 1420 }
1395 1421
1396 core.Map<core.String, core.Object> toJson() { 1422 core.Map<core.String, core.Object> toJson() {
1397 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1423 final core.Map<core.String, core.Object> _json =
1424 new core.Map<core.String, core.Object>();
1398 if (backupConfiguration != null) { 1425 if (backupConfiguration != null) {
1399 _json["backupConfiguration"] = backupConfiguration; 1426 _json["backupConfiguration"] = backupConfiguration;
1400 } 1427 }
1401 if (dueTime != null) { 1428 if (dueTime != null) {
1402 _json["dueTime"] = (dueTime).toIso8601String(); 1429 _json["dueTime"] = (dueTime).toIso8601String();
1403 } 1430 }
1404 if (endTime != null) { 1431 if (endTime != null) {
1405 _json["endTime"] = (endTime).toIso8601String(); 1432 _json["endTime"] = (endTime).toIso8601String();
1406 } 1433 }
1407 if (enqueuedTime != null) { 1434 if (enqueuedTime != null) {
(...skipping 11 matching lines...) Expand all
1419 if (startTime != null) { 1446 if (startTime != null) {
1420 _json["startTime"] = (startTime).toIso8601String(); 1447 _json["startTime"] = (startTime).toIso8601String();
1421 } 1448 }
1422 if (status != null) { 1449 if (status != null) {
1423 _json["status"] = status; 1450 _json["status"] = status;
1424 } 1451 }
1425 return _json; 1452 return _json;
1426 } 1453 }
1427 } 1454 }
1428 1455
1429 /** Backup run list results. */ 1456 /// Backup run list results.
1430 class BackupRunsListResponse { 1457 class BackupRunsListResponse {
1431 /** 1458 /// A list of backup runs in reverse chronological order of the enqueued
1432 * A list of backup runs in reverse chronological order of the enqueued time. 1459 /// time.
1433 */
1434 core.List<BackupRun> items; 1460 core.List<BackupRun> items;
1435 /** This is always sql#backupRunsList. */ 1461
1462 /// This is always sql#backupRunsList.
1436 core.String kind; 1463 core.String kind;
1437 /** 1464
1438 * The continuation token, used to page through large result sets. Provide 1465 /// The continuation token, used to page through large result sets. Provide
1439 * this value in a subsequent request to return the next page of results. 1466 /// this value in a subsequent request to return the next page of results.
1440 */
1441 core.String nextPageToken; 1467 core.String nextPageToken;
1442 1468
1443 BackupRunsListResponse(); 1469 BackupRunsListResponse();
1444 1470
1445 BackupRunsListResponse.fromJson(core.Map _json) { 1471 BackupRunsListResponse.fromJson(core.Map _json) {
1446 if (_json.containsKey("items")) { 1472 if (_json.containsKey("items")) {
1447 items = _json["items"].map((value) => new BackupRun.fromJson(value)).toLis t(); 1473 items =
1474 _json["items"].map((value) => new BackupRun.fromJson(value)).toList();
1448 } 1475 }
1449 if (_json.containsKey("kind")) { 1476 if (_json.containsKey("kind")) {
1450 kind = _json["kind"]; 1477 kind = _json["kind"];
1451 } 1478 }
1452 if (_json.containsKey("nextPageToken")) { 1479 if (_json.containsKey("nextPageToken")) {
1453 nextPageToken = _json["nextPageToken"]; 1480 nextPageToken = _json["nextPageToken"];
1454 } 1481 }
1455 } 1482 }
1456 1483
1457 core.Map<core.String, core.Object> toJson() { 1484 core.Map<core.String, core.Object> toJson() {
1458 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1485 final core.Map<core.String, core.Object> _json =
1486 new core.Map<core.String, core.Object>();
1459 if (items != null) { 1487 if (items != null) {
1460 _json["items"] = items.map((value) => (value).toJson()).toList(); 1488 _json["items"] = items.map((value) => (value).toJson()).toList();
1461 } 1489 }
1462 if (kind != null) { 1490 if (kind != null) {
1463 _json["kind"] = kind; 1491 _json["kind"] = kind;
1464 } 1492 }
1465 if (nextPageToken != null) { 1493 if (nextPageToken != null) {
1466 _json["nextPageToken"] = nextPageToken; 1494 _json["nextPageToken"] = nextPageToken;
1467 } 1495 }
1468 return _json; 1496 return _json;
1469 } 1497 }
1470 } 1498 }
1471 1499
1472 /** Binary log coordinates. */ 1500 /// Binary log coordinates.
1473 class BinLogCoordinates { 1501 class BinLogCoordinates {
1474 /** Name of the binary log file for a Cloud SQL instance. */ 1502 /// Name of the binary log file for a Cloud SQL instance.
1475 core.String binLogFileName; 1503 core.String binLogFileName;
1476 /** Position (offset) within the binary log file. */ 1504
1505 /// Position (offset) within the binary log file.
1477 core.String binLogPosition; 1506 core.String binLogPosition;
1478 /** This is always sql#binLogCoordinates. */ 1507
1508 /// This is always sql#binLogCoordinates.
1479 core.String kind; 1509 core.String kind;
1480 1510
1481 BinLogCoordinates(); 1511 BinLogCoordinates();
1482 1512
1483 BinLogCoordinates.fromJson(core.Map _json) { 1513 BinLogCoordinates.fromJson(core.Map _json) {
1484 if (_json.containsKey("binLogFileName")) { 1514 if (_json.containsKey("binLogFileName")) {
1485 binLogFileName = _json["binLogFileName"]; 1515 binLogFileName = _json["binLogFileName"];
1486 } 1516 }
1487 if (_json.containsKey("binLogPosition")) { 1517 if (_json.containsKey("binLogPosition")) {
1488 binLogPosition = _json["binLogPosition"]; 1518 binLogPosition = _json["binLogPosition"];
1489 } 1519 }
1490 if (_json.containsKey("kind")) { 1520 if (_json.containsKey("kind")) {
1491 kind = _json["kind"]; 1521 kind = _json["kind"];
1492 } 1522 }
1493 } 1523 }
1494 1524
1495 core.Map<core.String, core.Object> toJson() { 1525 core.Map<core.String, core.Object> toJson() {
1496 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1526 final core.Map<core.String, core.Object> _json =
1527 new core.Map<core.String, core.Object>();
1497 if (binLogFileName != null) { 1528 if (binLogFileName != null) {
1498 _json["binLogFileName"] = binLogFileName; 1529 _json["binLogFileName"] = binLogFileName;
1499 } 1530 }
1500 if (binLogPosition != null) { 1531 if (binLogPosition != null) {
1501 _json["binLogPosition"] = binLogPosition; 1532 _json["binLogPosition"] = binLogPosition;
1502 } 1533 }
1503 if (kind != null) { 1534 if (kind != null) {
1504 _json["kind"] = kind; 1535 _json["kind"] = kind;
1505 } 1536 }
1506 return _json; 1537 return _json;
1507 } 1538 }
1508 } 1539 }
1509 1540
1510 /** Database instance clone context. */ 1541 /// Database instance clone context.
1511 class CloneContext { 1542 class CloneContext {
1512 /** 1543 /// Binary log coordinates, if specified, indentify the position up to which
1513 * Binary log coordinates, if specified, indentify the position up to which 1544 /// the source instance should be cloned. If not specified, the source
1514 * the source instance should be cloned. If not specified, the source instance 1545 /// instance is cloned up to the most recent binary log coordinates.
1515 * is cloned up to the most recent binary log coordinates.
1516 */
1517 BinLogCoordinates binLogCoordinates; 1546 BinLogCoordinates binLogCoordinates;
1518 /** Name of the Cloud SQL instance to be created as a clone. */ 1547
1548 /// Name of the Cloud SQL instance to be created as a clone.
1519 core.String destinationInstanceName; 1549 core.String destinationInstanceName;
1520 /** This is always sql#cloneContext. */ 1550
1551 /// This is always sql#cloneContext.
1521 core.String kind; 1552 core.String kind;
1522 /** Name of the Cloud SQL instance to be cloned. */ 1553
1554 /// Name of the Cloud SQL instance to be cloned.
1523 core.String sourceInstanceName; 1555 core.String sourceInstanceName;
1524 1556
1525 CloneContext(); 1557 CloneContext();
1526 1558
1527 CloneContext.fromJson(core.Map _json) { 1559 CloneContext.fromJson(core.Map _json) {
1528 if (_json.containsKey("binLogCoordinates")) { 1560 if (_json.containsKey("binLogCoordinates")) {
1529 binLogCoordinates = new BinLogCoordinates.fromJson(_json["binLogCoordinate s"]); 1561 binLogCoordinates =
1562 new BinLogCoordinates.fromJson(_json["binLogCoordinates"]);
1530 } 1563 }
1531 if (_json.containsKey("destinationInstanceName")) { 1564 if (_json.containsKey("destinationInstanceName")) {
1532 destinationInstanceName = _json["destinationInstanceName"]; 1565 destinationInstanceName = _json["destinationInstanceName"];
1533 } 1566 }
1534 if (_json.containsKey("kind")) { 1567 if (_json.containsKey("kind")) {
1535 kind = _json["kind"]; 1568 kind = _json["kind"];
1536 } 1569 }
1537 if (_json.containsKey("sourceInstanceName")) { 1570 if (_json.containsKey("sourceInstanceName")) {
1538 sourceInstanceName = _json["sourceInstanceName"]; 1571 sourceInstanceName = _json["sourceInstanceName"];
1539 } 1572 }
1540 } 1573 }
1541 1574
1542 core.Map<core.String, core.Object> toJson() { 1575 core.Map<core.String, core.Object> toJson() {
1543 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1576 final core.Map<core.String, core.Object> _json =
1577 new core.Map<core.String, core.Object>();
1544 if (binLogCoordinates != null) { 1578 if (binLogCoordinates != null) {
1545 _json["binLogCoordinates"] = (binLogCoordinates).toJson(); 1579 _json["binLogCoordinates"] = (binLogCoordinates).toJson();
1546 } 1580 }
1547 if (destinationInstanceName != null) { 1581 if (destinationInstanceName != null) {
1548 _json["destinationInstanceName"] = destinationInstanceName; 1582 _json["destinationInstanceName"] = destinationInstanceName;
1549 } 1583 }
1550 if (kind != null) { 1584 if (kind != null) {
1551 _json["kind"] = kind; 1585 _json["kind"] = kind;
1552 } 1586 }
1553 if (sourceInstanceName != null) { 1587 if (sourceInstanceName != null) {
1554 _json["sourceInstanceName"] = sourceInstanceName; 1588 _json["sourceInstanceName"] = sourceInstanceName;
1555 } 1589 }
1556 return _json; 1590 return _json;
1557 } 1591 }
1558 } 1592 }
1559 1593
1560 /** MySQL flags for Cloud SQL instances. */ 1594 /// MySQL flags for Cloud SQL instances.
1561 class DatabaseFlags { 1595 class DatabaseFlags {
1562 /** 1596 /// The name of the flag. These flags are passed at instance startup, so
1563 * The name of the flag. These flags are passed at instance startup, so 1597 /// include both MySQL server options and MySQL system variables. Flags
1564 * include both MySQL server options and MySQL system variables. Flags should 1598 /// should be specified with underscores, not hyphens. For more information,
1565 * be specified with underscores, not hyphens. For more information, see 1599 /// see Configuring MySQL Flags in the Google Cloud SQL documentation, as
1566 * Configuring MySQL Flags in the Google Cloud SQL documentation, as well as 1600 /// well as the official MySQL documentation for server options and system
1567 * the official MySQL documentation for server options and system variables. 1601 /// variables.
1568 */
1569 core.String name; 1602 core.String name;
1570 /** 1603
1571 * The value of the flag. Booleans should be set to on for true and off for 1604 /// The value of the flag. Booleans should be set to on for true and off for
1572 * false. This field must be omitted if the flag doesn't take a value. 1605 /// false. This field must be omitted if the flag doesn't take a value.
1573 */
1574 core.String value; 1606 core.String value;
1575 1607
1576 DatabaseFlags(); 1608 DatabaseFlags();
1577 1609
1578 DatabaseFlags.fromJson(core.Map _json) { 1610 DatabaseFlags.fromJson(core.Map _json) {
1579 if (_json.containsKey("name")) { 1611 if (_json.containsKey("name")) {
1580 name = _json["name"]; 1612 name = _json["name"];
1581 } 1613 }
1582 if (_json.containsKey("value")) { 1614 if (_json.containsKey("value")) {
1583 value = _json["value"]; 1615 value = _json["value"];
1584 } 1616 }
1585 } 1617 }
1586 1618
1587 core.Map<core.String, core.Object> toJson() { 1619 core.Map<core.String, core.Object> toJson() {
1588 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1620 final core.Map<core.String, core.Object> _json =
1621 new core.Map<core.String, core.Object>();
1589 if (name != null) { 1622 if (name != null) {
1590 _json["name"] = name; 1623 _json["name"] = name;
1591 } 1624 }
1592 if (value != null) { 1625 if (value != null) {
1593 _json["value"] = value; 1626 _json["value"] = value;
1594 } 1627 }
1595 return _json; 1628 return _json;
1596 } 1629 }
1597 } 1630 }
1598 1631
1599 /** A Cloud SQL instance resource. */ 1632 /// A Cloud SQL instance resource.
1600 class DatabaseInstance { 1633 class DatabaseInstance {
1601 /** Connection name of the Cloud SQL instance used in connection strings. */ 1634 /// Connection name of the Cloud SQL instance used in connection strings.
1602 core.String connectionName; 1635 core.String connectionName;
1603 /** The current disk usage of the instance in bytes. */ 1636
1637 /// The current disk usage of the instance in bytes.
1604 core.String currentDiskSize; 1638 core.String currentDiskSize;
1605 /** 1639
1606 * The database engine type and version. Can be MYSQL_5_5 or MYSQL_5_6. 1640 /// The database engine type and version. Can be MYSQL_5_5 or MYSQL_5_6.
1607 * Defaults to MYSQL_5_5. The databaseVersion cannot be changed after instance 1641 /// Defaults to MYSQL_5_5. The databaseVersion cannot be changed after
1608 * creation. 1642 /// instance creation.
1609 */
1610 core.String databaseVersion; 1643 core.String databaseVersion;
1611 /** HTTP 1.1 Entity tag for the resource. */ 1644
1645 /// HTTP 1.1 Entity tag for the resource.
1612 core.String etag; 1646 core.String etag;
1613 /** Name of the Cloud SQL instance. This does not include the project ID. */ 1647
1648 /// Name of the Cloud SQL instance. This does not include the project ID.
1614 core.String instance; 1649 core.String instance;
1615 /** 1650
1616 * The instance type. This can be one of the following. 1651 /// The instance type. This can be one of the following.
1617 * CLOUD_SQL_INSTANCE: Regular Cloud SQL instance. 1652 /// CLOUD_SQL_INSTANCE: Regular Cloud SQL instance.
1618 * READ_REPLICA_INSTANCE: Cloud SQL instance acting as a read-replica. 1653 /// READ_REPLICA_INSTANCE: Cloud SQL instance acting as a read-replica.
1619 */
1620 core.String instanceType; 1654 core.String instanceType;
1621 /** The assigned IP addresses for the instance. */ 1655
1656 /// The assigned IP addresses for the instance.
1622 core.List<IpMapping> ipAddresses; 1657 core.List<IpMapping> ipAddresses;
1623 /** The IPv6 address assigned to the instance. */ 1658
1659 /// The IPv6 address assigned to the instance.
1624 core.String ipv6Address; 1660 core.String ipv6Address;
1625 /** This is always sql#instance. */ 1661
1662 /// This is always sql#instance.
1626 core.String kind; 1663 core.String kind;
1627 /** 1664
1628 * The name of the instance which will act as master in the replication setup. 1665 /// The name of the instance which will act as master in the replication
1629 */ 1666 /// setup.
1630 core.String masterInstanceName; 1667 core.String masterInstanceName;
1631 /** The maximum disk size of the instance in bytes. */ 1668
1669 /// The maximum disk size of the instance in bytes.
1632 core.String maxDiskSize; 1670 core.String maxDiskSize;
1633 /** 1671
1634 * The project ID of the project containing the Cloud SQL instance. The Google 1672 /// The project ID of the project containing the Cloud SQL instance. The
1635 * apps domain is prefixed if applicable. 1673 /// Google apps domain is prefixed if applicable.
1636 */
1637 core.String project; 1674 core.String project;
1638 /** 1675
1639 * The geographical region. Can be us-central, asia-east1 or europe-west1. 1676 /// The geographical region. Can be us-central, asia-east1 or europe-west1.
1640 * Defaults to us-central. The region can not be changed after instance 1677 /// Defaults to us-central. The region can not be changed after instance
1641 * creation. 1678 /// creation.
1642 */
1643 core.String region; 1679 core.String region;
1644 /** The replicas of the instance. */ 1680
1681 /// The replicas of the instance.
1645 core.List<core.String> replicaNames; 1682 core.List<core.String> replicaNames;
1646 /** SSL configuration. */ 1683
1684 /// SSL configuration.
1647 SslCert serverCaCert; 1685 SslCert serverCaCert;
1648 /** The service account email address assigned to the instance. */ 1686
1687 /// The service account email address assigned to the instance.
1649 core.String serviceAccountEmailAddress; 1688 core.String serviceAccountEmailAddress;
1650 /** The user settings. */ 1689
1690 /// The user settings.
1651 Settings settings; 1691 Settings settings;
1652 /** 1692
1653 * The current serving state of the Cloud SQL instance. This can be one of the 1693 /// The current serving state of the Cloud SQL instance. This can be one of
1654 * following. 1694 /// the following.
1655 * RUNNABLE: The instance is running, or is ready to run when accessed. 1695 /// RUNNABLE: The instance is running, or is ready to run when accessed.
1656 * SUSPENDED: The instance is not available, for example due to problems with 1696 /// SUSPENDED: The instance is not available, for example due to problems
1657 * billing. 1697 /// with billing.
1658 * PENDING_CREATE: The instance is being created. 1698 /// PENDING_CREATE: The instance is being created.
1659 * MAINTENANCE: The instance is down for maintenance. 1699 /// MAINTENANCE: The instance is down for maintenance.
1660 * UNKNOWN_STATE: The state of the instance is unknown. 1700 /// UNKNOWN_STATE: The state of the instance is unknown.
1661 */
1662 core.String state; 1701 core.String state;
1663 1702
1664 DatabaseInstance(); 1703 DatabaseInstance();
1665 1704
1666 DatabaseInstance.fromJson(core.Map _json) { 1705 DatabaseInstance.fromJson(core.Map _json) {
1667 if (_json.containsKey("connectionName")) { 1706 if (_json.containsKey("connectionName")) {
1668 connectionName = _json["connectionName"]; 1707 connectionName = _json["connectionName"];
1669 } 1708 }
1670 if (_json.containsKey("currentDiskSize")) { 1709 if (_json.containsKey("currentDiskSize")) {
1671 currentDiskSize = _json["currentDiskSize"]; 1710 currentDiskSize = _json["currentDiskSize"];
1672 } 1711 }
1673 if (_json.containsKey("databaseVersion")) { 1712 if (_json.containsKey("databaseVersion")) {
1674 databaseVersion = _json["databaseVersion"]; 1713 databaseVersion = _json["databaseVersion"];
1675 } 1714 }
1676 if (_json.containsKey("etag")) { 1715 if (_json.containsKey("etag")) {
1677 etag = _json["etag"]; 1716 etag = _json["etag"];
1678 } 1717 }
1679 if (_json.containsKey("instance")) { 1718 if (_json.containsKey("instance")) {
1680 instance = _json["instance"]; 1719 instance = _json["instance"];
1681 } 1720 }
1682 if (_json.containsKey("instanceType")) { 1721 if (_json.containsKey("instanceType")) {
1683 instanceType = _json["instanceType"]; 1722 instanceType = _json["instanceType"];
1684 } 1723 }
1685 if (_json.containsKey("ipAddresses")) { 1724 if (_json.containsKey("ipAddresses")) {
1686 ipAddresses = _json["ipAddresses"].map((value) => new IpMapping.fromJson(v alue)).toList(); 1725 ipAddresses = _json["ipAddresses"]
1726 .map((value) => new IpMapping.fromJson(value))
1727 .toList();
1687 } 1728 }
1688 if (_json.containsKey("ipv6Address")) { 1729 if (_json.containsKey("ipv6Address")) {
1689 ipv6Address = _json["ipv6Address"]; 1730 ipv6Address = _json["ipv6Address"];
1690 } 1731 }
1691 if (_json.containsKey("kind")) { 1732 if (_json.containsKey("kind")) {
1692 kind = _json["kind"]; 1733 kind = _json["kind"];
1693 } 1734 }
1694 if (_json.containsKey("masterInstanceName")) { 1735 if (_json.containsKey("masterInstanceName")) {
1695 masterInstanceName = _json["masterInstanceName"]; 1736 masterInstanceName = _json["masterInstanceName"];
1696 } 1737 }
(...skipping 17 matching lines...) Expand all
1714 } 1755 }
1715 if (_json.containsKey("settings")) { 1756 if (_json.containsKey("settings")) {
1716 settings = new Settings.fromJson(_json["settings"]); 1757 settings = new Settings.fromJson(_json["settings"]);
1717 } 1758 }
1718 if (_json.containsKey("state")) { 1759 if (_json.containsKey("state")) {
1719 state = _json["state"]; 1760 state = _json["state"];
1720 } 1761 }
1721 } 1762 }
1722 1763
1723 core.Map<core.String, core.Object> toJson() { 1764 core.Map<core.String, core.Object> toJson() {
1724 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1765 final core.Map<core.String, core.Object> _json =
1766 new core.Map<core.String, core.Object>();
1725 if (connectionName != null) { 1767 if (connectionName != null) {
1726 _json["connectionName"] = connectionName; 1768 _json["connectionName"] = connectionName;
1727 } 1769 }
1728 if (currentDiskSize != null) { 1770 if (currentDiskSize != null) {
1729 _json["currentDiskSize"] = currentDiskSize; 1771 _json["currentDiskSize"] = currentDiskSize;
1730 } 1772 }
1731 if (databaseVersion != null) { 1773 if (databaseVersion != null) {
1732 _json["databaseVersion"] = databaseVersion; 1774 _json["databaseVersion"] = databaseVersion;
1733 } 1775 }
1734 if (etag != null) { 1776 if (etag != null) {
1735 _json["etag"] = etag; 1777 _json["etag"] = etag;
1736 } 1778 }
1737 if (instance != null) { 1779 if (instance != null) {
1738 _json["instance"] = instance; 1780 _json["instance"] = instance;
1739 } 1781 }
1740 if (instanceType != null) { 1782 if (instanceType != null) {
1741 _json["instanceType"] = instanceType; 1783 _json["instanceType"] = instanceType;
1742 } 1784 }
1743 if (ipAddresses != null) { 1785 if (ipAddresses != null) {
1744 _json["ipAddresses"] = ipAddresses.map((value) => (value).toJson()).toList (); 1786 _json["ipAddresses"] =
1787 ipAddresses.map((value) => (value).toJson()).toList();
1745 } 1788 }
1746 if (ipv6Address != null) { 1789 if (ipv6Address != null) {
1747 _json["ipv6Address"] = ipv6Address; 1790 _json["ipv6Address"] = ipv6Address;
1748 } 1791 }
1749 if (kind != null) { 1792 if (kind != null) {
1750 _json["kind"] = kind; 1793 _json["kind"] = kind;
1751 } 1794 }
1752 if (masterInstanceName != null) { 1795 if (masterInstanceName != null) {
1753 _json["masterInstanceName"] = masterInstanceName; 1796 _json["masterInstanceName"] = masterInstanceName;
1754 } 1797 }
(...skipping 18 matching lines...) Expand all
1773 if (settings != null) { 1816 if (settings != null) {
1774 _json["settings"] = (settings).toJson(); 1817 _json["settings"] = (settings).toJson();
1775 } 1818 }
1776 if (state != null) { 1819 if (state != null) {
1777 _json["state"] = state; 1820 _json["state"] = state;
1778 } 1821 }
1779 return _json; 1822 return _json;
1780 } 1823 }
1781 } 1824 }
1782 1825
1783 /** Database instance export context. */ 1826 /// Database instance export context.
1784 class ExportContext { 1827 class ExportContext {
1785 /** 1828 /// Databases (for example, guestbook) from which the export is made. If
1786 * Databases (for example, guestbook) from which the export is made. If 1829 /// unspecified, all databases are exported.
1787 * unspecified, all databases are exported.
1788 */
1789 core.List<core.String> database; 1830 core.List<core.String> database;
1790 /** This is always sql#exportContext. */ 1831
1832 /// This is always sql#exportContext.
1791 core.String kind; 1833 core.String kind;
1792 /** 1834
1793 * Tables to export, or that were exported, from the specified database. If 1835 /// Tables to export, or that were exported, from the specified database. If
1794 * you specify tables, specify one and only one database. 1836 /// you specify tables, specify one and only one database.
1795 */
1796 core.List<core.String> table; 1837 core.List<core.String> table;
1797 /** 1838
1798 * The path to the file in Google Cloud Storage where the export will be 1839 /// The path to the file in Google Cloud Storage where the export will be
1799 * stored, or where it was already stored. The URI is in the form 1840 /// stored, or where it was already stored. The URI is in the form
1800 * gs://bucketName/fileName. If the file already exists, the operation fails. 1841 /// gs://bucketName/fileName. If the file already exists, the operation
1801 * If the filename ends with .gz, the contents are compressed. 1842 /// fails. If the filename ends with .gz, the contents are compressed.
1802 */
1803 core.String uri; 1843 core.String uri;
1804 1844
1805 ExportContext(); 1845 ExportContext();
1806 1846
1807 ExportContext.fromJson(core.Map _json) { 1847 ExportContext.fromJson(core.Map _json) {
1808 if (_json.containsKey("database")) { 1848 if (_json.containsKey("database")) {
1809 database = _json["database"]; 1849 database = _json["database"];
1810 } 1850 }
1811 if (_json.containsKey("kind")) { 1851 if (_json.containsKey("kind")) {
1812 kind = _json["kind"]; 1852 kind = _json["kind"];
1813 } 1853 }
1814 if (_json.containsKey("table")) { 1854 if (_json.containsKey("table")) {
1815 table = _json["table"]; 1855 table = _json["table"];
1816 } 1856 }
1817 if (_json.containsKey("uri")) { 1857 if (_json.containsKey("uri")) {
1818 uri = _json["uri"]; 1858 uri = _json["uri"];
1819 } 1859 }
1820 } 1860 }
1821 1861
1822 core.Map<core.String, core.Object> toJson() { 1862 core.Map<core.String, core.Object> toJson() {
1823 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1863 final core.Map<core.String, core.Object> _json =
1864 new core.Map<core.String, core.Object>();
1824 if (database != null) { 1865 if (database != null) {
1825 _json["database"] = database; 1866 _json["database"] = database;
1826 } 1867 }
1827 if (kind != null) { 1868 if (kind != null) {
1828 _json["kind"] = kind; 1869 _json["kind"] = kind;
1829 } 1870 }
1830 if (table != null) { 1871 if (table != null) {
1831 _json["table"] = table; 1872 _json["table"] = table;
1832 } 1873 }
1833 if (uri != null) { 1874 if (uri != null) {
1834 _json["uri"] = uri; 1875 _json["uri"] = uri;
1835 } 1876 }
1836 return _json; 1877 return _json;
1837 } 1878 }
1838 } 1879 }
1839 1880
1840 /** A Google Cloud SQL service flag resource. */ 1881 /// A Google Cloud SQL service flag resource.
1841 class Flag { 1882 class Flag {
1842 /** For STRING flags, a list of strings that the value can be set to. */ 1883 /// For STRING flags, a list of strings that the value can be set to.
1843 core.List<core.String> allowedStringValues; 1884 core.List<core.String> allowedStringValues;
1844 /** 1885
1845 * The database version this flag applies to. Currently this can only be 1886 /// The database version this flag applies to. Currently this can only be
1846 * [MYSQL_5_5]. 1887 /// [MYSQL_5_5].
1847 */
1848 core.List<core.String> appliesTo; 1888 core.List<core.String> appliesTo;
1849 /** This is always sql#flag. */ 1889
1890 /// This is always sql#flag.
1850 core.String kind; 1891 core.String kind;
1851 /** For INTEGER flags, the maximum allowed value. */ 1892
1893 /// For INTEGER flags, the maximum allowed value.
1852 core.String maxValue; 1894 core.String maxValue;
1853 /** For INTEGER flags, the minimum allowed value. */ 1895
1896 /// For INTEGER flags, the minimum allowed value.
1854 core.String minValue; 1897 core.String minValue;
1855 /** 1898
1856 * This is the name of the flag. Flag names always use underscores, not 1899 /// This is the name of the flag. Flag names always use underscores, not
1857 * hyphens, e.g. max_allowed_packet 1900 /// hyphens, e.g. max_allowed_packet
1858 */
1859 core.String name; 1901 core.String name;
1860 /** 1902
1861 * The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER or 1903 /// The type of the flag. Flags are typed to being BOOLEAN, STRING, INTEGER
1862 * NONE. NONE is used for flags which do not take a value, such as 1904 /// or NONE. NONE is used for flags which do not take a value, such as
1863 * skip_grant_tables. 1905 /// skip_grant_tables.
1864 */
1865 core.String type; 1906 core.String type;
1866 1907
1867 Flag(); 1908 Flag();
1868 1909
1869 Flag.fromJson(core.Map _json) { 1910 Flag.fromJson(core.Map _json) {
1870 if (_json.containsKey("allowedStringValues")) { 1911 if (_json.containsKey("allowedStringValues")) {
1871 allowedStringValues = _json["allowedStringValues"]; 1912 allowedStringValues = _json["allowedStringValues"];
1872 } 1913 }
1873 if (_json.containsKey("appliesTo")) { 1914 if (_json.containsKey("appliesTo")) {
1874 appliesTo = _json["appliesTo"]; 1915 appliesTo = _json["appliesTo"];
1875 } 1916 }
1876 if (_json.containsKey("kind")) { 1917 if (_json.containsKey("kind")) {
1877 kind = _json["kind"]; 1918 kind = _json["kind"];
1878 } 1919 }
1879 if (_json.containsKey("maxValue")) { 1920 if (_json.containsKey("maxValue")) {
1880 maxValue = _json["maxValue"]; 1921 maxValue = _json["maxValue"];
1881 } 1922 }
1882 if (_json.containsKey("minValue")) { 1923 if (_json.containsKey("minValue")) {
1883 minValue = _json["minValue"]; 1924 minValue = _json["minValue"];
1884 } 1925 }
1885 if (_json.containsKey("name")) { 1926 if (_json.containsKey("name")) {
1886 name = _json["name"]; 1927 name = _json["name"];
1887 } 1928 }
1888 if (_json.containsKey("type")) { 1929 if (_json.containsKey("type")) {
1889 type = _json["type"]; 1930 type = _json["type"];
1890 } 1931 }
1891 } 1932 }
1892 1933
1893 core.Map<core.String, core.Object> toJson() { 1934 core.Map<core.String, core.Object> toJson() {
1894 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1935 final core.Map<core.String, core.Object> _json =
1936 new core.Map<core.String, core.Object>();
1895 if (allowedStringValues != null) { 1937 if (allowedStringValues != null) {
1896 _json["allowedStringValues"] = allowedStringValues; 1938 _json["allowedStringValues"] = allowedStringValues;
1897 } 1939 }
1898 if (appliesTo != null) { 1940 if (appliesTo != null) {
1899 _json["appliesTo"] = appliesTo; 1941 _json["appliesTo"] = appliesTo;
1900 } 1942 }
1901 if (kind != null) { 1943 if (kind != null) {
1902 _json["kind"] = kind; 1944 _json["kind"] = kind;
1903 } 1945 }
1904 if (maxValue != null) { 1946 if (maxValue != null) {
1905 _json["maxValue"] = maxValue; 1947 _json["maxValue"] = maxValue;
1906 } 1948 }
1907 if (minValue != null) { 1949 if (minValue != null) {
1908 _json["minValue"] = minValue; 1950 _json["minValue"] = minValue;
1909 } 1951 }
1910 if (name != null) { 1952 if (name != null) {
1911 _json["name"] = name; 1953 _json["name"] = name;
1912 } 1954 }
1913 if (type != null) { 1955 if (type != null) {
1914 _json["type"] = type; 1956 _json["type"] = type;
1915 } 1957 }
1916 return _json; 1958 return _json;
1917 } 1959 }
1918 } 1960 }
1919 1961
1920 /** Flags list response. */ 1962 /// Flags list response.
1921 class FlagsListResponse { 1963 class FlagsListResponse {
1922 /** List of flags. */ 1964 /// List of flags.
1923 core.List<Flag> items; 1965 core.List<Flag> items;
1924 /** This is always sql#flagsList. */ 1966
1967 /// This is always sql#flagsList.
1925 core.String kind; 1968 core.String kind;
1926 1969
1927 FlagsListResponse(); 1970 FlagsListResponse();
1928 1971
1929 FlagsListResponse.fromJson(core.Map _json) { 1972 FlagsListResponse.fromJson(core.Map _json) {
1930 if (_json.containsKey("items")) { 1973 if (_json.containsKey("items")) {
1931 items = _json["items"].map((value) => new Flag.fromJson(value)).toList(); 1974 items = _json["items"].map((value) => new Flag.fromJson(value)).toList();
1932 } 1975 }
1933 if (_json.containsKey("kind")) { 1976 if (_json.containsKey("kind")) {
1934 kind = _json["kind"]; 1977 kind = _json["kind"];
1935 } 1978 }
1936 } 1979 }
1937 1980
1938 core.Map<core.String, core.Object> toJson() { 1981 core.Map<core.String, core.Object> toJson() {
1939 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 1982 final core.Map<core.String, core.Object> _json =
1983 new core.Map<core.String, core.Object>();
1940 if (items != null) { 1984 if (items != null) {
1941 _json["items"] = items.map((value) => (value).toJson()).toList(); 1985 _json["items"] = items.map((value) => (value).toJson()).toList();
1942 } 1986 }
1943 if (kind != null) { 1987 if (kind != null) {
1944 _json["kind"] = kind; 1988 _json["kind"] = kind;
1945 } 1989 }
1946 return _json; 1990 return _json;
1947 } 1991 }
1948 } 1992 }
1949 1993
1950 /** Database instance import context. */ 1994 /// Database instance import context.
1951 class ImportContext { 1995 class ImportContext {
1952 /** 1996 /// The database (for example, guestbook) to which the import is made. If not
1953 * The database (for example, guestbook) to which the import is made. If not 1997 /// set, it is assumed that the database is specified in the file to be
1954 * set, it is assumed that the database is specified in the file to be 1998 /// imported.
1955 * imported.
1956 */
1957 core.String database; 1999 core.String database;
1958 /** This is always sql#importContext. */ 2000
2001 /// This is always sql#importContext.
1959 core.String kind; 2002 core.String kind;
1960 /** 2003
1961 * A path to the MySQL dump file in Google Cloud Storage from which the import 2004 /// A path to the MySQL dump file in Google Cloud Storage from which the
1962 * is made. The URI is in the form gs://bucketName/fileName. Compressed gzip 2005 /// import is made. The URI is in the form gs://bucketName/fileName.
1963 * files (.gz) are also supported. 2006 /// Compressed gzip files (.gz) are also supported.
1964 */
1965 core.List<core.String> uri; 2007 core.List<core.String> uri;
1966 2008
1967 ImportContext(); 2009 ImportContext();
1968 2010
1969 ImportContext.fromJson(core.Map _json) { 2011 ImportContext.fromJson(core.Map _json) {
1970 if (_json.containsKey("database")) { 2012 if (_json.containsKey("database")) {
1971 database = _json["database"]; 2013 database = _json["database"];
1972 } 2014 }
1973 if (_json.containsKey("kind")) { 2015 if (_json.containsKey("kind")) {
1974 kind = _json["kind"]; 2016 kind = _json["kind"];
1975 } 2017 }
1976 if (_json.containsKey("uri")) { 2018 if (_json.containsKey("uri")) {
1977 uri = _json["uri"]; 2019 uri = _json["uri"];
1978 } 2020 }
1979 } 2021 }
1980 2022
1981 core.Map<core.String, core.Object> toJson() { 2023 core.Map<core.String, core.Object> toJson() {
1982 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2024 final core.Map<core.String, core.Object> _json =
2025 new core.Map<core.String, core.Object>();
1983 if (database != null) { 2026 if (database != null) {
1984 _json["database"] = database; 2027 _json["database"] = database;
1985 } 2028 }
1986 if (kind != null) { 2029 if (kind != null) {
1987 _json["kind"] = kind; 2030 _json["kind"] = kind;
1988 } 2031 }
1989 if (uri != null) { 2032 if (uri != null) {
1990 _json["uri"] = uri; 2033 _json["uri"] = uri;
1991 } 2034 }
1992 return _json; 2035 return _json;
1993 } 2036 }
1994 } 2037 }
1995 2038
1996 /** 2039 /// An Operations resource contains information about database instance
1997 * An Operations resource contains information about database instance 2040 /// operations such as create, delete, and restart. Operations resources are
1998 * operations such as create, delete, and restart. Operations resources are 2041 /// created in response to operations that were initiated; you never create
1999 * created in response to operations that were initiated; you never create them 2042 /// them directly.
2000 * directly.
2001 */
2002 class InstanceOperation { 2043 class InstanceOperation {
2003 /** 2044 /// The time this operation finished in UTC timezone in RFC 3339 format, for
2004 * The time this operation finished in UTC timezone in RFC 3339 format, for 2045 /// example 2012-11-15T16:19:00.094Z.
2005 * example 2012-11-15T16:19:00.094Z.
2006 */
2007 core.DateTime endTime; 2046 core.DateTime endTime;
2008 /** 2047
2009 * The time this operation was enqueued in UTC timezone in RFC 3339 format, 2048 /// The time this operation was enqueued in UTC timezone in RFC 3339 format,
2010 * for example 2012-11-15T16:19:00.094Z. 2049 /// for example 2012-11-15T16:19:00.094Z.
2011 */
2012 core.DateTime enqueuedTime; 2050 core.DateTime enqueuedTime;
2013 /** 2051
2014 * The error(s) encountered by this operation. Only set if the operation 2052 /// The error(s) encountered by this operation. Only set if the operation
2015 * results in an error. 2053 /// results in an error.
2016 */
2017 core.List<OperationError> error; 2054 core.List<OperationError> error;
2018 /** The context for export operation, if applicable. */ 2055
2056 /// The context for export operation, if applicable.
2019 ExportContext exportContext; 2057 ExportContext exportContext;
2020 /** The context for import operation, if applicable. */ 2058
2059 /// The context for import operation, if applicable.
2021 ImportContext importContext; 2060 ImportContext importContext;
2022 /** Name of the database instance. */ 2061
2062 /// Name of the database instance.
2023 core.String instance; 2063 core.String instance;
2024 /** This is always sql#instanceOperation. */ 2064
2065 /// This is always sql#instanceOperation.
2025 core.String kind; 2066 core.String kind;
2026 /** 2067
2027 * An identifier that uniquely identifies the operation. You can use this 2068 /// An identifier that uniquely identifies the operation. You can use this
2028 * identifier to retrieve the Operations resource that has information about 2069 /// identifier to retrieve the Operations resource that has information about
2029 * the operation. 2070 /// the operation.
2030 */
2031 core.String operation; 2071 core.String operation;
2032 /** 2072
2033 * The type of the operation. Valid values are CREATE, DELETE, UPDATE, 2073 /// The type of the operation. Valid values are CREATE, DELETE, UPDATE,
2034 * RESTART, IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME. 2074 /// RESTART, IMPORT, EXPORT, BACKUP_VOLUME, RESTORE_VOLUME.
2035 */
2036 core.String operationType; 2075 core.String operationType;
2037 /** 2076
2038 * The time this operation actually started in UTC timezone in RFC 3339 2077 /// The time this operation actually started in UTC timezone in RFC 3339
2039 * format, for example 2012-11-15T16:19:00.094Z. 2078 /// format, for example 2012-11-15T16:19:00.094Z.
2040 */
2041 core.DateTime startTime; 2079 core.DateTime startTime;
2042 /** 2080
2043 * The state of an operation. Valid values are PENDING, RUNNING, DONE, 2081 /// The state of an operation. Valid values are PENDING, RUNNING, DONE,
2044 * UNKNOWN. 2082 /// UNKNOWN.
2045 */
2046 core.String state; 2083 core.String state;
2047 /** The email address of the user who initiated this operation. */ 2084
2085 /// The email address of the user who initiated this operation.
2048 core.String userEmailAddress; 2086 core.String userEmailAddress;
2049 2087
2050 InstanceOperation(); 2088 InstanceOperation();
2051 2089
2052 InstanceOperation.fromJson(core.Map _json) { 2090 InstanceOperation.fromJson(core.Map _json) {
2053 if (_json.containsKey("endTime")) { 2091 if (_json.containsKey("endTime")) {
2054 endTime = core.DateTime.parse(_json["endTime"]); 2092 endTime = core.DateTime.parse(_json["endTime"]);
2055 } 2093 }
2056 if (_json.containsKey("enqueuedTime")) { 2094 if (_json.containsKey("enqueuedTime")) {
2057 enqueuedTime = core.DateTime.parse(_json["enqueuedTime"]); 2095 enqueuedTime = core.DateTime.parse(_json["enqueuedTime"]);
2058 } 2096 }
2059 if (_json.containsKey("error")) { 2097 if (_json.containsKey("error")) {
2060 error = _json["error"].map((value) => new OperationError.fromJson(value)). toList(); 2098 error = _json["error"]
2099 .map((value) => new OperationError.fromJson(value))
2100 .toList();
2061 } 2101 }
2062 if (_json.containsKey("exportContext")) { 2102 if (_json.containsKey("exportContext")) {
2063 exportContext = new ExportContext.fromJson(_json["exportContext"]); 2103 exportContext = new ExportContext.fromJson(_json["exportContext"]);
2064 } 2104 }
2065 if (_json.containsKey("importContext")) { 2105 if (_json.containsKey("importContext")) {
2066 importContext = new ImportContext.fromJson(_json["importContext"]); 2106 importContext = new ImportContext.fromJson(_json["importContext"]);
2067 } 2107 }
2068 if (_json.containsKey("instance")) { 2108 if (_json.containsKey("instance")) {
2069 instance = _json["instance"]; 2109 instance = _json["instance"];
2070 } 2110 }
(...skipping 11 matching lines...) Expand all
2082 } 2122 }
2083 if (_json.containsKey("state")) { 2123 if (_json.containsKey("state")) {
2084 state = _json["state"]; 2124 state = _json["state"];
2085 } 2125 }
2086 if (_json.containsKey("userEmailAddress")) { 2126 if (_json.containsKey("userEmailAddress")) {
2087 userEmailAddress = _json["userEmailAddress"]; 2127 userEmailAddress = _json["userEmailAddress"];
2088 } 2128 }
2089 } 2129 }
2090 2130
2091 core.Map<core.String, core.Object> toJson() { 2131 core.Map<core.String, core.Object> toJson() {
2092 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2132 final core.Map<core.String, core.Object> _json =
2133 new core.Map<core.String, core.Object>();
2093 if (endTime != null) { 2134 if (endTime != null) {
2094 _json["endTime"] = (endTime).toIso8601String(); 2135 _json["endTime"] = (endTime).toIso8601String();
2095 } 2136 }
2096 if (enqueuedTime != null) { 2137 if (enqueuedTime != null) {
2097 _json["enqueuedTime"] = (enqueuedTime).toIso8601String(); 2138 _json["enqueuedTime"] = (enqueuedTime).toIso8601String();
2098 } 2139 }
2099 if (error != null) { 2140 if (error != null) {
2100 _json["error"] = error.map((value) => (value).toJson()).toList(); 2141 _json["error"] = error.map((value) => (value).toJson()).toList();
2101 } 2142 }
2102 if (exportContext != null) { 2143 if (exportContext != null) {
(...skipping 20 matching lines...) Expand all
2123 if (state != null) { 2164 if (state != null) {
2124 _json["state"] = state; 2165 _json["state"] = state;
2125 } 2166 }
2126 if (userEmailAddress != null) { 2167 if (userEmailAddress != null) {
2127 _json["userEmailAddress"] = userEmailAddress; 2168 _json["userEmailAddress"] = userEmailAddress;
2128 } 2169 }
2129 return _json; 2170 return _json;
2130 } 2171 }
2131 } 2172 }
2132 2173
2133 /** Database instance set root password request. */ 2174 /// Database instance set root password request.
2134 class InstanceSetRootPasswordRequest { 2175 class InstanceSetRootPasswordRequest {
2135 /** Set Root Password Context. */ 2176 /// Set Root Password Context.
2136 SetRootPasswordContext setRootPasswordContext; 2177 SetRootPasswordContext setRootPasswordContext;
2137 2178
2138 InstanceSetRootPasswordRequest(); 2179 InstanceSetRootPasswordRequest();
2139 2180
2140 InstanceSetRootPasswordRequest.fromJson(core.Map _json) { 2181 InstanceSetRootPasswordRequest.fromJson(core.Map _json) {
2141 if (_json.containsKey("setRootPasswordContext")) { 2182 if (_json.containsKey("setRootPasswordContext")) {
2142 setRootPasswordContext = new SetRootPasswordContext.fromJson(_json["setRoo tPasswordContext"]); 2183 setRootPasswordContext =
2184 new SetRootPasswordContext.fromJson(_json["setRootPasswordContext"]);
2143 } 2185 }
2144 } 2186 }
2145 2187
2146 core.Map<core.String, core.Object> toJson() { 2188 core.Map<core.String, core.Object> toJson() {
2147 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2189 final core.Map<core.String, core.Object> _json =
2190 new core.Map<core.String, core.Object>();
2148 if (setRootPasswordContext != null) { 2191 if (setRootPasswordContext != null) {
2149 _json["setRootPasswordContext"] = (setRootPasswordContext).toJson(); 2192 _json["setRootPasswordContext"] = (setRootPasswordContext).toJson();
2150 } 2193 }
2151 return _json; 2194 return _json;
2152 } 2195 }
2153 } 2196 }
2154 2197
2155 /** Database instance clone request. */ 2198 /// Database instance clone request.
2156 class InstancesCloneRequest { 2199 class InstancesCloneRequest {
2157 /** Contains details about the clone operation. */ 2200 /// Contains details about the clone operation.
2158 CloneContext cloneContext; 2201 CloneContext cloneContext;
2159 2202
2160 InstancesCloneRequest(); 2203 InstancesCloneRequest();
2161 2204
2162 InstancesCloneRequest.fromJson(core.Map _json) { 2205 InstancesCloneRequest.fromJson(core.Map _json) {
2163 if (_json.containsKey("cloneContext")) { 2206 if (_json.containsKey("cloneContext")) {
2164 cloneContext = new CloneContext.fromJson(_json["cloneContext"]); 2207 cloneContext = new CloneContext.fromJson(_json["cloneContext"]);
2165 } 2208 }
2166 } 2209 }
2167 2210
2168 core.Map<core.String, core.Object> toJson() { 2211 core.Map<core.String, core.Object> toJson() {
2169 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2212 final core.Map<core.String, core.Object> _json =
2213 new core.Map<core.String, core.Object>();
2170 if (cloneContext != null) { 2214 if (cloneContext != null) {
2171 _json["cloneContext"] = (cloneContext).toJson(); 2215 _json["cloneContext"] = (cloneContext).toJson();
2172 } 2216 }
2173 return _json; 2217 return _json;
2174 } 2218 }
2175 } 2219 }
2176 2220
2177 /** Database instance clone response. */ 2221 /// Database instance clone response.
2178 class InstancesCloneResponse { 2222 class InstancesCloneResponse {
2179 /** This is always sql#instancesClone. */ 2223 /// This is always sql#instancesClone.
2180 core.String kind; 2224 core.String kind;
2181 /** 2225
2182 * An unique identifier for the operation associated with the cloned instance. 2226 /// An unique identifier for the operation associated with the cloned
2183 * You can use this identifier to retrieve the Operations resource, which has 2227 /// instance. You can use this identifier to retrieve the Operations
2184 * information about the operation. 2228 /// resource, which has information about the operation.
2185 */
2186 core.String operation; 2229 core.String operation;
2187 2230
2188 InstancesCloneResponse(); 2231 InstancesCloneResponse();
2189 2232
2190 InstancesCloneResponse.fromJson(core.Map _json) { 2233 InstancesCloneResponse.fromJson(core.Map _json) {
2191 if (_json.containsKey("kind")) { 2234 if (_json.containsKey("kind")) {
2192 kind = _json["kind"]; 2235 kind = _json["kind"];
2193 } 2236 }
2194 if (_json.containsKey("operation")) { 2237 if (_json.containsKey("operation")) {
2195 operation = _json["operation"]; 2238 operation = _json["operation"];
2196 } 2239 }
2197 } 2240 }
2198 2241
2199 core.Map<core.String, core.Object> toJson() { 2242 core.Map<core.String, core.Object> toJson() {
2200 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2243 final core.Map<core.String, core.Object> _json =
2244 new core.Map<core.String, core.Object>();
2201 if (kind != null) { 2245 if (kind != null) {
2202 _json["kind"] = kind; 2246 _json["kind"] = kind;
2203 } 2247 }
2204 if (operation != null) { 2248 if (operation != null) {
2205 _json["operation"] = operation; 2249 _json["operation"] = operation;
2206 } 2250 }
2207 return _json; 2251 return _json;
2208 } 2252 }
2209 } 2253 }
2210 2254
2211 /** Database instance delete response. */ 2255 /// Database instance delete response.
2212 class InstancesDeleteResponse { 2256 class InstancesDeleteResponse {
2213 /** This is always sql#instancesDelete. */ 2257 /// This is always sql#instancesDelete.
2214 core.String kind; 2258 core.String kind;
2215 /** 2259
2216 * An identifier that uniquely identifies the operation. You can use this 2260 /// An identifier that uniquely identifies the operation. You can use this
2217 * identifier to retrieve the Operations resource that has information about 2261 /// identifier to retrieve the Operations resource that has information about
2218 * the operation. 2262 /// the operation.
2219 */
2220 core.String operation; 2263 core.String operation;
2221 2264
2222 InstancesDeleteResponse(); 2265 InstancesDeleteResponse();
2223 2266
2224 InstancesDeleteResponse.fromJson(core.Map _json) { 2267 InstancesDeleteResponse.fromJson(core.Map _json) {
2225 if (_json.containsKey("kind")) { 2268 if (_json.containsKey("kind")) {
2226 kind = _json["kind"]; 2269 kind = _json["kind"];
2227 } 2270 }
2228 if (_json.containsKey("operation")) { 2271 if (_json.containsKey("operation")) {
2229 operation = _json["operation"]; 2272 operation = _json["operation"];
2230 } 2273 }
2231 } 2274 }
2232 2275
2233 core.Map<core.String, core.Object> toJson() { 2276 core.Map<core.String, core.Object> toJson() {
2234 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2277 final core.Map<core.String, core.Object> _json =
2278 new core.Map<core.String, core.Object>();
2235 if (kind != null) { 2279 if (kind != null) {
2236 _json["kind"] = kind; 2280 _json["kind"] = kind;
2237 } 2281 }
2238 if (operation != null) { 2282 if (operation != null) {
2239 _json["operation"] = operation; 2283 _json["operation"] = operation;
2240 } 2284 }
2241 return _json; 2285 return _json;
2242 } 2286 }
2243 } 2287 }
2244 2288
2245 /** Database instance export request. */ 2289 /// Database instance export request.
2246 class InstancesExportRequest { 2290 class InstancesExportRequest {
2247 /** Contains details about the export operation. */ 2291 /// Contains details about the export operation.
2248 ExportContext exportContext; 2292 ExportContext exportContext;
2249 2293
2250 InstancesExportRequest(); 2294 InstancesExportRequest();
2251 2295
2252 InstancesExportRequest.fromJson(core.Map _json) { 2296 InstancesExportRequest.fromJson(core.Map _json) {
2253 if (_json.containsKey("exportContext")) { 2297 if (_json.containsKey("exportContext")) {
2254 exportContext = new ExportContext.fromJson(_json["exportContext"]); 2298 exportContext = new ExportContext.fromJson(_json["exportContext"]);
2255 } 2299 }
2256 } 2300 }
2257 2301
2258 core.Map<core.String, core.Object> toJson() { 2302 core.Map<core.String, core.Object> toJson() {
2259 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2303 final core.Map<core.String, core.Object> _json =
2304 new core.Map<core.String, core.Object>();
2260 if (exportContext != null) { 2305 if (exportContext != null) {
2261 _json["exportContext"] = (exportContext).toJson(); 2306 _json["exportContext"] = (exportContext).toJson();
2262 } 2307 }
2263 return _json; 2308 return _json;
2264 } 2309 }
2265 } 2310 }
2266 2311
2267 /** Database instance export response. */ 2312 /// Database instance export response.
2268 class InstancesExportResponse { 2313 class InstancesExportResponse {
2269 /** This is always sql#instancesExport. */ 2314 /// This is always sql#instancesExport.
2270 core.String kind; 2315 core.String kind;
2271 /** 2316
2272 * An identifier that uniquely identifies the operation. You can use this 2317 /// An identifier that uniquely identifies the operation. You can use this
2273 * identifier to retrieve the Operations resource that has information about 2318 /// identifier to retrieve the Operations resource that has information about
2274 * the operation. 2319 /// the operation.
2275 */
2276 core.String operation; 2320 core.String operation;
2277 2321
2278 InstancesExportResponse(); 2322 InstancesExportResponse();
2279 2323
2280 InstancesExportResponse.fromJson(core.Map _json) { 2324 InstancesExportResponse.fromJson(core.Map _json) {
2281 if (_json.containsKey("kind")) { 2325 if (_json.containsKey("kind")) {
2282 kind = _json["kind"]; 2326 kind = _json["kind"];
2283 } 2327 }
2284 if (_json.containsKey("operation")) { 2328 if (_json.containsKey("operation")) {
2285 operation = _json["operation"]; 2329 operation = _json["operation"];
2286 } 2330 }
2287 } 2331 }
2288 2332
2289 core.Map<core.String, core.Object> toJson() { 2333 core.Map<core.String, core.Object> toJson() {
2290 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2334 final core.Map<core.String, core.Object> _json =
2335 new core.Map<core.String, core.Object>();
2291 if (kind != null) { 2336 if (kind != null) {
2292 _json["kind"] = kind; 2337 _json["kind"] = kind;
2293 } 2338 }
2294 if (operation != null) { 2339 if (operation != null) {
2295 _json["operation"] = operation; 2340 _json["operation"] = operation;
2296 } 2341 }
2297 return _json; 2342 return _json;
2298 } 2343 }
2299 } 2344 }
2300 2345
2301 /** Database instance import request. */ 2346 /// Database instance import request.
2302 class InstancesImportRequest { 2347 class InstancesImportRequest {
2303 /** Contains details about the import operation. */ 2348 /// Contains details about the import operation.
2304 ImportContext importContext; 2349 ImportContext importContext;
2305 2350
2306 InstancesImportRequest(); 2351 InstancesImportRequest();
2307 2352
2308 InstancesImportRequest.fromJson(core.Map _json) { 2353 InstancesImportRequest.fromJson(core.Map _json) {
2309 if (_json.containsKey("importContext")) { 2354 if (_json.containsKey("importContext")) {
2310 importContext = new ImportContext.fromJson(_json["importContext"]); 2355 importContext = new ImportContext.fromJson(_json["importContext"]);
2311 } 2356 }
2312 } 2357 }
2313 2358
2314 core.Map<core.String, core.Object> toJson() { 2359 core.Map<core.String, core.Object> toJson() {
2315 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2360 final core.Map<core.String, core.Object> _json =
2361 new core.Map<core.String, core.Object>();
2316 if (importContext != null) { 2362 if (importContext != null) {
2317 _json["importContext"] = (importContext).toJson(); 2363 _json["importContext"] = (importContext).toJson();
2318 } 2364 }
2319 return _json; 2365 return _json;
2320 } 2366 }
2321 } 2367 }
2322 2368
2323 /** Database instance import response. */ 2369 /// Database instance import response.
2324 class InstancesImportResponse { 2370 class InstancesImportResponse {
2325 /** This is always sql#instancesImport. */ 2371 /// This is always sql#instancesImport.
2326 core.String kind; 2372 core.String kind;
2327 /** 2373
2328 * An identifier that uniquely identifies the operation. You can use this 2374 /// An identifier that uniquely identifies the operation. You can use this
2329 * identifier to retrieve the Operations resource that has information about 2375 /// identifier to retrieve the Operations resource that has information about
2330 * the operation. 2376 /// the operation.
2331 */
2332 core.String operation; 2377 core.String operation;
2333 2378
2334 InstancesImportResponse(); 2379 InstancesImportResponse();
2335 2380
2336 InstancesImportResponse.fromJson(core.Map _json) { 2381 InstancesImportResponse.fromJson(core.Map _json) {
2337 if (_json.containsKey("kind")) { 2382 if (_json.containsKey("kind")) {
2338 kind = _json["kind"]; 2383 kind = _json["kind"];
2339 } 2384 }
2340 if (_json.containsKey("operation")) { 2385 if (_json.containsKey("operation")) {
2341 operation = _json["operation"]; 2386 operation = _json["operation"];
2342 } 2387 }
2343 } 2388 }
2344 2389
2345 core.Map<core.String, core.Object> toJson() { 2390 core.Map<core.String, core.Object> toJson() {
2346 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2391 final core.Map<core.String, core.Object> _json =
2392 new core.Map<core.String, core.Object>();
2347 if (kind != null) { 2393 if (kind != null) {
2348 _json["kind"] = kind; 2394 _json["kind"] = kind;
2349 } 2395 }
2350 if (operation != null) { 2396 if (operation != null) {
2351 _json["operation"] = operation; 2397 _json["operation"] = operation;
2352 } 2398 }
2353 return _json; 2399 return _json;
2354 } 2400 }
2355 } 2401 }
2356 2402
2357 /** Database instance insert response. */ 2403 /// Database instance insert response.
2358 class InstancesInsertResponse { 2404 class InstancesInsertResponse {
2359 /** This is always sql#instancesInsert. */ 2405 /// This is always sql#instancesInsert.
2360 core.String kind; 2406 core.String kind;
2361 /** 2407
2362 * An identifier that uniquely identifies the operation. You can use this 2408 /// An identifier that uniquely identifies the operation. You can use this
2363 * identifier to retrieve the Operations resource that has information about 2409 /// identifier to retrieve the Operations resource that has information about
2364 * the operation. 2410 /// the operation.
2365 */
2366 core.String operation; 2411 core.String operation;
2367 2412
2368 InstancesInsertResponse(); 2413 InstancesInsertResponse();
2369 2414
2370 InstancesInsertResponse.fromJson(core.Map _json) { 2415 InstancesInsertResponse.fromJson(core.Map _json) {
2371 if (_json.containsKey("kind")) { 2416 if (_json.containsKey("kind")) {
2372 kind = _json["kind"]; 2417 kind = _json["kind"];
2373 } 2418 }
2374 if (_json.containsKey("operation")) { 2419 if (_json.containsKey("operation")) {
2375 operation = _json["operation"]; 2420 operation = _json["operation"];
2376 } 2421 }
2377 } 2422 }
2378 2423
2379 core.Map<core.String, core.Object> toJson() { 2424 core.Map<core.String, core.Object> toJson() {
2380 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2425 final core.Map<core.String, core.Object> _json =
2426 new core.Map<core.String, core.Object>();
2381 if (kind != null) { 2427 if (kind != null) {
2382 _json["kind"] = kind; 2428 _json["kind"] = kind;
2383 } 2429 }
2384 if (operation != null) { 2430 if (operation != null) {
2385 _json["operation"] = operation; 2431 _json["operation"] = operation;
2386 } 2432 }
2387 return _json; 2433 return _json;
2388 } 2434 }
2389 } 2435 }
2390 2436
2391 /** Database instances list response. */ 2437 /// Database instances list response.
2392 class InstancesListResponse { 2438 class InstancesListResponse {
2393 /** List of database instance resources. */ 2439 /// List of database instance resources.
2394 core.List<DatabaseInstance> items; 2440 core.List<DatabaseInstance> items;
2395 /** This is always sql#instancesList. */ 2441
2442 /// This is always sql#instancesList.
2396 core.String kind; 2443 core.String kind;
2397 /** 2444
2398 * The continuation token, used to page through large result sets. Provide 2445 /// The continuation token, used to page through large result sets. Provide
2399 * this value in a subsequent request to return the next page of results. 2446 /// this value in a subsequent request to return the next page of results.
2400 */
2401 core.String nextPageToken; 2447 core.String nextPageToken;
2402 2448
2403 InstancesListResponse(); 2449 InstancesListResponse();
2404 2450
2405 InstancesListResponse.fromJson(core.Map _json) { 2451 InstancesListResponse.fromJson(core.Map _json) {
2406 if (_json.containsKey("items")) { 2452 if (_json.containsKey("items")) {
2407 items = _json["items"].map((value) => new DatabaseInstance.fromJson(value) ).toList(); 2453 items = _json["items"]
2454 .map((value) => new DatabaseInstance.fromJson(value))
2455 .toList();
2408 } 2456 }
2409 if (_json.containsKey("kind")) { 2457 if (_json.containsKey("kind")) {
2410 kind = _json["kind"]; 2458 kind = _json["kind"];
2411 } 2459 }
2412 if (_json.containsKey("nextPageToken")) { 2460 if (_json.containsKey("nextPageToken")) {
2413 nextPageToken = _json["nextPageToken"]; 2461 nextPageToken = _json["nextPageToken"];
2414 } 2462 }
2415 } 2463 }
2416 2464
2417 core.Map<core.String, core.Object> toJson() { 2465 core.Map<core.String, core.Object> toJson() {
2418 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2466 final core.Map<core.String, core.Object> _json =
2467 new core.Map<core.String, core.Object>();
2419 if (items != null) { 2468 if (items != null) {
2420 _json["items"] = items.map((value) => (value).toJson()).toList(); 2469 _json["items"] = items.map((value) => (value).toJson()).toList();
2421 } 2470 }
2422 if (kind != null) { 2471 if (kind != null) {
2423 _json["kind"] = kind; 2472 _json["kind"] = kind;
2424 } 2473 }
2425 if (nextPageToken != null) { 2474 if (nextPageToken != null) {
2426 _json["nextPageToken"] = nextPageToken; 2475 _json["nextPageToken"] = nextPageToken;
2427 } 2476 }
2428 return _json; 2477 return _json;
2429 } 2478 }
2430 } 2479 }
2431 2480
2432 /** Database promote read replica response. */ 2481 /// Database promote read replica response.
2433 class InstancesPromoteReplicaResponse { 2482 class InstancesPromoteReplicaResponse {
2434 /** This is always sql#instancesPromoteReplica. */ 2483 /// This is always sql#instancesPromoteReplica.
2435 core.String kind; 2484 core.String kind;
2436 /** 2485
2437 * An identifier that uniquely identifies the operation. You can use this 2486 /// An identifier that uniquely identifies the operation. You can use this
2438 * identifier to retrieve the Operations resource that has information about 2487 /// identifier to retrieve the Operations resource that has information about
2439 * the operation. 2488 /// the operation.
2440 */
2441 core.String operation; 2489 core.String operation;
2442 2490
2443 InstancesPromoteReplicaResponse(); 2491 InstancesPromoteReplicaResponse();
2444 2492
2445 InstancesPromoteReplicaResponse.fromJson(core.Map _json) { 2493 InstancesPromoteReplicaResponse.fromJson(core.Map _json) {
2446 if (_json.containsKey("kind")) { 2494 if (_json.containsKey("kind")) {
2447 kind = _json["kind"]; 2495 kind = _json["kind"];
2448 } 2496 }
2449 if (_json.containsKey("operation")) { 2497 if (_json.containsKey("operation")) {
2450 operation = _json["operation"]; 2498 operation = _json["operation"];
2451 } 2499 }
2452 } 2500 }
2453 2501
2454 core.Map<core.String, core.Object> toJson() { 2502 core.Map<core.String, core.Object> toJson() {
2455 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2503 final core.Map<core.String, core.Object> _json =
2504 new core.Map<core.String, core.Object>();
2456 if (kind != null) { 2505 if (kind != null) {
2457 _json["kind"] = kind; 2506 _json["kind"] = kind;
2458 } 2507 }
2459 if (operation != null) { 2508 if (operation != null) {
2460 _json["operation"] = operation; 2509 _json["operation"] = operation;
2461 } 2510 }
2462 return _json; 2511 return _json;
2463 } 2512 }
2464 } 2513 }
2465 2514
2466 /** Database instance resetSslConfig response. */ 2515 /// Database instance resetSslConfig response.
2467 class InstancesResetSslConfigResponse { 2516 class InstancesResetSslConfigResponse {
2468 /** This is always sql#instancesResetSslConfig. */ 2517 /// This is always sql#instancesResetSslConfig.
2469 core.String kind; 2518 core.String kind;
2470 /** 2519
2471 * An identifier that uniquely identifies the operation. You can use this 2520 /// An identifier that uniquely identifies the operation. You can use this
2472 * identifier to retrieve the Operations resource that has information about 2521 /// identifier to retrieve the Operations resource that has information about
2473 * the operation. All ssl client certificates will be deleted and a new server 2522 /// the operation. All ssl client certificates will be deleted and a new
2474 * certificate will be created. Does not take effect until the next instance 2523 /// server certificate will be created. Does not take effect until the next
2475 * restart. 2524 /// instance restart.
2476 */
2477 core.String operation; 2525 core.String operation;
2478 2526
2479 InstancesResetSslConfigResponse(); 2527 InstancesResetSslConfigResponse();
2480 2528
2481 InstancesResetSslConfigResponse.fromJson(core.Map _json) { 2529 InstancesResetSslConfigResponse.fromJson(core.Map _json) {
2482 if (_json.containsKey("kind")) { 2530 if (_json.containsKey("kind")) {
2483 kind = _json["kind"]; 2531 kind = _json["kind"];
2484 } 2532 }
2485 if (_json.containsKey("operation")) { 2533 if (_json.containsKey("operation")) {
2486 operation = _json["operation"]; 2534 operation = _json["operation"];
2487 } 2535 }
2488 } 2536 }
2489 2537
2490 core.Map<core.String, core.Object> toJson() { 2538 core.Map<core.String, core.Object> toJson() {
2491 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2539 final core.Map<core.String, core.Object> _json =
2540 new core.Map<core.String, core.Object>();
2492 if (kind != null) { 2541 if (kind != null) {
2493 _json["kind"] = kind; 2542 _json["kind"] = kind;
2494 } 2543 }
2495 if (operation != null) { 2544 if (operation != null) {
2496 _json["operation"] = operation; 2545 _json["operation"] = operation;
2497 } 2546 }
2498 return _json; 2547 return _json;
2499 } 2548 }
2500 } 2549 }
2501 2550
2502 /** Database instance restart response. */ 2551 /// Database instance restart response.
2503 class InstancesRestartResponse { 2552 class InstancesRestartResponse {
2504 /** This is always sql#instancesRestart. */ 2553 /// This is always sql#instancesRestart.
2505 core.String kind; 2554 core.String kind;
2506 /** 2555
2507 * An identifier that uniquely identifies the operation. You can use this 2556 /// An identifier that uniquely identifies the operation. You can use this
2508 * identifier to retrieve the Operations resource that has information about 2557 /// identifier to retrieve the Operations resource that has information about
2509 * the operation. 2558 /// the operation.
2510 */
2511 core.String operation; 2559 core.String operation;
2512 2560
2513 InstancesRestartResponse(); 2561 InstancesRestartResponse();
2514 2562
2515 InstancesRestartResponse.fromJson(core.Map _json) { 2563 InstancesRestartResponse.fromJson(core.Map _json) {
2516 if (_json.containsKey("kind")) { 2564 if (_json.containsKey("kind")) {
2517 kind = _json["kind"]; 2565 kind = _json["kind"];
2518 } 2566 }
2519 if (_json.containsKey("operation")) { 2567 if (_json.containsKey("operation")) {
2520 operation = _json["operation"]; 2568 operation = _json["operation"];
2521 } 2569 }
2522 } 2570 }
2523 2571
2524 core.Map<core.String, core.Object> toJson() { 2572 core.Map<core.String, core.Object> toJson() {
2525 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2573 final core.Map<core.String, core.Object> _json =
2574 new core.Map<core.String, core.Object>();
2526 if (kind != null) { 2575 if (kind != null) {
2527 _json["kind"] = kind; 2576 _json["kind"] = kind;
2528 } 2577 }
2529 if (operation != null) { 2578 if (operation != null) {
2530 _json["operation"] = operation; 2579 _json["operation"] = operation;
2531 } 2580 }
2532 return _json; 2581 return _json;
2533 } 2582 }
2534 } 2583 }
2535 2584
2536 /** Database instance restore backup response. */ 2585 /// Database instance restore backup response.
2537 class InstancesRestoreBackupResponse { 2586 class InstancesRestoreBackupResponse {
2538 /** This is always sql#instancesRestoreBackup. */ 2587 /// This is always sql#instancesRestoreBackup.
2539 core.String kind; 2588 core.String kind;
2540 /** 2589
2541 * An identifier that uniquely identifies the operation. You can use this 2590 /// An identifier that uniquely identifies the operation. You can use this
2542 * identifier to retrieve the Operations resource that has information about 2591 /// identifier to retrieve the Operations resource that has information about
2543 * the operation. 2592 /// the operation.
2544 */
2545 core.String operation; 2593 core.String operation;
2546 2594
2547 InstancesRestoreBackupResponse(); 2595 InstancesRestoreBackupResponse();
2548 2596
2549 InstancesRestoreBackupResponse.fromJson(core.Map _json) { 2597 InstancesRestoreBackupResponse.fromJson(core.Map _json) {
2550 if (_json.containsKey("kind")) { 2598 if (_json.containsKey("kind")) {
2551 kind = _json["kind"]; 2599 kind = _json["kind"];
2552 } 2600 }
2553 if (_json.containsKey("operation")) { 2601 if (_json.containsKey("operation")) {
2554 operation = _json["operation"]; 2602 operation = _json["operation"];
2555 } 2603 }
2556 } 2604 }
2557 2605
2558 core.Map<core.String, core.Object> toJson() { 2606 core.Map<core.String, core.Object> toJson() {
2559 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2607 final core.Map<core.String, core.Object> _json =
2608 new core.Map<core.String, core.Object>();
2560 if (kind != null) { 2609 if (kind != null) {
2561 _json["kind"] = kind; 2610 _json["kind"] = kind;
2562 } 2611 }
2563 if (operation != null) { 2612 if (operation != null) {
2564 _json["operation"] = operation; 2613 _json["operation"] = operation;
2565 } 2614 }
2566 return _json; 2615 return _json;
2567 } 2616 }
2568 } 2617 }
2569 2618
2570 /** Database instance set root password response. */ 2619 /// Database instance set root password response.
2571 class InstancesSetRootPasswordResponse { 2620 class InstancesSetRootPasswordResponse {
2572 /** This is always sql#instancesSetRootPassword. */ 2621 /// This is always sql#instancesSetRootPassword.
2573 core.String kind; 2622 core.String kind;
2574 /** 2623
2575 * An identifier that uniquely identifies the operation. You can use this 2624 /// An identifier that uniquely identifies the operation. You can use this
2576 * identifier to retrieve the Operations resource that has information about 2625 /// identifier to retrieve the Operations resource that has information about
2577 * the operation. 2626 /// the operation.
2578 */
2579 core.String operation; 2627 core.String operation;
2580 2628
2581 InstancesSetRootPasswordResponse(); 2629 InstancesSetRootPasswordResponse();
2582 2630
2583 InstancesSetRootPasswordResponse.fromJson(core.Map _json) { 2631 InstancesSetRootPasswordResponse.fromJson(core.Map _json) {
2584 if (_json.containsKey("kind")) { 2632 if (_json.containsKey("kind")) {
2585 kind = _json["kind"]; 2633 kind = _json["kind"];
2586 } 2634 }
2587 if (_json.containsKey("operation")) { 2635 if (_json.containsKey("operation")) {
2588 operation = _json["operation"]; 2636 operation = _json["operation"];
2589 } 2637 }
2590 } 2638 }
2591 2639
2592 core.Map<core.String, core.Object> toJson() { 2640 core.Map<core.String, core.Object> toJson() {
2593 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2641 final core.Map<core.String, core.Object> _json =
2642 new core.Map<core.String, core.Object>();
2594 if (kind != null) { 2643 if (kind != null) {
2595 _json["kind"] = kind; 2644 _json["kind"] = kind;
2596 } 2645 }
2597 if (operation != null) { 2646 if (operation != null) {
2598 _json["operation"] = operation; 2647 _json["operation"] = operation;
2599 } 2648 }
2600 return _json; 2649 return _json;
2601 } 2650 }
2602 } 2651 }
2603 2652
2604 /** Database instance update response. */ 2653 /// Database instance update response.
2605 class InstancesUpdateResponse { 2654 class InstancesUpdateResponse {
2606 /** This is always sql#instancesUpdate. */ 2655 /// This is always sql#instancesUpdate.
2607 core.String kind; 2656 core.String kind;
2608 /** 2657
2609 * An identifier that uniquely identifies the operation. You can use this 2658 /// An identifier that uniquely identifies the operation. You can use this
2610 * identifier to retrieve information about the operation. 2659 /// identifier to retrieve information about the operation.
2611 */
2612 core.String operation; 2660 core.String operation;
2613 2661
2614 InstancesUpdateResponse(); 2662 InstancesUpdateResponse();
2615 2663
2616 InstancesUpdateResponse.fromJson(core.Map _json) { 2664 InstancesUpdateResponse.fromJson(core.Map _json) {
2617 if (_json.containsKey("kind")) { 2665 if (_json.containsKey("kind")) {
2618 kind = _json["kind"]; 2666 kind = _json["kind"];
2619 } 2667 }
2620 if (_json.containsKey("operation")) { 2668 if (_json.containsKey("operation")) {
2621 operation = _json["operation"]; 2669 operation = _json["operation"];
2622 } 2670 }
2623 } 2671 }
2624 2672
2625 core.Map<core.String, core.Object> toJson() { 2673 core.Map<core.String, core.Object> toJson() {
2626 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2674 final core.Map<core.String, core.Object> _json =
2675 new core.Map<core.String, core.Object>();
2627 if (kind != null) { 2676 if (kind != null) {
2628 _json["kind"] = kind; 2677 _json["kind"] = kind;
2629 } 2678 }
2630 if (operation != null) { 2679 if (operation != null) {
2631 _json["operation"] = operation; 2680 _json["operation"] = operation;
2632 } 2681 }
2633 return _json; 2682 return _json;
2634 } 2683 }
2635 } 2684 }
2636 2685
2637 /** IP Management configuration. */ 2686 /// IP Management configuration.
2638 class IpConfiguration { 2687 class IpConfiguration {
2639 /** 2688 /// The list of external networks that are allowed to connect to the instance
2640 * The list of external networks that are allowed to connect to the instance 2689 /// using the IP. In CIDR notation, also known as 'slash' notation (e.g.
2641 * using the IP. In CIDR notation, also known as 'slash' notation (e.g. 2690 /// 192.168.100.0/24).
2642 * 192.168.100.0/24).
2643 */
2644 core.List<core.String> authorizedNetworks; 2691 core.List<core.String> authorizedNetworks;
2645 /** Whether the instance should be assigned an IP address or not. */ 2692
2693 /// Whether the instance should be assigned an IP address or not.
2646 core.bool enabled; 2694 core.bool enabled;
2647 /** This is always sql#ipConfiguration. */ 2695
2696 /// This is always sql#ipConfiguration.
2648 core.String kind; 2697 core.String kind;
2649 /** Whether SSL connections over IP should be enforced or not. */ 2698
2699 /// Whether SSL connections over IP should be enforced or not.
2650 core.bool requireSsl; 2700 core.bool requireSsl;
2651 2701
2652 IpConfiguration(); 2702 IpConfiguration();
2653 2703
2654 IpConfiguration.fromJson(core.Map _json) { 2704 IpConfiguration.fromJson(core.Map _json) {
2655 if (_json.containsKey("authorizedNetworks")) { 2705 if (_json.containsKey("authorizedNetworks")) {
2656 authorizedNetworks = _json["authorizedNetworks"]; 2706 authorizedNetworks = _json["authorizedNetworks"];
2657 } 2707 }
2658 if (_json.containsKey("enabled")) { 2708 if (_json.containsKey("enabled")) {
2659 enabled = _json["enabled"]; 2709 enabled = _json["enabled"];
2660 } 2710 }
2661 if (_json.containsKey("kind")) { 2711 if (_json.containsKey("kind")) {
2662 kind = _json["kind"]; 2712 kind = _json["kind"];
2663 } 2713 }
2664 if (_json.containsKey("requireSsl")) { 2714 if (_json.containsKey("requireSsl")) {
2665 requireSsl = _json["requireSsl"]; 2715 requireSsl = _json["requireSsl"];
2666 } 2716 }
2667 } 2717 }
2668 2718
2669 core.Map<core.String, core.Object> toJson() { 2719 core.Map<core.String, core.Object> toJson() {
2670 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2720 final core.Map<core.String, core.Object> _json =
2721 new core.Map<core.String, core.Object>();
2671 if (authorizedNetworks != null) { 2722 if (authorizedNetworks != null) {
2672 _json["authorizedNetworks"] = authorizedNetworks; 2723 _json["authorizedNetworks"] = authorizedNetworks;
2673 } 2724 }
2674 if (enabled != null) { 2725 if (enabled != null) {
2675 _json["enabled"] = enabled; 2726 _json["enabled"] = enabled;
2676 } 2727 }
2677 if (kind != null) { 2728 if (kind != null) {
2678 _json["kind"] = kind; 2729 _json["kind"] = kind;
2679 } 2730 }
2680 if (requireSsl != null) { 2731 if (requireSsl != null) {
2681 _json["requireSsl"] = requireSsl; 2732 _json["requireSsl"] = requireSsl;
2682 } 2733 }
2683 return _json; 2734 return _json;
2684 } 2735 }
2685 } 2736 }
2686 2737
2687 /** Database instance IP Mapping. */ 2738 /// Database instance IP Mapping.
2688 class IpMapping { 2739 class IpMapping {
2689 /** The IP address assigned. */ 2740 /// The IP address assigned.
2690 core.String ipAddress; 2741 core.String ipAddress;
2691 /** 2742
2692 * The due time for this IP to be retired in RFC 3339 format, for example 2743 /// The due time for this IP to be retired in RFC 3339 format, for example
2693 * 2012-11-15T16:19:00.094Z. This field is only available when the IP is 2744 /// 2012-11-15T16:19:00.094Z. This field is only available when the IP is
2694 * scheduled to be retired. 2745 /// scheduled to be retired.
2695 */
2696 core.DateTime timeToRetire; 2746 core.DateTime timeToRetire;
2697 2747
2698 IpMapping(); 2748 IpMapping();
2699 2749
2700 IpMapping.fromJson(core.Map _json) { 2750 IpMapping.fromJson(core.Map _json) {
2701 if (_json.containsKey("ipAddress")) { 2751 if (_json.containsKey("ipAddress")) {
2702 ipAddress = _json["ipAddress"]; 2752 ipAddress = _json["ipAddress"];
2703 } 2753 }
2704 if (_json.containsKey("timeToRetire")) { 2754 if (_json.containsKey("timeToRetire")) {
2705 timeToRetire = core.DateTime.parse(_json["timeToRetire"]); 2755 timeToRetire = core.DateTime.parse(_json["timeToRetire"]);
2706 } 2756 }
2707 } 2757 }
2708 2758
2709 core.Map<core.String, core.Object> toJson() { 2759 core.Map<core.String, core.Object> toJson() {
2710 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2760 final core.Map<core.String, core.Object> _json =
2761 new core.Map<core.String, core.Object>();
2711 if (ipAddress != null) { 2762 if (ipAddress != null) {
2712 _json["ipAddress"] = ipAddress; 2763 _json["ipAddress"] = ipAddress;
2713 } 2764 }
2714 if (timeToRetire != null) { 2765 if (timeToRetire != null) {
2715 _json["timeToRetire"] = (timeToRetire).toIso8601String(); 2766 _json["timeToRetire"] = (timeToRetire).toIso8601String();
2716 } 2767 }
2717 return _json; 2768 return _json;
2718 } 2769 }
2719 } 2770 }
2720 2771
2721 /** 2772 /// Preferred location. This specifies where a Cloud SQL instance should
2722 * Preferred location. This specifies where a Cloud SQL instance should 2773 /// preferably be located, either in a specific Compute Engine zone, or
2723 * preferably be located, either in a specific Compute Engine zone, or 2774 /// co-located with an App Engine application. Note that if the preferred
2724 * co-located with an App Engine application. Note that if the preferred 2775 /// location is not available, the instance will be located as close as
2725 * location is not available, the instance will be located as close as possible 2776 /// possible within the region. Only one location may be specified.
2726 * within the region. Only one location may be specified.
2727 */
2728 class LocationPreference { 2777 class LocationPreference {
2729 /** 2778 /// The App Engine application to follow, it must be in the same region as
2730 * The App Engine application to follow, it must be in the same region as the 2779 /// the Cloud SQL instance.
2731 * Cloud SQL instance.
2732 */
2733 core.String followGaeApplication; 2780 core.String followGaeApplication;
2734 /** This is always sql#locationPreference. */ 2781
2782 /// This is always sql#locationPreference.
2735 core.String kind; 2783 core.String kind;
2736 /** 2784
2737 * The preferred Compute Engine zone (e.g. us-centra1-a, us-central1-b, etc.). 2785 /// The preferred Compute Engine zone (e.g. us-centra1-a, us-central1-b,
2738 */ 2786 /// etc.).
2739 core.String zone; 2787 core.String zone;
2740 2788
2741 LocationPreference(); 2789 LocationPreference();
2742 2790
2743 LocationPreference.fromJson(core.Map _json) { 2791 LocationPreference.fromJson(core.Map _json) {
2744 if (_json.containsKey("followGaeApplication")) { 2792 if (_json.containsKey("followGaeApplication")) {
2745 followGaeApplication = _json["followGaeApplication"]; 2793 followGaeApplication = _json["followGaeApplication"];
2746 } 2794 }
2747 if (_json.containsKey("kind")) { 2795 if (_json.containsKey("kind")) {
2748 kind = _json["kind"]; 2796 kind = _json["kind"];
2749 } 2797 }
2750 if (_json.containsKey("zone")) { 2798 if (_json.containsKey("zone")) {
2751 zone = _json["zone"]; 2799 zone = _json["zone"];
2752 } 2800 }
2753 } 2801 }
2754 2802
2755 core.Map<core.String, core.Object> toJson() { 2803 core.Map<core.String, core.Object> toJson() {
2756 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2804 final core.Map<core.String, core.Object> _json =
2805 new core.Map<core.String, core.Object>();
2757 if (followGaeApplication != null) { 2806 if (followGaeApplication != null) {
2758 _json["followGaeApplication"] = followGaeApplication; 2807 _json["followGaeApplication"] = followGaeApplication;
2759 } 2808 }
2760 if (kind != null) { 2809 if (kind != null) {
2761 _json["kind"] = kind; 2810 _json["kind"] = kind;
2762 } 2811 }
2763 if (zone != null) { 2812 if (zone != null) {
2764 _json["zone"] = zone; 2813 _json["zone"] = zone;
2765 } 2814 }
2766 return _json; 2815 return _json;
2767 } 2816 }
2768 } 2817 }
2769 2818
2770 /** Database instance operation error. */ 2819 /// Database instance operation error.
2771 class OperationError { 2820 class OperationError {
2772 /** Identifies the specific error that occurred. */ 2821 /// Identifies the specific error that occurred.
2773 core.String code; 2822 core.String code;
2774 /** This is always sql#operationError. */ 2823
2824 /// This is always sql#operationError.
2775 core.String kind; 2825 core.String kind;
2776 2826
2777 OperationError(); 2827 OperationError();
2778 2828
2779 OperationError.fromJson(core.Map _json) { 2829 OperationError.fromJson(core.Map _json) {
2780 if (_json.containsKey("code")) { 2830 if (_json.containsKey("code")) {
2781 code = _json["code"]; 2831 code = _json["code"];
2782 } 2832 }
2783 if (_json.containsKey("kind")) { 2833 if (_json.containsKey("kind")) {
2784 kind = _json["kind"]; 2834 kind = _json["kind"];
2785 } 2835 }
2786 } 2836 }
2787 2837
2788 core.Map<core.String, core.Object> toJson() { 2838 core.Map<core.String, core.Object> toJson() {
2789 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2839 final core.Map<core.String, core.Object> _json =
2840 new core.Map<core.String, core.Object>();
2790 if (code != null) { 2841 if (code != null) {
2791 _json["code"] = code; 2842 _json["code"] = code;
2792 } 2843 }
2793 if (kind != null) { 2844 if (kind != null) {
2794 _json["kind"] = kind; 2845 _json["kind"] = kind;
2795 } 2846 }
2796 return _json; 2847 return _json;
2797 } 2848 }
2798 } 2849 }
2799 2850
2800 /** Database instance list operations response. */ 2851 /// Database instance list operations response.
2801 class OperationsListResponse { 2852 class OperationsListResponse {
2802 /** List of operation resources. */ 2853 /// List of operation resources.
2803 core.List<InstanceOperation> items; 2854 core.List<InstanceOperation> items;
2804 /** This is always sql#operationsList. */ 2855
2856 /// This is always sql#operationsList.
2805 core.String kind; 2857 core.String kind;
2806 /** 2858
2807 * The continuation token, used to page through large result sets. Provide 2859 /// The continuation token, used to page through large result sets. Provide
2808 * this value in a subsequent request to return the next page of results. 2860 /// this value in a subsequent request to return the next page of results.
2809 */
2810 core.String nextPageToken; 2861 core.String nextPageToken;
2811 2862
2812 OperationsListResponse(); 2863 OperationsListResponse();
2813 2864
2814 OperationsListResponse.fromJson(core.Map _json) { 2865 OperationsListResponse.fromJson(core.Map _json) {
2815 if (_json.containsKey("items")) { 2866 if (_json.containsKey("items")) {
2816 items = _json["items"].map((value) => new InstanceOperation.fromJson(value )).toList(); 2867 items = _json["items"]
2868 .map((value) => new InstanceOperation.fromJson(value))
2869 .toList();
2817 } 2870 }
2818 if (_json.containsKey("kind")) { 2871 if (_json.containsKey("kind")) {
2819 kind = _json["kind"]; 2872 kind = _json["kind"];
2820 } 2873 }
2821 if (_json.containsKey("nextPageToken")) { 2874 if (_json.containsKey("nextPageToken")) {
2822 nextPageToken = _json["nextPageToken"]; 2875 nextPageToken = _json["nextPageToken"];
2823 } 2876 }
2824 } 2877 }
2825 2878
2826 core.Map<core.String, core.Object> toJson() { 2879 core.Map<core.String, core.Object> toJson() {
2827 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2880 final core.Map<core.String, core.Object> _json =
2881 new core.Map<core.String, core.Object>();
2828 if (items != null) { 2882 if (items != null) {
2829 _json["items"] = items.map((value) => (value).toJson()).toList(); 2883 _json["items"] = items.map((value) => (value).toJson()).toList();
2830 } 2884 }
2831 if (kind != null) { 2885 if (kind != null) {
2832 _json["kind"] = kind; 2886 _json["kind"] = kind;
2833 } 2887 }
2834 if (nextPageToken != null) { 2888 if (nextPageToken != null) {
2835 _json["nextPageToken"] = nextPageToken; 2889 _json["nextPageToken"] = nextPageToken;
2836 } 2890 }
2837 return _json; 2891 return _json;
2838 } 2892 }
2839 } 2893 }
2840 2894
2841 /** Database instance set root password context. */ 2895 /// Database instance set root password context.
2842 class SetRootPasswordContext { 2896 class SetRootPasswordContext {
2843 /** This is always sql#setRootUserContext. */ 2897 /// This is always sql#setRootUserContext.
2844 core.String kind; 2898 core.String kind;
2845 /** The password for the root user. */ 2899
2900 /// The password for the root user.
2846 core.String password; 2901 core.String password;
2847 2902
2848 SetRootPasswordContext(); 2903 SetRootPasswordContext();
2849 2904
2850 SetRootPasswordContext.fromJson(core.Map _json) { 2905 SetRootPasswordContext.fromJson(core.Map _json) {
2851 if (_json.containsKey("kind")) { 2906 if (_json.containsKey("kind")) {
2852 kind = _json["kind"]; 2907 kind = _json["kind"];
2853 } 2908 }
2854 if (_json.containsKey("password")) { 2909 if (_json.containsKey("password")) {
2855 password = _json["password"]; 2910 password = _json["password"];
2856 } 2911 }
2857 } 2912 }
2858 2913
2859 core.Map<core.String, core.Object> toJson() { 2914 core.Map<core.String, core.Object> toJson() {
2860 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 2915 final core.Map<core.String, core.Object> _json =
2916 new core.Map<core.String, core.Object>();
2861 if (kind != null) { 2917 if (kind != null) {
2862 _json["kind"] = kind; 2918 _json["kind"] = kind;
2863 } 2919 }
2864 if (password != null) { 2920 if (password != null) {
2865 _json["password"] = password; 2921 _json["password"] = password;
2866 } 2922 }
2867 return _json; 2923 return _json;
2868 } 2924 }
2869 } 2925 }
2870 2926
2871 /** Database instance settings. */ 2927 /// Database instance settings.
2872 class Settings { 2928 class Settings {
2873 /** 2929 /// The activation policy for this instance. This specifies when the instance
2874 * The activation policy for this instance. This specifies when the instance 2930 /// should be activated and is applicable only when the instance state is
2875 * should be activated and is applicable only when the instance state is 2931 /// RUNNABLE. This can be one of the following.
2876 * RUNNABLE. This can be one of the following. 2932 /// ALWAYS: The instance should always be active.
2877 * ALWAYS: The instance should always be active. 2933 /// NEVER: The instance should never be activated.
2878 * NEVER: The instance should never be activated. 2934 /// ON_DEMAND: The instance is activated upon receiving requests.
2879 * ON_DEMAND: The instance is activated upon receiving requests.
2880 */
2881 core.String activationPolicy; 2935 core.String activationPolicy;
2882 /** The App Engine app IDs that can access this instance. */ 2936
2937 /// The App Engine app IDs that can access this instance.
2883 core.List<core.String> authorizedGaeApplications; 2938 core.List<core.String> authorizedGaeApplications;
2884 /** The daily backup configuration for the instance. */ 2939
2940 /// The daily backup configuration for the instance.
2885 core.List<BackupConfiguration> backupConfiguration; 2941 core.List<BackupConfiguration> backupConfiguration;
2886 /** The database flags passed to the instance at startup. */ 2942
2943 /// The database flags passed to the instance at startup.
2887 core.List<DatabaseFlags> databaseFlags; 2944 core.List<DatabaseFlags> databaseFlags;
2888 /** 2945
2889 * Configuration specific to read replica instance. Indicates whether 2946 /// Configuration specific to read replica instance. Indicates whether
2890 * replication is enabled or not. 2947 /// replication is enabled or not.
2891 */
2892 core.bool databaseReplicationEnabled; 2948 core.bool databaseReplicationEnabled;
2893 /** 2949
2894 * The settings for IP Management. This allows to enable or disable the 2950 /// The settings for IP Management. This allows to enable or disable the
2895 * instance IP and manage which external networks can connect to the instance. 2951 /// instance IP and manage which external networks can connect to the
2896 */ 2952 /// instance.
2897 IpConfiguration ipConfiguration; 2953 IpConfiguration ipConfiguration;
2898 /** This is always sql#settings. */ 2954
2955 /// This is always sql#settings.
2899 core.String kind; 2956 core.String kind;
2900 /** 2957
2901 * The location preference settings. This allows the instance to be located as 2958 /// The location preference settings. This allows the instance to be located
2902 * near as possible to either an App Engine app or GCE zone for better 2959 /// as near as possible to either an App Engine app or GCE zone for better
2903 * performance. 2960 /// performance.
2904 */
2905 LocationPreference locationPreference; 2961 LocationPreference locationPreference;
2906 /** 2962
2907 * The pricing plan for this instance. This can be either PER_USE or PACKAGE. 2963 /// The pricing plan for this instance. This can be either PER_USE or
2908 */ 2964 /// PACKAGE.
2909 core.String pricingPlan; 2965 core.String pricingPlan;
2910 /** 2966
2911 * The type of replication this instance uses. This can be either ASYNCHRONOUS 2967 /// The type of replication this instance uses. This can be either
2912 * or SYNCHRONOUS. 2968 /// ASYNCHRONOUS or SYNCHRONOUS.
2913 */
2914 core.String replicationType; 2969 core.String replicationType;
2915 /** 2970
2916 * The version of instance settings. This is a required field for update 2971 /// The version of instance settings. This is a required field for update
2917 * method to make sure concurrent updates are handled properly. During update, 2972 /// method to make sure concurrent updates are handled properly. During
2918 * use the most recent settingsVersion value for this instance and do not try 2973 /// update, use the most recent settingsVersion value for this instance and
2919 * to update this value. 2974 /// do not try to update this value.
2920 */
2921 core.String settingsVersion; 2975 core.String settingsVersion;
2922 /** 2976
2923 * The tier of service for this instance, for example D1, D2. For more 2977 /// The tier of service for this instance, for example D1, D2. For more
2924 * information, see pricing. 2978 /// information, see pricing.
2925 */
2926 core.String tier; 2979 core.String tier;
2927 2980
2928 Settings(); 2981 Settings();
2929 2982
2930 Settings.fromJson(core.Map _json) { 2983 Settings.fromJson(core.Map _json) {
2931 if (_json.containsKey("activationPolicy")) { 2984 if (_json.containsKey("activationPolicy")) {
2932 activationPolicy = _json["activationPolicy"]; 2985 activationPolicy = _json["activationPolicy"];
2933 } 2986 }
2934 if (_json.containsKey("authorizedGaeApplications")) { 2987 if (_json.containsKey("authorizedGaeApplications")) {
2935 authorizedGaeApplications = _json["authorizedGaeApplications"]; 2988 authorizedGaeApplications = _json["authorizedGaeApplications"];
2936 } 2989 }
2937 if (_json.containsKey("backupConfiguration")) { 2990 if (_json.containsKey("backupConfiguration")) {
2938 backupConfiguration = _json["backupConfiguration"].map((value) => new Back upConfiguration.fromJson(value)).toList(); 2991 backupConfiguration = _json["backupConfiguration"]
2992 .map((value) => new BackupConfiguration.fromJson(value))
2993 .toList();
2939 } 2994 }
2940 if (_json.containsKey("databaseFlags")) { 2995 if (_json.containsKey("databaseFlags")) {
2941 databaseFlags = _json["databaseFlags"].map((value) => new DatabaseFlags.fr omJson(value)).toList(); 2996 databaseFlags = _json["databaseFlags"]
2997 .map((value) => new DatabaseFlags.fromJson(value))
2998 .toList();
2942 } 2999 }
2943 if (_json.containsKey("databaseReplicationEnabled")) { 3000 if (_json.containsKey("databaseReplicationEnabled")) {
2944 databaseReplicationEnabled = _json["databaseReplicationEnabled"]; 3001 databaseReplicationEnabled = _json["databaseReplicationEnabled"];
2945 } 3002 }
2946 if (_json.containsKey("ipConfiguration")) { 3003 if (_json.containsKey("ipConfiguration")) {
2947 ipConfiguration = new IpConfiguration.fromJson(_json["ipConfiguration"]); 3004 ipConfiguration = new IpConfiguration.fromJson(_json["ipConfiguration"]);
2948 } 3005 }
2949 if (_json.containsKey("kind")) { 3006 if (_json.containsKey("kind")) {
2950 kind = _json["kind"]; 3007 kind = _json["kind"];
2951 } 3008 }
2952 if (_json.containsKey("locationPreference")) { 3009 if (_json.containsKey("locationPreference")) {
2953 locationPreference = new LocationPreference.fromJson(_json["locationPrefer ence"]); 3010 locationPreference =
3011 new LocationPreference.fromJson(_json["locationPreference"]);
2954 } 3012 }
2955 if (_json.containsKey("pricingPlan")) { 3013 if (_json.containsKey("pricingPlan")) {
2956 pricingPlan = _json["pricingPlan"]; 3014 pricingPlan = _json["pricingPlan"];
2957 } 3015 }
2958 if (_json.containsKey("replicationType")) { 3016 if (_json.containsKey("replicationType")) {
2959 replicationType = _json["replicationType"]; 3017 replicationType = _json["replicationType"];
2960 } 3018 }
2961 if (_json.containsKey("settingsVersion")) { 3019 if (_json.containsKey("settingsVersion")) {
2962 settingsVersion = _json["settingsVersion"]; 3020 settingsVersion = _json["settingsVersion"];
2963 } 3021 }
2964 if (_json.containsKey("tier")) { 3022 if (_json.containsKey("tier")) {
2965 tier = _json["tier"]; 3023 tier = _json["tier"];
2966 } 3024 }
2967 } 3025 }
2968 3026
2969 core.Map<core.String, core.Object> toJson() { 3027 core.Map<core.String, core.Object> toJson() {
2970 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3028 final core.Map<core.String, core.Object> _json =
3029 new core.Map<core.String, core.Object>();
2971 if (activationPolicy != null) { 3030 if (activationPolicy != null) {
2972 _json["activationPolicy"] = activationPolicy; 3031 _json["activationPolicy"] = activationPolicy;
2973 } 3032 }
2974 if (authorizedGaeApplications != null) { 3033 if (authorizedGaeApplications != null) {
2975 _json["authorizedGaeApplications"] = authorizedGaeApplications; 3034 _json["authorizedGaeApplications"] = authorizedGaeApplications;
2976 } 3035 }
2977 if (backupConfiguration != null) { 3036 if (backupConfiguration != null) {
2978 _json["backupConfiguration"] = backupConfiguration.map((value) => (value). toJson()).toList(); 3037 _json["backupConfiguration"] =
3038 backupConfiguration.map((value) => (value).toJson()).toList();
2979 } 3039 }
2980 if (databaseFlags != null) { 3040 if (databaseFlags != null) {
2981 _json["databaseFlags"] = databaseFlags.map((value) => (value).toJson()).to List(); 3041 _json["databaseFlags"] =
3042 databaseFlags.map((value) => (value).toJson()).toList();
2982 } 3043 }
2983 if (databaseReplicationEnabled != null) { 3044 if (databaseReplicationEnabled != null) {
2984 _json["databaseReplicationEnabled"] = databaseReplicationEnabled; 3045 _json["databaseReplicationEnabled"] = databaseReplicationEnabled;
2985 } 3046 }
2986 if (ipConfiguration != null) { 3047 if (ipConfiguration != null) {
2987 _json["ipConfiguration"] = (ipConfiguration).toJson(); 3048 _json["ipConfiguration"] = (ipConfiguration).toJson();
2988 } 3049 }
2989 if (kind != null) { 3050 if (kind != null) {
2990 _json["kind"] = kind; 3051 _json["kind"] = kind;
2991 } 3052 }
2992 if (locationPreference != null) { 3053 if (locationPreference != null) {
2993 _json["locationPreference"] = (locationPreference).toJson(); 3054 _json["locationPreference"] = (locationPreference).toJson();
2994 } 3055 }
2995 if (pricingPlan != null) { 3056 if (pricingPlan != null) {
2996 _json["pricingPlan"] = pricingPlan; 3057 _json["pricingPlan"] = pricingPlan;
2997 } 3058 }
2998 if (replicationType != null) { 3059 if (replicationType != null) {
2999 _json["replicationType"] = replicationType; 3060 _json["replicationType"] = replicationType;
3000 } 3061 }
3001 if (settingsVersion != null) { 3062 if (settingsVersion != null) {
3002 _json["settingsVersion"] = settingsVersion; 3063 _json["settingsVersion"] = settingsVersion;
3003 } 3064 }
3004 if (tier != null) { 3065 if (tier != null) {
3005 _json["tier"] = tier; 3066 _json["tier"] = tier;
3006 } 3067 }
3007 return _json; 3068 return _json;
3008 } 3069 }
3009 } 3070 }
3010 3071
3011 /** SslCerts Resource */ 3072 /// SslCerts Resource
3012 class SslCert { 3073 class SslCert {
3013 /** PEM representation. */ 3074 /// PEM representation.
3014 core.String cert; 3075 core.String cert;
3015 /** Serial number, as extracted from the certificate. */ 3076
3077 /// Serial number, as extracted from the certificate.
3016 core.String certSerialNumber; 3078 core.String certSerialNumber;
3017 /** User supplied name. Constrained to [a-zA-Z.-_ ]+. */ 3079
3080 /// User supplied name. Constrained to [a-zA-Z.-_ ]+.
3018 core.String commonName; 3081 core.String commonName;
3019 /** Time when the certificate was created. */ 3082
3083 /// Time when the certificate was created.
3020 core.DateTime createTime; 3084 core.DateTime createTime;
3021 /** Time when the certificate expires. */ 3085
3086 /// Time when the certificate expires.
3022 core.DateTime expirationTime; 3087 core.DateTime expirationTime;
3023 /** Name of the database instance. */ 3088
3089 /// Name of the database instance.
3024 core.String instance; 3090 core.String instance;
3025 /** This is always sql#sslCert. */ 3091
3092 /// This is always sql#sslCert.
3026 core.String kind; 3093 core.String kind;
3027 /** Sha1 Fingerprint. */ 3094
3095 /// Sha1 Fingerprint.
3028 core.String sha1Fingerprint; 3096 core.String sha1Fingerprint;
3029 3097
3030 SslCert(); 3098 SslCert();
3031 3099
3032 SslCert.fromJson(core.Map _json) { 3100 SslCert.fromJson(core.Map _json) {
3033 if (_json.containsKey("cert")) { 3101 if (_json.containsKey("cert")) {
3034 cert = _json["cert"]; 3102 cert = _json["cert"];
3035 } 3103 }
3036 if (_json.containsKey("certSerialNumber")) { 3104 if (_json.containsKey("certSerialNumber")) {
3037 certSerialNumber = _json["certSerialNumber"]; 3105 certSerialNumber = _json["certSerialNumber"];
(...skipping 12 matching lines...) Expand all
3050 } 3118 }
3051 if (_json.containsKey("kind")) { 3119 if (_json.containsKey("kind")) {
3052 kind = _json["kind"]; 3120 kind = _json["kind"];
3053 } 3121 }
3054 if (_json.containsKey("sha1Fingerprint")) { 3122 if (_json.containsKey("sha1Fingerprint")) {
3055 sha1Fingerprint = _json["sha1Fingerprint"]; 3123 sha1Fingerprint = _json["sha1Fingerprint"];
3056 } 3124 }
3057 } 3125 }
3058 3126
3059 core.Map<core.String, core.Object> toJson() { 3127 core.Map<core.String, core.Object> toJson() {
3060 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3128 final core.Map<core.String, core.Object> _json =
3129 new core.Map<core.String, core.Object>();
3061 if (cert != null) { 3130 if (cert != null) {
3062 _json["cert"] = cert; 3131 _json["cert"] = cert;
3063 } 3132 }
3064 if (certSerialNumber != null) { 3133 if (certSerialNumber != null) {
3065 _json["certSerialNumber"] = certSerialNumber; 3134 _json["certSerialNumber"] = certSerialNumber;
3066 } 3135 }
3067 if (commonName != null) { 3136 if (commonName != null) {
3068 _json["commonName"] = commonName; 3137 _json["commonName"] = commonName;
3069 } 3138 }
3070 if (createTime != null) { 3139 if (createTime != null) {
3071 _json["createTime"] = (createTime).toIso8601String(); 3140 _json["createTime"] = (createTime).toIso8601String();
3072 } 3141 }
3073 if (expirationTime != null) { 3142 if (expirationTime != null) {
3074 _json["expirationTime"] = (expirationTime).toIso8601String(); 3143 _json["expirationTime"] = (expirationTime).toIso8601String();
3075 } 3144 }
3076 if (instance != null) { 3145 if (instance != null) {
3077 _json["instance"] = instance; 3146 _json["instance"] = instance;
3078 } 3147 }
3079 if (kind != null) { 3148 if (kind != null) {
3080 _json["kind"] = kind; 3149 _json["kind"] = kind;
3081 } 3150 }
3082 if (sha1Fingerprint != null) { 3151 if (sha1Fingerprint != null) {
3083 _json["sha1Fingerprint"] = sha1Fingerprint; 3152 _json["sha1Fingerprint"] = sha1Fingerprint;
3084 } 3153 }
3085 return _json; 3154 return _json;
3086 } 3155 }
3087 } 3156 }
3088 3157
3089 /** SslCertDetail. */ 3158 /// SslCertDetail.
3090 class SslCertDetail { 3159 class SslCertDetail {
3091 /** The public information about the cert. */ 3160 /// The public information about the cert.
3092 SslCert certInfo; 3161 SslCert certInfo;
3093 /** 3162
3094 * The private key for the client cert, in pem format. Keep private in order 3163 /// The private key for the client cert, in pem format. Keep private in order
3095 * to protect your security. 3164 /// to protect your security.
3096 */
3097 core.String certPrivateKey; 3165 core.String certPrivateKey;
3098 3166
3099 SslCertDetail(); 3167 SslCertDetail();
3100 3168
3101 SslCertDetail.fromJson(core.Map _json) { 3169 SslCertDetail.fromJson(core.Map _json) {
3102 if (_json.containsKey("certInfo")) { 3170 if (_json.containsKey("certInfo")) {
3103 certInfo = new SslCert.fromJson(_json["certInfo"]); 3171 certInfo = new SslCert.fromJson(_json["certInfo"]);
3104 } 3172 }
3105 if (_json.containsKey("certPrivateKey")) { 3173 if (_json.containsKey("certPrivateKey")) {
3106 certPrivateKey = _json["certPrivateKey"]; 3174 certPrivateKey = _json["certPrivateKey"];
3107 } 3175 }
3108 } 3176 }
3109 3177
3110 core.Map<core.String, core.Object> toJson() { 3178 core.Map<core.String, core.Object> toJson() {
3111 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3179 final core.Map<core.String, core.Object> _json =
3180 new core.Map<core.String, core.Object>();
3112 if (certInfo != null) { 3181 if (certInfo != null) {
3113 _json["certInfo"] = (certInfo).toJson(); 3182 _json["certInfo"] = (certInfo).toJson();
3114 } 3183 }
3115 if (certPrivateKey != null) { 3184 if (certPrivateKey != null) {
3116 _json["certPrivateKey"] = certPrivateKey; 3185 _json["certPrivateKey"] = certPrivateKey;
3117 } 3186 }
3118 return _json; 3187 return _json;
3119 } 3188 }
3120 } 3189 }
3121 3190
3122 /** SslCert delete response. */ 3191 /// SslCert delete response.
3123 class SslCertsDeleteResponse { 3192 class SslCertsDeleteResponse {
3124 /** This is always sql#sslCertsDelete. */ 3193 /// This is always sql#sslCertsDelete.
3125 core.String kind; 3194 core.String kind;
3126 /** 3195
3127 * An identifier that uniquely identifies the operation. You can use this 3196 /// An identifier that uniquely identifies the operation. You can use this
3128 * identifier to retrieve the Operations resource that has information about 3197 /// identifier to retrieve the Operations resource that has information about
3129 * the operation. 3198 /// the operation.
3130 */
3131 core.String operation; 3199 core.String operation;
3132 3200
3133 SslCertsDeleteResponse(); 3201 SslCertsDeleteResponse();
3134 3202
3135 SslCertsDeleteResponse.fromJson(core.Map _json) { 3203 SslCertsDeleteResponse.fromJson(core.Map _json) {
3136 if (_json.containsKey("kind")) { 3204 if (_json.containsKey("kind")) {
3137 kind = _json["kind"]; 3205 kind = _json["kind"];
3138 } 3206 }
3139 if (_json.containsKey("operation")) { 3207 if (_json.containsKey("operation")) {
3140 operation = _json["operation"]; 3208 operation = _json["operation"];
3141 } 3209 }
3142 } 3210 }
3143 3211
3144 core.Map<core.String, core.Object> toJson() { 3212 core.Map<core.String, core.Object> toJson() {
3145 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3213 final core.Map<core.String, core.Object> _json =
3214 new core.Map<core.String, core.Object>();
3146 if (kind != null) { 3215 if (kind != null) {
3147 _json["kind"] = kind; 3216 _json["kind"] = kind;
3148 } 3217 }
3149 if (operation != null) { 3218 if (operation != null) {
3150 _json["operation"] = operation; 3219 _json["operation"] = operation;
3151 } 3220 }
3152 return _json; 3221 return _json;
3153 } 3222 }
3154 } 3223 }
3155 3224
3156 /** SslCerts insert request. */ 3225 /// SslCerts insert request.
3157 class SslCertsInsertRequest { 3226 class SslCertsInsertRequest {
3158 /** 3227 /// User supplied name. Must be a distinct name from the other certificates
3159 * User supplied name. Must be a distinct name from the other certificates for 3228 /// for this instance. New certificates will not be usable until the instance
3160 * this instance. New certificates will not be usable until the instance is 3229 /// is restarted.
3161 * restarted.
3162 */
3163 core.String commonName; 3230 core.String commonName;
3164 3231
3165 SslCertsInsertRequest(); 3232 SslCertsInsertRequest();
3166 3233
3167 SslCertsInsertRequest.fromJson(core.Map _json) { 3234 SslCertsInsertRequest.fromJson(core.Map _json) {
3168 if (_json.containsKey("commonName")) { 3235 if (_json.containsKey("commonName")) {
3169 commonName = _json["commonName"]; 3236 commonName = _json["commonName"];
3170 } 3237 }
3171 } 3238 }
3172 3239
3173 core.Map<core.String, core.Object> toJson() { 3240 core.Map<core.String, core.Object> toJson() {
3174 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3241 final core.Map<core.String, core.Object> _json =
3242 new core.Map<core.String, core.Object>();
3175 if (commonName != null) { 3243 if (commonName != null) {
3176 _json["commonName"] = commonName; 3244 _json["commonName"] = commonName;
3177 } 3245 }
3178 return _json; 3246 return _json;
3179 } 3247 }
3180 } 3248 }
3181 3249
3182 /** SslCert insert response. */ 3250 /// SslCert insert response.
3183 class SslCertsInsertResponse { 3251 class SslCertsInsertResponse {
3184 /** 3252 /// The new client certificate and private key. The new certificate will not
3185 * The new client certificate and private key. The new certificate will not 3253 /// work until the instance is restarted.
3186 * work until the instance is restarted.
3187 */
3188 SslCertDetail clientCert; 3254 SslCertDetail clientCert;
3189 /** This is always sql#sslCertsInsert. */ 3255
3256 /// This is always sql#sslCertsInsert.
3190 core.String kind; 3257 core.String kind;
3191 /** 3258
3192 * The server Certificate Authority's certificate. If this is missing you can 3259 /// The server Certificate Authority's certificate. If this is missing you
3193 * force a new one to be generated by calling resetSslConfig method on 3260 /// can force a new one to be generated by calling resetSslConfig method on
3194 * instances resource.. 3261 /// instances resource..
3195 */
3196 SslCert serverCaCert; 3262 SslCert serverCaCert;
3197 3263
3198 SslCertsInsertResponse(); 3264 SslCertsInsertResponse();
3199 3265
3200 SslCertsInsertResponse.fromJson(core.Map _json) { 3266 SslCertsInsertResponse.fromJson(core.Map _json) {
3201 if (_json.containsKey("clientCert")) { 3267 if (_json.containsKey("clientCert")) {
3202 clientCert = new SslCertDetail.fromJson(_json["clientCert"]); 3268 clientCert = new SslCertDetail.fromJson(_json["clientCert"]);
3203 } 3269 }
3204 if (_json.containsKey("kind")) { 3270 if (_json.containsKey("kind")) {
3205 kind = _json["kind"]; 3271 kind = _json["kind"];
3206 } 3272 }
3207 if (_json.containsKey("serverCaCert")) { 3273 if (_json.containsKey("serverCaCert")) {
3208 serverCaCert = new SslCert.fromJson(_json["serverCaCert"]); 3274 serverCaCert = new SslCert.fromJson(_json["serverCaCert"]);
3209 } 3275 }
3210 } 3276 }
3211 3277
3212 core.Map<core.String, core.Object> toJson() { 3278 core.Map<core.String, core.Object> toJson() {
3213 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3279 final core.Map<core.String, core.Object> _json =
3280 new core.Map<core.String, core.Object>();
3214 if (clientCert != null) { 3281 if (clientCert != null) {
3215 _json["clientCert"] = (clientCert).toJson(); 3282 _json["clientCert"] = (clientCert).toJson();
3216 } 3283 }
3217 if (kind != null) { 3284 if (kind != null) {
3218 _json["kind"] = kind; 3285 _json["kind"] = kind;
3219 } 3286 }
3220 if (serverCaCert != null) { 3287 if (serverCaCert != null) {
3221 _json["serverCaCert"] = (serverCaCert).toJson(); 3288 _json["serverCaCert"] = (serverCaCert).toJson();
3222 } 3289 }
3223 return _json; 3290 return _json;
3224 } 3291 }
3225 } 3292 }
3226 3293
3227 /** SslCerts list response. */ 3294 /// SslCerts list response.
3228 class SslCertsListResponse { 3295 class SslCertsListResponse {
3229 /** List of client certificates for the instance. */ 3296 /// List of client certificates for the instance.
3230 core.List<SslCert> items; 3297 core.List<SslCert> items;
3231 /** This is always sql#sslCertsList. */ 3298
3299 /// This is always sql#sslCertsList.
3232 core.String kind; 3300 core.String kind;
3233 3301
3234 SslCertsListResponse(); 3302 SslCertsListResponse();
3235 3303
3236 SslCertsListResponse.fromJson(core.Map _json) { 3304 SslCertsListResponse.fromJson(core.Map _json) {
3237 if (_json.containsKey("items")) { 3305 if (_json.containsKey("items")) {
3238 items = _json["items"].map((value) => new SslCert.fromJson(value)).toList( ); 3306 items =
3307 _json["items"].map((value) => new SslCert.fromJson(value)).toList();
3239 } 3308 }
3240 if (_json.containsKey("kind")) { 3309 if (_json.containsKey("kind")) {
3241 kind = _json["kind"]; 3310 kind = _json["kind"];
3242 } 3311 }
3243 } 3312 }
3244 3313
3245 core.Map<core.String, core.Object> toJson() { 3314 core.Map<core.String, core.Object> toJson() {
3246 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3315 final core.Map<core.String, core.Object> _json =
3316 new core.Map<core.String, core.Object>();
3247 if (items != null) { 3317 if (items != null) {
3248 _json["items"] = items.map((value) => (value).toJson()).toList(); 3318 _json["items"] = items.map((value) => (value).toJson()).toList();
3249 } 3319 }
3250 if (kind != null) { 3320 if (kind != null) {
3251 _json["kind"] = kind; 3321 _json["kind"] = kind;
3252 } 3322 }
3253 return _json; 3323 return _json;
3254 } 3324 }
3255 } 3325 }
3256 3326
3257 /** A Google Cloud SQL service tier resource. */ 3327 /// A Google Cloud SQL service tier resource.
3258 class Tier { 3328 class Tier {
3259 /** The maximum disk size of this tier in bytes. */ 3329 /// The maximum disk size of this tier in bytes.
3260 core.String DiskQuota; 3330 core.String DiskQuota;
3261 /** The maximum RAM usage of this tier in bytes. */ 3331
3332 /// The maximum RAM usage of this tier in bytes.
3262 core.String RAM; 3333 core.String RAM;
3263 /** This is always sql#tier. */ 3334
3335 /// This is always sql#tier.
3264 core.String kind; 3336 core.String kind;
3265 /** The applicable regions for this tier. */ 3337
3338 /// The applicable regions for this tier.
3266 core.List<core.String> region; 3339 core.List<core.String> region;
3267 /** 3340
3268 * An identifier for the service tier, for example D1, D2 etc. For related 3341 /// An identifier for the service tier, for example D1, D2 etc. For related
3269 * information, see Pricing. 3342 /// information, see Pricing.
3270 */
3271 core.String tier; 3343 core.String tier;
3272 3344
3273 Tier(); 3345 Tier();
3274 3346
3275 Tier.fromJson(core.Map _json) { 3347 Tier.fromJson(core.Map _json) {
3276 if (_json.containsKey("DiskQuota")) { 3348 if (_json.containsKey("DiskQuota")) {
3277 DiskQuota = _json["DiskQuota"]; 3349 DiskQuota = _json["DiskQuota"];
3278 } 3350 }
3279 if (_json.containsKey("RAM")) { 3351 if (_json.containsKey("RAM")) {
3280 RAM = _json["RAM"]; 3352 RAM = _json["RAM"];
3281 } 3353 }
3282 if (_json.containsKey("kind")) { 3354 if (_json.containsKey("kind")) {
3283 kind = _json["kind"]; 3355 kind = _json["kind"];
3284 } 3356 }
3285 if (_json.containsKey("region")) { 3357 if (_json.containsKey("region")) {
3286 region = _json["region"]; 3358 region = _json["region"];
3287 } 3359 }
3288 if (_json.containsKey("tier")) { 3360 if (_json.containsKey("tier")) {
3289 tier = _json["tier"]; 3361 tier = _json["tier"];
3290 } 3362 }
3291 } 3363 }
3292 3364
3293 core.Map<core.String, core.Object> toJson() { 3365 core.Map<core.String, core.Object> toJson() {
3294 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3366 final core.Map<core.String, core.Object> _json =
3367 new core.Map<core.String, core.Object>();
3295 if (DiskQuota != null) { 3368 if (DiskQuota != null) {
3296 _json["DiskQuota"] = DiskQuota; 3369 _json["DiskQuota"] = DiskQuota;
3297 } 3370 }
3298 if (RAM != null) { 3371 if (RAM != null) {
3299 _json["RAM"] = RAM; 3372 _json["RAM"] = RAM;
3300 } 3373 }
3301 if (kind != null) { 3374 if (kind != null) {
3302 _json["kind"] = kind; 3375 _json["kind"] = kind;
3303 } 3376 }
3304 if (region != null) { 3377 if (region != null) {
3305 _json["region"] = region; 3378 _json["region"] = region;
3306 } 3379 }
3307 if (tier != null) { 3380 if (tier != null) {
3308 _json["tier"] = tier; 3381 _json["tier"] = tier;
3309 } 3382 }
3310 return _json; 3383 return _json;
3311 } 3384 }
3312 } 3385 }
3313 3386
3314 /** Tiers list response. */ 3387 /// Tiers list response.
3315 class TiersListResponse { 3388 class TiersListResponse {
3316 /** List of tiers. */ 3389 /// List of tiers.
3317 core.List<Tier> items; 3390 core.List<Tier> items;
3318 /** This is always sql#tiersList. */ 3391
3392 /// This is always sql#tiersList.
3319 core.String kind; 3393 core.String kind;
3320 3394
3321 TiersListResponse(); 3395 TiersListResponse();
3322 3396
3323 TiersListResponse.fromJson(core.Map _json) { 3397 TiersListResponse.fromJson(core.Map _json) {
3324 if (_json.containsKey("items")) { 3398 if (_json.containsKey("items")) {
3325 items = _json["items"].map((value) => new Tier.fromJson(value)).toList(); 3399 items = _json["items"].map((value) => new Tier.fromJson(value)).toList();
3326 } 3400 }
3327 if (_json.containsKey("kind")) { 3401 if (_json.containsKey("kind")) {
3328 kind = _json["kind"]; 3402 kind = _json["kind"];
3329 } 3403 }
3330 } 3404 }
3331 3405
3332 core.Map<core.String, core.Object> toJson() { 3406 core.Map<core.String, core.Object> toJson() {
3333 final core.Map<core.String, core.Object> _json = new core.Map<core.String, c ore.Object>(); 3407 final core.Map<core.String, core.Object> _json =
3408 new core.Map<core.String, core.Object>();
3334 if (items != null) { 3409 if (items != null) {
3335 _json["items"] = items.map((value) => (value).toJson()).toList(); 3410 _json["items"] = items.map((value) => (value).toJson()).toList();
3336 } 3411 }
3337 if (kind != null) { 3412 if (kind != null) {
3338 _json["kind"] = kind; 3413 _json["kind"] = kind;
3339 } 3414 }
3340 return _json; 3415 return _json;
3341 } 3416 }
3342 } 3417 }
OLDNEW
« no previous file with comments | « generated/googleapis_beta/lib/speech/v1beta1.dart ('k') | generated/googleapis_beta/lib/sqladmin/v1beta4.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698